文档

授权信息

更新时间:
访问控制(RAM)是阿里云提供的管理用户身份与资源访问权限的服务。使用RAM可以让您避免与其他用户共享阿里云账号密钥,并可按需为用户授予最小权限。RAM中使用权限策略描述授权的具体内容。
本文为您介绍云服务器 ECS(ECS)为RAM权限策略定义的操作(Action)、资源(Resource)和条件(Condition)。云服务器 ECS(ECS)的RAM代码(RamCode)为ecs,vpc,ecs-workbench,支持的授权粒度为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)

下表是云服务器 ECS(ECS)定义的操作,这些操作可以在RAM权限策略语句的Action元素中使用,用来授予执行该操作的权限。下面对表中的具体项提供说明:
  • 操作:是指具体的权限点。
  • API:是指操作对应的API接口。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。该列不体现适用于任何操作的通用条件关键字
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作API访问级别资源类型条件关键字关联操作
ecs:AcceptInquiredSystemEventAcceptInquiredSystemEventWrite
全部资源
*
ecs:AllocateDedicatedHostsAllocateDedicatedHostsWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/*
ecs:AllocatePublicIpAddressAllocatePublicIpAddressWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ApplyAutoSnapshotPolicyApplyAutoSnapshotPolicyWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#snapshotpolicyId}
ecs:AssignIpv6AddressesAssignIpv6AddressesWrite
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
ecs:AssignPrivateIpAddressesAssignPrivateIpAddressesWrite
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
ecs:AttachClassicLinkVpcAttachClassicLinkVpcWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
VPC
acs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}
vpc:tag
ecs:AttachDiskAttachDiskWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:AttachInstanceRamRoleAttachInstanceRamRoleWrite
全部资源
*
ecs:AttachKeyPairAttachKeyPairWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairName}
ecs:AttachNetworkInterfaceAttachNetworkInterfaceWrite
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:AuthorizeSecurityGroupAuthorizeSecurityGroupWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:SecurityGroupIpProtocols
ecs:SecurityGroupSourceCidrIps
ecs:AuthorizeSecurityGroupEgressAuthorizeSecurityGroupEgressWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:SecurityGroupIpProtocols
ecs:SecurityGroupSourceCidrIps
ecs:CancelAutoSnapshotPolicyCancelAutoSnapshotPolicyWrite
全部资源
*
ecs:CancelCopyImageCancelCopyImageWrite
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
ecs:CancelImagePipelineExecutionCancelImagePipelineExecutionWrite
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
ecs:CancelSimulatedSystemEventsCancelSimulatedSystemEventsWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:CancelTaskCancelTaskWrite
全部资源
*
ecs:ConvertNatPublicIpToEipConvertNatPublicIpToEipWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:CopyImageCopyImageWrite
Image
acs:ecs:{#regionId}:{#accountId}:image/*
ecs:CopySnapshotCopySnapshotWrite
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
ecs:CreateActivationCreateActivationWrite
Activation
acs:ecs:{#regionId}:{#accountId}:activation/*
ecs:CreateAutoProvisioningGroupCreateAutoProvisioningGroupWrite
Fleet
acs:ecs:{#regionId}:{#accountId}:fleet/*
ecs:CreateAutoSnapshotPolicyCreateAutoSnapshotPolicyWrite
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/*
ecs:CreateCapacityReservationCreateCapacityReservationWrite
CapacityReservation
acs:ecs:{#regionId}:{#accountId}:capacityreservation/*
ecs:CreateCommandCreateCommandWrite
Command
acs:ecs:{#regionId}:{#accountId}:command/*
ecs:CreateDedicatedHostClusterCreateDedicatedHostClusterWrite
ddhcluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/*
ecs:CreateDeploymentSetCreateDeploymentSetWrite
全部资源
*
ecs:CreateDiagnosticMetricSetCreateDiagnosticMetricSetWrite
全部资源
*
ecs:CreateDiagnosticReportCreateDiagnosticReportWrite
全部资源
*
ecs:CreateDiskCreateDiskWrite
全部资源
*
ecs:IsDiskEncrypted
ecs:CreateElasticityAssuranceCreateElasticityAssuranceWrite
ElasticityAssurance
acs:ecs:{#regionId}:{#accountId}:elasticityassurance/*
ecs:CreateHpcClusterCreateHpcClusterWrite
HpcCluster
acs:ecs:{#regionId}:{#accountId}:hpc/*
ecs:CreateImageCreateImageWrite
Image
acs:ecs:{#regionId}:{#accountId}:image/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
ecs:CreateImageComponentCreateImageComponentWrite
ImageComponent
acs:ecs:{#regionId}:{#accountId}:imagecomponent/*
ecs:CreateImagePipelineCreateImagePipelineWrite
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/*
ecs:CreateInstanceCreateInstanceWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
VSwitch
acs:vpc:{#regionId}:{#accountId}:vswitch/{#vswitchId}
Disk
acs:ecs:{#regionId}:{#accountId}:disk/*
VSwitch
acs:vpc:{#regionId}:{#accountId}:vswitch/*
vpc:VPC
vpc:IsDefaultVSwitch
vpc:IsDefaultVpc
ecs:IsDiskEncrypted
ecs:InstanceType
ecs:InstanceTypeFamily
ecs:ImageOwnerId
ecs:ImageSource
ecs:NotSpecifySecurityGroupId
ecs:CreateKeyPairCreateKeyPairWrite
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/*
ecs:CreateLaunchTemplateCreateLaunchTemplateWrite
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/*
ecs:CreateLaunchTemplateVersionCreateLaunchTemplateVersionWrite
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
ecs:CreateNetworkInterfaceCreateNetworkInterfaceWrite
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/*
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
VSwitch
acs:vpc:{#regionId}:{#accountId}:vswitch/{#vswitchId}
vpc:IsDefaultVSwitch
vpc:IsDefaultVpc
vpc:VPC
vpc:tag
ecs:CreatePrefixListCreatePrefixListWrite
全部资源
*
ecs:CreateSecurityGroupCreateSecurityGroupWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/*
VPC
acs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}
ecs:CreateSimulatedSystemEventsCreateSimulatedSystemEventsWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:CreateSnapshotCreateSnapshotWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/*
ecs:CreateSnapshotGroupCreateSnapshotGroupWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DeleteActivationDeleteActivationWrite
activation
acs:ecs:{#regionId}:{#accountId}:activation/{#activationId}
ecs:DeleteAutoProvisioningGroupDeleteAutoProvisioningGroupWrite
AutoProvisioningGroup
acs:ecs:{#regionId}:{#accountId}:autoprovisioninggroup/{#autoprovisioninggroupId}
ecs:DeleteAutoSnapshotPolicyDeleteAutoSnapshotPolicyWrite
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#SnapshotPolicyId}
ecs:DeleteCommandDeleteCommandWrite
Command
acs:ecs:{#regionId}:{#accountId}:command/{#commandId}
ecs:DeleteDedicatedHostClusterDeleteDedicatedHostClusterWrite
DedicatedHostCluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
ecs:DeleteDeploymentSetDeleteDeploymentSetWrite
DeploymentSet
acs:ecs:{#regionid}:{#accountId}:deploymentset/{#deploymentSetId}
ecs:DeleteDiagnosticMetricSetsDeleteDiagnosticMetricSetsWrite
全部资源
*
ecs:DeleteDiagnosticReportsDeleteDiagnosticReportsWrite
全部资源
*
ecs:DeleteDiskDeleteDiskWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
ecs:DeleteHpcClusterDeleteHpcClusterWrite
HpcCluster
acs:ecs:{#regionId}:{#accountId}:hpc/*
ecs:DeleteImageDeleteImageWrite
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
ecs:DeleteImageComponentDeleteImageComponentWrite
ImageComponent
acs:ecs:{#regionId}:{#accountId}:imagecomponent/{#imagecomponentId}
ecs:DeleteImagePipelineDeleteImagePipelineWrite
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
ecs:DeleteInstanceDeleteInstanceWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DeleteInstancesDeleteInstancesWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DeleteKeyPairsDeleteKeyPairsWrite
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairName}
ecs:DeleteLaunchTemplateDeleteLaunchTemplateWrite
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/*
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
ecs:DeleteLaunchTemplateVersionDeleteLaunchTemplateVersionWrite
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
ecs:DeleteNetworkInterfaceDeleteNetworkInterfaceWrite
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
ecs:DeletePrefixListDeletePrefixListWrite
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
ecs:DeleteSecurityGroupDeleteSecurityGroupWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:DeleteSnapshotDeleteSnapshotWrite
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
ecs:DeleteSnapshotGroupDeleteSnapshotGroupWrite
SnapshotGroup
acs:ecs:{#regionId}:{#accountId}:snapshotgroup/{#snapshotgroupId}
ecs:DeregisterManagedInstanceDeregisterManagedInstanceWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeAccountAttributesDescribeAccountAttributesRead
全部资源
*
ecs:DescribeActivationsDescribeActivationsRead
Activation
acs:ecs:{#regionId}:{#accountId}:activation/*
Activation
acs:ecs:{#regionId}:{#accountId}:activation/{#activationId}
ecs:DescribeAutoProvisioningGroupHistoryDescribeAutoProvisioningGroupHistoryRead
全部资源
*
ecs:DescribeAutoProvisioningGroupInstancesDescribeAutoProvisioningGroupInstancesRead
全部资源
*
ecs:DescribeAutoProvisioningGroupsDescribeAutoProvisioningGroupsRead
全部资源
*
ecs:DescribeAutoSnapshotPolicyEXDescribeAutoSnapshotPolicyExRead
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/*
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#snapshotpolicyId}
ecs:DescribeBandwidthLimitationDescribeBandwidthLimitationRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeCapacityReservationInstancesDescribeCapacityReservationInstancesRead
CapacityReservation
acs:ecs:{#regionId}:{#accountId}:capacityreservation/*
ecs:DescribeCapacityReservationsDescribeCapacityReservationsRead
CapacityReservation
acs:ecs:{#regionId}:{#accountId}:capacityreservation/*
ecs:DescribeClassicLinkInstancesDescribeClassicLinkInstancesRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
ecs:DescribeCloudAssistantStatusDescribeCloudAssistantStatusRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeCommandsDescribeCommandsRead
Command
acs:ecs:{#regionId}:{#accountId}:command/*
Command
acs:ecs:{#regionId}:{#accountId}:command/{#commandId}
ecs:DescribeDedicatedHostAutoRenewDescribeDedicatedHostAutoRenewRead
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
ecs:DescribeDedicatedHostClustersDescribeDedicatedHostClustersRead
DedicatedHostCluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
DedicatedHostCluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/*
ecs:DescribeDedicatedHostsDescribeDedicatedHostsRead
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/*
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
ecs:DescribeDeploymentSetsDescribeDeploymentSetsRead
DeploymentSet
acs:ecs:{#regionId}:{#accountId}:deploymentset/*
ecs:DescribeDiagnosticMetricSetsDescribeDiagnosticMetricSetsRead
全部资源
*
ecs:DescribeDiagnosticMetricsDescribeDiagnosticMetricsRead
全部资源
*
ecs:DescribeDiagnosticReportAttributesDescribeDiagnosticReportAttributesRead
全部资源
*
ecs:DescribeDiagnosticReportsDescribeDiagnosticReportsRead
全部资源
*
ecs:DescribeDiskMonitorDataDescribeDiskMonitorDataRead
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
ecs:DescribeDisksDescribeDisksList
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Disk
acs:ecs:{#regionId}:{#accountId}:disk/*
ecs:DescribeDisksFullStatusDescribeDisksFullStatusRead
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Disk
acs:ecs:{#regionId}:{#accountId}:disk/*
ecs:DescribeElasticityAssuranceInstancesDescribeElasticityAssuranceInstancesRead
全部资源
*
ecs:DescribeElasticityAssurancesDescribeElasticityAssurancesRead
ElasticityAssurance
acs:ecs:{#regionId}:{#accountId}:elasticityassurance/*
ecs:DescribeEniMonitorDataDescribeEniMonitorDataRead
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeHpcClustersDescribeHpcClustersRead
HpcCluster
acs:ecs:{#regionId}:{#accountId}:hpc/*
ecs:DescribeImageComponentsDescribeImageComponentsRead
ImageComponent
acs:ecs:{#regionId}:{#accountId}:imagecomponent/*
ImageComponent
acs:ecs:{#regionId}:{#accountId}:imagecomponent/{#imagecomponentId}
ecs:DescribeImageFromFamilyDescribeImageFromFamilyRead
Image
acs:ecs:{#regionId}:{#accountId}:image/*
ecs:DescribeImagePipelineExecutionsDescribeImagePipelineExecutionsRead
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/*
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
ecs:DescribeImagePipelinesDescribeImagePipelinesRead
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/*
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
ecs:DescribeImageSharePermissionDescribeImageSharePermissionRead
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
ecs:DescribeImageSupportInstanceTypesDescribeImageSupportInstanceTypesRead
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
ecs:DescribeImagesDescribeImagesRead
Image
acs:ecs:{#regionId}:{#accountId}:image/*
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
ecs:DescribeInstanceAttachmentAttributesDescribeInstanceAttachmentAttributesRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeInstanceAttributeDescribeInstanceAttributeRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeInstanceAutoRenewAttributeDescribeInstanceAutoRenewAttributeRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
ecs:DescribeInstanceHistoryEventsDescribeInstanceHistoryEventsRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
ecs:DescribeInstanceMaintenanceAttributesDescribeInstanceMaintenanceAttributesRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeInstanceModificationPriceDescribeInstanceModificationPriceRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
ecs:DescribeInstanceMonitorDataDescribeInstanceMonitorDataRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeInstanceRamRoleDescribeInstanceRamRoleRead
全部资源
*
ecs:DescribeInstanceStatusDescribeInstanceStatusRead
全部资源
*
ecs:DescribeInstanceVncUrlDescribeInstanceVncUrlRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeInstancesDescribeInstancesRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ResourceOwner
ecs:DescribeInstancesFullStatusDescribeInstancesFullStatusRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
ecs:DescribeInvocationResultsDescribeInvocationResultsRead
Command
acs:ecs:{#regionId}:{#accountId}:command/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
Command
acs:ecs:{#regionId}:{#accountId}:command/{#CommandId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
ecs:DescribeInvocationsDescribeInvocationsRead
Command
acs:ecs:{#regionId}:{#accountId}:command/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
Command
acs:ecs:{#regionId}:{#accountId}:command/{#CommandId}
ecs:DescribeKeyPairsDescribeKeyPairsRead
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairName}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/*
ecs:DescribeLaunchTemplateVersionsDescribeLaunchTemplateVersionsRead
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/*
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
ecs:DescribeLaunchTemplatesDescribeLaunchTemplatesRead
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/*
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
ecs:DescribeManagedInstancesDescribeManagedInstancesRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeNetworkInterfaceAttributeDescribeNetworkInterfaceAttributeRead
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
ecs:DescribeNetworkInterfacesDescribeNetworkInterfacesRead
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
ecs:DescribePrefixListAssociationsDescribePrefixListAssociationsRead
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
ecs:DescribePrefixListAttributesDescribePrefixListAttributesRead
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
ecs:DescribePrefixListsDescribePrefixListsRead
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
ecs:DescribePriceDescribePriceRead
全部资源
*
ecs:DescribeRenewalPriceDescribeRenewalPriceRead
全部资源
*
ecs:DescribeReservedInstanceAutoRenewAttributeDescribeReservedInstanceAutoRenewAttributeRead
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#ReservedInstanceId}
ecs:DescribeReservedInstancesDescribeReservedInstancesRead
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/*
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
ecs:DescribeResourcesModificationDescribeResourcesModificationRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeSecurityGroupAttributeDescribeSecurityGroupAttributeRead
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:DescribeSecurityGroupReferencesDescribeSecurityGroupReferencesRead
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:DescribeSecurityGroupsDescribeSecurityGroupsRead
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/*
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:DescribeSendFileResultsDescribeSendFileResultsRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DescribeSnapshotGroupsDescribeSnapshotGroupsRead
SnapshotGroup
acs:ecs:{#regionId}:{#accountId}:snapshotgroup/*
SnapshotGroup
acs:ecs:{#regionId}:{#accountId}:snapshotgroup/{#snapshotgroupId}
ecs:DescribeSnapshotLinksDescribeSnapshotLinksRead
Disk
acs:ecs:{#regionId}:{#accountId}:disk/*
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
ecs:DescribeSnapshotMonitorDataDescribeSnapshotMonitorDataRead
全部资源
*
ecs:DescribeSnapshotPackageDescribeSnapshotPackageRead
全部资源
*
ecs:DescribeSnapshotsDescribeSnapshotsRead
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/*
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
ecs:DescribeSnapshotsUsageDescribeSnapshotsUsageRead
全部资源
*
ecs:DescribeStorageCapacityUnitsDescribeStorageCapacityUnitsRead
StorageCapacityUnit
acs:ecs:{#regionId}:{#accountId}:scu/*
StorageCapacityUnit
acs:ecs:{#regionId}:{#accountId}:scu/{#scuId}
ecs:DescribeTaskAttributeDescribeTaskAttributeRead
全部资源
*
ecs:DescribeTasksDescribeTasksRead
全部资源
*
ecs:DescribeUserDataDescribeUserDataRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DetachClassicLinkVpcDetachClassicLinkVpcWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
VPC
acs:vpc:{#regionId}:{#accountId}:vpc/{#vpcId}
ecs:DetachDiskDetachDiskWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DetachInstanceRamRoleDetachInstanceRamRoleWrite
全部资源
*
ecs:DetachKeyPairDetachKeyPairWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairName}
ecs:DetachNetworkInterfaceDetachNetworkInterfaceWrite
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:DisableActivationDisableActivationWrite
Activation
acs:ecs:{#regionId}:{#accountId}:activation/{#ActivationId}
ecs:ExportImageExportImageWrite
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
ecs:GetInstanceConsoleOutputGetInstanceConsoleOutputRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:GetInstanceScreenshotGetInstanceScreenshotRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ImportImageImportImageWrite
Image
acs:ecs:{#regionId}:{#accountId}:image/*
ecs:ImportKeyPairImportKeyPairWrite
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/*
ecs:InstallCloudAssistantInstallCloudAssistantWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:InvokeCommandInvokeCommandWrite
Command
acs:ecs:{#regionId}:{#accountId}:command/{#commandId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:CommandRunAs
ecs:JoinResourceGroupJoinResourceGroupWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairId}
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#SnapshotId}
ecs:JoinSecurityGroupJoinSecurityGroupWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:LeaveSecurityGroupLeaveSecurityGroupWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:ListPluginStatusListPluginStatusRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
ecs:ListTagResourcesListTagResourcesRead
全部资源
*
ecs:ModifyAutoProvisioningGroupModifyAutoProvisioningGroupWrite
autoprovisioninggroup
acs:ecs:{#regionId}:{#accountId}:autoprovisioninggroup/{#autoprovisioninggroupId}
ecs:ModifyAutoSnapshotPolicyExModifyAutoSnapshotPolicyExWrite
全部资源
*
ecs:ModifyCapacityReservationModifyCapacityReservationWrite
CapacityReservation
acs:ecs:{#regionId}:{#accountId}:capacityreservation/*
ecs:ModifyCommandModifyCommandWrite
Command
acs:ecs:{#regionId}:{#accountId}:command/{#commandId}
ecs:ModifyDedicatedHostAttributeModifyDedicatedHostAttributeWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
DedicatedHostCluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
ecs:ModifyDedicatedHostAutoReleaseTimeModifyDedicatedHostAutoReleaseTimeWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
ecs:ModifyDedicatedHostAutoRenewAttributeModifyDedicatedHostAutoRenewAttributeWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
ecs:ModifyDedicatedHostClusterAttributeModifyDedicatedHostClusterAttributeWrite
ddhcluster
acs:ecs:{#regionId}:{#accountId}:ddhcluster/{#ddhclusterId}
ecs:ModifyDedicatedHostsChargeTypeModifyDedicatedHostsChargeTypeWrite
全部资源
*
ecs:ModifyDeploymentSetAttributeModifyDeploymentSetAttributeWrite
DeploymentSet
acs:ecs:{#regionId}:{#accountId}:deploymentset/{#DeploymentSetId}
ecs:ModifyDiagnosticMetricSetModifyDiagnosticMetricSetWrite
全部资源
*
ecs:ModifyDiskAttributeModifyDiskAttributeWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
ecs:ModifyDiskChargeTypeModifyDiskChargeTypeWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyDiskSpecModifyDiskSpecWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
ecs:ModifyElasticityAssuranceModifyElasticityAssuranceWrite
ElasticityAssurance
acs:ecs:{#regionId}:{#accountId}:elasticityassurance/*
ecs:ModifyHpcClusterAttributeModifyHpcClusterAttributeWrite
HpcCluster
acs:ecs:{#regionId}:{#accountId}:hpc/*
ecs:ModifyImageAttributeModifyImageAttributeWrite
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
ecs:ModifyImageSharePermissionModifyImageSharePermissionWrite
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
ecs:ModifyInstanceAttachmentAttributesModifyInstanceAttachmentAttributesWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/*
ecs:ModifyInstanceAttributeModifyInstanceAttributeWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#SecurityGroupId}
ecs:tag
ecs:ModifyInstanceAutoReleaseTimeModifyInstanceAutoReleaseTimeWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyInstanceAutoRenewAttributeModifyInstanceAutoRenewAttributeWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyInstanceChargeTypeModifyInstanceChargeTypeWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyInstanceDeploymentModifyInstanceDeploymentWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyInstanceMaintenanceAttributesModifyInstanceMaintenanceAttributesWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyInstanceMetadataOptionsModifyInstanceMetadataOptionsWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyInstanceNetworkSpecModifyInstanceNetworkSpecWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyInstanceSpecModifyInstanceSpecWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyInstanceVncPasswdModifyInstanceVncPasswdWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyInstanceVpcAttributeModifyInstanceVpcAttributeWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
VSwitch
acs:vpc:{#regionId}:{#accountId}:vswitch/{#vswitchId}
vpc:tag
vpc:VPC
ecs:ModifyLaunchTemplateDefaultVersionModifyLaunchTemplateDefaultVersionWrite
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/*
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
ecs:ModifyManagedInstanceModifyManagedInstanceWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyNetworkInterfaceAttributeModifyNetworkInterfaceAttributeWrite
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:ModifyPrefixListModifyPrefixListWrite
PrefixList
acs:ecs:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
ecs:ModifyPrepayInstanceSpecModifyPrepayInstanceSpecWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ModifyReservedInstanceAttributeModifyReservedInstanceAttributeWrite
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
ecs:ModifyReservedInstanceAutoRenewAttributeModifyReservedInstanceAutoRenewAttributeWrite
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#ReservedInstanceId}
ecs:ModifyReservedInstancesModifyReservedInstancesWrite
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
ecs:ModifySecurityGroupAttributeModifySecurityGroupAttributeWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:ModifySecurityGroupEgressRuleModifySecurityGroupEgressRuleWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:SecurityGroupIpProtocols
ecs:SecurityGroupSourceCidrIps
ecs:ModifySecurityGroupPolicyModifySecurityGroupPolicyWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:ModifySecurityGroupRuleModifySecurityGroupRuleWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:SecurityGroupIpProtocols
ecs:SecurityGroupSourceCidrIps
ecs:ModifySnapshotAttributeModifySnapshotAttributeWrite
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
ecs:ModifySnapshotGroupModifySnapshotGroupWrite
SnapshotGroup
acs:ecs:{#regionId}:{#accountId}:snapshotgroup/{#SnapshotGroupId}
ecs:ModifyStorageCapacityUnitAttributeModifyStorageCapacityUnitAttributeWrite
StorageCapacityUnit
acs:ecs:{#regionId}:{#accountId}:scu/{#scuId}
ecs:PurchaseReservedInstancesOfferingPurchaseReservedInstancesOfferingWrite
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/*
ecs:PurchaseStorageCapacityUnitPurchaseStorageCapacityUnitWrite
StorageCapacityUnit
acs:ecs:{#regionId}:{#accountId}:scu/*
ecs:ReActivateInstancesReActivateInstancesWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ReInitDiskReInitDiskWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
ecs:RebootInstanceRebootInstanceWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:RebootInstancesRebootInstancesWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:RedeployDedicatedHostRedeployDedicatedHostWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
ecs:RedeployInstanceRedeployInstanceWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ReleaseCapacityReservationReleaseCapacityReservationWrite
CapacityReservation
acs:ecs:{#regionId}:{#accountId}:capacityreservation/*
ecs:ReleaseDedicatedHostReleaseDedicatedHostWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
ecs:RenewDedicatedHostsRenewDedicatedHostsWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
ecs:RenewInstanceRenewInstanceWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:RenewReservedInstancesRenewReservedInstancesWrite
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#ReservedInstanceId}
ecs:ReplaceSystemDiskReplaceSystemDiskWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ReportInstancesStatusReportInstancesStatusRead
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:ResetDiskResetDiskWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
ecs:ResizeDiskResizeDiskWrite
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
ecs:RevokeSecurityGroupRevokeSecurityGroupWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:RevokeSecurityGroupEgressRevokeSecurityGroupEgressWrite
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
ecs:RunCommandRunCommandWrite
Command
acs:ecs:{#regionId}:{#accountId}:command/*
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:CommandRunAs
ecs:RunInstancesRunInstancesWrite
全部资源
*
vpc:IsDefaultVSwitch
vpc:IsDefaultVpc
vpc:VPC
ecs:IsDiskEncrypted
ecs:InstanceTypeFamily
ecs:InstanceType
ecs:ImageOwnerId
ecs:ImageSource
ecs:NotSpecifySecurityGroupId
ecs:SendFileSendFileWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:StartImagePipelineExecutionStartImagePipelineExecutionWrite
ImagePipeline
acs:ecs:{#regionId}:{#accountId}:imagepipeline/{#imagepipelineId}
ecs:StartInstanceStartInstanceWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:StartInstancesStartInstancesWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:StartTerminalSessionStartTerminalSessionWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:StopInstanceStopInstanceWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:StopInstancesStopInstancesWrite
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
ecs:StopInvocationStopInvocationWrite
全部资源
*
ecs:TagResourcesTagResourcesWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairId}
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#SnapshotPolicyId}
ecs:UnassignIpv6AddressesUnassignIpv6AddressesWrite
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
ecs:UnassignPrivateIpAddressesUnassignPrivateIpAddressesWrite
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
ecs:UntagResourcesUntagResourcesWrite
DedicatedHost
acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}
Disk
acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#eniId}
Image
acs:ecs:{#regionId}:{#accountId}:image/{#imageId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
KeyPair
acs:ecs:{#regionId}:{#accountId}:keypair/{#keypairId}
ReservedInstance
acs:ecs:{#regionId}:{#accountId}:reservedinstance/{#reservedinstanceId}
SecurityGroup
acs:ecs:{#regionId}:{#accountId}:securitygroup/{#securitygroupId}
Snapshot
acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}
LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
AutoSnapshotPolicy
acs:ecs:{#regionId}:{#accountId}:snapshotpolicy/{#SnapshotPolicyId}

资源(Resource)

下表是云服务器 ECS(ECS)定义的资源,这些资源可以在RAM权限策略语句的Resource元素中使用,用来授予对该资源执行具体操作的权限。 其中,资源ARN是资源在阿里云上的唯一标识。具体说明如下:
  • {#}为变量标识,需要您替换为实际值。例如:{#ramcode}需要您替换为实际的云服务RAM代码。
  • *表示全部。例如:
    • {#resourceType}*时:表示全部资源。
    • {#regionId}*时:表示全部地域。
    • {#accountId}*时:表示全部阿里云账号。
资源类型资源ARN
Instanceacs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
Diskacs:ecs:{#regionId}:{#accountId}:disk/{#DiskId}
Imageacs:ecs:{#regionId}:{#accountId}:image/{#ImageId}
ImagePipelineacs:ecs:{#regionId}:{#accountId}:imagepipeline/{#ImagePipelineId}
DedicatedHostacs:ecs:{#regionId}:{#accountId}:ddh/{#DedicatedHostId}
Commandacs:ecs:{#regionId}:{#accountId}:command/{#CommandId}
Snapshotacs:ecs:{#regionId}:{#accountId}:snapshot/{#SnapshotId}
AutoSnapshotPolicyacs:ecs:{#regionId}:{#accountId}:autosnapshotpolicy/{#AutoSnapshotPolicyId}
ReservedInstanceacs:ecs:{#regionId}:{#accountId}:reservedinstance/{#ReservedInstanceId}
Activationacs:ecs:{#regionId}:{#accountId}:activation/{#ActivationId}
LaunchTemplateacs:ecs:{#regionId}:{#accountId}:launchtemplate/{#LaunchTemplateId}
PrefixListacs:{#ramcode}:{#regionId}:{#accountId}:prefixlist/{#PrefixListId}
SecurityGroupacs:ecs:{#regionId}:{#accountId}:securitygroup/{#SecurityGroupId}
NetworkInterfaceacs:ecs:{#regionId}:{#accountId}:eni/{#NetworkInterfaceId}
SnapshotGroupacs:ecs:{#regionId}:{#accountId}:snapshotgroup/{#SnapshotGroupId}
AutoProvisioningGroupacs:ecs:{#regionId}:{#accountId}:autoprovisioninggroup/{#AutoProvisioningGroupId}
Invocationacs:{#ramcode}:{#regionId}:{#accountId}:invocation/{#InvocationId}
StorageCapacityUnitacs:{#ramcode}:{#regionId}:{#accountId}:storagecapacityunit/{#StorageCapacityUnitId}
VSwitchacs:{#ramcode}:{#regionId}:{#accountId}:vswitch/{#VSwitchId}
KeyPairacs:{#ramcode}:{#regionId}:{#accountId}:keypair/{#KeyPairName}
ElasticityAssuranceacs:ecs:{#regionId}:{#accountId}:elasticityassurance/{#ElasticityAssuranceId}
DedicatedHostClusteracs:ecs:{#regionId}:{#accountId}:dedicatedhostcluster/{#DedicatedHostClusterId}
ImageComponentacs:ecs:{#regionId}:{#accountId}:imagecomponent/{#ImageComponentId}
CapacityReservationacs:{#ramcode}:{#regionId}:{#accountId}:capacityreservation/{#CapacityReservationId}
ServiceSettingsacs:{#ramcode}:{#regionId}:{#accountId}:servicesettings/{#RegionId}
DeploymentSetacs:ecs:{#regionId}:{#accountId}:deploymentset/{#DeploymentSetId}
HpcClusteracs:ecs:{#regionId}:{#accountId}:hpccluster/{#HpcClusterId}

条件(Condition)

下表是云服务器 ECS(ECS)定义的产品级条件关键字,这些条件关键字可以在RAM权限策略语句的Condition元素中使用,用来描述授予权限的条件。以下仅列举产品级的条件关键字,阿里云定义的通用条件关键字也同样适用云服务器 ECS(ECS)
其中,数据类型决定了您可以使用哪些条件运算符将请求中的值与权限策略语句中的值进行比较。您必须使用与数据类型匹配的条件运算符,否则无法匹配策略语句,授权行为无效。数据类型与条件运算符的对应关系,请参见条件操作类型
条件关键字描述类型
vpc:VPCVPC信息String
vpc:IsDefaultVSwitch是否为默认VSwitch,是否可以使用默认VSwitchBoolean
vpc:IsDefaultVpc是否为默认VPCBoolean
ecs:IsDiskEncrypted是否为加密数据盘String
ecs:InstanceType实例规格String
ecs:InstanceTypeFamily实例规格族String
ecs:ImagePlatform镜像的操作系统类型String
ecs:ImageSource镜像来源String
ecs:CommandRunAs执行云助手命令的操作系统内用户String
ecs:IsSystemDiskEncrypted是否为加密系统盘String
ecs:ImageOwnerId镜像的所有者UID。String
ecs:AssociatePublicIpAddress是否支持资源在创建和变配过程中进行公网IP分配,即是否允许操作资源使公网带宽大于0。Boolean
ecs:PasswordCustomized是否使用了自定义密码Boolean
ecs:PasswordInherit实例是否继承镜像密码Boolean
ecs:SecurityEnhancementStrategy是否开启安全加固。String
ecs:SecurityHardeningMode访问实例元数据时是否强制使用加固模式(IMDSv2)Boolean
vpc:CreateDefaultVpc是否可以创建默认VPCBoolean
ecs:SecurityGroupIpProtocols安全组开放的传输层协议String
ecs:SecurityGroupSourceCidrIps安全组设置访问权限的源端IPv4 CIDR地址段String
ecs:NotSpecifySecurityGroupId是否没有指定安全组IDBoolean

相关操作

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