授权信息

访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍API 网关(CloudAPI)RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。API 网关(CloudAPI)RAM代码(RamCode)为[{"popCode":"CloudAPI","ramCodes":["cloudapi","apigateway"]}],支持的授权粒度为RESOURCE

权限策略通用结构

权限策略支持JSON格式,其通用结构如下:
{
  "Version": "1",
  "Statement": [
    {
      "Effect": "<Effect>",
      "Action": "<Action>",
      "Resource": "<Resource>",
      "Condition": {
        "<Condition_operator>": {
          "<Condition_key>": [
            "<Condition_value>"
          ]
        }
      }
    }
  ]
}
各字段含义如下:
  • Effect:权限策略效果。取值:Allow(允许)、Deny(拒绝)。
  • Action:授予允许或拒绝权限的具体操作。具体信息,请参见操作(Action)
  • Resource:受操作影响的具体对象,您可以使用资源ARN来描述指定资源。具体信息,请参见资源(Resource)
  • Condition:指授权生效的条件。可选字段。具体信息,请参见条件(Condition)
    • Condition_operator:条件运算符,不同类型的条件对应不同的条件运算符。具体信息,请参见权限策略基本元素
    • Condition_key:条件关键字。
    • Condition_value:条件关键字对应的值。

操作(Action)

下表是API 网关(CloudAPI)定义的操作,这些操作可以在RAM权限策略语句的Action元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:
  • 操作:是指具体的权限点。
  • API:是指操作对应的API接口。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。该列不体现适用于任何操作的通用条件关键字
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作API访问级别资源类型条件关键字关联操作
apigateway:ValidateVpcConnectivityValidateVpcConnectivityget
全部资源
*
apigateway:DescribeApiGroupsDescribeApiGroupsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/*
apigateway:ModifyApiModifyApiupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyApiGroupNetworkPolicyModifyApiGroupNetworkPolicyupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteTrafficSpecialControlDeleteTrafficSpecialControldelete
全部资源
*
apigateway:CreateBackendModelCreateBackendModelcreate
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:DescribeAppDescribeAppget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeApiTrafficDataDescribeApiTrafficDataget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeDatasetItemInfoDescribeDatasetItemInfoget
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DescribeDeployApiTaskDescribeDeployApiTaskget
全部资源
*
apigateway:CreateApiStageVariableCreateApiStageVariablecreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyInstanceSpecModifyInstanceSpecupdate
全部资源
*
apigateway:AssociateInstanceWithPrivateDNSAssociateInstanceWithPrivateDNSupdate
全部资源
*
apigateway:ModifyPluginModifyPluginupdate
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:SetVpcAccessSetVpcAccessupdate
Vpc
acs:apigateway:{#regionId}:{#accountId}:vpcaccess/*
apigateway:DescribeDomainDescribeDomainget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:CreateInstanceCreateInstancecreate
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/*
apigateway:ImportOASImportOAScreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeletePrivateDNSDeletePrivateDNSdelete
全部资源
*
apigateway:DescribeBackendListDescribeBackendListget
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/*
apigateway:DetachApiProductDetachApiProductdelete
全部资源
*
apigateway:DescribePurchasedApiGroupDescribePurchasedApiGroupget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SetApiProductsAuthoritiesSetApiProductsAuthoritiescreate
全部资源
*
apigateway:RemoveAccessControlListEntryRemoveAccessControlListEntryupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:BatchDeployApisBatchDeployApisupdate
全部资源
*
apigateway:RemoveApiProductsAuthoritiesRemoveApiProductsAuthoritiesdelete
全部资源
*
apigateway:DissociateInstanceWithPrivateDNSDissociateInstanceWithPrivateDNSupdate
全部资源
*
apigateway:DescribeGroupTrafficDescribeGroupTrafficget
全部资源
*
apigateway:CreateAppCodeCreateAppCodecreate
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeApisByBackendDescribeApisByBackendget
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:DeleteBackendDeleteBackenddelete
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:SdkGenerateByAppSdkGenerateByAppcreate
全部资源
*
apigateway:DescribePluginSchemasDescribePluginSchemasget
全部资源
*
apigateway:DescribeInstanceQpsDescribeInstanceQpsget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DeleteDatasetDeleteDatasetdelete
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:SetAccessControlListAttributeSetAccessControlListAttributeupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:DeleteAllTrafficSpecialControlDeleteAllTrafficSpecialControldelete
全部资源
*
apigateway:RemoveVpcAccessRemoveVpcAccessdelete
全部资源
*
apigateway:DescribeAuthorizedApisDescribeAuthorizedApisget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeInstanceLatencyDescribeInstanceLatencyget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DescribeApisByIpControlDescribeApisByIpControlget
全部资源
*
apigateway:DescribePurchasedApiGroupsDescribePurchasedApiGroupsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/*
apigateway:DescribeApiMarketAttributesDescribeApiMarketAttributesget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteDomainDeleteDomaindelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SetTrafficControlApisSetTrafficControlApisupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeAppSecurityDescribeAppSecurityget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeAccessControlListsDescribeAccessControlListsget
全部资源
*
apigateway:DescribeInstanceNewConnectionsDescribeInstanceNewConnectionsget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DescribeSummaryDataDescribeSummaryDataget
全部资源
*
apigateway:DescribeApiHistoriesDescribeApiHistoriesget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyApiGroupModifyApiGroupupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribePluginTemplatesDescribePluginTemplatesget
全部资源
*
apigateway:DescribeImportOASTaskDescribeImportOASTaskget
全部资源
*
apigateway:UpdatePrivateDNSUpdatePrivateDNSupdate
全部资源
*
apigateway:DeployApiDeployApiget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteApiGroupDeleteApiGroupdelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyTrafficControlModifyTrafficControlupdate
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#TrafficControlId}
apigateway:CreateSignatureCreateSignaturecreate
全部资源
*
apigateway:DescribeDeployedApisDescribeDeployedApisget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApiProductApisDescribeApiProductApisget
全部资源
*
apigateway:CreatePrivateDNSCreatePrivateDNScreate
全部资源
*
apigateway:DescribeUpdateVpcInfoTaskDescribeUpdateVpcInfoTaskget
全部资源
*
apigateway:DescribeApiIpControlsDescribeApiIpControlsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:TagResourcesTagResourcescreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#ResourceId}
App
acs:apigateway:{#regionId}:{#accountId}:app/{#ResourceId}
apigateway:BatchAbolishApisBatchAbolishApisupdate
全部资源
*
apigateway:DescribeGroupQpsDescribeGroupQpsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApiQpsDataDescribeApiQpsDataget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:AbolishApiAbolishApiupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:RemoveSignatureApisRemoveSignatureApisdelete
全部资源
*
apigateway:DescribeAccessControlListAttributeDescribeAccessControlListAttributeget
全部资源
*
apigateway:DescribeInstancesDescribeInstancesget
全部资源
*
apigateway:AddIpControlPolicyItemAddIpControlPolicyItemcreate
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:CreateBackendCreateBackendcreate
全部资源
*
apigateway:AttachPluginAttachPluginupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:DeleteAppDeleteAppdelete
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DeleteAppKeyDeleteAppKeydelete
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeApisWithStageNameIntegratedByAppDescribeApisWithStageNameIntegratedByAppget
全部资源
*
apigateway:DescribeAbolishApiTaskDescribeAbolishApiTaskget
全部资源
*
apigateway:DescribeDatasetListDescribeDatasetListget
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/*
apigateway:QueryRequestLogsQueryRequestLogsget
全部资源
*
apigateway:DescribePluginsByApiDescribePluginsByApiget
全部资源
*
apigateway:ModifyDatasetModifyDatasetupdate
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DescribePluginsDescribePluginsget
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/*
apigateway:CreateModelCreateModelcreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SwitchApiSwitchApiupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyVpcAccessAndUpdateApisModifyVpcAccessAndUpdateApisupdate
全部资源
*
apigateway:DescribeSystemParametersDescribeSystemParametersget
全部资源
*
apigateway:DeleteLogConfigDeleteLogConfigdelete
LogConfig
acs:apigateway:{#regionId}:{#accountId}:logconfig/{#LogType}
apigateway:DeleteMonitorGroupDeleteMonitorGroupdelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyIntranetDomainPolicyModifyIntranetDomainPolicyupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApisDescribeApisget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApiTrafficControlsDescribeApiTrafficControlsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyLogConfigModifyLogConfigupdate
全部资源
*
apigateway:DeleteAppCodeDeleteAppCodedelete
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DisableInstanceAccessControlDisableInstanceAccessControlupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:DeleteDomainCertificateDeleteDomainCertificatedelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ListTagResourcesListTagResourcesget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#ResourceId}
apigateway:CreateApiGroupCreateApiGroupcreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/*
apigateway:RemoveApisAuthoritiesRemoveApisAuthoritiesdelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeDatasetInfoDescribeDatasetInfoget
全部资源
*
apigateway:DescribeApiDocDescribeApiDocget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyBackendModelModifyBackendModelupdate
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:CreateDatasetItemCreateDatasetItemcreate
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DescribeApisBySignatureDescribeApisBySignatureget
全部资源
*
apigateway:DescribeLogConfigDescribeLogConfigget
LogConfig
acs:apigateway:{#regionId}:{#accountId}:logconfig/{#LogType}
apigateway:DescribeApiGroupVpcWhitelistDescribeApiGroupVpcWhitelistget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SetApisAuthoritiesSetApisAuthoritiesupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:CreateAccessControlListCreateAccessControlListcreate
全部资源
*
apigateway:DryRunSwaggerDryRunSwaggernone
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyInstanceAttributeModifyInstanceAttributeupdate
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:ModifyApiGroupInstanceModifyApiGroupInstanceupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeTrafficControlsByApiDescribeTrafficControlsByApiget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstanceDropPacketDescribeInstanceDropPacketget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:ModifySignatureModifySignatureupdate
全部资源
*
apigateway:SetDomainWebSocketStatusSetDomainWebSocketStatusupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeDeployedApiDescribeDeployedApiget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeletePluginDeletePlugindelete
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:SetAppsAuthToApiProductSetAppsAuthToApiProductcreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apiproduct/{#ApiProductId}
apigateway:DescribeInstanceDropConnectionsDescribeInstanceDropConnectionsget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DeleteSignatureDeleteSignaturedelete
全部资源
*
apigateway:DescribeApiSignaturesDescribeApiSignaturesget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:CreateDatasetCreateDatasetcreate
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/*
apigateway:DescribeModelsDescribeModelsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:RemoveAppsAuthoritiesRemoveAppsAuthoritiesdelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppIds}
apigateway:CreateLogConfigCreateLogConfigcreate
全部资源
*
apigateway:DescribeApiLatencyDataDescribeApiLatencyDataget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ResetAppCodeResetAppCodeupdate
全部资源
*
apigateway:RemoveIpControlPolicyItemRemoveIpControlPolicyItemdelete
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:CreateMonitorGroupCreateMonitorGroupcreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SetAppsAuthoritiesSetAppsAuthoritiesupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppIds}
apigateway:CreateTrafficControlCreateTrafficControlcreate
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/*
apigateway:CreateApiCreateApicreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApisByAppDescribeApisByAppget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:RemoveVpcAccessAndAbolishApisRemoveVpcAccessAndAbolishApisdelete
全部资源
*
apigateway:AddAccessControlListEntryAddAccessControlListEntryupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:DescribeInstanceClusterInfoDescribeInstanceClusterInfoget
全部资源
*
apigateway:CreateIpControlCreateIpControlcreate
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/*
apigateway:ModifyBackendModifyBackendupdate
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:RemoveIpControlApisRemoveIpControlApisdelete
全部资源
*
apigateway:DeleteAccessControlListDeleteAccessControlListdelete
全部资源
*
apigateway:UntagResourcesUntagResourcesdelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#ResourceId}
App
acs:apigateway:{#regionId}:{#accountId}:app/{#ResourceId}
apigateway:DeleteBackendModelDeleteBackendModeldelete
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:EnableInstanceAccessControlEnableInstanceAccessControlupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:CreatePluginCreatePlugincreate
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/*
apigateway:DescribePurchasedApisDescribePurchasedApisget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeBackendInfoDescribeBackendInfoget
全部资源
*
apigateway:DeleteDatasetItemDeleteDatasetItemdelete
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DescribeDatasetItemListDescribeDatasetItemListget
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DescribeHistoryApisDescribeHistoryApisget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SetDomainSetDomainupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SetDomainCertificateSetDomainCertificateupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApiProductsByAppDescribeApiProductsByAppget
全部资源
*
apigateway:DescribeInstanceHttpCodeDescribeInstanceHttpCodeget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DescribeAppSecuritiesDescribeAppSecuritiesget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:SetWildcardDomainPatternsSetWildcardDomainPatternsupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:CreateAppCreateAppcreate
App
acs:apigateway:{#regionId}:{#accountId}:app/*
apigateway:SetIpControlApisSetIpControlApisupdate
全部资源
*
apigateway:ListPrivateDNSListPrivateDNSlist
全部资源
*
apigateway:DetachPluginDetachPluginupdate
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:RemoveTrafficControlApisRemoveTrafficControlApisdelete
全部资源
*
apigateway:DescribeUpdateBackendTaskDescribeUpdateBackendTaskget
全部资源
*
apigateway:DescribeIpControlsDescribeIpControlsget
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/*
apigateway:ModifyModelModifyModelupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeMarketRemainsQuotaDescribeMarketRemainsQuotaget
全部资源
*
apigateway:ResetAppSecretResetAppSecretupdate
全部资源
*
apigateway:ModifyAppModifyAppupdate
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DeleteApiDeleteApidelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteModelDeleteModeldelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstancePacketsDescribeInstancePacketsget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DescribeAppsDescribeAppsget
App
acs:apigateway:{#regionId}:{#accountId}:app/*
apigateway:ModifyInstanceVpcAttributeForConsoleModifyInstanceVpcAttributeForConsoleupdate
全部资源
*
apigateway:DeleteApiProductDeleteApiProductdelete
全部资源
*
apigateway:DeleteInstanceDeleteInstancedelete
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DescribeApiGroupDescribeApiGroupget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyIpControlModifyIpControlupdate
全部资源
*
apigateway:DescribeInstanceSlbConnectDescribeInstanceSlbConnectget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DescribeInstanceTrafficDescribeInstanceTrafficget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DeleteIpControlDeleteIpControldelete
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:CreateAppKeyCreateAppKeycreate
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeApiHistoryDescribeApiHistoryget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteApiStageVariableDeleteApiStageVariabledelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:AddTrafficSpecialControlAddTrafficSpecialControlcreate
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#TrafficControlId}
apigateway:DescribeApiDescribeApiget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstanceClusterListDescribeInstanceClusterListlist
全部资源
*
apigateway:OpenApiGatewayServiceOpenApiGatewayServicenone
全部资源
*
apigateway:DescribePluginApisDescribePluginApisget
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:DescribeSignaturesDescribeSignaturesget
Signature
acs:apigateway:{#regionId}:{#accountId}:secretkey/*
apigateway:ModifyDatasetItemModifyDatasetItemupdate
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DescribeTrafficControlsDescribeTrafficControlsget
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#TrafficControlId}
apigateway:DescribeAuthorizedAppsDescribeAuthorizedAppsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyIpControlPolicyItemModifyIpControlPolicyItemupdate
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:DeleteTrafficControlDeleteTrafficControldelete
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#TrafficControlId}
apigateway:AttachApiProductAttachApiProductcreate
全部资源
*
apigateway:DescribeAppsByApiProductDescribeAppsByApiProductget
全部资源
*
apigateway:DescribeIpControlPolicyItemsDescribeIpControlPolicyItemsget
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:ExportOASExportOASget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyApiGroupVpcWhitelistModifyApiGroupVpcWhitelistupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ImportSwaggerImportSwaggercreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SdkGenerateByAppForRegionSdkGenerateByAppForRegionget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeApisByVpcAccessDescribeApisByVpcAccesslist
全部资源
*
apigateway:ReactivateDomainReactivateDomainupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SdkGenerateByGroupSdkGenerateByGroupcreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeAppAttributesDescribeAppAttributesget
App
acs:apigateway:{#regionId}:{#accountId}:app/*
apigateway:SetSignatureApisSetSignatureApisupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeGroupLatencyDescribeGroupLatencyget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeSignaturesByApiDescribeSignaturesByApiget
全部资源
*
apigateway:ModifyApiConfigurationModifyApiConfigurationupdate
全部资源
*
apigateway:DescribeVpcAccessesDescribeVpcAccessesget
全部资源
*
apigateway:DescribeApisByTrafficControlDescribeApisByTrafficControlget
全部资源
*

资源(Resource)

下表是API 网关(CloudAPI)定义的资源,这些资源可以在RAM权限策略语句的Resource元素中使用,用来授予对该资源执行具体操作的权限。 其中,资源ARN是资源在阿里云上的唯一标识。具体说明如下:
  • {#}为变量标识,需要您替换为实际值。例如:{#ramcode}需要您替换为实际的云服务RAM代码。
  • *表示全部。例如:
    • {#resourceType}*时:表示全部资源。
    • {#regionId}*时:表示全部地域。
    • {#accountId}*时:表示全部阿里云账号。
资源类型资源ARN
IpControlacs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#RuleId}
TrafficControlacs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#RuleId}
Vpcacs:apigateway:{#regionId}:{#accountId}:vpcaccess/{#VpcAccessId}
ApiGroupacs:apigateway:{#regionId}:{#accountId}:apigroup/*
ApiGroupacs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
Instanceacs:apigateway:{#Region}:{#accountId}:instance/*
Backendacs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
Appacs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
Datasetacs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
Instanceacs:apigateway:{#regionId}:{#accountId}:instance/*
Pluginacs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
Instanceacs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
Vpcacs:apigateway:{#regionId}:{#accountId}:vpcaccess/*
Backendacs:apigateway:{#regionId}:{#accountId}:backend/*
ApiGroupacs:apigateway:{#regionId}:{#accountId}:apigroup/{#SourceGroupId}
AccessControlListacs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
VpcAccessacs:apigateway:{#regionId}:{#accountId}:vpcaccess/*
ApiGroupacs:apigateway::{#accountId}:apigroup/*
AccessControlListacs:apigateway:{#regionId}:{#accountId}:accesscontrollist/*
AccessControlacs:apigateway:{#regionId}:{#accountId}:accesscontrol/*
TrafficControlacs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#TrafficControlId}
Signatureacs:apigateway:{#regionId}:{#accountId}:signature/*
ApiGroupacs:apigateway:{#Region}:{#accountId}:apigroup/{#SourceGroupId}
ApiGroupacs:apigateway:{#regionId}:{#accountId}:apigroup/{#TargetGroupId}
ApiGroupacs:apigateway:{#regionId}:{#accountId}:apigroup/{#ResourceId}
Appacs:apigateway:{#regionId}:{#accountId}:app/{#ResourceId}
AccessControlacs:apigateway:{#regionId}:{#accountId}:accesscontrol/{#AclId}
IpControlacs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
Datasetacs:apigateway:{#regionId}:{#accountId}:dataset/*
Pluginacs:apigateway:{#regionId}:{#accountId}:plugin/*
LogConfigacs:apigateway:{#regionId}:{#accountId}:logconfig/{#LogType}
LogConfigacs:apigateway:{#regionId}:{#accountId}:logconfig/*
ApiGroupacs:apigateway:{#regionId}:{#accountId}:apiproduct/{#ApiProductId}
Signatureacs:apigateway:{#regionId}:{#accountId}:signature/{#SignatureId}
Appacs:apigateway:{#regionId}:{#accountId}:app/{#AppIds}
Appacs:apigateway:{#regionId}:{#accountId}:app/*
TrafficControlacs:apigateway:{#regionId}:{#accountId}:trafficcontrol/*
IpControlacs:apigateway:{#regionId}:{#accountId}:ipcontrol/*
AccessControlacs:cloudapi:{#regionId}:{#accountId}:accesscontrol/{#AclId}
Signatureacs:apigateway:{#regionId}:{#accountId}:secretkey/*
VpcAccessacs:apigateway:{#regionId}:{#accountId}:vpcaccess/{#VpcAccessId}

条件(Condition)

API 网关(CloudAPI)未定义产品级别的条件关键字。如需查看适用于所有云产品的通用条件关键字,请参见通用条件关键字

相关操作

您可以创建自定义权限策略,并将权限策略授予RAM用户、RAM用户组或RAM角色。具体操作如下: