Help & DocumentationCloud Access ManagementBusiness Use CaseCVM-related CasesAuthorizing Sub-account Access to Perform Operations on Specific CVM

Authorizing Sub-account Access to Perform Operations on Specific CVM

Last updated: 2019-05-10 11:00:59

PDF

Authorizing a sub-account with operation permissions of specific CVM

A sub-account Developer under the enterprise account CompanyExample (ownerUin is 12345678) requires operation permissions of the specific CVM with ID ins-1 in Guangzhou region under the enterprise account CompanyExample.

Step 1: Create the following policy using policy syntax

{
    "version": "2.0",
    "statement": [
        {
            "action": "cvm:*",
            "resource": "qcs::cvm:gz::instance/ins-1",
            "effect": "allow"
        }
    ]
}

Step 2: Authorize the policy to the sub-account. For more information on authorization, please see Authorization Management.