'1.0', 'info' => ['style' => 'RPC', 'product' => 'acc', 'version' => '2024-04-02'], 'directories' => [ [ 'children' => ['CreateImageCache', 'DeleteImageCache', 'ListImageCaches', 'GetImageCache'], 'type' => 'directory', 'title' => '镜像缓存', 'id' => 235214, ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ 'CreateImageCache' => [ 'path' => '', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'paid', 'abilityTreeNodes' => ['FEATUREacsLAMYBV', 'FEATUREacs7TVY7Q'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'ClientToken', 'in' => 'query', 'allowEmptyValue' => false, 'schema' => ['title' => '幂等参数', 'description' => '幂等Token。', 'type' => 'string', 'required' => false, 'example' => '*****', 'maxLength' => 64], ], [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ImageCacheName', 'in' => 'query', 'schema' => ['description' => '镜像缓存名称。', 'type' => 'string', 'required' => true, 'example' => 'my-imc', 'maxLength' => 128], ], [ 'name' => 'Images', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => '用于制作镜像缓存的容器镜像,目前仅支持一个。', 'type' => 'array', 'items' => ['description' => '容器镜像名称。', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1'], 'required' => true, 'maxItems' => 1, 'minItems' => 1, ], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzh43v*****'], ], [ 'name' => 'Tags', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => '镜像缓存标签信息,最多 20 个。', 'type' => 'array', 'items' => [ 'description' => '镜像缓存标签对象。', 'type' => 'object', 'properties' => [ 'Key' => ['description' => '镜像缓存标签键。', 'type' => 'string', 'required' => false, 'example' => 'imc'], 'Value' => ['description' => '镜像缓存标签值。', 'type' => 'string', 'required' => false, 'example' => 'test', 'maxLength' => 256], ], 'required' => false, ], 'required' => false, 'maxItems' => 20, ], ], [ 'name' => 'NetworkConfig', 'in' => 'query', 'style' => 'json', 'schema' => [ 'description' => '创建镜像缓存拉取镜像的网络配置。', 'type' => 'object', 'properties' => [ 'VSwitchIds' => [ 'description' => '交换机ID信息,最多 10 个,会选择其中一个进行镜像拉取。', 'type' => 'array', 'items' => ['description' => '交换机ID。', 'type' => 'string', 'required' => false, 'example' => 'vsw-0jlqxyfxgdw4tzqy*****'], 'required' => true, 'maxItems' => 10, 'minItems' => 1, ], 'SecurityGroupId' => ['description' => '安全组ID。', 'type' => 'string', 'required' => true, 'example' => 'sg-0jlgektkddwa42n*****'], 'EipInstance' => [ 'description' => '弹性公网IP实例配置。', 'type' => 'object', 'properties' => [ 'InstanceId' => ['description' => '弹性公网 IP,优先使用该参数,填写则其他参数失效。', 'type' => 'string', 'required' => false, 'example' => 'eip-0jl0bx3fnpnjc9i4*****'], 'AutoCreate' => [ 'description' => '是否自动创建EIP。', 'type' => 'boolean', 'required' => false, 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'example' => 'true', ], 'Bandwidth' => ['description' => '自动创建EIP的带宽,单位:Mbps。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'], ], 'required' => false, ], ], 'required' => true, ], ], [ 'name' => 'ImageRegistryCredentials', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => '镜像仓库秘钥信息。', 'type' => 'array', 'items' => [ 'description' => '镜像仓库秘钥对象。', 'type' => 'object', 'properties' => [ 'Server' => ['description' => '不带 http:// 或 https:// 前缀的镜像仓库地址。', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com'], 'Username' => ['title' => '代表用户名的操作属性字段', 'description' => '镜像仓库用户名。', 'type' => 'string', 'required' => false, 'example' => 'myusername'], 'Password' => ['description' => '镜像仓库密码。'."\n" ."\n", 'type' => 'string', 'required' => false, 'example' => 'mypassword'], 'UsePlainHttp' => [ 'description' => '服务使用 HTTP 协议拉取镜像,避免因协议不同而导致镜像拉取失败。'."\n" .'默认值:`false`。', 'type' => 'boolean', 'required' => false, 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'example' => 'false', ], 'SkipCertVerification' => [ 'description' => '使用自签发证书的自建镜像仓库中的镜像创建镜像缓存时,需配置该参数来跳过证书认证,避免因证书认证失败而导致镜像拉取失败。'."\n" .'默认值:`false`。', 'type' => 'boolean', 'required' => false, 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'example' => 'false', ], ], 'required' => false, ], 'required' => false, 'maxItems' => 20, ], ], [ 'name' => 'AcrRegistryInfos', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => 'ACR 企业版实例信息。', 'type' => 'array', 'items' => [ 'description' => 'ACR 企业版实例对象。', 'type' => 'object', 'properties' => [ 'InstanceId' => ['description' => 'ACR 企业版实例 ID。', 'type' => 'string', 'required' => false, 'example' => 'cri-nwj395hgf6f*****'], 'RegionId' => ['description' => 'ACR 企业版实例所属地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'], ], 'required' => false, ], 'required' => false, 'maxItems' => 20, ], ], [ 'name' => 'Platform', 'in' => 'query', 'schema' => ['type' => 'string'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => '返回参数对象。', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求 ID。', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****'], 'ImageCacheId' => ['description' => '镜像缓存 ID。', 'type' => 'string', 'example' => 'imc-bp1dj*****'], ], ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s.', 'description' => '无效参数'], ['errorCode' => 'InvalidParameter.LengthExceeded', 'errorMessage' => '%s.', 'description' => '数组参数超出最大长度'], ['errorCode' => 'MissingParameter', 'errorMessage' => '%s.', 'description' => '参数缺失'], ['errorCode' => 'Idempotence.Failed', 'errorMessage' => 'An error occurred while processing your request. Use the new Token and try again.', 'description' => '幂等失败'], ['errorCode' => 'Idempotence.Processing', 'errorMessage' => 'The request is being processed. Please try again.', 'description' => '幂等处理中'], ['errorCode' => 'Idempotence.SignatureMismatch', 'errorMessage' => 'The idempotence signature of the specified request does not match the previous request.', 'description' => '幂等签名不匹配'], ['errorCode' => 'InvalidParameter.NotFound', 'errorMessage' => '%s.', 'description' => '参数值不存在'], ], 403 => [ ['errorCode' => 'CreateServiceLinkedRoleDenied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '创建SLR失败,没有CreateServiceLinkedRole权限'], ['errorCode' => 'Forbidden', 'errorMessage' => 'User not authorized to operate on the specified resource.', 'description' => '用户无权限操作此资源'], ['errorCode' => 'Ram.NoPermission', 'errorMessage' => '%s.', 'description' => '用户无权限'], ['errorCode' => 'EntityNotExist.ResourceId', 'errorMessage' => 'The resource does not exist.', 'description' => '资源不存在'], ['errorCode' => 'EntityNotExist.ResourceGroup', 'errorMessage' => 'The resource group does not exist.', 'description' => '资源组不存在'], ['errorCode' => 'Acr.UserNotExist', 'errorMessage' => 'ACR user is not exist.', 'description' => 'ACR仓库用户不存在'], ['errorCode' => 'Acr.AuthenticationFailed', 'errorMessage' => 'ACR user is not authorized to perform this action.', 'description' => 'ACR仓库用户无权限'], ['errorCode' => 'ImageCache.NotSupport', 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, please contact us.', 'description' => '镜像缓存功能还未全网开放,如果有需要请联系我们。'], ['errorCode' => 'IncorrectOperation', 'errorMessage' => '%s.', 'description' => '操作被禁止,该资源不支持此操作'], ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s.', 'description' => '操作被禁止,资源状态不正确'], ['errorCode' => 'QuotaExceeded', 'errorMessage' => 'Your current account quota is insufficient.', 'description' => '该资源的用户配额不足。'], ['errorCode' => 'RegionNotSupport', 'errorMessage' => 'The specified Region is not supported.', 'description' => '地域未开放'], ['errorCode' => 'NoResourceAvailable', 'errorMessage' => '%s.', 'description' => '没有可用的资源'], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '创建镜像缓存', 'summary' => '用于创建一个镜像缓存,在创建ACS Pod时加速容器镜像的拉取。', 'changeSet' => [ ['createdAt' => '2025-09-22T06:29:25.000Z', 'description' => '请求参数发生变更'], ['createdAt' => '2025-09-17T04:32:11.000Z', 'description' => '请求参数发生变更'], ['createdAt' => '2025-09-10T11:56:22.000Z', 'description' => '错误码发生变更'], ], '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/*'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC*****\\",\\n \\"ImageCacheId\\": \\"imc-bp1dj*****\\"\\n}","type":"json"}]', ], 'DeleteImageCache' => [ 'summary' => '用于删除一个镜像缓存。', 'methods' => ['post', 'get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'paid', 'abilityTreeNodes' => ['FEATUREacsLAMYBV', 'FEATUREacs7TVY7Q'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ImageCacheId', 'in' => 'query', 'schema' => ['description' => '镜像缓存ID。', 'type' => 'string', 'required' => true, 'example' => 'imc-bp1dj*****'], ], [ 'name' => 'Force', 'in' => 'query', 'schema' => [ 'description' => '是否强制删除镜像缓存。默认值:`false`。', 'type' => 'boolean', 'required' => false, 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'example' => 'false', ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => '返回参数对象。', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****'], ], ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s.', 'description' => ''], ['errorCode' => 'MissingParameter', 'errorMessage' => '%s.', 'description' => ''], ], 403 => [ ['errorCode' => 'ImageCache.NotExist', 'errorMessage' => 'The specified image cache does not exist.', 'description' => ''], ['errorCode' => 'RegionNotSupport', 'errorMessage' => 'The specified Region is not supported.', 'description' => ''], ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s.', 'description' => ''], ['errorCode' => 'IncorrectOperation', 'errorMessage' => '%s.', 'description' => ''], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC*****\\"\\n}","type":"json"}]', 'title' => '删除镜像缓存', '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}'], ], ], ], ], ], 'GetImageCache' => [ 'summary' => '用于查询一个镜像缓存的详细信息。', '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' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ImageCacheId', 'in' => 'query', 'schema' => ['description' => '镜像缓存ID。', 'type' => 'string', 'required' => true, 'example' => 'imc-bp1dj*****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => '返回参数对象。', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****'], 'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'], 'ImageCacheId' => ['description' => '镜像缓存 ID。', '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' => '镜像缓存大小,单位Gi,最小1Gi。', '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' => '资源组ID。', 'type' => 'string', 'example' => 'rg-aekzh43v*****'], 'Tags' => [ 'description' => '镜像缓存标签信息,最多 20 个。', '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' => '交换机ID信息。', 'type' => 'array', 'items' => ['description' => '交换机ID。', 'type' => 'string', 'example' => 'vsw-0jlqxyfxgdw4tzqy*****'], ], 'SecurityGroupId' => ['description' => '安全组ID。', 'type' => 'string', 'example' => 'sg-0jlgektkddwa42n*****'], 'EipInstance' => [ 'description' => '弹性公网IP实例配置。', 'type' => 'object', 'properties' => [ 'InstanceId' => ['description' => '弹性公网IP。', 'type' => 'string', 'example' => 'eip-0jl0bx3fnpnjc9i4*****'], 'AutoCreate' => ['description' => '是否自动创建EIP。', 'type' => 'boolean', 'example' => 'true'], 'Bandwidth' => ['description' => '自动创建EIP的带宽,单位:Mbps。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], ], ], ], ], 'Platform' => ['type' => 'string'], ], ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s.', 'description' => '无效参数'], ['errorCode' => 'InvalidParameter.LengthExceeded', 'errorMessage' => '%s.', 'description' => '数组参数超出最大长度'], ['errorCode' => 'InvalidParameter.ValueExceeded', 'errorMessage' => '%s.', 'description' => '参数超出值上限'], ['errorCode' => 'MissingParameter', 'errorMessage' => '%s.', 'description' => '参数缺失'], ['errorCode' => 'InvalidParameter.NotFound', 'errorMessage' => '%s.', 'description' => '参数值不存在'], ], 403 => [ ['errorCode' => 'EntityNotExist.ResourceId', 'errorMessage' => 'The resource does not exist.', 'description' => '资源不存在'], ['errorCode' => 'EntityNotExist.ResourceGroup', 'errorMessage' => 'The resource group does not exist.', 'description' => '资源组不存在'], ['errorCode' => 'RegionNotSupport', 'errorMessage' => 'The specified Region is not supported.', 'description' => '地域未开放'], ['errorCode' => 'ImageCache.NotExist', 'errorMessage' => 'The specified image cache does not exist.', 'description' => '镜像缓存不存在'], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '查询镜像缓存详细信息', 'changeSet' => [], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '500', 'countWindow' => 5, 'regionId' => '*', 'api' => 'GetImageCache'], ], ], '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' => [ 'methods' => ['get', 'post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeNodes' => ['FEATUREacsLAMYBV', 'FEATUREacs7TVY7Q'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ImageCacheName', 'in' => 'query', 'schema' => ['description' => '镜像缓存名称。', 'type' => 'string', 'required' => false, 'example' => 'my-imc', 'maxLength' => 128], ], [ 'name' => 'Image', 'in' => 'query', 'schema' => ['type' => 'string'], ], [ 'name' => 'Status', 'in' => 'query', 'schema' => [ 'description' => '镜像缓存状态。', 'type' => 'string', 'required' => false, 'enumValueTitles' => ['Ready' => 'Ready', 'Failed' => 'Failed', 'Pending' => 'Pending'], 'example' => 'Ready', ], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzh43v*****'], ], [ 'name' => 'Tags', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ 'description' => '镜像缓存标签信息,最多 20 个。', 'type' => 'array', 'items' => [ 'description' => '镜像缓存标签对象。', 'type' => 'object', 'properties' => [ 'Key' => ['description' => '镜像缓存标签键。', 'type' => 'string', 'required' => false, 'example' => 'imc', 'maxLength' => 128], 'Value' => ['description' => '镜像缓存标签值。', 'type' => 'string', 'required' => false, 'example' => 'test'], ], 'required' => false, ], 'required' => false, 'maxItems' => 20, ], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['description' => '查询凭证(Token),取值为上一次 API 调用返回的 NextToken 参数值。', 'type' => 'string', 'required' => false, 'example' => 'AAAAAdDWBF*****'], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['description' => '单次查询结果条数上限。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', 'description' => '返回参数对象。', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC*****'], 'ImageCaches' => [ 'description' => '镜像缓存信息。', 'type' => 'array', 'items' => [ 'description' => '镜像缓存对象。', 'type' => 'object', 'properties' => [ 'ImageCacheId' => ['description' => '镜像缓存ID。'."\n", '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' => '镜像缓存大小,单位Gi,最小1Gi。', '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' => '资源组ID。', 'type' => 'string', 'example' => 'rg-aekzh43v*****'], ], ], ], 'NextToken' => ['description' => '本次调用返回的查询凭证值。', 'type' => 'string', 'example' => 'AAAAAdDWBF*****'], 'TotalCount' => ['description' => '查询结果总条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], 'MaxResults' => ['description' => '单次查询结果条数上限。', 'type' => 'integer', 'format' => 'int32', 'example' => '30'], ], ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s.', 'description' => '无效参数'], ['errorCode' => 'InvalidParameter.LengthExceeded', 'errorMessage' => '%s.', 'description' => '数组参数超出最大长度'], ['errorCode' => 'InvalidParameter.ValueExceeded', 'errorMessage' => '%s.', 'description' => '参数超出值上限'], ['errorCode' => 'MissingParameter', 'errorMessage' => '%s.', 'description' => '参数缺失'], ['errorCode' => 'InvalidParameter.NotFound', 'errorMessage' => '%s.', 'description' => '参数值不存在'], ], 403 => [ ['errorCode' => 'EntityNotExist.ResourceId', 'errorMessage' => 'The resource does not exist.', 'description' => '资源不存在'], ['errorCode' => 'EntityNotExist.ResourceGroup', 'errorMessage' => 'The resource group does not exist.', 'description' => '资源组不存在'], ['errorCode' => 'RegionNotSupport', 'errorMessage' => 'The specified Region is not supported.', 'description' => '地域未开放'], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '查询镜像缓存', 'summary' => '用于查询镜像缓存信息。', 'changeSet' => [ ['createdAt' => '2025-09-22T06:29:25.000Z', 'description' => '请求参数发生变更'], ], 'flowControl' => [ 'flowControlList' => [ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListImageCaches'], ], ], 'ramActions' => [ [ 'operationType' => 'list', 'ramAction' => [ 'action' => 'acc:ListImageCaches', 'authLevel' => 'resource', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ACC', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/*'], ], ], ], ], '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' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'acc.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'acc.cn-wulanchabu.aliyuncs.com', 'vpc' => 'acc-vpc.cn-wulanchabu.aliyuncs.com'], ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'acc.cn-beijing.aliyuncs.com', 'endpoint' => 'acc.cn-beijing.aliyuncs.com', 'vpc' => 'acc-vpc.cn-beijing.aliyuncs.com'], ['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'acc.cn-qingdao.aliyuncs.com', 'endpoint' => 'acc.cn-qingdao.aliyuncs.com', 'vpc' => 'acc-vpc.cn-qingdao.aliyuncs.com'], ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'acc.cn-shanghai.aliyuncs.com', 'endpoint' => 'acc.cn-shanghai.aliyuncs.com', 'vpc' => 'acc-vpc.cn-shanghai.aliyuncs.com'], ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'acc.cn-hongkong.aliyuncs.com', 'endpoint' => 'acc.cn-hongkong.aliyuncs.com', 'vpc' => 'acc-vpc.cn-hongkong.aliyuncs.com'], ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'acc.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'acc.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'acc-vpc.cn-zhangjiakou.aliyuncs.com'], ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'acc.cn-shenzhen.aliyuncs.com', 'endpoint' => 'acc.cn-shenzhen.aliyuncs.com', 'vpc' => 'acc-vpc.cn-shenzhen.aliyuncs.com'], ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', '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' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'acc.cn-hangzhou.aliyuncs.com', 'endpoint' => 'acc.cn-hangzhou.aliyuncs.com', 'vpc' => 'acc-vpc.cn-hangzhou.aliyuncs.com'], ['regionId' => 'ap-southeast-8', 'regionName' => '马来西亚(柔佛州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', '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' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', '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' => '美国(亚特兰大)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', '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' => '您的账户商品未激活,请重新激活此服务。'], ['code' => 'Acr.AuthenticationFailed', 'message' => 'ACR user is not authorized to perform this action.', 'http_code' => 403, 'description' => 'ACR仓库用户无权限'], ['code' => 'Acr.UserNotExist', 'message' => 'ACR user is not exist.', 'http_code' => 403, 'description' => 'ACR仓库用户不存在'], ['code' => 'CreateServiceLinkedRoleDenied', 'message' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'http_code' => 403, 'description' => '创建SLR失败,没有CreateServiceLinkedRole权限'], ['code' => 'EntityNotExist.ResourceGroup', 'message' => 'The resource group does not exist.', 'http_code' => 403, 'description' => '资源组不存在'], ['code' => 'EntityNotExist.ResourceId', 'message' => 'The resource does not exist.', 'http_code' => 403, 'description' => '资源不存在'], ['code' => 'Forbidden', 'message' => 'User not authorized to operate on the specified resource.', 'http_code' => 403, 'description' => '用户无权限操作此资源'], ['code' => 'Forbidden.AccessDenied', 'message' => 'Request was denied due to isolation policy.', 'http_code' => 403, 'description' => '请求由于隔离策略不满足要求被拒绝。'], ['code' => 'Idempotence.Failed', 'message' => 'An error occurred while processing your request. Use the new Token and try again.', 'http_code' => 400, 'description' => '幂等失败'], ['code' => 'Idempotence.Processing', 'message' => 'The request is being processed. Please try again.', 'http_code' => 400, 'description' => '幂等处理中'], ['code' => 'Idempotence.SignatureMismatch', 'message' => 'The idempotence signature of the specified request does not match the previous request.', 'http_code' => 400, 'description' => '幂等签名不匹配'], ['code' => 'ImageCache.NotExist', 'message' => 'The specified image cache does not exist.', 'http_code' => 403, 'description' => '镜像缓存不存在'], ['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' => '镜像缓存功能还未全网开放,如果有需要请联系我们。'], ['code' => 'IncorrectOperation', 'message' => '%s.', 'http_code' => 403, 'description' => '操作被禁止,该资源不支持此操作'], ['code' => 'IncorrectStatus', 'message' => '%s.', 'http_code' => 403, 'description' => '操作被禁止,资源状态不正确'], ['code' => 'InvalidParameter', 'message' => '%s.', 'http_code' => 400, 'description' => '无效参数'], ['code' => 'InvalidParameter.LengthExceeded', 'message' => '%s.', 'http_code' => 400, 'description' => '数组参数超出最大长度'], ['code' => 'InvalidParameter.NotFound', 'message' => '%s.', 'http_code' => 400, 'description' => '参数值不存在'], ['code' => 'InvalidParameter.ValueExceeded', 'message' => '%s.', 'http_code' => 400, 'description' => '参数超出值上限'], ['code' => 'MissingParameter', 'message' => '%s.', 'http_code' => 400, 'description' => '参数缺失'], ['code' => 'NoResourceAvailable', 'message' => '%s.', 'http_code' => 403, 'description' => '没有可用的资源'], ['code' => 'QuotaExceeded', 'message' => 'Your current account quota is insufficient.', 'http_code' => 403, 'description' => '该资源的用户配额不足。'], ['code' => 'Ram.NoPermission', 'message' => '%s.', 'http_code' => 403, 'description' => '用户无权限'], ['code' => 'RegionNotSupport', 'message' => 'The specified Region is not supported.', 'http_code' => 403, 'description' => '地域未开放'], ['code' => 'Throttling', 'message' => 'Request was denied due to request throttling.', 'http_code' => 400, 'description' => '请求限流'], ['code' => 'OperationConflict', 'message' => 'Request was denied due to conflict with a previous request.', 'http_code' => 409, 'description' => '当前请求与前一次请求发生冲突'], ['code' => 'InvalidOperation', 'message' => '%s.', 'http_code' => 400, 'description' => '操作不允许'], ['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' => '当前用户不支持沙箱模版,请联系我们'], ], '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' => '容器计算服务', 'ramCodes' => ['acc'], 'ramLevel' => '资源级', 'ramConditions' => [ [ 'name' => 'acs:ResourceGroupId', 'schema' => ['type' => 'String', 'description' => '资源组ID'], ], ], '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/*'], ], ], ], [ '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}'], ], ], ], [ '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/*'], ], ], ], [ '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}'], ], ], ], ], 'resourceTypes' => [ ['validationType' => 'always', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/*'], ['validationType' => 'always', 'resourceType' => 'ImageCache', 'arn' => 'acs:acc:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], ], ], ];