CAM Overview
Features
Scenarios
Basic Concepts
Use Limits
User Types
CompanyExample has a sub-account DevA.CompanyExample has a tag key-value pair test1&test1.CompanyExample wants to grant the sub-account DevA the permission to restart CVM instances (cvm:RebootInstances) under the tag test1&test1.CompanyExample.
policygen-current date. We recommend you define a unique and meaningful policy name, such as cvm-RebootInstances.cvm:RebootInstances is the name of the API that needs to be authorized, and test1&test1 is the tag key-value pair that needs to be authorized.{"version": "2.0","statement": [{"effect": "allow","action": ["cvm:RebootInstances"],"resource": "*","condition": {"for_any_value:string_equal": {"qcs:tag": ["test1&test1"]}}}]}

DevA and click OK to complete the authorization.
The sub-account DevA will have the permission to restart CVM instances under the test1&test1 tag.

Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan