リソース種類 | 許可ポリシーのリソース記述方法 |
CVMインスタンス関連 | qcs::cvm:$region::instance/* |
CVMキー関連 | qcs::cvm:$region::keypair/* |
CVMイメージ関連 | qcs::cvm:$region:$account:image/* |
セキュリティグループ関連 | qcs::cvm:$region:$account:sg/* |
$region
、$account
等の変数パラメータを実際のパラメータ情報に修正する必要があり、同時にパスの中にワイルドカード * を利用できます。API 操作 | リソースパス | 条件キー |
DescribeInstanceInternetBandwidthConfigs | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
ModifyInstanceInternetChargeType | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
ModifyInstancesAttribute | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
ModifyInstancesProject | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
ModifyInstancesRenewFlag | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
RebootInstances | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
RenewInstances | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
ResetInstance | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId
qcs::cvm:$region:$account:image/*
qcs::cvm:$region:$account:image/$imageId
qcs::cvm:$region:$account:keypair/*
qcs::cvm:$region:$account:keypair/$keyId
qcs::cvm:$region:$account:systemdisk/* | cvm:region
cvm:zone
cvm:instance_type |
ResetInstancesInternetMaxBandwidth | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
ResetInstancesPassword | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
ResetInstancesType | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
ResizeInstanceDisks | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
RunInstances | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:image/*
qcs::cvm:$region:$account:image/$imageId
qcs::cvm:$region:$account:keypair/*
qcs::cvm:$region:$account:keypair/$keyId
qcs::cvm:$region:$account:sg/*
qcs::cvm:$region:$account:sg/$sgId
qcs::vpc:$region:$account:subnet/*
qcs::vpc:$region:$account:subnet/$subnetId
qcs::cvm:$region:$account:systemdisk/*
qcs::cvm:$region:$account:datadisk/*
qcs::vpc:$region:$account:vpc/*
qcs::vpc:$region:$account:vpc/$vpcId | cvm:region
cvm:zone
cvm:instance_type |
StartInstances | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
StopInstances | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
TerminateInstances | qcs::cvm:$region:$account:instance/*
qcs::cvm:$region:$account:instance/$instanceId | cvm:region
cvm:zone
cvm:instance_type |
API 操作 | リソースパス | 条件キー |
AssociateInstancesKeyPairs | qcs::cvm:$region:$account:instance/* qcs::cvm:$region:$account:instance/$instanceId qcs::cvm:$region:$account:keypair/* qcs::cvm:$region:$account:keypair/$keyId | - |
CreateKeyPair | qcs::cvm:$region:$account:keypair/* | - |
DeleteKeyPairs | qcs::cvm:$region:$account:keypair/* qcs::cvm:$region:$account:keypair/$keyId | - |
DescribeKeyPairs | qcs::cvm:$region:$account:keypair/* | - |
DescribeKeyPairsAttribute | qcs::cvm:$region:$account:keypair/* qcs::cvm:$region:$account:keypair/$keyId | - |
DisassociateInstancesKeyPairs | qcs::cvm:$region:$account:instance/* qcs::cvm:$region:$account:instance/$instanceId qcs::cvm:$region:$account:keypair/* qcs::cvm:$region:$account:keypair/$keyId | - |
ImportKeyPair | qcs::cvm:$region:$account:keypair/* | - |
ModifyKeyPairAttribute | qcs::cvm:$region:$account:keypair/* qcs::cvm:$region:$account:keypair/$keyId | - |
API 操作 | リソースパス | 条件キー |
CreateImage | qcs::cvm:$region:$account:instance/* qcs::cvm:$region:$account:instance/$instanceId qcs::cvm:$region:$account:image/* | cvm:region |
DeleteImages | qcs::cvm:$region:$account:image/* qcs::cvm:$region:$account:image/$imageId | cvm:region |
DescribeImages | qcs::cvm:$region:$account:image/* | cvm:region |
DescribeImagesAttribute | qcs::cvm:$region:$account:image/* qcs::cvm:$region:$account:image/$imageId | cvm:region |
DescribeImageSharePermission | qcs::cvm:$region:$account:image/* | cvm:region |
ModifyImageAttribute | qcs::cvm:$region:$account:image/* qcs::cvm:$region:$account:image/$imageId | cvm:region |
ModifyImageSharePermission | qcs::cvm:$region:$account:image/* qcs::cvm:$region:$account:image/$imageId | cvm:region |
SyncImages | qcs::cvm:$region:$account:image/* qcs::cvm:$region:$account:image/$imageId | cvm:region |
API 操作 | リソースパス | 条件キー |
ModifySecurityGroupPolicys | qcs::cvm:$region:$account:sg/* qcs::cvm:$region:$account:sg/$sgId | cvm:projectId cvm:region |
ModifySingleSecurityGroupPolicy | qcs::cvm:$region:$account:sg/* qcs::cvm:$region:$account:sg/$sgId | cvm:projectId cvm:region |
CreateSecurityGroupPolicy | qcs::cvm:$region:$account:sg/* qcs::cvm:$region:$account:sg/$sgId | cvm:projectId cvm:region |
ModifySecurityGroupAttributes | qcs::cvm:$region:$account:sg/* qcs::cvm:$region:$account:sg/$sgId | cvm:projectId cvm:region |
DeleteSecurityGroup | qcs::cvm:$region:$account:sg/* qcs::cvm:$region:$account:sg/$sgId | cvm:projectId cvm:region |
DeleteSecurityGroupPolicy | qcs::cvm:$region:$account:sg/* qcs::cvm:$region:$account:sg/$sgId | cvm:projectId cvm:region |
この記事はお役に立ちましたか?