授权信息

访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍API 网关(ApiGateway)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。API 网关(ApiGateway)的RAM代码(RamCode)为apigateway,cloudapi,支持的授权粒度为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 网关(ApiGateway)定义的操作,这些操作可以在RAM权限策略语句的Action元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:
  • 操作:是指具体的权限点。
  • API:是指操作对应的API接口。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。该列不体现适用于任何操作的通用条件关键字
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作API访问级别资源类型条件关键字关联操作
apigateway:DescribeBackendListDescribeBackendListget
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/*
apigateway:CreateInstanceCreateInstancecreate
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/*
apigateway:DescribeBackendInfoDescribeBackendInfoget
全部资源
*
apigateway:CreateMonitorGroupCreateMonitorGroupcreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SetApisAuthoritiesSetApisAuthoritiesupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteApiDeleteApidelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:RemoveApisAuthoritiesRemoveApisAuthoritiesWrite
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeAccessControlListAttributeDescribeAccessControlListAttributeget
全部资源
*
apigateway:ModifyPluginModifyPluginupdate
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:DescribeSummaryDataDescribeSummaryDataget
全部资源
*
apigateway:SetSignatureApisSetSignatureApisupdate
全部资源
*
apigateway:EnableInstanceAccessControlEnableInstanceAccessControlupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:RemoveAppsAuthoritiesRemoveAppsAuthoritiesWrite
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppIds}
apigateway:ModifyVpcAccessAndUpdateApisModifyVpcAccessAndUpdateApisupdate
全部资源
*
apigateway:DescribeUpdateBackendTaskDescribeUpdateBackendTaskget
全部资源
*
apigateway:DetachPluginDetachPluginupdate
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:DescribeTrafficControlsByApiDescribeTrafficControlsByApiget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SetTrafficControlApisSetTrafficControlApisupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstancesDescribeInstancesget
全部资源
*
apigateway:SdkGenerateByAppForRegionSdkGenerateByAppForRegionget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:TagResourcesTagResourcesWrite
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#ResourceId}
App
acs:apigateway:{#regionId}:{#accountId}:app/{#ResourceId}
apigateway:ModifyIpControlPolicyItemModifyIpControlPolicyItemupdate
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:ReactivateDomainReactivateDomainWrite
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyIpControlModifyIpControlupdate
全部资源
*
apigateway:DescribeDatasetItemInfoDescribeDatasetItemInfoget
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:RemoveTrafficControlApisRemoveTrafficControlApisWrite
全部资源
*
apigateway:ModifyTrafficControlModifyTrafficControlupdate
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#TrafficControlId}
apigateway:SetWildcardDomainPatternsSetWildcardDomainPatternsupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:CreateTrafficControlCreateTrafficControlcreate
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/*
apigateway:CreateLogConfigCreateLogConfigcreate
全部资源
*
apigateway:DescribeDeployedApisDescribeDeployedApisget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteAppDeleteAppdelete
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DeleteAppCodeDeleteAppCode
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeAppDescribeAppget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:RemoveAccessControlListEntryRemoveAccessControlListEntryupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:DeleteIpControlDeleteIpControldelete
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:DescribeAppSecurityDescribeAppSecurityget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeApisByBackendDescribeApisByBackendget
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:SetDomainCertificateSetDomainCertificateupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeAppSecuritiesDescribeAppSecuritiesget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:RemoveIpControlApisRemoveIpControlApisWrite
全部资源
*
apigateway:DeleteDomainCertificateDeleteDomainCertificatedelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteAccessControlListDeleteAccessControlListdelete
全部资源
*
apigateway:ValidateVpcConnectivityValidateVpcConnectivityget
全部资源
*
apigateway:CreateAppKeyCreateAppKey
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:SetDomainWebSocketStatusSetDomainWebSocketStatusupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApiIpControlsDescribeApiIpControlsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyDatasetModifyDatasetupdate
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:ModifyDatasetItemModifyDatasetItemupdate
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:ResetAppCodeResetAppCodeWrite
全部资源
*
apigateway:SetAppsAuthoritiesSetAppsAuthoritiesupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppIds}
apigateway:ModifyApiGroupVpcWhitelistModifyApiGroupVpcWhitelistupdate
全部资源
*
apigateway:ModifyApiConfigurationModifyApiConfigurationupdate
全部资源
*
apigateway:DeleteApiStageVariableDeleteApiStageVariabledelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstancePacketsDescribeInstancePacketsget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:ModifyBackendModifyBackendupdate
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:AddIpControlPolicyItemAddIpControlPolicyItemcreate
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:DescribeIpControlsDescribeIpControlsget
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/*
apigateway:DescribeApiTrafficControlsDescribeApiTrafficControlsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:AttachPluginAttachPluginupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:DescribeHistoryApisDescribeHistoryApisget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstanceHttpCodeDescribeInstanceHttpCodeget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DescribeApiDocDescribeApiDocget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribePluginsDescribePluginsget
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/*
apigateway:SetVpcAccessSetVpcAccessupdate
Vpc
acs:apigateway:{#regionId}:{#accountId}:vpcaccess/*
apigateway:DescribeApisByAppDescribeApisByAppget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DisableInstanceAccessControlDisableInstanceAccessControlupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:DescribeApisByIpControlDescribeApisByIpControlget
全部资源
*
apigateway:ModifyApiGroupInstanceModifyApiGroupInstance
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribePluginSchemasDescribePluginSchemasget
全部资源
*
apigateway:DescribeAppAttributesDescribeAppAttributesget
App
acs:apigateway:{#regionId}:{#accountId}:app/*
apigateway:CreateAccessControlListCreateAccessControlListcreate
全部资源
*
apigateway:DeleteMonitorGroupDeleteMonitorGroupdelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:RemoveVpcAccessRemoveVpcAccessdelete
全部资源
*
apigateway:DescribeVpcAccessesDescribeVpcAccessesget
全部资源
*
apigateway:CreateApiCreateApicreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteDomainDeleteDomaindelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeAccessControlListsDescribeAccessControlListsget
全部资源
*
apigateway:ModifyApiGroupModifyApiGroupupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:RemoveIpControlPolicyItemRemoveIpControlPolicyItemWrite
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:CreateBackendModelCreateBackendModelcreate
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:DescribeApiMarketAttributesDescribeApiMarketAttributesget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteTrafficControlDeleteTrafficControldelete
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#TrafficControlId}
apigateway:DeleteBackendDeleteBackenddelete
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:CreateApiStageVariableCreateApiStageVariablecreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:RemoveSignatureApisRemoveSignatureApisWrite
全部资源
*
apigateway:DescribePluginsByApiDescribePluginsByApiget
全部资源
*
apigateway:DeleteDatasetDeleteDatasetdelete
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DescribeAppsDescribeAppsget
App
acs:apigateway:{#regionId}:{#accountId}:app/*
apigateway:DescribeSystemParametersDescribeSystemParametersget
全部资源
*
apigateway:DeleteSignatureDeleteSignaturedelete
全部资源
*
apigateway:ImportSwaggerImportSwaggercreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteTrafficSpecialControlDeleteTrafficSpecialControldelete
全部资源
*
apigateway:DescribeInstanceTrafficDescribeInstanceTrafficget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DryRunSwaggerDryRunSwaggerWrite
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeGroupLatencyDescribeGroupLatencyget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApiHistoryDescribeApiHistoryget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeGroupTrafficDescribeGroupTraffic
全部资源
*
apigateway:DescribeApisByVpcAccessDescribeApisByVpcAccesslist
全部资源
*
apigateway:CreateModelCreateModelcreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribePurchasedApisDescribePurchasedApisget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DeleteLogConfigDeleteLogConfigdelete
LogConfig
acs:apigateway:{#regionId}:{#accountId}:logconfig/{#LogType}
apigateway:DescribeApiHistoriesDescribeApiHistoriesget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeDomainDescribeDomainget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SetIpControlApisSetIpControlApisupdate
全部资源
*
apigateway:DescribePurchasedApiGroupDescribePurchasedApiGroupget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeDatasetItemListDescribeDatasetItemListget
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DeleteAppKeyDeleteAppKey
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DescribeAuthorizedAppsDescribeAuthorizedAppsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:BatchDeployApisBatchDeployApisWrite
全部资源
*
apigateway:SetAccessControlListAttributeSetAccessControlListAttributeupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:SetDomainSetDomainupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstanceDropConnectionsDescribeInstanceDropConnectionsget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:CreateIpControlCreateIpControlcreate
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/*
apigateway:ModifyModelModifyModelupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApiQpsDataDescribeApiQpsDataget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApisWithStageNameIntegratedByAppDescribeApisWithStageNameIntegratedByAppget
全部资源
*
apigateway:DeleteBackendModelDeleteBackendModeldelete
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:DescribeInstanceDropPacketDescribeInstanceDropPacketget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:ModifyInstanceSpecModifyInstanceSpecupdate
全部资源
*
apigateway:DescribeInstanceNewConnectionsDescribeInstanceNewConnectionsget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:ModifyApiGroupNetworkPolicyModifyApiGroupNetworkPolicy
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ImportOASImportOAScreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApisDescribeApisget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifySignatureModifySignatureupdate
全部资源
*
apigateway:DescribeDeployedApiDescribeDeployedApiget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyAppModifyAppupdate
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DeleteModelDeleteModeldelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyIntranetDomainPolicyModifyIntranetDomainPolicy
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstanceLatencyDescribeInstanceLatencyget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:AbolishApiAbolishApi
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeGroupQpsDescribeGroupQpsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:CreateAppCreateAppcreate
App
acs:apigateway:{#regionId}:{#accountId}:app/*
apigateway:DescribeApisByTrafficControlDescribeApisByTrafficControlget
全部资源
*
apigateway:DescribeDeployApiTaskDescribeDeployApiTaskget
全部资源
*
apigateway:DescribeApiLatencyDataDescribeApiLatencyDataget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:AddAccessControlListEntryAddAccessControlListEntryupdate
AccessControlList
acs:apigateway:{#regionId}:{#accountId}:accesscontrollist/{#AclId}
apigateway:CreateSignatureCreateSignaturecreate
全部资源
*
apigateway:ExportOASExportOASget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:CreateBackendCreateBackendcreate
全部资源
*
apigateway:DescribeUpdateVpcInfoTaskDescribeUpdateVpcInfoTaskget
全部资源
*
apigateway:DescribeMarketRemainsQuotaDescribeMarketRemainsQuotaget
全部资源
*
apigateway:UntagResourcesUntagResourcesWrite
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#ResourceId}
App
acs:apigateway:{#regionId}:{#accountId}:app/{#ResourceId}
apigateway:QueryRequestLogsQueryRequestLogsget
全部资源
*
apigateway:DeleteAllTrafficSpecialControlDeleteAllTrafficSpecialControldelete
全部资源
*
apigateway:DescribePurchasedApiGroupsDescribePurchasedApiGroupsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/*
apigateway:DescribeApiDescribeApiget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeSignaturesByApiDescribeSignaturesByApiget
全部资源
*
apigateway:ModifyApiModifyApiupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:ModifyLogConfigModifyLogConfigupdate
全部资源
*
apigateway:OpenApiGatewayServiceOpenApiGatewayService
全部资源
*
apigateway:DescribePluginTemplatesDescribePluginTemplatesget
全部资源
*
apigateway:DeleteApiGroupDeleteApiGroupdelete
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstanceQpsDescribeInstanceQpsget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:CreateAppCodeCreateAppCode
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:DeleteInstanceDeleteInstancedelete
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DescribeIpControlPolicyItemsDescribeIpControlPolicyItemsget
IpControl
acs:apigateway:{#regionId}:{#accountId}:ipcontrol/{#IpControlId}
apigateway:DescribeApisBySignatureDescribeApisBySignatureget
全部资源
*
apigateway:DescribeLogConfigDescribeLogConfigget
LogConfig
acs:apigateway:{#regionId}:{#accountId}:logconfig/{#LogType}
apigateway:DescribeApiGroupsDescribeApiGroupsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/*
apigateway:DescribeSignaturesDescribeSignaturesget
Signature
acs:apigateway:{#regionId}:{#accountId}:secretkey/*
apigateway:DeployApiDeployApiWrite
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:BatchAbolishApisBatchAbolishApisWrite
全部资源
*
apigateway:DescribeApiTrafficDataDescribeApiTrafficDataget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:CreateApiGroupCreateApiGroupcreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/*
apigateway:DescribeApiGroupVpcWhitelistDescribeApiGroupVpcWhitelistget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeDatasetListDescribeDatasetListget
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/*
apigateway:ResetAppSecretResetAppSecretWrite
全部资源
*
apigateway:DeletePluginDeletePlugindelete
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:ModifyBackendModelModifyBackendModelupdate
Backend
acs:apigateway:{#regionId}:{#accountId}:backend/{#BackendId}
apigateway:ModifyInstanceAttributeModifyInstanceAttributeupdate
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:DeleteDatasetItemDeleteDatasetItemdelete
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DescribeImportOASTaskDescribeImportOASTaskget
全部资源
*
apigateway:ListTagResourcesListTagResourcesget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#ResourceId}
apigateway:DescribeAbolishApiTaskDescribeAbolishApiTaskget
全部资源
*
apigateway:DescribeDatasetInfoDescribeDatasetInfoget
全部资源
*
apigateway:CreateDatasetCreateDatasetcreate
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/*
apigateway:DescribeApiSignaturesDescribeApiSignaturesget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribePluginApisDescribePluginApisget
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/{#PluginId}
apigateway:CreateDatasetItemCreateDatasetItemcreate
Dataset
acs:apigateway:{#regionId}:{#accountId}:dataset/{#DatasetId}
apigateway:DescribeTrafficControlsDescribeTrafficControlsget
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#TrafficControlId}
apigateway:RemoveVpcAccessAndAbolishApisRemoveVpcAccessAndAbolishApisdelete
全部资源
*
apigateway:DescribeInstanceClusterListDescribeInstanceClusterListlist
全部资源
*
apigateway:DescribeInstanceSlbConnectDescribeInstanceSlbConnectget
Instance
acs:apigateway:{#regionId}:{#accountId}:instance/{#InstanceId}
apigateway:AddTrafficSpecialControlAddTrafficSpecialControlcreate
TrafficControl
acs:apigateway:{#regionId}:{#accountId}:trafficcontrol/{#TrafficControlId}
apigateway:DescribeAuthorizedApisDescribeAuthorizedApisget
App
acs:apigateway:{#regionId}:{#accountId}:app/{#AppId}
apigateway:SdkGenerateByGroupSdkGenerateByGroupcreate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:SdkGenerateByAppSdkGenerateByAppcreate
全部资源
*
apigateway:DescribeModelsDescribeModelsget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeInstanceClusterInfoDescribeInstanceClusterInfoget
全部资源
*
apigateway:SwitchApiSwitchApiupdate
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:DescribeApiGroupDescribeApiGroupget
ApiGroup
acs:apigateway:{#regionId}:{#accountId}:apigroup/{#GroupId}
apigateway:CreatePluginCreatePlugincreate
Plugin
acs:apigateway:{#regionId}:{#accountId}:plugin/*

资源(Resource)

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

条件(Condition)

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

相关操作

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