diff options
Diffstat (limited to 'data/en_us/acc')
| -rw-r--r-- | data/en_us/acc/2024-04-02/api-docs.php | 1270 |
1 files changed, 503 insertions, 767 deletions
diff --git a/data/en_us/acc/2024-04-02/api-docs.php b/data/en_us/acc/2024-04-02/api-docs.php index cb30357..29aef15 100644 --- a/data/en_us/acc/2024-04-02/api-docs.php +++ b/data/en_us/acc/2024-04-02/api-docs.php @@ -1,21 +1,11 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'acc', - 'version' => '2024-04-02', - ], + 'info' => ['style' => 'RPC', 'product' => 'acc', 'version' => '2024-04-02'], 'directories' => [ [ - 'id' => 263459, - 'title' => null, + 'children' => ['CreateImageCache', 'DeleteImageCache', 'ListImageCaches', 'GetImageCache'], 'type' => 'directory', - 'children' => [ - 'CreateImageCache', - 'DeleteImageCache', - 'ListImageCaches', - 'GetImageCache', - ], + 'title' => 'Image cache', ], ], 'components' => [ @@ -23,15 +13,9 @@ ], 'apis' => [ 'CreateImageCache' => [ - 'summary' => '创建镜像缓存', 'path' => '', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -43,10 +27,7 @@ 'operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREacsLAMYBV', - 'FEATUREacs7TVY7Q', - ], + 'abilityTreeNodes' => ['FEATUREacsLAMYBV', 'FEATUREacs7TVY7Q'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ @@ -54,93 +35,60 @@ 'name' => 'ClientToken', 'in' => 'query', 'allowEmptyValue' => false, - 'schema' => [ - 'title' => '幂等参数', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '*****', - 'maxLength' => 64, - ], + 'schema' => ['title' => '', 'description' => 'The idempotency token.', 'type' => 'string', 'maxLength' => 64, 'required' => false, 'example' => '*****'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'ImageCacheName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'my-imc', - 'maxLength' => 128, - ], + 'schema' => ['description' => 'The name of the image cache.', 'type' => 'string', 'required' => true, 'maxLength' => 128, 'example' => 'my-imc', 'title' => ''], ], [ 'name' => 'Images', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The container images used to create the image cache. Currently, only one image is supported.', 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1', - ], + 'items' => ['description' => 'The container image name.', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1', 'title' => ''], 'required' => true, 'maxItems' => 1, 'minItems' => 1, + 'title' => '', + 'example' => '', ], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-aekzh43v*****', - ], + 'schema' => ['description' => 'The resource group ID.', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzh43v*****', 'title' => ''], ], [ 'name' => 'Tags', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The tag information of the image cache. A maximum of 20 tags are supported.', 'type' => 'array', 'items' => [ - 'description' => '', + 'description' => 'The image cache tag object.', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'imc', - ], - 'Value' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - 'maxLength' => 256, - ], + 'Key' => ['description' => 'The tag key of the image cache.', 'type' => 'string', 'example' => 'imc', 'required' => false, 'title' => ''], + 'Value' => ['description' => 'The tag value of the image cache.', 'type' => 'string', 'maxLength' => 256, 'required' => false, 'example' => 'test', 'title' => ''], ], 'required' => false, + 'title' => '', + 'example' => '', ], 'required' => false, 'maxItems' => 20, + 'title' => '', + 'example' => '', ], ], [ @@ -148,60 +96,43 @@ 'in' => 'query', 'style' => 'json', 'schema' => [ - 'description' => '', + 'description' => 'The network configuration for pulling images when creating the image cache.', 'type' => 'object', 'properties' => [ 'VSwitchIds' => [ - 'description' => '', + 'description' => 'The vSwitch IDs. A maximum of 10 vSwitches are supported. One of them is selected for image pulling.', 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-0jlqxyfxgdw4tzqy*****', - ], + 'items' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'required' => false, 'example' => 'vsw-0jlqxyfxgdw4tzqy*****', 'title' => ''], 'required' => true, 'maxItems' => 10, 'minItems' => 1, + 'title' => '', + 'example' => '', ], - 'SecurityGroupId' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'sg-0jlgektkddwa42n*****', - ], + 'SecurityGroupId' => ['description' => 'The security group ID.', 'type' => 'string', 'required' => true, 'example' => 'sg-0jlgektkddwa42n*****', 'title' => ''], 'EipInstance' => [ - 'description' => '', + 'description' => 'The elastic IP address (EIP) instance configuration.', 'type' => 'object', 'properties' => [ - 'InstanceId' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-0jl0bx3fnpnjc9i4*****', - ], + 'InstanceId' => ['description' => 'The EIP instance ID. This parameter takes priority. If this parameter is specified, other parameters do not take effect.', 'type' => 'string', 'required' => false, 'example' => 'eip-0jl0bx3fnpnjc9i4*****', 'title' => ''], 'AutoCreate' => [ - 'description' => '', + 'description' => 'Indicates whether automatic creation of an EIP is enabled.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], 'example' => 'true', + 'title' => '', ], - 'Bandwidth' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '100', - ], + 'Bandwidth' => ['description' => 'The bandwidth for automatic creation of an EIP. Unit: Mbit/s.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'title' => ''], ], 'required' => false, + 'title' => '', + 'example' => '', ], ], 'required' => true, + 'title' => '', + 'example' => '', ], ], [ @@ -209,54 +140,42 @@ 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The image registry credential information.', 'type' => 'array', 'items' => [ - 'description' => '', + 'description' => 'The image registry credential object.', 'type' => 'object', 'properties' => [ - 'Server' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com', - ], - 'Username' => [ - 'title' => '代表用户名的操作属性字段', - 'type' => 'string', - 'example' => 'myusername', - ], - 'Password' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'mypassword', - ], + 'Server' => ['description' => 'The image registry address without the http:// or https:// prefix.', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com', 'title' => ''], + 'Username' => ['title' => '', 'description' => 'The username of the image registry.', 'type' => 'string', 'example' => 'myusername', 'required' => false], + 'Password' => ['description' => 'The password of the image registry.', 'type' => 'string', 'required' => false, 'example' => 'mypassword', 'title' => ''], 'UsePlainHttp' => [ - 'description' => '', + 'description' => 'Specifies whether to use HTTP to pull images, which prevents image pull failures caused by protocol mismatch.'."\n" + .'Default value: `false`.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], 'example' => 'false', + 'title' => '', ], 'SkipCertVerification' => [ - 'description' => '', + 'description' => 'Specifies whether to skip certificate verification when creating an image cache from a self-managed image registry that uses a self-signed certificate. This prevents image pull failures caused by certificate verification failures.'."\n" + .'Default value: `false`.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], 'example' => 'false', + 'title' => '', ], ], 'required' => false, + 'title' => '', + 'example' => '', ], 'required' => false, 'maxItems' => 20, + 'title' => '', + 'example' => '', ], ], [ @@ -264,154 +183,103 @@ 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The Container Registry Enterprise instance information.', 'type' => 'array', 'items' => [ - 'description' => '', + 'description' => 'The Container Registry Enterprise instance object.', 'type' => 'object', 'properties' => [ - 'InstanceId' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cri-nwj395hgf6f*****', - ], - 'RegionId' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'InstanceId' => ['description' => 'The Container Registry Enterprise instance ID.', 'type' => 'string', 'required' => false, 'example' => 'cri-nwj395hgf6f*****', 'title' => ''], + 'RegionId' => ['description' => 'The region where the Container Registry Enterprise instance resides.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''], ], 'required' => false, + 'title' => '', + 'example' => '', ], 'required' => false, 'maxItems' => 20, + 'title' => '', + 'example' => '', ], ], + [ + 'name' => 'Platform', + 'in' => 'query', + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'title' => '', + 'description' => 'The response object.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****', - ], - 'ImageCacheId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'imc-bp1dj*****', - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****'], + 'ImageCacheId' => ['description' => 'The image cache ID.', 'type' => 'string', 'example' => 'imc-bp1dj*****', 'title' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'InvalidParameter.LengthExceeded', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'MissingParameter', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'Idempotence.Failed', - 'errorMessage' => 'An error occurred while processing your request. Use the new Token and try again.', - ], - [ - 'errorCode' => 'Idempotence.Processing', - 'errorMessage' => 'The request is being processed. Please try again.', - ], - [ - 'errorCode' => 'Idempotence.SignatureMismatch', - 'errorMessage' => 'The idempotence signature of the specified request does not match the previous request.', - ], - [ - 'errorCode' => 'InvalidParameter.NotFound', - 'errorMessage' => '%s.', - ], + ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s.', 'description' => 'Invalid parameter'], + ['errorCode' => 'InvalidParameter.LengthExceeded', 'errorMessage' => '%s.', 'description' => 'Array parameter exceeds maximum length'], + ['errorCode' => 'MissingParameter', 'errorMessage' => '%s.', 'description' => 'Missing parameter'], + ['errorCode' => 'Idempotence.Failed', 'errorMessage' => 'An error occurred while processing your request. Use the new Token and try again.', 'description' => 'idempotent failure'], + ['errorCode' => 'Idempotence.Processing', 'errorMessage' => 'The request is being processed. Please try again.', 'description' => 'The request is being processed'], + ['errorCode' => 'Idempotence.SignatureMismatch', 'errorMessage' => 'The idempotence signature of the specified request does not match the previous request.', 'description' => 'The idempotence signature of the specified request does not match the previous request'], + ['errorCode' => 'InvalidParameter.NotFound', 'errorMessage' => '%s.', 'description' => 'The specific parameter does not exist.'], ], 403 => [ - [ - 'errorCode' => 'CreateServiceLinkedRoleDenied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', - ], - [ - 'errorCode' => 'Forbidden', - 'errorMessage' => 'User not authorized to operate on the specified resource.', - ], - [ - 'errorCode' => 'Ram.NoPermission', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'EntityNotExist.ResourceId', - 'errorMessage' => 'The resource does not exist.', - ], - [ - 'errorCode' => 'EntityNotExist.ResourceGroup', - 'errorMessage' => 'The resource group does not exist.', - ], - [ - 'errorCode' => 'Acr.UserNotExist', - 'errorMessage' => 'ACR user is not exist.', - ], - [ - 'errorCode' => 'Acr.AuthenticationFailed', - 'errorMessage' => 'ACR user is not authorized to perform this action.', - ], - [ - 'errorCode' => 'ImageCache.NotSupport', - 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, please contact us.', - ], - [ - 'errorCode' => 'IncorrectOperation', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => 'Your current account quota is insufficient.', - ], - [ - 'errorCode' => 'RegionNotSupport', - 'errorMessage' => 'The specified Region is not supported.', - ], - [ - 'errorCode' => 'NoResourceAvailable', - 'errorMessage' => '%s.', + ['errorCode' => 'CreateServiceLinkedRoleDenied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => 'Please make sure the account has ram:CreateServiceLinkedRole permission'], + ['errorCode' => 'Forbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => 'User not authorized to operate on the specified resource'], + ['errorCode' => 'Ram.NoPermission', 'errorMessage' => '%s.', 'description' => 'RAM User has no permission'], + ['errorCode' => 'EntityNotExist.ResourceId', 'errorMessage' => 'The resource does not exist.', 'description' => 'The resource does not exist'], + ['errorCode' => 'EntityNotExist.ResourceGroup', 'errorMessage' => 'The resource group does not exist.', 'description' => 'The resource group does not exist'], + ['errorCode' => 'Acr.UserNotExist', 'errorMessage' => 'ACR user is not exist.', 'description' => 'ACR user is not exist'], + ['errorCode' => 'Acr.AuthenticationFailed', 'errorMessage' => 'ACR user is not authorized to perform this action.', 'description' => 'ACR user is not authorized to perform this action'], + ['errorCode' => 'ImageCache.NotSupport', 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, please contact us.', 'description' => 'Image cache is not available for all users. If you want to enable this function, please contact us.'], + ['errorCode' => 'IncorrectOperation', 'errorMessage' => '%s.', 'description' => 'Operation is forbidden, this resource does not support this operation'], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s.', 'description' => 'Operation is forbidden, resource status is incorrect'], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => 'Your current account quota is insufficient.', 'description' => 'The user quota for this resource is insufficient.'], + ['errorCode' => 'RegionNotSupport', 'errorMessage' => 'The specified Region is not supported.', 'description' => 'The specified Region is not supported'], + ['errorCode' => 'NoResourceAvailable', 'errorMessage' => '%s.', 'description' => 'No resource available'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Create an image cache', + 'summary' => 'Creates an image cache to accelerate container image pulling when you create ACS pods.', + 'changeSet' => [ + ['createdAt' => '2025-09-22T06:29:25.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2025-09-17T04:32:11.000Z', 'description' => 'Request parameters changed'], + ['createdAt' => '2025-09-10T11:56:22.000Z', 'description' => 'Error codes changed'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'CreateImageCache'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'acc:CreateImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ACC', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/*'], + ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC*****\\",\\n \\"ImageCacheId\\": \\"imc-bp1dj*****\\"\\n}","type":"json"}]', ], 'DeleteImageCache' => [ - 'summary' => '删除镜像缓存', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'https', - ], + 'summary' => 'Deletes an image cache.', + 'methods' => ['post', 'get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -423,108 +291,244 @@ 'operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREacsLAMYBV', - 'FEATUREacs7TVY7Q', - ], + 'abilityTreeNodes' => ['FEATUREacsLAMYBV', 'FEATUREacs7TVY7Q'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'ImageCacheId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'imc-bp1dj*****', - ], + 'schema' => ['description' => 'The image cache ID.', 'type' => 'string', 'required' => true, 'example' => 'imc-bp1dj*****', 'title' => ''], ], [ 'name' => 'Force', 'in' => 'query', 'schema' => [ - 'description' => '', + 'description' => 'Specifies whether to force delete the image cache. Default value: `false`.', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], 'example' => 'false', + 'title' => '', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'title' => '', + 'description' => 'The response object.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****', - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'MissingParameter', - 'errorMessage' => '%s.', - ], + ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s.', 'description' => 'Invalid parameter'], + ['errorCode' => 'MissingParameter', 'errorMessage' => '%s.', 'description' => 'Missing parameter'], ], 403 => [ - [ - 'errorCode' => 'ImageCache.NotExist', - 'errorMessage' => 'The specified image cache does not exist.', - ], - [ - 'errorCode' => 'RegionNotSupport', - 'errorMessage' => 'The specified Region is not supported.', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s.', + ['errorCode' => 'ImageCache.NotExist', 'errorMessage' => 'The specified image cache does not exist.', 'description' => 'The specified image cache does not exist'], + ['errorCode' => 'RegionNotSupport', 'errorMessage' => 'The specified Region is not supported.', 'description' => 'The specified Region is not supported'], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s.', 'description' => 'Operation is forbidden, resource status is incorrect'], + ['errorCode' => 'IncorrectOperation', 'errorMessage' => '%s.', 'description' => 'Operation is forbidden, this resource does not support this operation'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC*****\\"\\n}","type":"json"}]', + 'title' => 'Delete an image cache', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DeleteImageCache'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'acc:DeleteImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ACC', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ], ], - [ - 'errorCode' => 'IncorrectOperation', - 'errorMessage' => '%s.', + ], + ], + ], + 'GetImageCache' => [ + 'summary' => 'Queries the details of an image cache.', + 'methods' => ['get', 'post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREacsLAMYBV', 'FEATUREacs7TVY7Q'], + ], + 'parameters' => [ + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], + ], + [ + 'name' => 'ImageCacheId', + 'in' => 'query', + 'schema' => ['description' => 'The image cache ID.', 'type' => 'string', 'required' => true, 'example' => 'imc-bp1dj*****', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'The response object.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****'], + 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + 'ImageCacheId' => ['description' => 'The image cache ID.', 'type' => 'string', 'example' => 'imc-bp1dj*****', 'title' => ''], + 'ImageCacheName' => ['description' => 'The image cache name.', 'type' => 'string', 'example' => 'my-imc', 'title' => ''], + 'Status' => ['description' => 'The image cache status.', 'type' => 'string', 'example' => 'Ready', 'title' => ''], + 'Images' => [ + 'description' => 'The container image names in the image cache.', + 'type' => 'array', + 'items' => ['description' => 'The container image name.', 'type' => 'string', 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'Size' => ['description' => 'The image cache size. Unit: GiB. Minimum value: 1.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the image cache was created.', 'type' => 'string', 'example' => '2025-**-**T07:55:25Z', 'title' => ''], + 'ReadyTime' => ['description' => 'The available time of the image cache, indicating when the image cache became active.', 'type' => 'string', 'example' => '2025-**-**T07:58:25Z', 'title' => ''], + 'ResourceGroupId' => ['description' => 'The resource group ID.', 'type' => 'string', 'example' => 'rg-aekzh43v*****', 'title' => ''], + 'Tags' => [ + 'description' => 'The image cache tags. A maximum of 20 tags are supported.', + 'type' => 'array', + 'items' => [ + 'description' => 'The image cache tag object.', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The tag key of the image cache.', 'type' => 'string', 'example' => 'imc', 'title' => ''], + 'Value' => ['description' => 'The tag value of the image cache.', 'type' => 'string', 'example' => 'test', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'Events' => [ + 'description' => 'The image cache event information.', + 'type' => 'array', + 'items' => [ + 'description' => 'The image cache event object.', + 'type' => 'object', + 'properties' => [ + 'Count' => ['description' => 'The number of times the event was triggered.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'Type' => ['description' => 'The event type.', 'type' => 'string', 'example' => 'Normal', 'title' => ''], + 'Name' => ['description' => 'The event name.', 'type' => 'string', 'example' => 'imagetest.1661f31f851*****', 'title' => ''], + 'Reason' => ['description' => 'The event reason.', 'type' => 'string', 'example' => 'ImageCacheCreated', 'title' => ''], + 'Message' => ['description' => 'The event message.', 'type' => 'string', 'example' => 'Image cache [my-imc] has been created successfully', 'title' => ''], + 'FirstTimestamp' => ['description' => 'The time when the event first occurred.', 'type' => 'string', 'example' => '2025-**-**T02:24:48Z', 'title' => ''], + 'LastTimestamp' => ['description' => 'The time when the event last occurred.', 'type' => 'string', 'example' => '2025-**-**T02:24:48Z', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'PaymentType' => ['description' => 'The billing method.', 'type' => 'string', 'example' => 'PayAsYouGo', 'title' => ''], + 'NetworkConfig' => [ + 'description' => 'The network configuration for pulling images when creating the image cache.', + 'type' => 'object', + 'properties' => [ + 'VSwitchIds' => [ + 'description' => 'The vSwitch ID information.', + 'type' => 'array', + 'items' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'example' => 'vsw-0jlqxyfxgdw4tzqy*****', 'title' => ''], + 'title' => '', + 'example' => '', + ], + 'SecurityGroupId' => ['description' => 'The security group ID.', 'type' => 'string', 'example' => 'sg-0jlgektkddwa42n*****', 'title' => ''], + 'EipInstance' => [ + 'description' => 'The elastic IP address (EIP) instance configuration.', + 'type' => 'object', + 'properties' => [ + 'InstanceId' => ['description' => 'The EIP instance ID.', 'type' => 'string', 'example' => 'eip-0jl0bx3fnpnjc9i4*****', 'title' => ''], + 'AutoCreate' => ['description' => 'Indicates whether automatic creation of the EIP is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'Bandwidth' => ['description' => 'The bandwidth of the EIP created through automatic creation. Unit: Mbit/s.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + 'Platform' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], + ], + 'example' => '', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s.', 'description' => 'Invalid parameter'], + ['errorCode' => 'InvalidParameter.LengthExceeded', 'errorMessage' => '%s.', 'description' => 'Array parameter exceeds maximum length'], + ['errorCode' => 'InvalidParameter.ValueExceeded', 'errorMessage' => '%s.', 'description' => 'Parameter exceeds upper value limit'], + ['errorCode' => 'MissingParameter', 'errorMessage' => '%s.', 'description' => 'Missing parameter'], + ['errorCode' => 'InvalidParameter.NotFound', 'errorMessage' => '%s.', 'description' => 'The specific parameter does not exist.'], + ], + 403 => [ + ['errorCode' => 'EntityNotExist.ResourceId', 'errorMessage' => 'The resource does not exist.', 'description' => 'The resource does not exist'], + ['errorCode' => 'EntityNotExist.ResourceGroup', 'errorMessage' => 'The resource group does not exist.', 'description' => 'The resource group does not exist'], + ['errorCode' => 'RegionNotSupport', 'errorMessage' => 'The specified Region is not supported.', 'description' => 'The specified Region is not supported'], + ['errorCode' => 'ImageCache.NotExist', 'errorMessage' => 'The specified image cache does not exist.', 'description' => 'The specified image cache does not exist'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Query image cache details', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '500', 'countWindow' => 5, 'regionId' => '*', 'api' => 'GetImageCache'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC*****\\"\\n}","type":"json"}]', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'acc:GetImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ACC', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC*****\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ImageCacheId\\": \\"imc-bp1dj*****\\",\\n \\"ImageCacheName\\": \\"my-imc\\",\\n \\"Status\\": \\"Ready\\",\\n \\"Images\\": [\\n \\"registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1\\"\\n ],\\n \\"Size\\": 8,\\n \\"CreateTime\\": \\"2025-**-**T07:55:25Z\\",\\n \\"ReadyTime\\": \\"2025-**-**T07:58:25Z\\",\\n \\"ResourceGroupId\\": \\"rg-aekzh43v*****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"imc\\",\\n \\"Value\\": \\"test\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Count\\": 1,\\n \\"Type\\": \\"Normal\\",\\n \\"Name\\": \\"imagetest.1661f31f851*****\\",\\n \\"Reason\\": \\"ImageCacheCreated\\",\\n \\"Message\\": \\"Image cache [my-imc] has been created successfully\\",\\n \\"FirstTimestamp\\": \\"2025-**-**T02:24:48Z\\",\\n \\"LastTimestamp\\": \\"2025-**-**T02:24:48Z\\"\\n }\\n ],\\n \\"PaymentType\\": \\"PayAsYouGo\\",\\n \\"NetworkConfig\\": {\\n \\"VSwitchIds\\": [\\n \\"vsw-0jlqxyfxgdw4tzqy*****\\"\\n ],\\n \\"SecurityGroupId\\": \\"sg-0jlgektkddwa42n*****\\",\\n \\"EipInstance\\": {\\n \\"InstanceId\\": \\"eip-0jl0bx3fnpnjc9i4*****\\",\\n \\"AutoCreate\\": true,\\n \\"Bandwidth\\": 100\\n }\\n },\\n \\"Platform\\": \\"\\"\\n}","type":"json"}]', ], 'ListImageCaches' => [ - 'summary' => '查询镜像缓存', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get', 'post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -536,551 +540,283 @@ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREacsLAMYBV', - 'FEATUREacs7TVY7Q', - ], + 'abilityTreeNodes' => ['FEATUREacsLAMYBV', 'FEATUREacs7TVY7Q'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou', 'title' => ''], ], [ 'name' => 'ImageCacheName', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'my-imc', - 'maxLength' => 128, - ], + 'schema' => ['description' => 'The image cache name.', 'type' => 'string', 'required' => false, 'maxLength' => 128, 'example' => 'my-imc', 'title' => ''], + ], + [ + 'name' => 'Image', + 'in' => 'query', + 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''], ], [ 'name' => 'Status', 'in' => 'query', 'schema' => [ - 'description' => '', + 'description' => 'The image cache status.', + 'enumValueTitles' => ['Ready' => 'Ready', 'Failed' => 'Failed', 'Pending' => 'Pending'], 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'Ready' => 'Ready', - 'Failed' => 'Failed', - 'Pending' => 'Pending', - ], 'example' => 'Ready', + 'title' => '', ], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-aekzh43v*****', - ], + 'schema' => ['description' => 'The resource group ID.', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzh43v*****', 'title' => ''], ], [ 'name' => 'Tags', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '', + 'description' => 'The image cache tags. A maximum of 20 tags are supported.', 'type' => 'array', 'items' => [ - 'description' => '', + 'description' => 'The image cache tag object.', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'imc', - 'maxLength' => 128, - ], - 'Value' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'Key' => ['description' => 'The key of the image cache tag.', 'type' => 'string', 'maxLength' => 128, 'required' => false, 'example' => 'imc', 'title' => ''], + 'Value' => ['description' => 'The value of the image cache tag.', 'type' => 'string', 'example' => 'test', 'required' => false, 'title' => ''], ], 'required' => false, + 'title' => '', + 'example' => '', ], 'required' => false, 'maxItems' => 20, + 'title' => '', + 'example' => '', ], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'AAAAAdDWBF*****', - ], + 'schema' => ['description' => 'The pagination token. Set this parameter to the NextToken value returned in the previous API call.', 'type' => 'string', 'required' => false, 'example' => 'AAAAAdDWBF*****', 'title' => ''], ], [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '30', - ], + 'schema' => ['description' => 'The maximum number of results to return in a single request.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', + 'title' => '', + 'description' => 'The response object.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****', - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****'], 'ImageCaches' => [ - 'description' => '', + 'description' => 'The image cache information.', 'type' => 'array', 'items' => [ - 'description' => '', + 'description' => 'The image cache object.', 'type' => 'object', 'properties' => [ - 'ImageCacheId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'imc-bp1dj*****', - ], - 'ImageCacheName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'my-imc', - ], - 'Status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Ready', - ], + 'ImageCacheId' => ['description' => 'The image cache ID.', 'type' => 'string', 'example' => 'imc-bp1dj*****', 'title' => ''], + 'ImageCacheName' => ['description' => 'The image cache name.', 'type' => 'string', 'example' => 'my-imc', 'title' => ''], + 'Status' => ['description' => 'The image cache status.', 'type' => 'string', 'example' => 'Ready', 'title' => ''], 'Images' => [ - 'description' => '', + 'description' => 'The container image information in the image cache.', 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1', - ], - ], - 'Size' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '8', - ], - 'CreateTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2025-**-**T07:55:25Z', - ], - 'ReadyTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2025-**-**T07:58:25Z', - ], - 'ResourceGroupId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'rg-aekzh43v*****', + 'items' => ['description' => 'The container image name.', 'type' => 'string', 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1', 'title' => ''], + 'title' => '', + 'example' => '', ], + 'Size' => ['description' => 'The image cache size. Unit: GiB. Minimum value: 1.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the image cache was created.', 'type' => 'string', 'example' => '2025-**-**T07:55:25Z', 'title' => ''], + 'ReadyTime' => ['description' => 'The available time of the image cache, which indicates when the image cache became active.', 'type' => 'string', 'example' => '2025-**-**T07:58:25Z', 'title' => ''], + 'ResourceGroupId' => ['description' => 'The resource group ID.', 'type' => 'string', 'example' => 'rg-aekzh43v*****', 'title' => ''], ], + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'NextToken' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'AAAAAdDWBF*****', - ], - 'TotalCount' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'MaxResults' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '30', - ], + 'NextToken' => ['description' => 'The pagination token returned in this call.', 'type' => 'string', 'example' => 'AAAAAdDWBF*****', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''], + 'MaxResults' => ['description' => 'The maximum number of results to return in a single request.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'InvalidParameter.LengthExceeded', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'InvalidParameter.ValueExceeded', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'MissingParameter', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'InvalidParameter.NotFound', - 'errorMessage' => '%s.', - ], + ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s.', 'description' => 'Invalid parameter'], + ['errorCode' => 'InvalidParameter.LengthExceeded', 'errorMessage' => '%s.', 'description' => 'Array parameter exceeds maximum length'], + ['errorCode' => 'InvalidParameter.ValueExceeded', 'errorMessage' => '%s.', 'description' => 'Parameter exceeds upper value limit'], + ['errorCode' => 'MissingParameter', 'errorMessage' => '%s.', 'description' => 'Missing parameter'], + ['errorCode' => 'InvalidParameter.NotFound', 'errorMessage' => '%s.', 'description' => 'The specific parameter does not exist.'], ], 403 => [ - [ - 'errorCode' => 'EntityNotExist.ResourceId', - 'errorMessage' => 'The resource does not exist.', - ], - [ - 'errorCode' => 'EntityNotExist.ResourceGroup', - 'errorMessage' => 'The resource group does not exist.', - ], - [ - 'errorCode' => 'RegionNotSupport', - 'errorMessage' => 'The specified Region is not supported.', - ], + ['errorCode' => 'EntityNotExist.ResourceId', 'errorMessage' => 'The resource does not exist.', 'description' => 'The resource does not exist'], + ['errorCode' => 'EntityNotExist.ResourceGroup', 'errorMessage' => 'The resource group does not exist.', 'description' => 'The resource group does not exist'], + ['errorCode' => 'RegionNotSupport', 'errorMessage' => 'The specified Region is not supported.', 'description' => 'The specified Region is not supported'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC*****\\",\\n \\"ImageCaches\\": [\\n {\\n \\"ImageCacheId\\": \\"imc-bp1dj*****\\",\\n \\"ImageCacheName\\": \\"my-imc\\",\\n \\"Status\\": \\"Ready\\",\\n \\"Images\\": [\\n \\"registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1\\"\\n ],\\n \\"Size\\": 8,\\n \\"CreateTime\\": \\"2025-**-**T07:55:25Z\\",\\n \\"ReadyTime\\": \\"2025-**-**T07:58:25Z\\",\\n \\"ResourceGroupId\\": \\"rg-aekzh43v*****\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAAdDWBF*****\\",\\n \\"TotalCount\\": 20,\\n \\"MaxResults\\": 30\\n}","type":"json"}]', - ], - 'GetImageCache' => [ - 'summary' => '查询镜像缓存', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'https', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'Query image cache', + 'summary' => 'Queries image cache information.', + 'changeSet' => [ + ['createdAt' => '2025-09-22T06:29:25.000Z', 'description' => 'Request parameters changed'], ], - 'security' => [ - [ - 'AK' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListImageCaches'], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREacsLAMYBV', - 'FEATUREacs7TVY7Q', - ], - ], - 'parameters' => [ + 'ramActions' => [ [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'acc:ListImageCaches', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ACC', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/*'], + ], ], ], - [ - 'name' => 'ImageCacheId', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'imc-bp1dj*****', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC*****\\",\\n \\"ImageCaches\\": [\\n {\\n \\"ImageCacheId\\": \\"imc-bp1dj*****\\",\\n \\"ImageCacheName\\": \\"my-imc\\",\\n \\"Status\\": \\"Ready\\",\\n \\"Images\\": [\\n \\"registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1\\"\\n ],\\n \\"Size\\": 8,\\n \\"CreateTime\\": \\"2025-**-**T07:55:25Z\\",\\n \\"ReadyTime\\": \\"2025-**-**T07:58:25Z\\",\\n \\"ResourceGroupId\\": \\"rg-aekzh43v*****\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAAdDWBF*****\\",\\n \\"TotalCount\\": 20,\\n \\"MaxResults\\": 30\\n}","type":"json"}]', + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'acc.cn-wulanchabu.aliyuncs.com', 'vpc' => 'acc-vpc.cn-wulanchabu.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.cn-beijing.aliyuncs.com', 'endpoint' => 'acc.cn-beijing.aliyuncs.com', 'vpc' => 'acc-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.cn-qingdao.aliyuncs.com', 'endpoint' => 'acc.cn-qingdao.aliyuncs.com', 'vpc' => 'acc-vpc.cn-qingdao.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.cn-shanghai.aliyuncs.com', 'endpoint' => 'acc.cn-shanghai.aliyuncs.com', 'vpc' => 'acc-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.cn-hongkong.aliyuncs.com', 'endpoint' => 'acc.cn-hongkong.aliyuncs.com', 'vpc' => 'acc-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'acc.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'acc-vpc.cn-zhangjiakou.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.cn-shenzhen.aliyuncs.com', 'endpoint' => 'acc.cn-shenzhen.aliyuncs.com', 'vpc' => 'acc-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'acc.ap-southeast-1.aliyuncs.com', 'vpc' => 'acc-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.cn-hangzhou.aliyuncs.com', 'endpoint' => 'acc.cn-hangzhou.aliyuncs.com', 'vpc' => 'acc-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'ap-southeast-8', 'regionName' => 'Malaysia (Johor)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'acc.ap-southeast-8.aliyuncs.com', 'endpoint' => 'acc.ap-southeast-8.aliyuncs.com', 'vpc' => 'acc-vpc.ap-southeast-8.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'acc.us-east-1.aliyuncs.com', 'endpoint' => 'acc.us-east-1.aliyuncs.com', 'vpc' => 'acc-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'us-southeast-1', 'regionName' => 'US(Atlanta)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'acc.us-southeast-1.aliyuncs.com', 'endpoint' => 'acc.us-southeast-1.aliyuncs.com', 'vpc' => 'acc-vpc.us-southeast-1.aliyuncs.com'], + ], + 'errorCodes' => [ + ['code' => 'AccountForbidden.AuthorizationRequired', 'message' => 'Your account commodity is not activated, Please activate this service again.', 'http_code' => 403, 'description' => 'Your account product is not activated ,please reactivate this service.'], + ['code' => 'Acr.AuthenticationFailed', 'message' => 'ACR user is not authorized to perform this action.', 'http_code' => 403, 'description' => 'ACR user is not authorized to perform this action'], + ['code' => 'Acr.UserNotExist', 'message' => 'ACR user is not exist.', 'http_code' => 403, 'description' => 'ACR user is not exist'], + ['code' => 'CreateServiceLinkedRoleDenied', 'message' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'http_code' => 403, 'description' => 'Please make sure the account has ram:CreateServiceLinkedRole permission'], + ['code' => 'EntityNotExist.ResourceGroup', 'message' => 'The resource group does not exist.', 'http_code' => 403, 'description' => 'The resource group does not exist'], + ['code' => 'EntityNotExist.ResourceId', 'message' => 'The resource does not exist.', 'http_code' => 403, 'description' => 'The resource does not exist'], + ['code' => 'Forbidden', 'message' => 'User not authorized to operate on the specified resource.', 'http_code' => 403, 'description' => 'User not authorized to operate on the specified resource'], + ['code' => 'Forbidden.AccessDenied', 'message' => 'Request was denied due to isolation policy.', 'http_code' => 403, 'description' => 'Request was denied due to isolation policy.'], + ['code' => 'Idempotence.Failed', 'message' => 'An error occurred while processing your request. Use the new Token and try again.', 'http_code' => 400, 'description' => 'idempotent failure'], + ['code' => 'Idempotence.Processing', 'message' => 'The request is being processed. Please try again.', 'http_code' => 400, 'description' => 'The request is being processed'], + ['code' => 'Idempotence.SignatureMismatch', 'message' => 'The idempotence signature of the specified request does not match the previous request.', 'http_code' => 400, 'description' => 'The idempotence signature of the specified request does not match the previous request'], + ['code' => 'ImageCache.NotExist', 'message' => 'The specified image cache does not exist.', 'http_code' => 403, 'description' => 'The specified image cache does not exist'], + ['code' => 'ImageCache.NotSupport', 'message' => 'Image cache is not available for all users. If you want to enable this function, please contact us.', 'http_code' => 403, 'description' => 'Image cache is not available for all users. If you want to enable this function, please contact us.'], + ['code' => 'IncorrectOperation', 'message' => '%s.', 'http_code' => 403, 'description' => 'Operation is forbidden, this resource does not support this operation'], + ['code' => 'IncorrectStatus', 'message' => '%s.', 'http_code' => 403, 'description' => 'Operation is forbidden, resource status is incorrect'], + ['code' => 'InvalidParameter', 'message' => '%s.', 'http_code' => 400, 'description' => 'Invalid parameter'], + ['code' => 'InvalidParameter.LengthExceeded', 'message' => '%s.', 'http_code' => 400, 'description' => 'Array parameter exceeds maximum length'], + ['code' => 'InvalidParameter.NotFound', 'message' => '%s.', 'http_code' => 400, 'description' => 'The specific parameter does not exist.'], + ['code' => 'InvalidParameter.ValueExceeded', 'message' => '%s.', 'http_code' => 400, 'description' => 'Parameter exceeds upper value limit'], + ['code' => 'MissingParameter', 'message' => '%s.', 'http_code' => 400, 'description' => 'Missing parameter'], + ['code' => 'NoResourceAvailable', 'message' => '%s.', 'http_code' => 403, 'description' => 'No resource available'], + ['code' => 'QuotaExceeded', 'message' => 'Your current account quota is insufficient.', 'http_code' => 403, 'description' => 'The user quota for this resource is insufficient.'], + ['code' => 'Ram.NoPermission', 'message' => '%s.', 'http_code' => 403, 'description' => 'RAM User has no permission'], + ['code' => 'RegionNotSupport', 'message' => 'The specified Region is not supported.', 'http_code' => 403, 'description' => 'The specified Region is not supported'], + ['code' => 'Throttling', 'message' => 'Request was denied due to request throttling.', 'http_code' => 400, 'description' => 'Request was denied due to request throttling.'], + ['code' => 'OperationConflict', 'message' => 'Request was denied due to conflict with a previous request.', 'http_code' => 409, 'description' => 'Request was denied due to conflict with a previous request.'], + ['code' => 'InvalidOperation', 'message' => '%s.', 'http_code' => 400, 'description' => 'Operation not allowed'], + ['code' => 'SandboxTemplate.NotSupport', 'message' => 'Sandbox template is not available for all users. If you want to enable this function, please contact us.', 'http_code' => 403, 'description' => 'The current user does not support sandbox templates, please contact us.'], + ], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '500', 'countWindow' => 5, 'regionId' => '*', 'api' => 'GetImageCache'], + ['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'CreateImageCache'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListImageCaches'], + ['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'DeleteImageCache'], + ], + ], + 'ram' => [ + 'productCode' => 'ACC', + 'productName' => 'Container Compute Service', + 'ramCodes' => ['acc'], + 'ramLevel' => 'RESOURCE', + 'ramConditions' => [ + [ + 'name' => 'acs:ResourceGroupId', + 'schema' => ['type' => 'String', 'description' => 'ResourceGroupId'], + ], + ], + 'ramActions' => [ + [ + 'apiName' => 'ListImageCaches', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'acc:ListImageCaches', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ACC', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '', - 'type' => 'string', - 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****', - ], - 'RegionId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'ImageCacheId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'imc-bp1dj*****', - ], - 'ImageCacheName' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'my-imc', - ], - 'Status' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Ready', - ], - 'Images' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1', - ], - ], - 'Size' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '8', - ], - 'CreateTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2025-**-**T07:55:25Z', - ], - 'ReadyTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2025-**-**T07:58:25Z', - ], - 'ResourceGroupId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'rg-aekzh43v*****', - ], - 'Tags' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'imc', - ], - 'Value' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'Events' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Count' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Type' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Normal', - ], - 'Name' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'imagetest.1661f31f851*****', - ], - 'Reason' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ImageCacheCreated', - ], - 'Message' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Image cache [my-imc] has been created successfully', - ], - 'FirstTimestamp' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2025-**-**T02:24:48Z', - ], - 'LastTimestamp' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2025-**-**T02:24:48Z', - ], - ], - ], - ], - 'PaymentType' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'PayAsYouGo', - ], - 'NetworkConfig' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'VSwitchIds' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'vsw-0jlqxyfxgdw4tzqy*****', - ], - ], - 'SecurityGroupId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'sg-0jlgektkddwa42n*****', - ], - 'EipInstance' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'InstanceId' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'eip-0jl0bx3fnpnjc9i4*****', - ], - 'AutoCreate' => [ - 'description' => '', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Bandwidth' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - ], - ], - ], - ], - ], + [ + 'apiName' => 'GetImageCache', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'acc:GetImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ACC', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'InvalidParameter.LengthExceeded', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'InvalidParameter.ValueExceeded', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'MissingParameter', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'InvalidParameter.NotFound', - 'errorMessage' => '%s.', + [ + 'apiName' => 'CreateImageCache', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'acc:CreateImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ACC', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/*'], ], ], - 403 => [ - [ - 'errorCode' => 'EntityNotExist.ResourceId', - 'errorMessage' => 'The resource does not exist.', - ], - [ - 'errorCode' => 'EntityNotExist.ResourceGroup', - 'errorMessage' => 'The resource group does not exist.', - ], - [ - 'errorCode' => 'RegionNotSupport', - 'errorMessage' => 'The specified Region is not supported.', - ], - [ - 'errorCode' => 'ImageCache.NotExist', - 'errorMessage' => 'The specified image cache does not exist.', + ], + [ + 'apiName' => 'DeleteImageCache', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'acc:DeleteImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ACC', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC*****\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ImageCacheId\\": \\"imc-bp1dj*****\\",\\n \\"ImageCacheName\\": \\"my-imc\\",\\n \\"Status\\": \\"Ready\\",\\n \\"Images\\": [\\n \\"registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1\\"\\n ],\\n \\"Size\\": 8,\\n \\"CreateTime\\": \\"2025-**-**T07:55:25Z\\",\\n \\"ReadyTime\\": \\"2025-**-**T07:58:25Z\\",\\n \\"ResourceGroupId\\": \\"rg-aekzh43v*****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"imc\\",\\n \\"Value\\": \\"test\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Count\\": 1,\\n \\"Type\\": \\"Normal\\",\\n \\"Name\\": \\"imagetest.1661f31f851*****\\",\\n \\"Reason\\": \\"ImageCacheCreated\\",\\n \\"Message\\": \\"Image cache [my-imc] has been created successfully\\",\\n \\"FirstTimestamp\\": \\"2025-**-**T02:24:48Z\\",\\n \\"LastTimestamp\\": \\"2025-**-**T02:24:48Z\\"\\n }\\n ],\\n \\"PaymentType\\": \\"PayAsYouGo\\",\\n \\"NetworkConfig\\": {\\n \\"VSwitchIds\\": [\\n \\"vsw-0jlqxyfxgdw4tzqy*****\\"\\n ],\\n \\"SecurityGroupId\\": \\"sg-0jlgektkddwa42n*****\\",\\n \\"EipInstance\\": {\\n \\"InstanceId\\": \\"eip-0jl0bx3fnpnjc9i4*****\\",\\n \\"AutoCreate\\": true,\\n \\"Bandwidth\\": 100\\n }\\n }\\n}","type":"json"}]', - ], - ], - 'endpoints' => [ - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'acc.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'acc.cn-shanghai.aliyuncs.com', ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'acc.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wulanchabu', - 'endpoint' => 'acc.cn-wulanchabu.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'acc.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'acc.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'acc.cn-hongkong.aliyuncs.com', - ], - [ - 'regionId' => 'us-southeast-1', - 'endpoint' => 'acc.us-southeast-1.aliyuncs.com', + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/*'], + ['validationType' => 'always', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], ], ], ]; |
