用户指南

商用案例

API 文档

文档中心 > 访问管理 > 商用案例 > 其他案例 > 授权子账号拥有所有资源的只读权限

授权子账号拥有所有资源的只读权限

最近更新时间:2020-06-30 15:51:22

企业帐号 CompanyExample 下有一个子账号 Developer,该子账号需要拥有对企业帐号 CompanyExample 名下的所有资源的只读权限。

方案A:

企业帐号 CompanyExample 直接将预设策略 ReadOnlyAccess 授权给子账号 Developer。授权方式请参考 授权管理

方案B:

步骤1:通过策略语法方式创建以下策略

{
    "version": "2.0",
    "statement": [
        {
            "action": [
                "cvm:Describe*",
                "cvm:Inquiry*",
                "vpc:Describe*",
                "vpc:Inquiry*",
                "vpc:Get*",
                "clb:Describe*",
                "monitor:Describe*",
                "monitor:Get*",
                "bm:Describe*",
                "bmeip:Describe*",
                "bmlb:Describe*",
                "bmvpc:Describe*",
                "bm:Get*",
                "bmlb:Get*",
                "cos:List*",
                "cos:Get*",
                "cos:Head*",
                "cos:OptionsObject",
                "cas:Describe*",
                "cas:List*",
                "cas:Get*",
                "kms:List*",
                "kms:Get*",
                "ccs:Describe*",
                "ccs:Check*",
                "cam:Get*",
                "cam:List*",
                "cam:Describe*",
                "cam:Query*",
                "cdb:Describe*",
                "batch:Describe*",
                "bgpip:BasicGet*",
                "bgpip:BasicCCGet*",
                "bgpip:BasicDDoSGet*",
                "bgpip:BgpGetFpcDeviceList",
                "bgpip:BGPGetInfo",
                "bgpip:BGPGetServiceStatistics",
                "bgpip:BGPGetServicePacks",
                "bgpip:BGPCCGet*",
                "bgpip:BGPWhitelistGet",
                "bgpip:Get*",
                "bgpip:BGPIPWhitelistGet",
                "bgpip:BGPIPGet*",
                "bgpip:BGPIPDDoSGet*",
                "bgpip:BGPIPCCGet*",
                "bgpip:BgpipGetIdByTran",
                "bgpip:BgpipModifyPrice",
                "bgpip:BgpipRenewPrice",
                "bgpip:BgpipCreatePrice",
                "bgpip:BgpipQueryResources",
                "bgpip:BgpipCheckModify",
                "bgpip:BgpipCheckRenew",
                "bgpip:BgpipCheckCreate",
                "bgpip:BGPDDoSGet*",
                "ccb:ListGitAuth",
                "ccr:pull",
                "ccs:Describe*",
                "ccs:Check*",
                "ckafka:Get*",
                "ckafka:List*",
                "organization:Get*",
                "organization:List*",
                "redis:Describe*",
                "scf:Get*",
                "scf:List*",
                "shield:*Get*",
                "tag:Get*",
                "waf:WafGet*",
                "waf:WAFGetUserInfo",
                "waf:WafDownloadAlerts",
                "waf:WafPackagePrice",
                "waf:WafAreaBanGetAreas",
                "waf:WafFreqGetRuleList",
                "waf:WafAntiFakeGetUrl",
                "waf:WafDNSdetectGet*",
                "waf:BotGet*",
                "wss:CertGetList",
                "cbm:previewProductDetail",
                "cbm:agentInfo",
                "cbm:viewDeals",
                "cbm:rebateInfo",
                "cbm:businessDetail",
                "cbm:inviteClient",
                "cbm:viewClients",
                "cbm:authorize",
                "cbm:viewMessage",
                "cbm:viewMenu",
                "snova:Describe*",
                "gme:Describe*",
                "gme:Download*"
            ],
            "resource": "*",
            "effect": "allow"
        }
    ]
}

步骤2:将该策略授权给子账号。授权方式请参考 授权管理