diff options
| author | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
| commit | 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch) | |
| tree | 5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/eci/2018-08-08 | |
| parent | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff) | |
| download | afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip | |
update APIs 20260712
Diffstat (limited to 'data/zh_cn/eci/2018-08-08')
| -rw-r--r-- | data/zh_cn/eci/2018-08-08/api-docs.php | 19250 |
1 files changed, 7141 insertions, 12109 deletions
diff --git a/data/zh_cn/eci/2018-08-08/api-docs.php b/data/zh_cn/eci/2018-08-08/api-docs.php index 1f10bd6..a62ed42 100644 --- a/data/zh_cn/eci/2018-08-08/api-docs.php +++ b/data/zh_cn/eci/2018-08-08/api-docs.php @@ -1,254 +1,381 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'Eci', - 'version' => '2018-08-08', - ], + 'info' => ['style' => 'RPC', 'product' => 'Eci', 'version' => '2018-08-08'], 'directories' => [ [ - 'id' => 99743, - 'title' => '地域', + 'children' => ['DescribeRegions'], 'type' => 'directory', - 'children' => [ - 'DescribeRegions', - ], + 'title' => '地域', + 'id' => 25140, ], [ - 'id' => 99745, - 'title' => '容器组', + 'children' => ['CreateContainerGroup', 'UpdateContainerGroup', 'DescribeContainerGroups', 'DescribeContainerGroupStatus', 'DescribeContainerGroupEvents', 'ResizeContainerGroupVolume', 'RestartContainerGroup', 'DeleteContainerGroup'], 'type' => 'directory', - 'children' => [ - 'CreateContainerGroup', - 'UpdateContainerGroup', - 'DescribeContainerGroups', - 'DescribeContainerGroupStatus', - 'DescribeContainerGroupEvents', - 'ResizeContainerGroupVolume', - 'RestartContainerGroup', - 'DeleteContainerGroup', - ], + 'title' => '容器组', + 'id' => 25142, ], [ - 'id' => 178925, - 'title' => '容器', + 'children' => ['ExecContainerCommand', 'DescribeContainerLog', 'CommitContainer', 'DescribeCommitContainerTask'], 'type' => 'directory', - 'children' => [ - 'ExecContainerCommand', - 'DescribeContainerLog', - 'CommitContainer', - 'DescribeCommitContainerTask', - ], + 'title' => '容器', + 'id' => 25171, ], [ - 'id' => 99760, - 'title' => '镜像缓存', + 'children' => ['CreateImageCache', 'DeleteImageCache', 'UpdateImageCache', 'DescribeImageCaches'], 'type' => 'directory', - 'children' => [ - 'CreateImageCache', - 'DeleteImageCache', - 'UpdateImageCache', - 'DescribeImageCaches', - ], + 'title' => '镜像缓存', + 'id' => 25156, ], [ - 'id' => 183905, - 'title' => '数据缓存', + 'children' => ['CreateDataCache', 'DescribeDataCaches', 'UpdateDataCache', 'CopyDataCache', 'DeleteDataCache'], 'type' => 'directory', - 'children' => [ - 'CreateDataCache', - 'DescribeDataCaches', - 'UpdateDataCache', - 'CopyDataCache', - 'DeleteDataCache', - ], + 'title' => '数据缓存', + 'id' => 25176, ], [ - 'id' => 99755, - 'title' => '虚拟节点', + 'children' => ['CreateVirtualNode', 'DeleteVirtualNode', 'UpdateVirtualNode', 'DescribeVirtualNodes'], 'type' => 'directory', - 'children' => [ - 'CreateVirtualNode', - 'DeleteVirtualNode', - 'UpdateVirtualNode', - 'DescribeVirtualNodes', - ], + 'title' => '虚拟节点', + 'id' => 25151, ], [ - 'id' => 99765, - 'title' => '监控', + 'children' => ['DescribeContainerGroupMetric', 'DescribeMultiContainerGroupMetric'], 'type' => 'directory', - 'children' => [ - 'DescribeContainerGroupMetric', - 'DescribeMultiContainerGroupMetric', - ], + 'title' => '监控', + 'id' => 25161, ], [ - 'id' => 99772, - 'title' => '运维操作', + 'children' => ['CreateInstanceOpsTask', 'DescribeInstanceOpsRecords'], 'type' => 'directory', - 'children' => [ - 'CreateInstanceOpsTask', - 'DescribeInstanceOpsRecords', - ], + 'title' => '运维操作', + 'id' => 25168, ], [ - 'id' => 193218, - 'title' => '标签', + 'children' => ['TagResources', 'ListTagResources', 'UntagResources'], 'type' => 'directory', - 'children' => [ - 'TagResources', - 'ListTagResources', - 'UntagResources', - ], + 'title' => '标签', + 'id' => 25182, ], [ - 'id' => 99769, - 'title' => '其他接口', + 'children' => ['ListUsage', 'DescribeContainerGroupPrice', 'DescribeAvailableResource'], 'type' => 'directory', - 'children' => [ - 'ListUsage', - 'DescribeContainerGroupPrice', - 'DescribeAvailableResource', - ], + 'title' => '其他接口', + 'id' => 25164, ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'DescribeRegions' => [ - 'summary' => '查询弹性容器实例支持的地域和可用区信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CommitContainer' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '17738', - 'abilityTreeNodes' => [ - 'FEATUREeciWX1P2C', - 'FEATUREeciO4MP7I', - 'FEATUREeciL85GGA', - 'FEATUREeciTLPZOI', - ], - 'tenantRelevance' => 'publicInformation', + 'operationType' => 'create', + 'abilityTreeCode' => '151229', + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], + ], + [ + 'name' => 'ContainerGroupId', + 'in' => 'query', + 'schema' => ['description' => '要创建CommitContainer任务的ECI实例。', 'type' => 'string', 'required' => true, 'example' => 'eci-bp1do4xz75fa5sd****'], + ], + [ + 'name' => 'ContainerName', + 'in' => 'query', + 'schema' => ['description' => '要制作镜像的容器的名称。', 'type' => 'string', 'required' => true, 'example' => 'container-1'], + ], + [ + 'name' => 'Image', + 'in' => 'query', + 'style' => 'flat', 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', + 'description' => '容器镜像信息。', + 'type' => 'object', + 'properties' => [ + 'Repository' => ['description' => 'ACR镜像仓库地址。 '."\n" + .'出于安全考虑,目前仅支持将镜像推送(Push)至ACR。', 'type' => 'string', 'required' => true, 'example' => 'registry-vpc.cn-beijing.aliyuncs.com/test/test-****'], + 'Tag' => ['description' => '镜像标签。默认为空,代表不修改标签。', 'type' => 'string', 'required' => true, 'example' => '0.0.6'], + 'Message' => ['description' => '镜像的说明信息。', 'type' => 'string', 'required' => false, 'example' => 'test commit'], + 'Author' => ['description' => '镜像的authorization。', 'type' => 'string', 'required' => false, 'example' => 'alice'], + ], 'required' => false, - 'docRequired' => false, - 'example' => 'cn-hangzhou', ], ], [ - 'name' => 'RegionId', + 'name' => 'AcrRegistryInfo', 'in' => 'query', + 'style' => 'flat', 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', + 'description' => 'ACR企业版实例的访问凭证配置信息。 '."\n" + ."\n" + .'> 使用ACR个人版实例时无需配置该参数;使用ACR企业版实例时必须配置该参数。', + 'type' => 'object', + 'properties' => [ + 'InstanceId' => ['description' => 'ACR企业版实例ID。', 'type' => 'string', 'required' => false, 'example' => 'cri-nwj395hgf6f3****'], + 'RegionId' => ['description' => 'ACR企业版实例所属的地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'], + 'ArnService' => ['description' => '跨账号授权场景下,使用者(被授权者)的RAM角色ARN。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1609982529******:role/role-test'], + 'ArnUser' => ['description' => '跨账号授权场景下,授权者的RAM角色ARN。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1298452580******:role/role-test'], + ], + 'required' => false, + ], + ], + [ + 'name' => 'Arn', + 'in' => 'query', + 'style' => 'flat', + 'schema' => [ + 'description' => '授权需要的ARN信息。', + 'type' => 'object', + 'properties' => [ + 'RoleArn' => ['description' => '授权角色的ARN。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram:xxx'], + 'RoleType' => [ + 'description' => '授权类型。可配置为service,表示使用RAM角色进行授权。', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'service', + ], + ], 'required' => false, - 'docRequired' => false, - 'example' => 'cn-hangzhou', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回信息。', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3', - ], - 'Regions' => [ - 'description' => '地域信息集合。', - 'type' => 'array', - 'items' => [ - 'description' => '地域信息集合。', - 'type' => 'object', - 'properties' => [ - 'Zones' => [ - 'description' => '可用区。', - 'type' => 'array', - 'items' => [ - 'description' => '可用区。', - 'type' => 'string', - 'example' => 'cn-hangzhou-g', - ], - ], - 'RecommendZones' => [ - 'description' => '推荐的可用区列表。', - 'type' => 'array', - 'items' => [ - 'description' => '推荐的可用区。当前地域下,整体库存量相对充足的可用区。', - 'type' => 'string', - 'example' => 'cn-hangzhou-j', - ], - ], - 'RegionEndpoint' => [ - 'description' => '地域对应的接入地址(Endpoint)。', - 'type' => 'string', - 'example' => 'eci.aliyuncs.com', - ], - 'RegionId' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'UnavailableZones' => [ - 'description' => '不可用的可用区列表。', - 'type' => 'array', - 'items' => [ - 'description' => '不可用的可用区。该可用区可能存在故障,建议使用其他可用区。', - 'type' => 'string', - 'example' => 'cn-hangzhou-e', - ], - ], - ], - ], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => 'CB8D2B22-D636-4182-****-1FC9DBDAD66F'], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-bp18cwvrb3v9tjk0tekz'], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s', 'description' => '不合法的参数'], + ], + 403 => [ + ['errorCode' => 'InvalidVolumeType', 'errorMessage' => 'The specified volumeName is invalid, only volume of cloud disk support capacity resize', 'description' => ''], + ['errorCode' => 'IncorrectStatusDetail', 'errorMessage' => '%s', 'description' => ''], + ['errorCode' => 'InvalidAction', 'errorMessage' => 'The specified action is invalid ', 'description' => ''], + ], + ], + 'title' => '创建CommitContainer任务', + 'summary' => '调用CommitContainer接口创建异步任务,将ECI实例中的指定容器保存为镜像,并推送至阿里云ACR的镜像仓库中。', + 'description' => '调用CommitContainer接口前,您需要准备好ACR镜像仓库,然后创建RAM角色并完成授权操作。具体操作,请参见[提交容器生成镜像并推送到ACR](~~473046~~)。', + 'changeSet' => [ + ['createdAt' => '2023-08-01T02:29:38.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-06-27T03:46:10.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-03-30T06:19:23.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-03-08T01:20:14.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CommitContainer'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CommitContainer', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'CommitContainerTask', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CB8D2B22-D636-4182-****-1FC9DBDAD66F\\",\\n \\"TaskId\\": \\"t-bp18cwvrb3v9tjk0tekz\\"\\n}","errorExample":""},{"type":"xml","example":"<CommitContainerResponse>\\n <RequestId>CB8D2B22-D636-4182-****-1FC9DBDAD66F</RequestId>\\n <TaskId>t-bp18cwvrb3v9tjk0tekz</TaskId>\\n</CommitContainerResponse>","errorExample":""}]', + ], + 'CopyDataCache' => [ + 'summary' => '将数据缓存从一个地域拷贝到另一个地域。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '186053', + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], + ], + 'parameters' => [ + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '已有数据缓存所在地域。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-beijing'], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '已有数据缓存所在地域。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-beijing'], + ], + [ + 'name' => 'Bucket', + 'in' => 'query', + 'schema' => ['description' => '数据缓存Bucket。', 'type' => 'string', 'required' => false, 'example' => 'default'], + ], + [ + 'name' => 'Path', + 'in' => 'query', + 'schema' => ['description' => '数据缓存路径', 'type' => 'string', 'required' => false, 'example' => '/bucket-test'], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['description' => '数据缓存名称。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'test'], + ], + [ + 'name' => 'RetentionDays', + 'in' => 'query', + 'schema' => ['description' => '数据缓存保留天数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7'], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'repeatList', + 'schema' => [ + 'description' => '数据缓存标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '数据缓存标签列表。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'testkey'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => 'testvalue'], ], + 'required' => false, ], + 'required' => false, + 'maxItems' => 21, ], ], + [ + 'name' => 'ResourceGroupId', + 'in' => 'query', + 'schema' => ['description' => '数据缓存所属资源组 。', 'type' => 'string', 'required' => false, 'example' => 'rg-2df3isufhi38****'], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000 '], + ], + [ + 'name' => 'DataCacheId', + 'in' => 'query', + 'schema' => ['description' => '数据缓存ID。', 'type' => 'string', 'required' => true, 'example' => 'edc-bp15l4vvys94oo******'."\n"], + ], + [ + 'name' => 'DestinationRegionId', + 'in' => 'query', + 'schema' => ['description' => '要拷贝到的目的地域。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], + ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\",\\n \\"Regions\\": [\\n {\\n \\"Zones\\": [\\n \\"cn-hangzhou-g\\"\\n ],\\n \\"RecommendZones\\": [\\n \\"cn-hangzhou-j\\"\\n ],\\n \\"RegionEndpoint\\": \\"eci.aliyuncs.com\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"UnavailableZones\\": [\\n \\"cn-hangzhou-e\\"\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeRegionsResponse>\\n <RequestId>BF910418-FF74-4C99-B2D5-B77C88E49A44</RequestId>\\n <Regions>\\n <RecommendZones>cn-hangzhou-h</RecommendZones>\\n <RecommendZones>cn-hangzhou-i</RecommendZones>\\n <RecommendZones>cn-hangzhou-j</RecommendZones>\\n <RegionId>cn-hangzhou</RegionId>\\n <RegionEndpoint>eci.aliyuncs.com</RegionEndpoint>\\n <Zones>cn-hangzhou-g</Zones>\\n <Zones>cn-hangzhou-e</Zones>\\n <Zones>cn-hangzhou-f</Zones>\\n <Zones>cn-hangzhou-h</Zones>\\n <Zones>cn-hangzhou-i</Zones>\\n <Zones>cn-hangzhou-j</Zones>\\n <Zones>cn-hangzhou-k</Zones>\\n </Regions>\\n</DescribeRegionsResponse>","errorExample":""}]', - 'title' => '查询可以使用的阿里云地域和可用区', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回参数列表。', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '58EE0CB3-C864-5395-A4F7-24F425074839'], + 'DataCacheId' => ['description' => '拷贝到新的地域后,生成的数据缓存ID。', 'type' => 'string', 'example' => 'edc-bp1423y6d7v7l6ua****'], + ], + ], + ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'ImageCache.IncorrectStatus', 'errorMessage' => '%s', 'description' => '镜像缓存当前的状态不对。'], + ['errorCode' => 'ImageCacheNotSupport', 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', 'description' => '镜像缓存功能还未全网开放,如果有需要请联系我们。'], + ['errorCode' => 'EipAddressPoolIpNotEnough', 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', 'description' => '指定的eip公网地址池地址资源不足。'], + ], + 403 => [ + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '拷贝数据缓存', + 'description' => '数据缓存不支持直接跨地域使用,通过本接口可以将数据缓存从一个地域拷贝到另一个地域。该接口适用于以下场景:'."\n" + .'- 需要在多个地域使用数据缓存,在A地域已有数据缓存的情况,可以通过本接口快速拷贝到B地域。'."\n" + .'- 对于中国内地地域的用户,创建数据缓存时如果直接拉取国外地址的数据,可能会因为网络限制导致数据拉取过慢,此时可以先在非中国内地的地域(例如中国香港)创建数据缓存,然后通过本接口拷贝到中国内地地域。'."\n" + ."\n\n" + .'><notice>拷贝数据缓存的过程相当于复制快照,费用涉及复制过程产生的流量费用以及最终生成的数据缓存的存储费用。></notice>', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CopyDataCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/{#datacacheId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"58EE0CB3-C864-5395-A4F7-24F425074839\\",\\n \\"DataCacheId\\": \\"edc-bp1423y6d7v7l6ua****\\"\\n}","type":"json"}]', ], 'CreateContainerGroup' => [ 'summary' => '调用CreateContainerGroup创建一个ECI实例(即容器组)。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -262,491 +389,231 @@ 'chargeType' => 'paid', 'abilityTreeCode' => '17723', 'abilityTreeNodes' => [ - 'FEATUREeciMQBGSL', - 'FEATUREeciVUTLVI', - 'FEATUREeciV3EHPN', - 'FEATUREeciAKHEC6', - 'FEATUREeci3RK7J6', - 'FEATUREeciCB9RZH', - 'FEATUREeciIGQQJ4', - 'FEATUREeciO8VNZM', - 'FEATUREeciL4OXNU', - 'FEATUREeciTSN7MB', - 'FEATUREeciXIMF39', - 'FEATUREeciY9GS39', - 'FEATUREeci5NN3BU', - 'FEATUREeciIT94P2', - 'FEATUREeciCZBDK8', - 'FEATUREeci5C81JE', - 'FEATUREeciUA7Z4X', - 'FEATUREeciTNOJE5', - 'FEATUREeciT4H7SE', - 'FEATUREeciIKTG4T', - 'FEATUREeci2ZQZXG', - 'FEATUREeci0ITHIE', - 'FEATUREeci6EO4L5', - 'FEATUREeciE8K96A', - 'FEATUREeci0764O2', - 'FEATUREeciJCC6LW', - 'FEATUREeciE6R8DD', - 'FEATUREeci285KA3', - 'FEATUREeciURG2P2', - 'FEATUREeciHV8ZT3', - 'FEATUREeciG6ANZT', - 'FEATUREeci8EZOP4', - 'FEATUREeciWJI928', - 'FEATUREeciSWZRZY', - 'FEATUREeciFNO51E', - 'FEATUREeciWX1P2C', - 'FEATUREeciO4MP7I', - 'FEATUREeciL85GGA', - 'FEATUREeciW85X4O', - 'FEATUREeci62HD6F', - 'FEATUREeciIY8PHC', - 'FEATUREeciSBWW1M', - 'FEATUREeciXZCGBO', - 'FEATUREeciWNN4ZA', - 'FEATUREeci6OZGI2', - 'FEATUREeciTLPZOI', - 'FEATUREeciD229V6', - 'FEATUREeciI5SLQA', - 'FEATUREeciOZ73BH', - 'FEATUREeciESSPHI', - 'FEATUREeciOFIQXM', - 'FEATUREeciPOV784', + 'FEATUREeciMQBGSL', 'FEATUREeciVUTLVI', 'FEATUREeciV3EHPN', 'FEATUREeciAKHEC6', 'FEATUREeci3RK7J6', 'FEATUREeciCB9RZH', 'FEATUREeciIGQQJ4', 'FEATUREeciO8VNZM', 'FEATUREeciL4OXNU', 'FEATUREeciTSN7MB', 'FEATUREeciXIMF39', 'FEATUREeciY9GS39', 'FEATUREeci5NN3BU', 'FEATUREeciIT94P2', 'FEATUREeciCZBDK8', 'FEATUREeci5C81JE', 'FEATUREeciUA7Z4X', 'FEATUREeciTNOJE5', 'FEATUREeciT4H7SE', 'FEATUREeciIKTG4T', + 'FEATUREeci2ZQZXG', 'FEATUREeci0ITHIE', 'FEATUREeci6EO4L5', 'FEATUREeciE8K96A', 'FEATUREeci0764O2', 'FEATUREeciJCC6LW', 'FEATUREeciE6R8DD', 'FEATUREeci285KA3', 'FEATUREeciURG2P2', 'FEATUREeciHV8ZT3', 'FEATUREeciG6ANZT', 'FEATUREeci8EZOP4', 'FEATUREeciWJI928', 'FEATUREeciSWZRZY', 'FEATUREeciFNO51E', 'FEATUREeciWX1P2C', 'FEATUREeciO4MP7I', 'FEATUREeciL85GGA', 'FEATUREeciW85X4O', 'FEATUREeci62HD6F', + 'FEATUREeciIY8PHC', 'FEATUREeciSBWW1M', 'FEATUREeciXZCGBO', 'FEATUREeciWNN4ZA', 'FEATUREeci6OZGI2', 'FEATUREeciTLPZOI', 'FEATUREeciD229V6', 'FEATUREeciI5SLQA', 'FEATUREeciOZ73BH', 'FEATUREeciESSPHI', 'FEATUREeciOFIQXM', 'FEATUREeciPOV784', ], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的可用区。如果取值为空,则表示由系统选择。'."\n" - ."\n" - .'默认值为空。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou-b', - ], + 'schema' => ['description' => '实例所属的可用区。如果取值为空,则表示由系统选择。'."\n" + ."\n" + .'默认值为空。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-b'], ], [ 'name' => 'SecurityGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的安全组ID。同一个安全组内的实例之间可以互相访问。'."\n" - ."\n" - .'如果没有指定安全组,系统将自动使用您选择的地域下的默认安全组,您需要确保该安全组的入方向规则中包含容器需要暴露的协议和端口。如果您在该地域下没有默认安全组,系统将自动创建一个默认安全组,并将您声明的容器协议和端口添加到该安全组的入方向规则中。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'sg-uf66jeqopgqa9hdn****', - ], + 'schema' => ['description' => '实例所属的安全组ID。同一个安全组内的实例之间可以互相访问。'."\n" + ."\n" + .'如果没有指定安全组,系统将自动使用您选择的地域下的默认安全组,您需要确保该安全组的入方向规则中包含容器需要暴露的协议和端口。如果您在该地域下没有默认安全组,系统将自动创建一个默认安全组,并将您声明的容器协议和端口添加到该安全组的入方向规则中。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'sg-uf66jeqopgqa9hdn****'], ], [ 'name' => 'VSwitchId', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的交换机ID。支持指定多个交换机ID(单次最多10个),各交换机ID之间可以用半角逗号(,)进行分割,例如`vsw-***,vsw-***`。'."\n" - ."\n" - .'如果没有指定交换机,系统将自动使用您选择的地域下的默认VPC下的默认交换机,如果您在该地域下没有默认VPC和默认交换机,系统将自动创建一个默认VPC和一个默认交换机。'."\n" - ."\n" - .'> 交换机网段内的IP个数决定了该交换机下最大可以创建的ECI实例数量,请务必提前规划好网段。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'vsw-bp1xpiowfm5vo8o3c****,vsw-bp1rkyjgr1xwoho6k****', - ], + 'schema' => ['description' => '实例所属的交换机ID。支持指定多个交换机ID(单次最多10个),各交换机ID之间可以用半角逗号(,)进行分割,例如`vsw-***,vsw-***`。'."\n" + ."\n" + .'如果没有指定交换机,系统将自动使用您选择的地域下的默认VPC下的默认交换机,如果您在该地域下没有默认VPC和默认交换机,系统将自动创建一个默认VPC和一个默认交换机。'."\n" + ."\n" + .'> 交换机网段内的IP个数决定了该交换机下最大可以创建的ECI实例数量,请务必提前规划好网段。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'vsw-bp1xpiowfm5vo8o3c****,vsw-bp1rkyjgr1xwoho6k****'], ], [ 'name' => 'ContainerGroupName', 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例名称,即容器组名称。格式要求如下:'."\n" - ."\n" - .'- 长度为2~128个字符。'."\n" - .'- 支持英文小写字母、数字或者短划线(-),不能以短划线开头或者结尾。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'nginx-test', - ], + 'schema' => ['description' => 'ECI实例名称,即容器组名称。格式要求如下:'."\n" + ."\n" + .'- 长度为2~128个字符。'."\n" + .'- 支持英文小写字母、数字或者短划线(-),不能以短划线开头或者结尾。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'nginx-test'], ], [ 'name' => 'RestartPolicy', 'in' => 'query', - 'schema' => [ - 'description' => '实例重启策略。取值范围:'."\n" - ."\n" - .'- Always:总是重启'."\n" - .'- Never:从不重启'."\n" - .'- OnFailure:失败时重启'."\n" - ."\n" - .'默认值:Always。', - 'type' => 'string', - 'required' => false, - 'example' => 'Always', - ], + 'schema' => ['description' => '实例重启策略。取值范围:'."\n" + ."\n" + .'- Always:总是重启'."\n" + .'- Never:从不重启'."\n" + .'- OnFailure:失败时重启'."\n" + ."\n" + .'默认值:Always。', 'type' => 'string', 'required' => false, 'example' => 'Always'], ], [ 'name' => 'EipInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => '弹性公网IP ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-uf66jeqopgqa9hdn****', - ], + 'schema' => ['description' => '弹性公网IP ID。', 'type' => 'string', 'required' => false, 'example' => 'eip-uf66jeqopgqa9hdn****'], ], [ 'name' => 'Cpu', 'in' => 'query', - 'schema' => [ - 'description' => '实例级别vCPU大小。单位:核。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '1.0', - ], + 'schema' => ['description' => '实例级别vCPU大小。单位:核。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1.0'], ], [ 'name' => 'Memory', 'in' => 'query', - 'schema' => [ - 'description' => '实例级别内存大小。单位:GiB。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '2.0', - ], + 'schema' => ['description' => '实例级别内存大小。单位:GiB。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '2.0'], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-uf66jeqopgqa9hdn****', - ], + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-uf66jeqopgqa9hdn****'], ], [ 'name' => 'DnsPolicy', 'in' => 'query', - 'schema' => [ - 'description' => 'DNS策略。取值范围:'."\n" - ."\n" - .'- None:使用DnsConfig字段设置的DNS。'."\n" - .'- Default:继承运行环境的DNS设置。', - 'type' => 'string', - 'required' => false, - 'example' => 'Default', - ], + 'schema' => ['description' => 'DNS策略。取值范围:'."\n" + ."\n" + .'- None:使用DnsConfig字段设置的DNS。'."\n" + .'- Default:继承运行环境的DNS设置。', 'type' => 'string', 'required' => false, 'example' => 'Default'], ], [ 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-xxxx-12d3-xxxx-426655440000', - ], + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-xxxx-12d3-xxxx-426655440000'], ], [ 'name' => 'InstanceType', 'in' => 'query', - 'schema' => [ - 'description' => '指定的ECS实例规格,支持多规格。更多信息,请参见[指定ECS规格创建实例](~~114664~~)。', - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.c5.xlarge', - ], + 'schema' => ['description' => '指定的ECS实例规格,支持多规格。更多信息,请参见[指定ECS规格创建实例](~~114664~~)。', 'type' => 'string', 'required' => false, 'example' => 'ecs.c5.xlarge'], ], [ 'name' => 'ImageSnapshotId', 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存ID。更多信息,请参见[使用镜像缓存加速创建实例](~~141281~~)。', - 'type' => 'string', - 'required' => false, - 'example' => 'imc-2zebxkiifuyzzlhl****', - ], + 'schema' => ['description' => '镜像缓存ID。更多信息,请参见[使用镜像缓存加速创建实例](~~141281~~)。', 'type' => 'string', 'required' => false, 'example' => 'imc-2zebxkiifuyzzlhl****'], ], [ 'name' => 'RamRoleName', 'in' => 'query', - 'schema' => [ - 'description' => '实例RAM角色名称。ECI与ECS共用实例RAM角色,更多信息,请参见[通过API使用实例RAM角色](~~61178~~)。', - 'type' => 'string', - 'required' => false, - 'example' => 'RamTestRole', - ], + 'schema' => ['description' => '实例RAM角色名称。ECI与ECS共用实例RAM角色,更多信息,请参见[通过API使用实例RAM角色](~~61178~~)。', 'type' => 'string', 'required' => false, 'example' => 'RamTestRole'], ], [ 'name' => 'TerminationGracePeriodSeconds', 'in' => 'query', - 'schema' => [ - 'description' => '程序的缓冲时间,用于处理关闭之前的操作。单位为秒。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '60', - ], + 'schema' => ['description' => '程序的缓冲时间,用于处理关闭之前的操作。单位为秒。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '60'], ], [ 'name' => 'AutoMatchImageCache', 'in' => 'query', - 'schema' => [ - 'description' => '是否自动匹配镜像缓存。默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '是否自动匹配镜像缓存。默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'Ipv6AddressCount', 'in' => 'query', - 'schema' => [ - 'description' => 'IPv6地址数。固定为1,即一个ECI实例支持绑定一个IPv6地址。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'IPv6地址数。固定为1,即一个ECI实例支持绑定一个IPv6地址。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ 'name' => 'ActiveDeadlineSeconds', 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例的有效期限,超出该时间后,实例会被强制退出。单位为秒。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1000', - ], + 'schema' => ['description' => 'ECI实例的有效期限,超出该时间后,实例会被强制退出。单位为秒。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000'], ], [ 'name' => 'SpotStrategy', 'in' => 'query', - 'schema' => [ - 'description' => '实例的抢占策略。取值范围:'."\n" - ."\n" - .'- NoSpot:正常按量付费实例。'."\n" - .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" - .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。'."\n" - ."\n" - .'默认值:NoSpot。', - 'type' => 'string', - 'required' => false, - 'example' => 'SpotWithPriceLimit', - ], + 'schema' => ['description' => '实例的抢占策略。取值范围:'."\n" + ."\n" + .'- NoSpot:正常按量付费实例。'."\n" + .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" + .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。'."\n" + ."\n" + .'默认值:NoSpot。', 'type' => 'string', 'required' => false, 'example' => 'SpotWithPriceLimit'], ], [ 'name' => 'SpotPriceLimit', 'in' => 'query', - 'schema' => [ - 'description' => '设置抢占式实例的每小时最高价格,最多精确到小数点后3位。'."\n" - ."\n" - .'当SpotStrategy取值为SpotWithPriceLimit时,必须设置SpotPriceLimit。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '0.025', - ], + 'schema' => ['description' => '设置抢占式实例的每小时最高价格,最多精确到小数点后3位。'."\n" + ."\n" + .'当SpotStrategy取值为SpotWithPriceLimit时,必须设置SpotPriceLimit。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '0.025'], ], [ 'name' => 'ScheduleStrategy', 'in' => 'query', - 'schema' => [ - 'description' => '配置了多可用区(通过VSwitchId参数指定多个交换机)时,ECI实例的调度策略。取值范围:'."\n" - ."\n" - .'- VSwitchOrdered:按顺序调度'."\n" - .'- VSwitchRandom:随机调度'."\n" - ."\n" - .'更多信息,请参见[多可用区创建实例](~~157290~~)。', - 'type' => 'string', - 'required' => false, - 'example' => 'VSwitchOrdered', - ], + 'schema' => ['description' => '配置了多可用区(通过VSwitchId参数指定多个交换机)时,ECI实例的调度策略。取值范围:'."\n" + ."\n" + .'- VSwitchOrdered:按顺序调度'."\n" + .'- VSwitchRandom:阿里云最优策略调度'."\n" + ."\n" + .'更多信息,请参见[多可用区创建实例](~~157290~~)。', 'type' => 'string', 'required' => false, 'example' => 'VSwitchOrdered'], ], [ 'name' => 'CorePattern', 'in' => 'query', - 'schema' => [ - 'description' => '自定义设置coredump生成的core文件的保存目录。更多信息,请参见[设置core文件保存到数据卷](~~167801~~)。'."\n" - ."\n" - .'> 配置的路径不能以`|`开头,即不能通过Core dump来配置可执行程序。', - 'type' => 'string', - 'required' => false, - 'example' => '/xx/xx/core', - ], + 'schema' => ['description' => '自定义设置coredump生成的core文件的保存目录。更多信息,请参见[设置core文件保存到数据卷](~~167801~~)。'."\n" + ."\n" + .'> 配置的路径不能以`|`开头,即不能通过Core dump来配置可执行程序。', 'type' => 'string', 'required' => false, 'example' => '/xx/xx/core'], ], [ 'name' => 'ShareProcessNamespace', 'in' => 'query', - 'schema' => [ - 'description' => '是否使用共享命名空间。默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '是否使用共享命名空间。默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'AutoCreateEip', 'in' => 'query', - 'schema' => [ - 'description' => '是否自动创建一个EIP,并绑定到ECI实例上。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '是否自动创建一个EIP,并绑定到ECI实例上。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ 'name' => 'EipBandwidth', 'in' => 'query', - 'schema' => [ - 'description' => 'EIP的带宽,默认为5 Mbps。 '."\n" - .'当AutoCreateEip取值为true时,可以设置该参数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '1000000', - 'minimum' => '0', - 'example' => '5', - ], + 'schema' => ['description' => 'EIP的带宽,默认为5 Mbps。 '."\n" + .'当AutoCreateEip取值为true时,可以设置该参数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000000', 'minimum' => '0', 'example' => '5'], ], [ 'name' => 'EipISP', 'in' => 'query', - 'schema' => [ - 'description' => '设置EIP的线路类型。取值范围:'."\n" - ."\n" - .'- BGP(默认值):BGP(多线)线路'."\n" - .'- BGP_PRO:BGP(多线)精品线路', - 'type' => 'string', - 'required' => false, - 'example' => 'BGP', - ], + 'schema' => ['description' => '设置EIP的线路类型。取值范围:'."\n" + ."\n" + .'- BGP(默认值):BGP(多线)线路'."\n" + .'- BGP_PRO:BGP(多线)精品线路', 'type' => 'string', 'required' => false, 'example' => 'BGP'], ], [ 'name' => 'EipCommonBandwidthPackage', 'in' => 'query', - 'schema' => [ - 'description' => '绑定已有的共享带宽包。', - 'type' => 'string', - 'required' => false, - 'example' => 'cbwp-2zeukbj916scmj51m****', - ], + 'schema' => ['description' => '绑定已有的共享带宽包。', 'type' => 'string', 'required' => false, 'example' => 'cbwp-2zeukbj916scmj51m****'], ], [ 'name' => 'HostName', 'in' => 'query', - 'schema' => [ - 'description' => '主机名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => '主机名称。', 'type' => 'string', 'required' => false, 'example' => 'test'], ], [ 'name' => 'IngressBandwidth', 'in' => 'query', - 'schema' => [ - 'description' => '入方向带宽限制。单位:Bps。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'docRequired' => false, - 'maximum' => '9223372036854775807', - 'minimum' => '0', - 'example' => '1024000', - ], + 'schema' => ['description' => '入方向带宽限制。单位:Bps。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'docRequired' => false, 'maximum' => '9223372036854775807', 'minimum' => '0', 'example' => '1024000'], ], [ 'name' => 'EgressBandwidth', 'in' => 'query', - 'schema' => [ - 'description' => '出方向带宽限制。单位:Bps。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'docRequired' => false, - 'maximum' => '9223372036854775807', - 'minimum' => '0', - 'example' => '1024000', - ], + 'schema' => ['description' => '出方向带宽限制。单位:Bps。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'docRequired' => false, 'maximum' => '9223372036854775807', 'minimum' => '0', 'example' => '1024000'], ], [ 'name' => 'CpuOptionsCore', 'in' => 'query', - 'schema' => [ - 'description' => 'CPU物理核心数。仅部分规格支持自定义设置。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '1000', - 'minimum' => '0', - 'example' => '2', - ], + 'schema' => ['description' => 'CPU物理核心数。仅部分规格支持自定义设置。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '0', 'example' => '2'], ], [ 'name' => 'CpuOptionsThreadsPerCore', 'in' => 'query', - 'schema' => [ - 'description' => '每核线程数。仅部分规格支持自定义设置。配置为1时表示关闭超线程。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '1000', - 'minimum' => '0', - 'example' => '2', - ], + 'schema' => ['description' => '每核线程数。仅部分规格支持自定义设置。配置为1时表示关闭超线程。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '1000', 'minimum' => '0', 'example' => '2'], ], [ 'name' => 'CpuOptionsNuma', 'in' => 'query', - 'schema' => [ - 'description' => '该参数暂不支持设置。', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '该参数暂不支持设置。', 'type' => 'string', 'required' => false, 'example' => '1'], ], [ 'name' => 'EphemeralStorage', 'in' => 'query', - 'schema' => [ - 'description' => '增加的临时存储空间大小。单位:GiB。 '."\n" - .'更多信息,请参见[自定义临时存储空间大小](~~204066~~)。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '5000', - 'minimum' => '0', - 'example' => '20', - ], + 'schema' => ['description' => '增加的临时存储空间大小。单位:GiB。 '."\n" + .'更多信息,请参见[自定义临时存储空间大小](~~204066~~)。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '5000', 'minimum' => '0', 'example' => '20'], ], [ 'name' => 'Tag', @@ -759,18 +626,8 @@ 'description' => '标签列表。最多可以绑定20个。更多信息,请参见[使用标签管理实例](~~146608~~)。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '标签键。如果传入该值,则不允许为空字符串,且不允许重复。最多支持64个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', - 'type' => 'string', - 'required' => false, - 'example' => 'version', - ], - 'Value' => [ - 'description' => '标签值。如果传入该值,可以为空字符串。最多支持128个字符,不能以`acs:`开头,不能包含`http://`或者`https://`。', - 'type' => 'string', - 'required' => false, - 'example' => '3', - ], + 'Key' => ['description' => '标签键。如果传入该值,则不允许为空字符串,且不允许重复。最多支持64个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => 'version'], + 'Value' => ['description' => '标签值。如果传入该值,可以为空字符串。最多支持128个字符,不能以`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => '3'], ], 'required' => false, ], @@ -789,24 +646,9 @@ 'description' => '镜像仓库信息。', 'type' => 'object', 'properties' => [ - 'Password' => [ - 'description' => '镜像仓库密码。', - 'type' => 'string', - 'required' => false, - 'example' => 'yourpassword', - ], - 'Server' => [ - 'description' => '镜像仓库注册地址。', - 'type' => 'string', - 'required' => false, - 'example' => 'registry-vpc.cn-shanghai.aliyuncs.com', - ], - 'UserName' => [ - 'description' => '镜像仓库用户名。', - 'type' => 'string', - 'required' => false, - 'example' => 'yourusername', - ], + 'Password' => ['description' => '镜像仓库密码。', 'type' => 'string', 'required' => false, 'example' => 'yourpassword'], + 'Server' => ['description' => '镜像仓库注册地址。', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-shanghai.aliyuncs.com'], + 'UserName' => ['description' => '镜像仓库用户名。', 'type' => 'string', 'required' => false, 'example' => 'yourusername'], ], 'required' => false, ], @@ -825,68 +667,29 @@ 'description' => '容器信息。', 'type' => 'object', 'properties' => [ - 'ReadinessProbe.TimeoutSeconds' => [ - 'description' => '检查超时的时间,默认为1秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'ReadinessProbe.SuccessThreshold' => [ - 'description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。当前必须为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'ReadinessProbe.TimeoutSeconds' => ['description' => '检查超时的时间,默认为1秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'ReadinessProbe.SuccessThreshold' => ['description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。当前必须为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], 'SecurityContext.Capability.Add' => [ 'description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" ."\n" .'> NET_RAW默认不支持,需提交工单申请。', 'type' => 'array', - 'items' => [ - 'description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" - ."\n" - .'> NET_RAW默认不支持,需提交工单申请。', - 'type' => 'string', - 'required' => false, - 'example' => 'NET_ADMIN', - ], - 'required' => false, - 'maxItems' => 100, - ], - 'ReadinessProbe.TcpSocket.Port' => [ - 'description' => '使用TCP Socket方式进行健康检查时,TCP Socket检测的端口。'."\n" - ."\n" - .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '8000', - ], - 'ReadinessProbe.HttpGet.Scheme' => [ - 'description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求对应的协议类型,取值范围:'."\n" - .'- HTTP'."\n" - .'- HTTPS'."\n" + 'items' => ['description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" ."\n" - .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', - 'type' => 'string', + .'> NET_RAW默认不支持,需提交工单申请。', 'type' => 'string', 'required' => false, 'example' => 'NET_ADMIN'], 'required' => false, - 'example' => 'HTTP', - ], - 'LivenessProbe.PeriodSeconds' => [ - 'description' => '检查执行的周期,默认为10秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '5', - ], - 'SecurityContext.ReadOnlyRootFilesystem' => [ - 'description' => '容器运行的根文件系统是否为只读,目前仅支持配置为true。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', + 'maxItems' => 100, ], + 'ReadinessProbe.TcpSocket.Port' => ['description' => '使用TCP Socket方式进行健康检查时,TCP Socket检测的端口。'."\n" + ."\n" + .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8000'], + 'ReadinessProbe.HttpGet.Scheme' => ['description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求对应的协议类型,取值范围:'."\n" + .'- HTTP'."\n" + .'- HTTPS'."\n" + ."\n" + .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'], + 'LivenessProbe.PeriodSeconds' => ['description' => '检查执行的周期,默认为10秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'], + 'SecurityContext.ReadOnlyRootFilesystem' => ['description' => '容器运行的根文件系统是否为只读,目前仅支持配置为true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], 'EnvironmentVar' => [ 'description' => '容器的环境变量值。', 'type' => 'array', @@ -894,80 +697,33 @@ 'description' => '容器的环境变量值。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '环境变量名。长度为1~128位。格式要求:`[0-9a-zA-Z]`,以及下划线,不能以数字开头。', - 'type' => 'string', - 'required' => false, - 'example' => 'PATH', - ], - 'Value' => [ - 'description' => '环境变量值。长度为0~256位。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/local/bin', - ], - 'FieldRef.FieldPath' => [ - 'description' => '环境变量值引用。目前只支持配置为status.podIP。', - 'type' => 'string', - 'required' => false, - 'example' => 'status.podIP', - ], + 'Key' => ['description' => '环境变量名。长度为1~128位。格式要求:`[0-9a-zA-Z]`,以及下划线,不能以数字开头。', 'type' => 'string', 'required' => false, 'example' => 'PATH'], + 'Value' => ['description' => '环境变量值。长度为0~256位。', 'type' => 'string', 'required' => false, 'example' => '/usr/local/bin'], + 'FieldRef.FieldPath' => ['description' => '环境变量值引用。目前只支持配置为status.podIP。', 'type' => 'string', 'required' => false, 'example' => 'status.podIP'], ], 'required' => false, ], 'required' => false, 'maxItems' => 241, ], - 'LivenessProbe.TcpSocket.Port' => [ - 'description' => '使用TCP Socket方式进行健康检查时,TCP Socket检测的端口。'."\n" - ."\n" - .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '8080', - ], - 'Tty' => [ - 'description' => '是否开启交互。默认为false。'."\n" - ."\n" - .'当Command为/bin/bash命令时,需要设置为true。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'WorkingDir' => [ - 'description' => '容器工作目录。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/local/', - ], + 'LivenessProbe.TcpSocket.Port' => ['description' => '使用TCP Socket方式进行健康检查时,TCP Socket检测的端口。'."\n" + ."\n" + .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8080'], + 'Tty' => ['description' => '是否开启交互。默认为false。'."\n" + ."\n" + .'当Command为/bin/bash命令时,需要设置为true。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'WorkingDir' => ['description' => '容器工作目录。', 'type' => 'string', 'required' => false, 'example' => '/usr/local/'], 'Arg' => [ 'description' => '容器启动命令对应的参数。最多10个。', 'type' => 'array', - 'items' => [ - 'description' => '容器启动命令对应的参数。最多10个。', - 'type' => 'string', - 'required' => false, - 'example' => '100', - ], + 'items' => ['description' => '容器启动命令对应的参数。最多10个。', 'type' => 'string', 'required' => false, 'example' => '100'], 'required' => false, 'maximum' => '65535', 'example' => '100', 'maxItems' => 101, ], - 'Stdin' => [ - 'description' => '此容器是否应在容器运行时为标准输入分配缓冲区。如果未设置,则容器中标准输入的读取值将导致EOF。默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'LivenessProbe.InitialDelaySeconds' => [ - 'description' => '检查开始执行的时间,以容器启动完成为起点计算。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '5', - ], + 'Stdin' => ['description' => '此容器是否应在容器运行时为标准输入分配缓冲区。如果未设置,则容器中标准输入的读取值将导致EOF。默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'LivenessProbe.InitialDelaySeconds' => ['description' => '检查开始执行的时间,以容器启动完成为起点计算。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'], 'VolumeMount' => [ 'description' => '数据卷信息。', 'type' => 'array', @@ -975,178 +731,74 @@ 'description' => '数据卷信息。', 'type' => 'object', 'properties' => [ - 'MountPropagation' => [ - 'description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。取值范围:'."\n" - ."\n" - .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" - ."\n" - .'- HostToContainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" - ."\n" - .'- Bidirectional:和HostToContainer类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。'."\n" - ."\n" - .'默认值:None', - 'type' => 'string', - 'required' => false, - 'example' => 'None', - ], - 'MountPath' => [ - 'description' => '容器挂载数据卷的目录。 '."\n" - ."\n" - .'> 容器挂载目录下的内容会被Volume的内容直接覆盖,请谨慎使用。', - 'type' => 'string', - 'required' => false, - 'example' => '/pod/data', - ], - 'ReadOnly' => [ - 'description' => '数据卷是否只读。默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'SubPath' => [ - 'description' => '数据卷子路径。', - 'type' => 'string', - 'required' => false, - 'example' => 'data2/', - ], - 'Name' => [ - 'description' => '数据卷名称。同Volume中的Name。', - 'type' => 'string', - 'required' => false, - 'example' => 'default-volume1', - ], + 'MountPropagation' => ['description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。取值范围:'."\n" + ."\n" + .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" + ."\n" + .'- HostToContainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" + ."\n" + .'- Bidirectional:和HostToContainer类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。'."\n" + ."\n" + .'默认值:None', 'type' => 'string', 'required' => false, 'example' => 'None'], + 'MountPath' => ['description' => '容器挂载数据卷的目录。 '."\n" + ."\n" + .'> 容器挂载目录下的内容会被Volume的内容直接覆盖,请谨慎使用。', 'type' => 'string', 'required' => false, 'example' => '/pod/data'], + 'ReadOnly' => ['description' => '数据卷是否只读。默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'SubPath' => ['description' => '数据卷子路径。', 'type' => 'string', 'required' => false, 'example' => 'data2/'], + 'Name' => ['description' => '数据卷名称。同Volume中的Name。', 'type' => 'string', 'required' => false, 'example' => 'default-volume1'], ], 'required' => false, ], 'required' => false, 'maxItems' => 101, ], - 'ImagePullPolicy' => [ - 'description' => '镜像拉取策略。取值范围:'."\n" - ."\n" - .'- Always:总是拉取。每次都拉取镜像。'."\n" - .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" - .'- Never:从不拉取。使用本地镜像,不拉取镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'Always', - ], - 'StdinOnce' => [ - 'description' => '当标准输入为true时,标准输入流将在多个附加会话中是否保持开启状态。 '."\n" - .'如果StdinOnce设为true,标准输入在容器开启时被打开,在首个客户端附加到标准输入之前都为空,然后会一直保持开启状态,接收数据,直到客户端连接断开,此时标准输入被关闭,在容器重启前一直保持关闭状态。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'LifecyclePreStopHandlerTcpSocketPort' => [ - 'description' => '使用TCPSocket方式设置preStop回调函数时,TCP Socket检测的端口。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '90', - ], - 'LifecyclePostStartHandlerHttpGetScheme' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求对应的协议类型,取值范围:'."\n" - ."\n" - .'- HTTP'."\n" - .'- HTTPS', - 'type' => 'string', - 'required' => false, - 'example' => 'HTTPS', - ], - 'ReadinessProbe.PeriodSeconds' => [ - 'description' => '检查执行的周期,默认为10秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3', - ], - 'LivenessProbe.SuccessThreshold' => [ - 'description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。当前必须为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'ImagePullPolicy' => ['description' => '镜像拉取策略。取值范围:'."\n" + ."\n" + .'- Always:总是拉取。每次都拉取镜像。'."\n" + .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" + .'- Never:从不拉取。使用本地镜像,不拉取镜像。', 'type' => 'string', 'required' => false, 'example' => 'Always'], + 'StdinOnce' => ['description' => '当标准输入为true时,标准输入流将在多个附加会话中是否保持开启状态。 '."\n" + .'如果StdinOnce设为true,标准输入在容器开启时被打开,在首个客户端附加到标准输入之前都为空,然后会一直保持开启状态,接收数据,直到客户端连接断开,此时标准输入被关闭,在容器重启前一直保持关闭状态。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'LifecyclePreStopHandlerTcpSocketPort' => ['description' => '使用TCPSocket方式设置preStop回调函数时,TCP Socket检测的端口。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '90'], + 'LifecyclePostStartHandlerHttpGetScheme' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求对应的协议类型,取值范围:'."\n" + ."\n" + .'- HTTP'."\n" + .'- HTTPS', 'type' => 'string', 'required' => false, 'example' => 'HTTPS'], + 'ReadinessProbe.PeriodSeconds' => ['description' => '检查执行的周期,默认为10秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'], + 'LivenessProbe.SuccessThreshold' => ['description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。当前必须为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], 'Command' => [ 'description' => '容器启动命令。最多20个。每个命令最多包含256个字符。', 'type' => 'array', - 'items' => [ - 'description' => '容器启动命令。最多20个。每个命令最多包含256个字符。', - 'type' => 'string', - 'required' => false, - 'example' => 'sleep', - ], + 'items' => ['description' => '容器启动命令。最多20个。每个命令最多包含256个字符。', 'type' => 'string', 'required' => false, 'example' => 'sleep'], 'required' => false, 'example' => 'sleep', 'maxItems' => 101, ], - 'LifecyclePostStartHandlerHttpGetHost' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,接收HTTP Get请求的主机地址。', - 'type' => 'string', - 'required' => false, - 'example' => '10.0.XX.XX', - ], - 'TerminationMessagePolicy' => [ - 'description' => '消息通知策略,默认为空,目前仅支持轻量消息队列的消息通知。', - 'type' => 'string', - 'required' => false, - 'example' => 'FallbackToLogsOnError', - ], - 'ReadinessProbe.HttpGet.Path' => [ - 'description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求检测的路径。'."\n" - ."\n" - .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', - 'type' => 'string', - 'required' => false, - 'example' => '/healthz', - ], + 'LifecyclePostStartHandlerHttpGetHost' => ['description' => '使用HTTP请求方式设置postStart回调函数时,接收HTTP Get请求的主机地址。', 'type' => 'string', 'required' => false, 'example' => '10.0.XX.XX'], + 'TerminationMessagePolicy' => ['description' => '消息通知策略,默认为空,目前仅支持轻量消息队列的消息通知。', 'type' => 'string', 'required' => false, 'example' => 'FallbackToLogsOnError'], + 'ReadinessProbe.HttpGet.Path' => ['description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求检测的路径。'."\n" + ."\n" + .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'string', 'required' => false, 'example' => '/healthz'], 'LivenessProbe.Exec.Command' => [ 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。'."\n" ."\n" .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'array', - 'items' => [ - 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。', - 'type' => 'string', - 'required' => false, - 'example' => 'cat /tmp/healthy', - ], + 'items' => ['description' => '使用命令行方式进行健康检查时,在容器内执行的命令。', 'type' => 'string', 'required' => false, 'example' => 'cat /tmp/healthy'], 'required' => false, 'maxItems' => 21, ], - 'LifecyclePostStartHandlerTcpSocketPort' => [ - 'description' => '使用TCPSocket方式设置postStart回调函数时,TCP Socket检测的端口。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '80', - ], - 'LifecyclePostStartHandlerHttpGetPath' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检测的路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/healthyz', - ], + 'LifecyclePostStartHandlerTcpSocketPort' => ['description' => '使用TCPSocket方式设置postStart回调函数时,TCP Socket检测的端口。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'], + 'LifecyclePostStartHandlerHttpGetPath' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检测的路径。', 'type' => 'string', 'required' => false, 'example' => '/healthyz'], 'LifecyclePostStartHandlerExec' => [ 'description' => '使用命令行方式设置postStart回调函数时,在容器内执行的命令。', 'type' => 'array', - 'items' => [ - 'description' => '使用命令行方式设置postStart回调函数时,在容器内执行的命令。', - 'type' => 'string', - 'required' => false, - 'example' => '["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]', - ], + 'items' => ['description' => '使用命令行方式设置postStart回调函数时,在容器内执行的命令。', 'type' => 'string', 'required' => false, 'example' => '["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]'], 'required' => false, 'example' => '["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]', 'maxItems' => 101, ], - 'LifecyclePreStopHandlerHttpGetPath' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求检测的路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/healthyz', - ], + 'LifecyclePreStopHandlerHttpGetPath' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求检测的路径。', 'type' => 'string', 'required' => false, 'example' => '/healthyz'], 'Port' => [ 'description' => '端口号。', 'type' => 'array', @@ -1154,154 +806,55 @@ 'description' => '端口号。', 'type' => 'object', 'properties' => [ - 'Protocol' => [ - 'description' => '协议类型。取值范围:'."\n" - ."\n" - .'- TCP'."\n" - .'- UDP', - 'type' => 'string', - 'required' => false, - 'example' => 'TCP', - ], - 'Port' => [ - 'description' => '端口号。取值范围:1~65535。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '80', - ], + 'Protocol' => ['description' => '协议类型。取值范围:'."\n" + ."\n" + .'- TCP'."\n" + .'- UDP', 'type' => 'string', 'required' => false, 'example' => 'TCP'], + 'Port' => ['description' => '端口号。取值范围:1~65535。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'], ], 'required' => false, ], 'required' => false, 'maxItems' => 101, ], - 'TerminationMessagePath' => [ - 'description' => '容器的报错地址。', - 'type' => 'string', - 'required' => false, - 'example' => '/tmp/termination-log', - ], - 'LifecyclePreStopHandlerHttpGetScheme' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求对应的协议类型,取值范围:'."\n" - ."\n" - .'- HTTP'."\n" - .'- HTTPS', - 'type' => 'string', - 'required' => false, - 'example' => 'HTTP', - ], - 'LivenessProbe.HttpGet.Scheme' => [ - 'description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求对应的协议类型,取值范围:'."\n" - ."\n" - .'- HTTP'."\n" - .'- HTTPS'."\n" - ."\n" - .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', - 'type' => 'string', - 'required' => false, - 'example' => 'HTTP', - ], - 'ReadinessProbe.HttpGet.Port' => [ - 'description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求检测的端口号。'."\n" - ."\n" - .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '8080', - ], - 'LifecyclePostStartHandlerTcpSocketHost' => [ - 'description' => '使用TCP Socket方式设置postStart回调函数时,TCP Socket检测的主机地址。', - 'type' => 'string', - 'required' => false, - 'example' => '10.0.XX.XX', - ], - 'Gpu' => [ - 'description' => '指定容器使用的GPU个数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'ReadinessProbe.InitialDelaySeconds' => [ - 'description' => '检查开始执行的时间,以容器启动完成为起点计算。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3', - ], + 'TerminationMessagePath' => ['description' => '容器的报错地址。', 'type' => 'string', 'required' => false, 'example' => '/tmp/termination-log'], + 'LifecyclePreStopHandlerHttpGetScheme' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求对应的协议类型,取值范围:'."\n" + ."\n" + .'- HTTP'."\n" + .'- HTTPS', 'type' => 'string', 'required' => false, 'example' => 'HTTP'], + 'LivenessProbe.HttpGet.Scheme' => ['description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求对应的协议类型,取值范围:'."\n" + ."\n" + .'- HTTP'."\n" + .'- HTTPS'."\n" + ."\n" + .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'string', 'required' => false, 'example' => 'HTTP'], + 'ReadinessProbe.HttpGet.Port' => ['description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求检测的端口号。'."\n" + ."\n" + .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8080'], + 'LifecyclePostStartHandlerTcpSocketHost' => ['description' => '使用TCP Socket方式设置postStart回调函数时,TCP Socket检测的主机地址。', 'type' => 'string', 'required' => false, 'example' => '10.0.XX.XX'], + 'Gpu' => ['description' => '指定容器使用的GPU个数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'ReadinessProbe.InitialDelaySeconds' => ['description' => '检查开始执行的时间,以容器启动完成为起点计算。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'], 'LifecyclePreStopHandlerExec' => [ 'description' => '使用命令行方式设置preStop回调函数时,在容器内执行的命令。', 'type' => 'array', - 'items' => [ - 'description' => '使用命令行方式设置preStop回调函数时,在容器内执行的命令。', - 'type' => 'string', - 'required' => false, - 'example' => '["/bin/sh", "-c","echo Hello from the preStop handler > /usr/share/message"]', - ], + 'items' => ['description' => '使用命令行方式设置preStop回调函数时,在容器内执行的命令。', 'type' => 'string', 'required' => false, 'example' => '["/bin/sh", "-c","echo Hello from the preStop handler > /usr/share/message"]'], 'required' => false, 'example' => '["/bin/sh", "-c","echo Hello from the preStop handler > /usr/share/message"]', 'maxItems' => 101, ], - 'Memory' => [ - 'description' => '容器的内存大小。单位:GiB。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '0.5', - ], - 'Name' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'nginx', - ], - 'LifecyclePreStopHandlerHttpGetHost' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,接收HTTP Get请求的主机地址。', - 'type' => 'string', - 'required' => false, - 'example' => '10.0.XX.XX', - ], - 'LifecyclePreStopHandlerTcpSocketHost' => [ - 'description' => '使用TCP Socket方式设置preStop回调函数时,TCP Socket检测的主机地址。', - 'type' => 'string', - 'required' => false, - 'example' => '10.0.XX.XX', - ], - 'Image' => [ - 'description' => '容器镜像。', - 'type' => 'string', - 'required' => true, - 'maximum' => '255', - 'minimum' => '1', - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest', - ], - 'LifecyclePreStopHandlerHttpGetPort' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求检测的端口号。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '88', - ], - 'LivenessProbe.FailureThreshold' => [ - 'description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败),默认为3。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3', - ], + 'Memory' => ['description' => '容器的内存大小。单位:GiB。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '0.5'], + 'Name' => ['description' => '容器名称。', 'type' => 'string', 'required' => true, 'example' => 'nginx'], + 'LifecyclePreStopHandlerHttpGetHost' => ['description' => '使用HTTP请求方式设置preStop回调函数时,接收HTTP Get请求的主机地址。', 'type' => 'string', 'required' => false, 'example' => '10.0.XX.XX'], + 'LifecyclePreStopHandlerTcpSocketHost' => ['description' => '使用TCP Socket方式设置preStop回调函数时,TCP Socket检测的主机地址。', 'type' => 'string', 'required' => false, 'example' => '10.0.XX.XX'], + 'Image' => ['description' => '容器镜像。', 'type' => 'string', 'required' => true, 'maximum' => '255', 'minimum' => '1', 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:latest'], + 'LifecyclePreStopHandlerHttpGetPort' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求检测的端口号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '88'], + 'LivenessProbe.FailureThreshold' => ['description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败),默认为3。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'], 'ReadinessProbe.Exec.Command' => [ 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。'."\n" ."\n" .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'array', - 'items' => [ - 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。', - 'type' => 'string', - 'required' => false, - 'example' => 'cat /tmp/healthy', - ], + 'items' => ['description' => '使用命令行方式进行健康检查时,在容器内执行的命令。', 'type' => 'string', 'required' => false, 'example' => 'cat /tmp/healthy'], 'required' => false, 'maxItems' => 20, ], @@ -1312,76 +865,25 @@ 'description' => '生成的HTTP请求头参数。', 'type' => 'object', 'properties' => [ - 'Value' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求头中自定义设置的字段值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test-preStop', - ], - 'Name' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求头中自定义设置的字段名。', - 'type' => 'string', - 'required' => false, - 'example' => 'Xiao-Custom-Header', - ], + 'Value' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求头中自定义设置的字段值。', 'type' => 'string', 'required' => false, 'example' => 'test-preStop'], + 'Name' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求头中自定义设置的字段名。', 'type' => 'string', 'required' => false, 'example' => 'Xiao-Custom-Header'], ], 'required' => false, ], 'required' => false, 'maxItems' => 101, ], - 'ReadinessProbe.FailureThreshold' => [ - 'description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败),默认为3。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3', - ], - 'Cpu' => [ - 'description' => '容器的vCPU大小。单位:核。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '0.25', - ], - 'LivenessProbe.HttpGet.Port' => [ - 'description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求检测的端口号。'."\n" - ."\n" - .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '8888', - ], - 'LivenessProbe.HttpGet.Path' => [ - 'description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求检测的路径。'."\n" - ."\n" - .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', - 'type' => 'string', - 'required' => false, - 'example' => '/healthz', - ], - 'LivenessProbe.TimeoutSeconds' => [ - 'description' => '检查超时的时间,默认为1秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'SecurityContext.RunAsUser' => [ - 'description' => '设置运行容器的用户ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1000', - ], - 'LifecyclePostStartHandlerHttpGetPort' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检查的端口号。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '5050', - ], + 'ReadinessProbe.FailureThreshold' => ['description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败),默认为3。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'], + 'Cpu' => ['description' => '容器的vCPU大小。单位:核。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '0.25'], + 'LivenessProbe.HttpGet.Port' => ['description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求检测的端口号。'."\n" + ."\n" + .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8888'], + 'LivenessProbe.HttpGet.Path' => ['description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求检测的路径。'."\n" + ."\n" + .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。', 'type' => 'string', 'required' => false, 'example' => '/healthz'], + 'LivenessProbe.TimeoutSeconds' => ['description' => '检查超时的时间,默认为1秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'SecurityContext.RunAsUser' => ['description' => '设置运行容器的用户ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000'], + 'LifecyclePostStartHandlerHttpGetPort' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检查的端口号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5050'], 'LifecyclePostStartHandlerHttpGetHttpHeader' => [ 'description' => '生成的HTTP请求头参数。', 'type' => 'array', @@ -1389,58 +891,27 @@ 'description' => '生成的HTTP请求头参数。', 'type' => 'object', 'properties' => [ - 'Value' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求头中自定义设置的字段值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test-postStart', - ], - 'Name' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求头中自定义设置的字段名。', - 'type' => 'string', - 'required' => false, - 'example' => 'Xiao-Custom-Header', - ], + 'Value' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求头中自定义设置的字段值。', 'type' => 'string', 'required' => false, 'example' => 'test-postStart'], + 'Name' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求头中自定义设置的字段名。', 'type' => 'string', 'required' => false, 'example' => 'Xiao-Custom-Header'], ], 'required' => false, ], 'required' => false, 'maxItems' => 101, ], - 'EnvironmentVarHide' => [ - 'description' => '查询ECI实例详情时,是否隐藏环境变量信息。取值范围:'."\n" - ."\n" - .'- false(默认值):查询ECI实例详情时,不隐藏环境变量信息。'."\n" - .'- true:查询ECI实例详情时,不返回环境变量信息。在环境变量带有敏感信息时,配置为true可以提高安全性。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'SecurityContextRunAsGroup' => [ - 'description' => '设置运行容器的用户组。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '3000', - ], - 'SecurityContextRunAsNonRoot' => [ - 'description' => '是否以非root模式运行容器。取值范围:'."\n" - .'- true:非root模式'."\n" - .'- false(默认值):root模式', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'SecurityContextPrivileged' => [ - 'description' => '容器是否启用特权,即是否以特权模式运行容器。取值范围:'."\n" - .'- true:启用特权'."\n" - .'- false(默认值):不启用特权'."\n" - ."\n" - .'> 特权容器功能正在内测中。如需体验,请提交工单申请。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'EnvironmentVarHide' => ['description' => '查询ECI实例详情时,是否隐藏环境变量信息。取值范围:'."\n" + ."\n" + .'- false(默认值):查询ECI实例详情时,不隐藏环境变量信息。'."\n" + .'- true:查询ECI实例详情时,不返回环境变量信息。在环境变量带有敏感信息时,配置为true可以提高安全性。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'SecurityContextRunAsGroup' => ['description' => '设置运行容器的用户组。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3000'], + 'SecurityContextRunAsNonRoot' => ['description' => '是否以非root模式运行容器。取值范围:'."\n" + .'- true:非root模式'."\n" + .'- false(默认值):root模式', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'SecurityContextPrivileged' => ['description' => '容器是否启用特权,即是否以特权模式运行容器。取值范围:'."\n" + .'- true:启用特权'."\n" + .'- false(默认值):不启用特权'."\n" + ."\n" + .'> 特权容器功能正在内测中。如需体验,请提交工单申请。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], 'required' => false, ], @@ -1459,68 +930,26 @@ 'description' => '数据卷信息。', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'description' => '数据卷类型。取值范围:'."\n" - ."\n" - .'- EmptyDirVolume:EmptyDir类型的数据卷,表示空目录。'."\n" - .'- NFSVolume:NFS类型的数据卷,表示网络文件系统。'."\n" - .'- ConfigFileVolume:ConfigFile类型的数据卷,表示配置文件。'."\n" - .'- FlexVolume:使用FlexVolume插件扩展存储类型,支持挂载云盘。'."\n" - .'- HostPathVolume:HostPath类型的数据卷,表示主机节点的文件或目录。该类型仅对白名单用户开放使用。'."\n" - .'- DiskVolume(不推荐):云盘数据卷。建议使用FlexVolume挂载云盘。', - 'type' => 'string', - 'required' => false, - 'example' => 'ConfigFileVolume', - ], - 'DiskVolume.DiskSize' => [ - 'description' => 'DiskVolume的大小。单位为GiB。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '15', - ], - 'NFSVolume.Path' => [ - 'description' => 'NFS数据卷路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/share', - ], - 'DiskVolume.FsType' => [ - 'description' => 'DiskVolume的系统类型。', - 'type' => 'string', - 'required' => false, - 'example' => 'xfs', - ], - 'FlexVolume.FsType' => [ - 'description' => '挂载的文件系统类型,默认取决于FlexVolume的script。', - 'type' => 'string', - 'required' => false, - 'example' => 'ext4', - ], - 'HostPathVolume.Type' => [ - 'description' => 'HostPath Volume的类型。取值范围:'."\n" - ."\n" - .' - Directory:目录。'."\n" - .'- File:文件。'."\n" - ."\n" - .'> HostPath Volume仅对白名单用户开放使用。', - 'type' => 'string', - 'required' => false, - 'example' => 'Directory', - ], - 'ConfigFileVolume.DefaultMode' => [ - 'description' => 'ConfigFileVolume默认的权限。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0644', - ], - 'NFSVolume.ReadOnly' => [ - 'description' => 'NFS数据卷是否只读。默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'Type' => ['description' => '数据卷类型。取值范围:'."\n" + ."\n" + .'- EmptyDirVolume:EmptyDir类型的数据卷,表示空目录。'."\n" + .'- NFSVolume:NFS类型的数据卷,表示网络文件系统。'."\n" + .'- ConfigFileVolume:ConfigFile类型的数据卷,表示配置文件。'."\n" + .'- FlexVolume:使用FlexVolume插件扩展存储类型,支持挂载云盘。'."\n" + .'- HostPathVolume:HostPath类型的数据卷,表示主机节点的文件或目录。该类型仅对白名单用户开放使用。'."\n" + .'- DiskVolume(不推荐):云盘数据卷。建议使用FlexVolume挂载云盘。', 'type' => 'string', 'required' => false, 'example' => 'ConfigFileVolume'], + 'DiskVolume.DiskSize' => ['description' => 'DiskVolume的大小。单位为GiB。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '15'], + 'NFSVolume.Path' => ['description' => 'NFS数据卷路径。', 'type' => 'string', 'required' => false, 'example' => '/share'], + 'DiskVolume.FsType' => ['description' => 'DiskVolume的系统类型。', 'type' => 'string', 'required' => false, 'example' => 'xfs'], + 'FlexVolume.FsType' => ['description' => '挂载的文件系统类型,默认取决于FlexVolume的script。', 'type' => 'string', 'required' => false, 'example' => 'ext4'], + 'HostPathVolume.Type' => ['description' => 'HostPath Volume的类型。取值范围:'."\n" + ."\n" + .' - Directory:目录。'."\n" + .'- File:文件。'."\n" + ."\n" + .'> HostPath Volume仅对白名单用户开放使用。', 'type' => 'string', 'required' => false, 'example' => 'Directory'], + 'ConfigFileVolume.DefaultMode' => ['description' => 'ConfigFileVolume默认的权限。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0644'], + 'NFSVolume.ReadOnly' => ['description' => 'NFS数据卷是否只读。默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], 'ConfigFileVolume.ConfigFileToPath' => [ 'description' => 'ConfigFile类型的数据卷信息。'."\n" ."\n" @@ -1530,104 +959,48 @@ 'description' => 'ConfigFile类型的数据卷信息。', 'type' => 'object', 'properties' => [ - 'Path' => [ - 'description' => '相对于挂载目录,配置文件所在的相对文件路径。', - 'type' => 'string', - 'required' => false, - 'example' => 'test/config-test.cnf', - ], - 'Mode' => [ - 'description' => '配置文件的权限,如果没有设置,则采用ConfigFileVolume.DefaultMode的值。采用四位八进制数表示,例如0644表示权限为rw-r–r--,即用户权限为rw-,用户所在组权限为r--,其他用户权限为r--。'."\n" - ."\n" - .'权限说明如下:'."\n" - ."\n" - .'- `---`:没有任何权限,八进制值为0。'."\n" - .'- `--x`:只有执行权限,八进制值为1。'."\n" - .'- ` -w-`:只有写入权限,八进制值为2。'."\n" - .'- `-wx`:有写入和执行权限,八进制值为3。'."\n" - .'- `r--`:只有读取权限,八进制值为4。'."\n" - .'- `r-x`:有读取和执行权限,八进制值为5。'."\n" - .'- `rw-`:有读取和写入权限,八进制值为6。'."\n" - .'- `rwx`:具有读取、写入和执行权限,八进制值为7。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0644', - ], - 'Content' => [ - 'description' => '配置文件内容,需要将内容进行Base64编码。 '."\n" - .'单个配置文件不能大于32 KB。', - 'type' => 'string', - 'required' => false, - 'example' => 'bGl1bWk=', - ], + 'Path' => ['description' => '相对于挂载目录,配置文件所在的相对文件路径。', 'type' => 'string', 'required' => false, 'example' => 'test/config-test.cnf'], + 'Mode' => ['description' => '配置文件的权限,如果没有设置,则采用ConfigFileVolume.DefaultMode的值。采用四位八进制数表示,例如0644表示权限为rw-r–r--,即用户权限为rw-,用户所在组权限为r--,其他用户权限为r--。'."\n" + ."\n" + .'权限说明如下:'."\n" + ."\n" + .'- `---`:没有任何权限,八进制值为0。'."\n" + .'- `--x`:只有执行权限,八进制值为1。'."\n" + .'- ` -w-`:只有写入权限,八进制值为2。'."\n" + .'- `-wx`:有写入和执行权限,八进制值为3。'."\n" + .'- `r--`:只有读取权限,八进制值为4。'."\n" + .'- `r-x`:有读取和执行权限,八进制值为5。'."\n" + .'- `rw-`:有读取和写入权限,八进制值为6。'."\n" + .'- `rwx`:具有读取、写入和执行权限,八进制值为7。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0644'], + 'Content' => ['description' => '配置文件内容,需要将内容进行Base64编码。 '."\n" + .'单个配置文件不能大于32 KB。', 'type' => 'string', 'required' => false, 'example' => 'bGl1bWk='], ], 'required' => false, ], 'required' => false, 'maxItems' => 90, ], - 'HostPathVolume.Path' => [ - 'description' => 'HostPath Volume在主机上的目录路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/pod/data', - ], - 'FlexVolume.Options' => [ - 'description' => 'FlexVolume对象选项列表。为KV形式,采用JSON传递。'."\n" - ."\n" - .'例如通过FlexVolume挂载云盘时,Options表示云盘的配置参数,可配置的参数如下:'."\n" - ."\n" - .'- volumeId:已有云盘ID。'."\n" - .'- volumeSize:云盘大小,单位为GiB。取值范围为20~32768。'."\n" - .'- performanceLevel:云盘性能等级。更多信息,请参见[云盘性能等级](~~25382~~)。'."\n" - .'- deleteWithInstance:是否随实例释放,默认为false。'."\n" - .'- encrypted:是否加密云盘,默认为false。更多信息,请参见[加密概述](~~59643~~)。'."\n" - .'- kmsKeyId:加密云盘时,云盘使用的KMS密钥ID。', - 'type' => 'string', - 'required' => false, - 'example' => '{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}', - ], - 'FlexVolume.Driver' => [ - 'description' => '使用FlexVolume插件挂载数据卷时的驱动类型。取值范围如下:'."\n" - ."\n" - .'- alicloud/disk:挂载云盘。'."\n" - .'- alicloud/nas:挂载NAS。'."\n" - .'- alicloud/oss:挂载OSS。', - 'type' => 'string', - 'required' => false, - 'example' => 'alicloud/disk', - ], - 'NFSVolume.Server' => [ - 'description' => 'NFS服务器地址。', - 'type' => 'string', - 'required' => false, - 'example' => '3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com', - ], - 'DiskVolume.DiskId' => [ - 'description' => 'DiskVolume的ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'd-xx', - ], - 'Name' => [ - 'description' => '数据卷名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'default-volume1', - ], - 'EmptyDirVolume.Medium' => [ - 'description' => 'EmptyDirVolume的存储媒介,默认为空,使用node文件系统;支持 memory,表示使用内存。', - 'type' => 'string', - 'required' => false, - 'example' => 'memory', - ], - 'EmptyDirVolume.SizeLimit' => [ - 'description' => 'EmptyDirVolume的大小。单位为GiB。', - 'type' => 'string', - 'required' => false, - 'example' => '2', - ], + 'HostPathVolume.Path' => ['description' => 'HostPath Volume在主机上的目录路径。', 'type' => 'string', 'required' => false, 'example' => '/pod/data'], + 'FlexVolume.Options' => ['description' => 'FlexVolume对象选项列表。为KV形式,采用JSON传递。'."\n" + ."\n" + .'例如通过FlexVolume挂载云盘时,Options表示云盘的配置参数,可配置的参数如下:'."\n" + ."\n" + .'- volumeId:已有云盘ID。'."\n" + .'- volumeSize:云盘大小,单位为GiB。取值范围为20~32768。'."\n" + .'- performanceLevel:云盘性能等级。更多信息,请参见[云盘性能等级](~~25382~~)。'."\n" + .'- deleteWithInstance:是否随实例释放,默认为false。'."\n" + .'- encrypted:是否加密云盘,默认为false。更多信息,请参见[加密概述](~~59643~~)。'."\n" + .'- kmsKeyId:加密云盘时,云盘使用的KMS密钥ID。', 'type' => 'string', 'required' => false, 'example' => '{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}'], + 'FlexVolume.Driver' => ['description' => '使用FlexVolume插件挂载数据卷时的驱动类型。取值范围如下:'."\n" + ."\n" + .'- alicloud/disk:挂载云盘。'."\n" + .'- alicloud/nas:挂载NAS。'."\n" + .'- alicloud/oss:挂载OSS。', 'type' => 'string', 'required' => false, 'example' => 'alicloud/disk'], + 'NFSVolume.Server' => ['description' => 'NFS服务器地址。', 'type' => 'string', 'required' => false, 'example' => '3f9cd4a596-naw76.cn-shanghai.nas.aliyuncs.com'], + 'DiskVolume.DiskId' => ['description' => 'DiskVolume的ID。', 'type' => 'string', 'required' => false, 'example' => 'd-xx'], + 'Name' => ['description' => '数据卷名称。', 'type' => 'string', 'required' => false, 'example' => 'default-volume1'], + 'EmptyDirVolume.Medium' => ['description' => 'EmptyDirVolume的存储媒介,默认为空,使用node文件系统;支持 memory,表示使用内存。', 'type' => 'string', 'required' => false, 'example' => 'memory'], + 'EmptyDirVolume.SizeLimit' => ['description' => 'EmptyDirVolume的大小。单位为GiB。', 'type' => 'string', 'required' => false, 'example' => '2'], ], 'required' => false, ], @@ -1651,23 +1024,13 @@ ."\n" .'> NET_RAW默认不支持,需提交工单申请。', 'type' => 'array', - 'items' => [ - 'description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" - ."\n" - .'> NET_RAW默认不支持,需提交工单申请。', - 'type' => 'string', - 'required' => false, - 'example' => 'NET_ADMIN', - ], + 'items' => ['description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" + ."\n" + .'> NET_RAW默认不支持,需提交工单申请。', 'type' => 'string', 'required' => false, 'example' => 'NET_ADMIN'], 'required' => false, 'maxItems' => 100, ], - 'Image' => [ - 'description' => '容器使用的镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'nginx', - ], + 'Image' => ['description' => '容器使用的镜像。', 'type' => 'string', 'required' => false, 'example' => 'nginx'], 'VolumeMount' => [ 'description' => '挂载数据卷信息列表。', 'type' => 'array', @@ -1675,44 +1038,19 @@ 'description' => '挂载数据卷信息列表。', 'type' => 'object', 'properties' => [ - 'MountPropagation' => [ - 'description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。取值范围:'."\n" - ."\n" - .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" - ."\n" - .'- HostToContainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" - ."\n" - .'- Bidirectional:和HostToContainer类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。'."\n" - ."\n" - .'默认值:None', - 'type' => 'string', - 'required' => false, - 'example' => 'None', - ], - 'MountPath' => [ - 'description' => '挂载目录,容器的挂载目录下的内容被volume的内容直接覆盖,所以要慎用。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/share/', - ], - 'ReadOnly' => [ - 'description' => '挂载路径是否只读。默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'SubPath' => [ - 'description' => '数据卷下的子目录,方便Pod将同一个Volume下不同目录挂载到容器不同目录。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/sub/', - ], - 'Name' => [ - 'description' => '挂载数据卷的名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test-empty', - ], + 'MountPropagation' => ['description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。取值范围:'."\n" + ."\n" + .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" + ."\n" + .'- HostToContainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" + ."\n" + .'- Bidirectional:和HostToContainer类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。'."\n" + ."\n" + .'默认值:None', 'type' => 'string', 'required' => false, 'example' => 'None'], + 'MountPath' => ['description' => '挂载目录,容器的挂载目录下的内容被volume的内容直接覆盖,所以要慎用。', 'type' => 'string', 'required' => false, 'example' => '/usr/share/'], + 'ReadOnly' => ['description' => '挂载路径是否只读。默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'SubPath' => ['description' => '数据卷下的子目录,方便Pod将同一个Volume下不同目录挂载到容器不同目录。', 'type' => 'string', 'required' => false, 'example' => '/usr/sub/'], + 'Name' => ['description' => '挂载数据卷的名称。', 'type' => 'string', 'required' => false, 'example' => 'test-empty'], ], 'required' => false, ], @@ -1726,40 +1064,19 @@ 'description' => 'init容器端口号。', 'type' => 'object', 'properties' => [ - 'Protocol' => [ - 'description' => '协议类型。取值范围:'."\n" - ."\n" - .'- TCP'."\n" - .'- UDP', - 'type' => 'string', - 'required' => false, - 'example' => 'TCP', - ], - 'Port' => [ - 'description' => '端口号。取值范围:1~65535。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '8888', - ], + 'Protocol' => ['description' => '协议类型。取值范围:'."\n" + ."\n" + .'- TCP'."\n" + .'- UDP', 'type' => 'string', 'required' => false, 'example' => 'TCP'], + 'Port' => ['description' => '端口号。取值范围:1~65535。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8888'], ], 'required' => false, ], 'required' => false, 'maxItems' => 101, ], - 'SecurityContext.ReadOnlyRootFilesystem' => [ - 'description' => '容器运行的根文件系统是否为只读。目前仅支持配置为true。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'TerminationMessagePath' => [ - 'description' => '容器退出的消息来源。当容器退出时,从指定的终止消息文件中检索终止消息。', - 'type' => 'string', - 'required' => false, - 'example' => '/tmp/termination-log', - ], + 'SecurityContext.ReadOnlyRootFilesystem' => ['description' => '容器运行的根文件系统是否为只读。目前仅支持配置为true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'TerminationMessagePath' => ['description' => '容器退出的消息来源。当容器退出时,从指定的终止消息文件中检索终止消息。', 'type' => 'string', 'required' => false, 'example' => '/tmp/termination-log'], 'EnvironmentVar' => [ 'description' => '容器的环境变量信息列表。', 'type' => 'array', @@ -1767,61 +1084,25 @@ 'description' => '容器的环境变量信息列表。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '环境变量名。长度为1~128位。格式要求:`[0-9a-zA-Z]`,以及下划线,不能以数字开头。', - 'type' => 'string', - 'required' => false, - 'example' => 'Path', - ], - 'Value' => [ - 'description' => '环境变量值。长度为0~256位。'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '/usr/bin/', - ], - 'FieldRef.FieldPath' => [ - 'description' => '环境变量值引用。目前只支持配置为status.podIP。', - 'type' => 'string', - 'required' => false, - 'example' => 'status.podIP', - ], + 'Key' => ['description' => '环境变量名。长度为1~128位。格式要求:`[0-9a-zA-Z]`,以及下划线,不能以数字开头。', 'type' => 'string', 'required' => false, 'example' => 'Path'], + 'Value' => ['description' => '环境变量值。长度为0~256位。'."\n", 'type' => 'string', 'required' => false, 'example' => '/usr/bin/'], + 'FieldRef.FieldPath' => ['description' => '环境变量值引用。目前只支持配置为status.podIP。', 'type' => 'string', 'required' => false, 'example' => 'status.podIP'], ], 'required' => false, ], 'required' => false, 'maxItems' => 241, ], - 'ImagePullPolicy' => [ - 'description' => '镜像拉取策略。取值范围:'."\n" - .'- Always:总是拉取。每次都拉取镜像。'."\n" - .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" - .'- Never:从不拉取。使用本地镜像,不拉取镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'Always', - ], - 'WorkingDir' => [ - 'description' => '工作目录。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/local', - ], - 'Cpu' => [ - 'description' => '容器的vCPU大小。单位:核。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '0.5', - ], + 'ImagePullPolicy' => ['description' => '镜像拉取策略。取值范围:'."\n" + .'- Always:总是拉取。每次都拉取镜像。'."\n" + .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" + .'- Never:从不拉取。使用本地镜像,不拉取镜像。', 'type' => 'string', 'required' => false, 'example' => 'Always'], + 'WorkingDir' => ['description' => '工作目录。', 'type' => 'string', 'required' => false, 'example' => '/usr/local'], + 'Cpu' => ['description' => '容器的vCPU大小。单位:核。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '0.5'], 'Arg' => [ 'description' => '容器启动参数。', 'type' => 'array', - 'items' => [ - 'description' => '容器启动参数。', - 'type' => 'string', - 'required' => false, - 'example' => '10', - ], + 'items' => ['description' => '容器启动参数。', 'type' => 'string', 'required' => false, 'example' => '10'], 'required' => false, 'maximum' => '65535', 'example' => '10', @@ -1830,49 +1111,16 @@ 'Command' => [ 'description' => '容器启动指令。', 'type' => 'array', - 'items' => [ - 'description' => '容器启动指令。', - 'type' => 'string', - 'required' => false, - 'example' => 'sleep', - ], + 'items' => ['description' => '容器启动指令。', 'type' => 'string', 'required' => false, 'example' => 'sleep'], 'required' => false, 'example' => 'sleep', 'maxItems' => 101, ], - 'Gpu' => [ - 'description' => '指定容器使用的GPU个数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'SecurityContext.RunAsUser' => [ - 'description' => '设置运行容器的用户ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '587', - ], - 'Memory' => [ - 'description' => '容器的内存大小。单位:GiB。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '1.0', - ], - 'TerminationMessagePolicy' => [ - 'description' => '挂载信息,默认为空。', - 'type' => 'string', - 'required' => false, - 'example' => '*****', - ], - 'Name' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test-init', - ], + 'Gpu' => ['description' => '指定容器使用的GPU个数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'SecurityContext.RunAsUser' => ['description' => '设置运行容器的用户ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '587'], + 'Memory' => ['description' => '容器的内存大小。单位:GiB。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1.0'], + 'TerminationMessagePolicy' => ['description' => '挂载信息,默认为空。', 'type' => 'string', 'required' => false, 'example' => '*****'], + 'Name' => ['description' => '容器名称。', 'type' => 'string', 'required' => false, 'example' => 'test-init'], ], 'required' => false, ], @@ -1887,12 +1135,7 @@ 'schema' => [ 'description' => 'DNS服务器的IP地址列表。', 'type' => 'array', - 'items' => [ - 'description' => 'DNS服务器的IP地址列表。', - 'type' => 'string', - 'required' => false, - 'example' => '172.10.*.**', - ], + 'items' => ['description' => 'DNS服务器的IP地址列表。', 'type' => 'string', 'required' => false, 'example' => '172.10.*.**'], 'required' => false, 'example' => '172.10.*.**', 'maxItems' => 20, @@ -1905,12 +1148,7 @@ 'schema' => [ 'description' => 'DNS搜索域列表。', 'type' => 'array', - 'items' => [ - 'description' => 'DNS搜索域列表。', - 'type' => 'string', - 'required' => false, - 'example' => 'svc.local.kubernetes', - ], + 'items' => ['description' => 'DNS搜索域列表。', 'type' => 'string', 'required' => false, 'example' => 'svc.local.kubernetes'], 'required' => false, 'example' => 'svc.local.kubenetes', 'maxItems' => 20, @@ -1927,18 +1165,8 @@ 'description' => '对象的选项列表。', 'type' => 'object', 'properties' => [ - 'Value' => [ - 'description' => '对象的Value。', - 'type' => 'string', - 'required' => false, - 'example' => 'value', - ], - 'Name' => [ - 'description' => '对象的Name。', - 'type' => 'string', - 'required' => false, - 'example' => 'name', - ], + 'Value' => ['description' => '对象的Value。', 'type' => 'string', 'required' => false, 'example' => 'value'], + 'Name' => ['description' => '对象的Name。', 'type' => 'string', 'required' => false, 'example' => 'name'], ], 'required' => false, ], @@ -1957,21 +1185,11 @@ 'description' => '添加一个ECI的别名。', 'type' => 'object', 'properties' => [ - 'Ip' => [ - 'description' => '添加IP。', - 'type' => 'string', - 'required' => false, - 'example' => '1.1.1.1', - ], + 'Ip' => ['description' => '添加IP。', 'type' => 'string', 'required' => false, 'example' => '1.1.1.1'], 'Hostname' => [ 'description' => '添加主机名。', 'type' => 'array', - 'items' => [ - 'description' => '添加主机名。', - 'type' => 'string', - 'required' => false, - 'example' => 'hehe.com', - ], + 'items' => ['description' => '添加主机名。', 'type' => 'string', 'required' => false, 'example' => 'hehe.com'], 'required' => false, 'example' => 'hehe.com', 'maxItems' => 51, @@ -1994,21 +1212,11 @@ 'description' => '通过安全上下文修改安全sysctl参数。更多信息,请参见[配置Security Context](~~462313~~)。', 'type' => 'object', 'properties' => [ - 'Value' => [ - 'description' => '通过安全上下文修改sysctl参数时,安全sysctl参数的取值。', - 'type' => 'string', - 'required' => false, - 'example' => '65536', - ], - 'Name' => [ - 'description' => '通过安全上下文修改sysctl参数时,安全sysctl参数的名称。取值范围:'."\n" - ."\n" - .'- net.ipv4.ping_group_range'."\n" - .'- net.ipv4.ip_unprivileged_port_start', - 'type' => 'string', - 'required' => false, - 'example' => 'net.ipv4.ping_group_range', - ], + 'Value' => ['description' => '通过安全上下文修改sysctl参数时,安全sysctl参数的取值。', 'type' => 'string', 'required' => false, 'example' => '65536'], + 'Name' => ['description' => '通过安全上下文修改sysctl参数时,安全sysctl参数的名称。取值范围:'."\n" + ."\n" + .'- net.ipv4.ping_group_range'."\n" + .'- net.ipv4.ip_unprivileged_port_start', 'type' => 'string', 'required' => false, 'example' => 'net.ipv4.ping_group_range'], ], 'required' => false, ], @@ -2027,24 +1235,14 @@ 'description' => '通过安全上下文修改非安全sysctl参数。更多信息,请参见[配置Security Context](~~462313~~)。', 'type' => 'object', 'properties' => [ - 'Value' => [ - 'description' => '通过安全上下文修改sysctl参数时,非安全sysctl参数的取值。', - 'type' => 'string', - 'required' => false, - 'example' => '65536', - ], - 'Name' => [ - 'description' => '通过安全上下文修改sysctl参数时,非安全sysctl参数的名称。取值范围:'."\n" - ."\n" - .'- kernel.shm*(kernel.shm_rmid_forced除外)'."\n" - .'- kernel.msg*'."\n" - .'- kernel.sem'."\n" - .'- fs.mqueue.*'."\n" - .'- net.*(net.ipv4.tcp_syncookies、net.ipv4.ping_group_range、net.ipv4.ip_unprivileged_port_start除外)', - 'type' => 'string', - 'required' => false, - 'example' => 'kernel.msgmax', - ], + 'Value' => ['description' => '通过安全上下文修改sysctl参数时,非安全sysctl参数的取值。', 'type' => 'string', 'required' => false, 'example' => '65536'], + 'Name' => ['description' => '通过安全上下文修改sysctl参数时,非安全sysctl参数的名称。取值范围:'."\n" + ."\n" + .'- kernel.shm*(kernel.shm_rmid_forced除外)'."\n" + .'- kernel.msg*'."\n" + .'- kernel.sem'."\n" + .'- fs.mqueue.*'."\n" + .'- net.*(net.ipv4.tcp_syncookies、net.ipv4.ping_group_range、net.ipv4.ip_unprivileged_port_start除外)', 'type' => 'string', 'required' => false, 'example' => 'kernel.msgmax'], ], 'required' => false, ], @@ -2059,12 +1257,7 @@ 'schema' => [ 'description' => 'NTP服务器。', 'type' => 'array', - 'items' => [ - 'description' => 'NTP服务器。', - 'type' => 'string', - 'required' => false, - 'example' => 'ntp.cloud.aliyuncs.com', - ], + 'items' => ['description' => 'NTP服务器。', 'type' => 'string', 'required' => false, 'example' => 'ntp.cloud.aliyuncs.com'], 'required' => false, 'example' => 'ntp.cloud.aliyuncs.com', 'maxItems' => 21, @@ -2084,46 +1277,16 @@ 'Domain' => [ 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', 'type' => 'array', - 'items' => [ - 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', - 'type' => 'string', - 'required' => false, - 'example' => '*****-****-registry.cn-beijing.cr.aliyuncs.com', - ], + 'items' => ['description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', 'type' => 'string', 'required' => false, 'example' => '*****-****-registry.cn-beijing.cr.aliyuncs.com'], 'required' => false, 'example' => '*****-****-registry.cn-beijing.cr.aliyuncs.com', 'maxItems' => 100, ], - 'InstanceName' => [ - 'description' => 'ACR企业版实例的名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'acr-test', - ], - 'InstanceId' => [ - 'description' => 'ACR企业版实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cri-nwj395hgf6f3****', - ], - 'RegionId' => [ - 'description' => 'ACR企业版实例所属地域。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], - 'ArnService' => [ - 'description' => 'ECI实例等资源归属账号下的RAM角色的ARN。', - 'type' => 'string', - 'required' => false, - 'example' => 'acs:ram::1609982529******:role/role-assume', - ], - 'ArnUser' => [ - 'description' => 'ACR实例归属账号下的RAM角色的ARN。', - 'type' => 'string', - 'required' => false, - 'example' => 'acs:ram::1298452580******:role/role-acr', - ], + 'InstanceName' => ['description' => 'ACR企业版实例的名称。', 'type' => 'string', 'required' => false, 'example' => 'acr-test'], + 'InstanceId' => ['description' => 'ACR企业版实例ID。', 'type' => 'string', 'required' => false, 'example' => 'cri-nwj395hgf6f3****'], + 'RegionId' => ['description' => 'ACR企业版实例所属地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], + 'ArnService' => ['description' => 'ECI实例等资源归属账号下的RAM角色的ARN。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1609982529******:role/role-assume'], + 'ArnUser' => ['description' => 'ACR实例归属账号下的RAM角色的ARN。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1298452580******:role/role-acr'], ], 'required' => false, ], @@ -2134,215 +1297,122 @@ [ 'name' => 'SpotDuration', 'in' => 'query', - 'schema' => [ - 'description' => '抢占式实例的保护期。单位为小时。默认为1。可设置为0,表示无保护期。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '抢占式实例的保护期。单位为小时。默认为1。可设置为0,表示无保护期。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], ], [ 'name' => 'StrictSpot', 'in' => 'query', - 'schema' => [ - 'description' => '是否周期执行:'."\n" - ."\n" - .'- true:周期执行。'."\n" - .'- false:非周期行执行。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '是否周期执行:'."\n" + ."\n" + .'- true:周期执行。'."\n" + .'- false:非周期行执行。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ 'name' => 'PlainHttpRegistry', 'in' => 'query', - 'schema' => [ - 'description' => '自建镜像仓库地址。使用HTTP协议的自建镜像仓库中的镜像创建ECI实例时,需配置该参数,使得ECI使用HTTP协议拉取镜像,避免因协议不同而导致镜像拉取失败。', - 'type' => 'string', - 'required' => false, - 'example' => '"harbor***.pre.com,192.168.XX.XX:5000,reg***.test.com:80"', - ], + 'schema' => ['description' => '自建镜像仓库地址。使用HTTP协议的自建镜像仓库中的镜像创建ECI实例时,需配置该参数,使得ECI使用HTTP协议拉取镜像,避免因协议不同而导致镜像拉取失败。', 'type' => 'string', 'required' => false, 'example' => '"harbor***.pre.com,192.168.XX.XX:5000,reg***.test.com:80"'], ], [ 'name' => 'InsecureRegistry', 'in' => 'query', - 'schema' => [ - 'description' => '自建镜像仓库地址。使用自签发证书的自建镜像仓库中的镜像创建ECI实例时,需配置该参数来跳过证书认证,避免因证书认证失败而导致镜像拉取失败。', - 'type' => 'string', - 'required' => false, - 'example' => '"harbor***.pre.com,192.168.XX.XX:5000,reg***.test.com:80"', - ], + 'schema' => ['description' => '自建镜像仓库地址。使用自签发证书的自建镜像仓库中的镜像创建ECI实例时,需配置该参数来跳过证书认证,避免因证书认证失败而导致镜像拉取失败。', 'type' => 'string', 'required' => false, 'example' => '"harbor***.pre.com,192.168.XX.XX:5000,reg***.test.com:80"'], ], [ 'name' => 'ImageAccelerateMode', 'in' => 'query', - 'schema' => [ - 'description' => '镜像加速模式。取值范围:'."\n" - ."\n" - .'- nydus:使用Nydus加速,需镜像本身支持。'."\n" - .'- dadi:使用DADI加速,需镜像本身支持。'."\n" - .'- p2p:使用P2P加速,需镜像本身支持。'."\n" - .'- imc:使用镜像缓存加速。', - 'type' => 'string', - 'required' => false, - 'example' => 'imc', - ], + 'schema' => ['description' => '镜像加速模式。取值范围:'."\n" + ."\n" + .'- nydus:使用Nydus加速,需镜像本身支持。'."\n" + .'- dadi:使用DADI加速,需镜像本身支持。'."\n" + .'- p2p:使用P2P加速,需镜像本身支持。'."\n" + .'- imc:使用镜像缓存加速。', 'type' => 'string', 'required' => false, 'example' => 'imc'], ], [ 'name' => 'Ipv6GatewayBandwidthEnable', 'in' => 'query', - 'schema' => [ - 'description' => '是否开通ECI的IPv6公网通信能力。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '是否开通ECI的IPv6公网通信能力。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ 'name' => 'Ipv6GatewayBandwidth', 'in' => 'query', - 'schema' => [ - 'description' => '当Ipv6GatewayBandwidthEnable配置为true时,配置IPv6地址的公网带宽峰值。取值如下:'."\n" - ."\n" - .'- 当IPv6网关的公网带宽计费方式为按固定带宽计费时,IPv6地址的公网带宽范围为1~2000 Mbps。'."\n" - .'- 当IPv6网关的公网带宽计费方式为按使用流量计费时,IPv6地址的公网带宽范围受网关规格约束。'."\n" - .' - 网关为免费版,IPv6地址的公网带宽范围为1~200 Mbps。'."\n" - .' - 网关为企业版,IPv6地址的公网带宽范围为1~500 Mbps。'."\n" - .' - 网关为企业增强版,IPv6地址的公网带宽范围为1~1000 Mbps。'."\n" - ."\n" - .'默认值为网关对应带宽范围的最大值。', - 'type' => 'string', - 'required' => false, - 'example' => '100', - ], + 'schema' => ['description' => '当Ipv6GatewayBandwidthEnable配置为true时,配置IPv6地址的公网带宽峰值。取值如下:'."\n" + ."\n" + .'- 当IPv6网关的公网带宽计费方式为按固定带宽计费时,IPv6地址的公网带宽范围为1~2000 Mbps。'."\n" + .'- 当IPv6网关的公网带宽计费方式为按使用流量计费时,IPv6地址的公网带宽范围受网关规格约束。'."\n" + .' - 网关为免费版,IPv6地址的公网带宽范围为1~200 Mbps。'."\n" + .' - 网关为企业版,IPv6地址的公网带宽范围为1~500 Mbps。'."\n" + .' - 网关为企业增强版,IPv6地址的公网带宽范围为1~1000 Mbps。'."\n" + ."\n" + .'默认值为网关对应带宽范围的最大值。', 'type' => 'string', 'required' => false, 'example' => '100'], ], [ 'name' => 'ContainerResourceView', 'in' => 'query', - 'schema' => [ - 'description' => '当ECI规格比申请规格大时,可以开启该配置,确保容器内看到的资源跟申请的资源保持一致。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '当ECI规格比申请规格大时,可以开启该配置,确保容器内看到的资源跟申请的资源保持一致。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'FixedIp', 'in' => 'query', - 'schema' => [ - 'description' => '配置为true表示实例启用固定IP地址。具体请参见[配置ECI实例使用固定IP地址](~~2381086~~)。', - 'type' => 'string', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '配置为true表示实例启用固定IP地址。具体请参见[配置ECI实例使用固定IP地址](~~2381086~~)。', 'type' => 'string', 'required' => false, 'example' => 'true'], ], [ 'name' => 'FixedIpRetainHour', 'in' => 'query', - 'schema' => [ - 'description' => '固定IP地址空闲后的保留时长,即启用固定IP地址的实例释放后,其固定IP地址的保留时长,单位为小时。默认值为48。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '24', - ], + 'schema' => ['description' => '固定IP地址空闲后的保留时长,即启用固定IP地址的实例释放后,其固定IP地址的保留时长,单位为小时。默认值为48。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '24'], ], [ 'name' => 'DataCacheBucket', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存Bucket。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['description' => '数据缓存Bucket。', 'type' => 'string', 'required' => false, 'example' => 'default'], ], [ 'name' => 'DataCachePL', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存使用的云盘的性能等级。 '."\n" - .'优先使用ESSD云盘,性能等级默认为PL1。', - 'type' => 'string', - 'required' => false, - 'example' => 'PL1', - ], + 'schema' => ['description' => '数据缓存使用的云盘的性能等级。 '."\n" + .'优先使用ESSD云盘,性能等级默认为PL1。', 'type' => 'string', 'required' => false, 'example' => 'PL1'], ], [ 'name' => 'DataCacheProvisionedIops', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存使用ESSD AutoPL云盘时,ESSD AutoPL云盘预配置的读写IOPS。 '."\n" - .'取值范围:0~min{50000, 1000 * 容量-基准性能}。基准性能=min{1800+50 * 容量, 50000}。 '."\n" - .'更多信息,请参见[ESSD AutoPL云盘](~~368372~~)。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '40000', - ], + 'schema' => ['description' => '数据缓存使用ESSD AutoPL云盘时,ESSD AutoPL云盘预配置的读写IOPS。 '."\n" + .'取值范围:0~min{50000, 1000 * 容量-基准性能}。基准性能=min{1800+50 * 容量, 50000}。 '."\n" + .'更多信息,请参见[ESSD AutoPL云盘](~~368372~~)。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '40000'], ], [ 'name' => 'DataCacheBurstingEnabled', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存使用ESSD AutoPL云盘时,是否开启Burst(性能突发)。更多信息,请参见[ESSD AutoPL云盘](~~368372~~)。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '数据缓存使用ESSD AutoPL云盘时,是否开启Burst(性能突发)。更多信息,请参见[ESSD AutoPL云盘](~~368372~~)。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'DryRun', 'in' => 'query', - 'schema' => [ - 'description' => '是否只预检此次请求。取值范围:'."\n" - ."\n" - .'- true:发送检查请求,不会创建ECI实例。检查项包括是否填写了必填参数、请求格式、业务限制和库存。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码DryRun.Success。'."\n" - .'- false(默认):发送正常请求,通过检查后直接创建ECI实例。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '是否只预检此次请求。取值范围:'."\n" + ."\n" + .'- true:发送检查请求,不会创建ECI实例。检查项包括是否填写了必填参数、请求格式、业务限制和库存。如果检查不通过,则返回对应错误。如果检查通过,则返回错误码DryRun.Success。'."\n" + .'- false(默认):发送正常请求,通过检查后直接创建ECI实例。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ 'name' => 'PrivateIpAddress', 'in' => 'query', - 'schema' => [ - 'description' => '指定ECI实例的私网IP地址。目前仅支持指定IPv4地址,请确保该IP地址没有被占用。', - 'type' => 'string', - 'required' => false, - 'example' => '172.16.0.1', - ], + 'schema' => ['description' => '指定ECI实例的私网IP地址。目前仅支持指定IPv4地址,请确保该IP地址没有被占用。', 'type' => 'string', 'required' => false, 'example' => '172.16.0.1'], ], [ 'name' => 'OsType', 'in' => 'query', - 'schema' => [ - 'description' => '指定ECI实例的操作系统。取值范围:'."\n" - ."\n" - .'- Linux(默认值)'."\n" - .'- Windows'."\n" - ."\n" - .'> Windows实例正在邀测中,如需使用,请提交工单申请。', - 'type' => 'string', - 'required' => false, - 'example' => 'Windows', - ], + 'schema' => ['description' => '指定ECI实例的操作系统。取值范围:'."\n" + ."\n" + .'- Linux(默认值)'."\n" + .'- Windows'."\n" + ."\n" + .'> Windows实例正在邀测中,如需使用,请提交工单申请。', 'type' => 'string', 'required' => false, 'example' => 'Windows'], ], [ 'name' => 'CpuArchitecture', 'in' => 'query', - 'schema' => [ - 'description' => '指定ECI实例的CPU架构。取值范围:'."\n" - ."\n" - .'- AMD64(默认值)'."\n" - .'- ARM64', - 'type' => 'string', - 'required' => false, - 'example' => 'ARM64', - ], + 'schema' => ['description' => '指定ECI实例的CPU架构。取值范围:'."\n" + ."\n" + .'- AMD64(默认值)'."\n" + .'- ARM64', 'type' => 'string', 'required' => false, 'example' => 'ARM64'], ], [ 'name' => 'ComputeCategory', @@ -2351,17 +1421,12 @@ 'schema' => [ 'description' => '指定算力类别。更多信息,请参见[指定算力类别创建实例](~~2638061~~)。', 'type' => 'array', - 'items' => [ - 'description' => '指定算力类别。取值范围:'."\n" - ."\n" - .'- economy:经济型'."\n" - .'- general:通用型'."\n" - ."\n" - .'支持设置多个算力类别,系统会按照设置顺序创建。', - 'type' => 'string', - 'required' => false, - 'example' => 'economy', - ], + 'items' => ['description' => '指定算力类别。取值范围:'."\n" + ."\n" + .'- economy:经济型'."\n" + .'- general:通用型'."\n" + ."\n" + .'支持设置多个算力类别,系统会按照设置顺序创建。', 'type' => 'string', 'required' => false, 'example' => 'economy'], 'required' => false, 'maxItems' => 100, ], @@ -2370,23 +1435,14 @@ 'name' => 'GpuDriverVersion', 'in' => 'query', 'allowEmptyValue' => true, - 'schema' => [ - 'description' => '指定GPU驱动版本。'."\n" - ."\n" - .'> 仅部分规格支持切换GPU驱动版本。更多信息,请参见[指定GPU规格创建实例](~~2579486~~)。', - 'type' => 'string', - 'required' => false, - 'example' => 'tesla=535'."\n", - ], + 'schema' => ['description' => '指定GPU驱动版本。'."\n" + ."\n" + .'> 仅部分规格支持切换GPU驱动版本。更多信息,请参见[指定GPU规格创建实例](~~2579486~~)。', 'type' => 'string', 'required' => false, 'example' => 'tesla=535'."\n"], ], [ 'name' => 'MaxPendingMinute', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'description' => ''], ], ], 'responses' => [ @@ -2394,330 +1450,95 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3', - ], - 'ContainerGroupId' => [ - 'description' => '实例ID,即容器组ID。', - 'type' => 'string', - 'example' => 'eci-uf6fonnghi50u374****', - ], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3'], + 'ContainerGroupId' => ['description' => '实例ID,即容器组ID。', 'type' => 'string', 'example' => 'eci-uf6fonnghi50u374****'], ], + 'description' => '', ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedName', - 'errorMessage' => 'The container group include containers with duplicate names.', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedVolumeName', - 'errorMessage' => 'The container group includes volumes with duplicate names.', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.NotSupport', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'DiskNumber.LimitExceed', - 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', - ], - [ - 'errorCode' => 'InvalidPaymentMethod.InsufficientBalance', - 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', - ], - [ - 'errorCode' => 'DiskVolume.NotInSameZone', - 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', - ], - [ - 'errorCode' => 'HighCpuMemConfigRequired', - 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', - ], - [ - 'errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', - 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', - ], - [ - 'errorCode' => 'LocalDiskAmountNotMatch', - 'errorMessage' => 'The number of local volumes does not match the instance type.', - ], - [ - 'errorCode' => 'Payfor.CreditPayInsufficientBalance', - 'errorMessage' => 'Your payment credit line is insufficient.', - ], - [ - 'errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', - 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', - ], - [ - 'errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', - 'errorMessage' => 'KMS must be enabled for encrypted disks.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', - 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', - ], - [ - 'errorCode' => 'InvalidSpotCpuMemorySpec', - 'errorMessage' => 'The specified CPU and memory are not allowed. You must create spot ECI using standard ECS specifications for CPU and memory.', - ], - [ - 'errorCode' => 'Ipv6AddressNotSupportVsw', - 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', - ], - [ - 'errorCode' => 'Ipv6AddressNotSupport', - 'errorMessage' => 'Ipv6 is not supported in specified region.', - ], - [ - 'errorCode' => 'Ipv6AddressNotSupportInstanceType', - 'errorMessage' => 'IPv6 is not supported for the specified instance type.', - ], - [ - 'errorCode' => 'EipPayInsufficientBalance', - 'errorMessage' => 'Your account does not have enough balance to purchase eip.', - ], - [ - 'errorCode' => 'EipPurchaseFlowControl', - 'errorMessage' => 'Request was denied due to eip frequent purchase.', - ], - [ - 'errorCode' => 'Throttling', - 'errorMessage' => 'You have made too many requests within a short time; your request is denied due to request throttling', - ], - [ - 'errorCode' => 'JobInstanceBatchCreateNotSupport', - 'errorMessage' => 'ECI job instance not support batch create', - ], - [ - 'errorCode' => 'JobInstanceDiskNotSupport', - 'errorMessage' => 'ECI job instance not support disk volume', - ], - [ - 'errorCode' => 'JobInstanceEipNotSupport', - 'errorMessage' => 'ECI job instance not support eip', - ], - [ - 'errorCode' => 'JobInstanceFeatureNotMatch', - 'errorMessage' => 'ECI job instance feature not match', - ], - [ - 'errorCode' => 'JobInstanceImageCacheNotSupport', - 'errorMessage' => 'ECI job instance not support image cache', - ], - [ - 'errorCode' => 'JobInstanceIPv6NotSupport', - 'errorMessage' => 'ECI job instance not support IPv6', - ], - [ - 'errorCode' => 'JobInstanceRamRoleNotSupport', - 'errorMessage' => 'ECI job instance not support ram role', - ], - [ - 'errorCode' => 'JobInstanceRegionNotSupport', - 'errorMessage' => 'ECI job instance not support in this region', - ], - [ - 'errorCode' => 'JobInstanceSpotNotSupport', - 'errorMessage' => 'ECI job instance not support spot', - ], - [ - 'errorCode' => 'InvalidInstanceTypeForEciSpotDurationBuy', - 'errorMessage' => 'Current instance type does not support spot duration instance.', - ], - [ - 'errorCode' => 'InvalidInstanceTypeForEciBuy', - 'errorMessage' => 'Sales of this current instance type is not supported in eci.', - ], - [ - 'errorCode' => 'InstanceTypeNotMatchCpuArch', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'JobInstanceEcsInstanceTypeNotSupport', - 'errorMessage' => 'Job-optimized elastic container instances cannot be created by specifying ECS instance types.', - ], - [ - 'errorCode' => 'PrivatePoolInstanceSpotNotSupport', - 'errorMessage' => 'Spot is not supported for PrivatePool.', - ], - [ - 'errorCode' => 'DryRun.Success', - 'errorMessage' => 'This request is a dryrun request with successful result.', - ], - [ - 'errorCode' => 'PrivateIpAddress.Already.InUse', - 'errorMessage' => 'The specific PrivateIpAddress already in use.', - ], - [ - 'errorCode' => 'IncorrectOperation', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'FeatureBasedConstraintConflict', - 'errorMessage' => 'A conflict occurs in specified feature constraints: [%s].', - ], - [ - 'errorCode' => 'OperationFailed.RiskControl', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'RISK.RISK_CONTROL_REJECTION', - 'errorMessage' => 'To protect the security of your account, your request has been denied by the risk control system. Please contact Alibaba Cloud Customer Service for details.', - ], - [ - 'errorCode' => 'InvalidInstanceTypeForRaid', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'RegionDissolved', - 'errorMessage' => '%s.', - ], - [ - 'errorCode' => 'MultiAttachedCloudDiskNotSupport', - 'errorMessage' => '%s.', - ], + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'InvalidParameter.DuplicatedName', 'errorMessage' => 'The container group include containers with duplicate names.', 'description' => '容器组内有重复名字的容器。'], + ['errorCode' => 'InvalidParameter.DuplicatedVolumeName', 'errorMessage' => 'The container group includes volumes with duplicate names.', 'description' => '容器组内有重复名字的数据卷。'], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'ImageSnapshot.IncorrectStatus', 'errorMessage' => '%s', 'description' => '用于镜像缓存的快照状态不正确。'], + ['errorCode' => 'ImageSnapshot.NotSupport', 'errorMessage' => '%s', 'description' => '基于数据盘快照的镜像缓存功能暂未全网开放,如有需要请联系我们。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'DiskNumber.LimitExceed', 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', 'description' => '实例下云盘数目超过限制。'], + ['errorCode' => 'InvalidPaymentMethod.InsufficientBalance', 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', 'description' => '您的账户暂无有效支付方式,请添加支付方式或保持预付款余额充足。'], + ['errorCode' => 'DiskVolume.NotInSameZone', 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', 'description' => '即将创建的实例和云盘不在同一可用区。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', 'description' => ''], + ['errorCode' => 'HighCpuMemConfigRequired', 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', 'description' => '您需要申请CPU高配白名单。'], + ['errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', 'description' => '当前可用区没有推荐的规格可使用,请稍后重试或者到其他的可用区创建。'], + ['errorCode' => 'LocalDiskAmountNotMatch', 'errorMessage' => 'The number of local volumes does not match the instance type.', 'description' => '本地盘数量跟实例规格不匹配'], + ['errorCode' => 'Payfor.CreditPayInsufficientBalance', 'errorMessage' => 'Your payment credit line is insufficient.', 'description' => '您的付款信用额度不足。'], + ['errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', 'description' => '指定的实例无效,只有 I/O 优化类型的实例支持设置“KMS Key”。'], + ['errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', 'errorMessage' => 'KMS must be enabled for encrypted disks.', 'description' => '加密磁盘需要启用密钥管理服务。'], + ['errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', 'description' => '设置参数“KmsKeyId”后,您必须开启加密属性。'], + ['errorCode' => 'InvalidSpotCpuMemorySpec', 'errorMessage' => 'The specified CPU and memory are not allowed. You must create spot ECI using standard ECS specifications for CPU and memory.', 'description' => '必须采用标准的ECS规格来创建ECI spot。'], + ['errorCode' => 'Ipv6AddressNotSupportVsw', 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', 'description' => '该交换机暂未开通ipv6地址。'], + ['errorCode' => 'Ipv6AddressNotSupport', 'errorMessage' => 'Ipv6 is not supported in specified region.', 'description' => '当前地域还不支持IPV6地址。'], + ['errorCode' => 'Ipv6AddressNotSupportInstanceType', 'errorMessage' => 'IPv6 is not supported for the specified instance type.', 'description' => '当前创建的规格不支持IPv6。'], + ['errorCode' => 'EipPayInsufficientBalance', 'errorMessage' => 'Your account does not have enough balance to purchase eip.', 'description' => '当前账户余额不足以购买eip。'], + ['errorCode' => 'EipPurchaseFlowControl', 'errorMessage' => 'Request was denied due to eip frequent purchase.', 'description' => '当前购买eip过于频繁,请稍后重试。'], + ['errorCode' => 'Throttling', 'errorMessage' => 'You have made too many requests within a short time; your request is denied due to request throttling', 'description' => ''], + ['errorCode' => 'JobInstanceBatchCreateNotSupport', 'errorMessage' => 'ECI job instance not support batch create', 'description' => ''], + ['errorCode' => 'JobInstanceDiskNotSupport', 'errorMessage' => 'ECI job instance not support disk volume', 'description' => ''], + ['errorCode' => 'JobInstanceEipNotSupport', 'errorMessage' => 'ECI job instance not support eip', 'description' => ''], + ['errorCode' => 'JobInstanceFeatureNotMatch', 'errorMessage' => 'ECI job instance feature not match', 'description' => ''], + ['errorCode' => 'JobInstanceImageCacheNotSupport', 'errorMessage' => 'ECI job instance not support image cache', 'description' => ''], + ['errorCode' => 'JobInstanceIPv6NotSupport', 'errorMessage' => 'ECI job instance not support IPv6', 'description' => ''], + ['errorCode' => 'JobInstanceRamRoleNotSupport', 'errorMessage' => 'ECI job instance not support ram role', 'description' => ''], + ['errorCode' => 'JobInstanceRegionNotSupport', 'errorMessage' => 'ECI job instance not support in this region', 'description' => ''], + ['errorCode' => 'JobInstanceSpotNotSupport', 'errorMessage' => 'ECI job instance not support spot', 'description' => ''], + ['errorCode' => 'InvalidInstanceTypeForEciSpotDurationBuy', 'errorMessage' => 'Current instance type does not support spot duration instance.', 'description' => '当前规格不支持eci自定义时长类型的spot实例。'], + ['errorCode' => 'InvalidInstanceTypeForEciBuy', 'errorMessage' => 'Sales of this current instance type is not supported in eci.', 'description' => '当前规格不在eci售卖规格范围内。'], + ['errorCode' => 'InstanceTypeNotMatchCpuArch', 'errorMessage' => '%s.', 'description' => '您指定的ECS规格的CPU架构与您指定的CPU架构不匹配。'], + ['errorCode' => 'JobInstanceEcsInstanceTypeNotSupport', 'errorMessage' => 'Job-optimized elastic container instances cannot be created by specifying ECS instance types.', 'description' => 'ECI Job优化型实例不支持指定ECS规格创建'], + ['errorCode' => 'PrivatePoolInstanceSpotNotSupport', 'errorMessage' => 'Spot is not supported for PrivatePool.', 'description' => ''], + ['errorCode' => 'DryRun.Success', 'errorMessage' => 'This request is a dryrun request with successful result.', 'description' => '该dryrun请求校验已经通过。'], + ['errorCode' => 'PrivateIpAddress.Already.InUse', 'errorMessage' => 'The specific PrivateIpAddress already in use.', 'description' => '私网ip地址已经被占用'], + ['errorCode' => 'IncorrectOperation', 'errorMessage' => '%s', 'description' => '当前的资源不支持该操作。'], + ['errorCode' => 'FeatureBasedConstraintConflict', 'errorMessage' => 'A conflict occurs in specified feature constraints: [%s].', 'description' => '指定的规格特性约束发生冲突'], + ['errorCode' => 'OperationFailed.RiskControl', 'errorMessage' => '%s.', 'description' => '我们检测到您的账号存在安全风险,详情请联系客服人员。'], + ['errorCode' => 'RISK.RISK_CONTROL_REJECTION', 'errorMessage' => 'To protect the security of your account, your request has been denied by the risk control system. Please contact Alibaba Cloud Customer Service for details.', 'description' => '为保护您的账户安全,您的请求被风控系统拒绝,详情请联系客服。'], + ['errorCode' => 'InvalidInstanceTypeForRaid', 'errorMessage' => '%s.', 'description' => '当前规格不支持Raid'], + ['errorCode' => 'RegionDissolved', 'errorMessage' => '%s.', 'description' => ''], + ['errorCode' => 'MultiAttachedCloudDiskNotSupport', 'errorMessage' => '%s.', 'description' => '不支持挂载开启多重挂载功能的云盘(即NVMe共享盘)。'], ], 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role does not belong to ECS.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', - 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', - ], - [ - 'errorCode' => 'Forbidden.AccountClosed', - 'errorMessage' => 'The operation is forbidden. Your account has been closed.', - ], - [ - 'errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', - 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', - ], - [ - 'errorCode' => 'Spot.NotMatched', - 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', - ], - [ - 'errorCode' => 'Throttling.Vcpu.PerDay', - 'errorMessage' => 'The maximum number of request for the day has been exceeded.', - ], - [ - 'errorCode' => 'FeatureAccessRestricted', - 'errorMessage' => 'Access to this feature:[%s] is restricted. Please contact Alibaba Cloud ECI support to request access.', - ], - ], - [ - [ - 'errorCode' => 'ImageSnapshot.NotFound', - 'errorMessage' => 'The specified snapshot does not exist.', - ], - [ - 'errorCode' => 'InvalidDiskId.NotFound', - 'errorMessage' => 'The specified disk does not exist.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', - 'errorMessage' => 'The specified KMSKeyId does not exist.', - ], + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role does not belong to ECS.', 'description' => ''], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', 'description' => '无权访问指定的 KMSKeyId。'], + ['errorCode' => 'Forbidden.AccountClosed', 'errorMessage' => 'The operation is forbidden. Your account has been closed.', 'description' => '操作被禁止,因为用户账户已注销。'], + ['errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', 'description' => '安全组由其他云产品管理,禁止操作。'], + ['errorCode' => 'Spot.NotMatched', 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ['errorCode' => 'Throttling.Vcpu.PerDay', 'errorMessage' => 'The maximum number of request for the day has been exceeded.', 'description' => '当天的请求配额已经超出。'], + ['errorCode' => 'FeatureAccessRestricted', 'errorMessage' => 'Access to this feature:[%s] is restricted. Please contact Alibaba Cloud ECI support to request access.', 'description' => '使用该特性需要申请白名单,请联系阿里云ECI团队申请加白。'], + ], + [ + ['errorCode' => 'ImageSnapshot.NotFound', 'errorMessage' => 'The specified snapshot does not exist.', 'description' => '镜像缓存,快照不存在。'], + ['errorCode' => 'InvalidDiskId.NotFound', 'errorMessage' => 'The specified disk does not exist.', 'description' => '指定的云盘不存在。'], + ['errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', 'errorMessage' => 'The specified KMSKeyId does not exist.', 'description' => '指定的参数“KMSKeyId”不存在。'], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\",\\n \\"ContainerGroupId\\": \\"eci-uf6fonnghi50u374****\\"\\n}","type":"json"}]', @@ -2771,340 +1592,170 @@ 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'UpdateContainerGroup' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2025-01-06T06:30:06.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2024-12-24T11:42:55.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2024-12-16T03:48:06.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2024-06-19T09:27:21.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2024-04-12T08:37:29.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2024-04-12T08:25:29.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-12-27T06:42:57.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-12-25T08:49:46.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-12-25T06:03:05.000Z', 'description' => '错误码发生变更、请求参数发生变更'], + ['createdAt' => '2023-12-13T06:45:19.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-12-06T02:21:18.000Z', 'description' => '错误码发生变更、请求参数发生变更'], + ['createdAt' => '2023-09-19T02:40:03.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-09-12T08:24:47.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-08-07T08:02:36.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2023-08-04T08:47:59.000Z', 'description' => '错误码发生变更、请求参数发生变更'], + ['createdAt' => '2023-07-21T07:49:26.000Z', 'description' => '错误码发生变更、请求参数发生变更'], + ['createdAt' => '2023-06-27T03:46:11.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-06-12T06:44:41.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-06-08T02:56:40.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-06-07T12:51:53.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-04-03T02:40:39.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-03-30T07:49:40.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2023-03-24T02:22:38.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-10-24T07:21:47.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2022-10-14T09:12:58.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-07-27T08:14:49.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-07-13T09:12:54.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-07-07T07:11:15.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2021-04-27T03:03:09.000Z', 'description' => '错误码发生变更、请求参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateContainerGroup'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateContainerGroup', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ], + ], + ], ], + ], + 'CreateDataCache' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeCode' => '178965', + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], + 'tenantRelevance' => 'tenant', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ContainerGroupId', + 'name' => 'SecurityGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '指定需要更新的ECI实例ID,即容器组ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'eci-2zelg8vwnlzdhf8hv****', - ], + 'schema' => ['description' => '创建数据缓存过程中生成的ECI实例所属的安全组ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'sg-2ze81zoc3yl7a3we****'], ], [ - 'name' => 'RestartPolicy', + 'name' => 'VSwitchId', 'in' => 'query', - 'schema' => [ - 'description' => '实例重启策略。取值范围:'."\n" - ."\n" - .'- Always:总是重启'."\n" - .'- Never:从不重启'."\n" - .'- OnFailure:失败时重启', - 'type' => 'string', - 'required' => false, - 'example' => 'Always', - ], + 'schema' => ['description' => '创建数据缓存过程中生成的ECI实例所属的交换机ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'vsw-bp1jrgfqqy54kg5hc****'], ], [ - 'name' => 'ClientToken', + 'name' => 'Bucket', 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000 ', - ], + 'schema' => ['description' => '数据的存储空间。默认为default。支持自定义,以便进行业务分组和避免路径冲突。'."\n" + ."\n" + .'> eci-system为ECI保留空间,不可使用。', 'type' => 'string', 'required' => false, 'example' => 'default'], ], [ - 'name' => 'Cpu', + 'name' => 'Path', 'in' => 'query', - 'schema' => [ - 'description' => '实例级别(容器组)的vCPU数。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '2.0', - ], + 'schema' => ['description' => '数据存储的路径。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '/model/test'], ], [ - 'name' => 'Memory', + 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'description' => '实例级别的(容器组)的内存数。单位为GiB。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '4.0', - ], + 'schema' => ['description' => '数据缓存名称。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'test'], ], [ - 'name' => 'ResourceGroupId', + 'name' => 'Size', 'in' => 'query', - 'schema' => [ - 'description' => '所属资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-2df3isufhi38**** ', - ], + 'schema' => ['description' => '数据缓存大小。单位为GiB,默认为20 GiB。请根据实际数据量评估所需大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'], ], [ - 'name' => 'Tag', + 'name' => 'DataSource', 'in' => 'query', - 'style' => 'repeatList', + 'style' => 'flat', 'schema' => [ - 'description' => '实例绑定的标签列表。', - 'type' => 'array', - 'items' => [ - 'description' => '实例绑定的标签列表。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'name', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'hxh', - ], + 'description' => '数据源。', + 'type' => 'object', + 'properties' => [ + 'Type' => [ + 'description' => '数据源类型。取值范围:'."\n" + .'- URL'."\n" + .'- NAS'."\n" + .'- OSS'."\n" + .'- SNAPSHOT', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => ['NAS' => 'NAS', 'SNAPSHOT' => 'SNAPSHOT', 'URL' => 'URL', 'OSS' => 'OSS'], + 'example' => 'URL', ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], - ], - [ - 'name' => 'Volume', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '数据卷列表。', - 'type' => 'array', - 'items' => [ - 'description' => '数据卷列表。', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'description' => '数据卷名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test-empty', - ], - 'Type' => [ - 'description' => '数据卷类型。取值范围:'."\n" - ."\n" - .'- EmptyDirVolume:EmptyDir类型的数据卷,表示临时目录。'."\n" - .'- ConfigFileVolume:ConfigFile类型的数据卷,表示配置文件。'."\n" - .'- NFSVolume:NFS类型的数据卷,表示网络文件系统,例如NAS。'."\n" - .'- FlexVolume:使用FlexVolume插件扩展存储类型,支持挂载云盘、NAS和OSS。'."\n" - .'- HostPathVolume:HostPath类型的数据卷,表示宿主机上的文件或目录。该取值暂未开放使用。', - 'type' => 'string', - 'required' => false, - 'example' => 'EmptyDirVolume', - ], - 'NFSVolume.Path' => [ - 'description' => 'NFS数据卷要挂载的路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/', - ], - 'NFSVolume.Server' => [ - 'description' => 'NFS数据卷的挂载点地址。', - 'type' => 'string', - 'required' => false, - 'example' => '071e349b04-bsd39.cn-hangzhou.nas.aliyuncs.com', - ], - 'NFSVolume.ReadOnly' => [ - 'description' => 'NFS数据卷的读取权限。取值范围:'."\n" - ."\n" - .'- true:NFS Volume具有只读权限。'."\n" - .'- false:NFS Volume具有可读可写权限。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'ConfigFileVolume.ConfigFileToPath' => [ - 'description' => 'ConfigFile数据卷对应的配置文件信息。', - 'type' => 'array', - 'items' => [ - 'description' => 'ConfigFile数据卷对应的配置文件信息。', - 'type' => 'object', - 'properties' => [ - 'Path' => [ - 'description' => '配置文件的相对文件路径。', - 'type' => 'string', - 'required' => false, - 'example' => 'jin/test', - ], - 'Content' => [ - 'description' => '配置文件的内容。采用Base64编码。', - 'type' => 'string', - 'required' => false, - 'example' => 'bGl1bWk=', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 16, - ], - 'EmptyDirVolume.Medium' => [ - 'description' => 'EmptyDir数据卷的存储媒介,默认为空,使用node文件系统;支持配置为Memory,表示使用内存。', - 'type' => 'string', - 'required' => false, - 'example' => 'Memory', - ], - 'EmptyDirVolume.SizeLimit' => [ - 'description' => 'EmptyDir数据卷的大小。取值请带上单位,建议使用Gi或Mi。', - 'type' => 'string', - 'required' => false, - 'example' => '256Mi', - ], - 'FlexVolume.FsType' => [ - 'description' => '使用FlexVolume插件挂载云盘时,云盘的文件系统类型。支持的类型包括ext4、ext3、xfs、vfat。默认为ext4。', - 'type' => 'string', - 'required' => false, - 'example' => 'ext4', - ], - 'FlexVolume.Driver' => [ - 'description' => '使用FlexVolume插件挂载数据卷时的驱动类型。取值范围如下:'."\n" - ."\n" - .'- alicloud/disk:挂载云盘。'."\n" - .'- alicloud/nas:挂载NAS。'."\n" - .'- alicloud/oss:挂载OSS。', - 'type' => 'string', - 'required' => false, - 'example' => 'alicloud/disk', - ], - 'FlexVolume.Options' => [ - 'description' => 'FlexVolume对象选项列表。为KV形式,采用JSON传递。例如通过FlexVolume挂载云盘时,Options表示云盘的配置参数。更多信息,请参见[数据卷概述](~~90672~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}', - ], - 'HostPathVolume.Path' => [ - 'description' => 'HostPath数据卷在宿主机上的路径。'."\n" - ."\n" - .'> 该参数暂未开放使用。', - 'type' => 'string', - 'required' => false, - 'example' => '/tmp', - ], - 'HostPathVolume.Type' => [ - 'description' => 'HostPath数据卷的类型。取值范围:'."\n" - ."\n" - .' - Directory:目录。'."\n" - .'- File:文件。'."\n" - ."\n" - .'> 该参数暂未开放使用。', - 'type' => 'string', - 'required' => false, - 'example' => 'Directory', - ], + 'Options' => [ + 'description' => '数据源的配置参数。', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n" + .' "#10#repoSource": "HuggingFace/Model",'."\n" + .' "#6#repoId": "stabilityai/stable-diffusion-2-1"'."\n" + .'}', 'description' => '数据源的配置参数。不同类型数据源要传入的参数不同。各类型数据源及其配置参数说明,请参见[创建数据缓存](~~2391456~~)。'], ], - 'required' => false, ], 'required' => false, - 'maxItems' => 61, + 'docRequired' => false, ], ], [ - 'name' => 'DnsConfig.Search', + 'name' => 'RetentionDays', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'DNS搜索域列表。', - 'type' => 'array', - 'items' => [ - 'description' => 'DNS搜索域列表。', - 'type' => 'string', - 'required' => false, - 'example' => 'my.dns.search.suffix', - ], - 'required' => false, - 'example' => 'my.dns.search.suffix', - 'maxItems' => 21, - ], + 'schema' => ['description' => '保留天数。过期会被清理。默认不过期。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7'], ], [ - 'name' => 'DnsConfig.NameServer', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'DNS服务器的IP地址列表。', - 'type' => 'array', - 'items' => [ - 'description' => 'DNS服务器的IP地址列表。', - 'type' => 'string', - 'required' => false, - 'example' => '1.2.3.4', - ], - 'required' => false, - 'example' => '1.2.3.4', - 'maxItems' => 21, - ], - ], - [ - 'name' => 'DnsConfig.Option', + 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'DNS配置信息。', + 'description' => '数据缓存绑定的标签列表。', 'type' => 'array', 'items' => [ - 'description' => 'DNS配置信息。', + 'description' => '数据缓存绑定的标签列表。', 'type' => 'object', 'properties' => [ - 'Value' => [ - 'description' => 'DNS配置的选项变量值。', - 'type' => 'string', - 'required' => false, - 'example' => '2', - ], - 'Name' => [ - 'description' => 'DNS配置的选项变量名。', - 'type' => 'string', - 'required' => false, - 'example' => 'ndots', - ], + 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'testkey'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => 'testvalue'], ], 'required' => false, ], @@ -3113,902 +1764,45 @@ ], ], [ - 'name' => 'Container', + 'name' => 'ResourceGroupId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '指定新的容器组配置信息。', - 'type' => 'array', - 'items' => [ - 'description' => '指定新的容器组配置信息。', - 'type' => 'object', - 'properties' => [ - 'ReadinessProbe.TimeoutSeconds' => [ - 'description' => '检查超时的时间。默认为1秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '5', - ], - 'ReadinessProbe.SuccessThreshold' => [ - 'description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'SecurityContext.Capability.Add' => [ - 'description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" - ."\n" - .'> NET_RAW默认不支持,需提交工单申请。', - 'type' => 'array', - 'items' => [ - 'description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" - ."\n" - .'> NET_RAW默认不支持,需提交工单申请。', - 'type' => 'string', - 'required' => false, - 'example' => 'NET_ADMIN', - ], - 'required' => false, - 'maxItems' => 101, - ], - 'ReadinessProbe.TcpSocket.Port' => [ - 'description' => 'TcpSocket检测的端口。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '5000', - ], - 'ReadinessProbe.HttpGet.Scheme' => [ - 'description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求对应的协议类型,取值范围:'."\n" - ."\n" - .'- HTTP'."\n" - .'- HTTPS', - 'type' => 'string', - 'required' => false, - 'example' => 'HTTP', - ], - 'LivenessProbe.PeriodSeconds' => [ - 'description' => '检查执行的周期。默认为10秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - 'SecurityContext.ReadOnlyRootFilesystem' => [ - 'description' => '是否只读根文件系统。取值目前仅支持:true。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'EnvironmentVar' => [ - 'description' => '容器的环境变量信息列表。', - 'type' => 'array', - 'items' => [ - 'description' => '容器的环境变量信息列表。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '容器的环境变量名。', - 'type' => 'string', - 'required' => false, - 'example' => 'PATH', - ], - 'Value' => [ - 'description' => '容器的环境变量值。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/bin/local/', - ], - 'FieldRef.FieldPath' => [ - 'description' => '使用Pod字段作为环境变量。目前仅支持status.podIP。', - 'type' => 'string', - 'required' => false, - 'example' => 'status.podIP', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 101, - ], - 'LivenessProbe.TcpSocket.Port' => [ - 'description' => 'TcpSocket检测的端口。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '80', - ], - 'Tty' => [ - 'description' => '是否开启交互。默认为false,如果Command为/bin/bash类型,需要设置为true。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'WorkingDir' => [ - 'description' => '容器工作目录。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/share/', - ], - 'Arg' => [ - 'description' => '容器启动参数。最多10个。', - 'type' => 'array', - 'items' => [ - 'description' => '容器启动参数。', - 'type' => 'string', - 'required' => false, - 'example' => 'hello', - ], - 'required' => false, - 'example' => 'hello', - 'maxItems' => 101, - ], - 'Stdin' => [ - 'description' => '此容器是否应在容器运行时为标准输入分配缓冲区。如果未设置,则容器中标准输入的读取值将导致EOF。默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'LivenessProbe.InitialDelaySeconds' => [ - 'description' => '检查开始执行的时间。以容器启动完成为起点开始计算。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - 'VolumeMount' => [ - 'description' => '容器的数据卷信息列表。', - 'type' => 'array', - 'items' => [ - 'description' => '容器的数据卷信息列表。', - 'type' => 'object', - 'properties' => [ - 'MountPropagation' => [ - 'description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。取值范围:'."\n" - ."\n" - .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" - .'- HostToContainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" - .'- Bidirectional:和HostToContainerr类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。'."\n" - ."\n" - .'默认值:None', - 'type' => 'string', - 'required' => false, - 'example' => 'None', - ], - 'MountPath' => [ - 'description' => '容器挂载的目录。容器挂载目录下的内容会被volume的内容直接覆盖,请谨慎使用。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/share/', - ], - 'ReadOnly' => [ - 'description' => '是否只读。默认值:false', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'SubPath' => [ - 'description' => '数据卷的子目录,方便Pod将同一个Volume下不同目录挂载到容器不同目录。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/share/sub/', - ], - 'Name' => [ - 'description' => '容器挂载的数据卷名称。从ECI实例(容器组)挂载的数据卷中选择,即取值范围为配置的Volume.N.Name参数。', - 'type' => 'string', - 'required' => false, - 'example' => 'test-empty', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 101, - ], - 'ImagePullPolicy' => [ - 'description' => '镜像拉取策略。取值范围:'."\n" - ."\n" - .'- Always:总是拉取。每次都拉取镜像。'."\n" - .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" - .'- Never:从不拉取。使用本地镜像,不拉取镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'Never', - ], - 'StdinOnce' => [ - 'description' => '当标准输入为true时,标准输入流将在多个附加会话中保持开启状态。如果StdinOnce设为true,标准输入在容器开启时被打开,在首个客户端附加到标准输入之前都为空,然后会一直保持开启状态,接收数据,直到客户端连接断开,此时标准输入被关闭,在容器重启前一直保持关闭状态。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'LifecyclePreStopHandlerTcpSocketPort' => [ - 'description' => '使用TCPSocket方式设置preStop回调函数时,TCP Socket检测的端口。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '80', - ], - 'LifecyclePostStartHandlerHttpGetScheme' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检测的路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/healthyz', - ], - 'ReadinessProbe.PeriodSeconds' => [ - 'description' => '检查执行的周期,默认为10秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3', - ], - 'LivenessProbe.SuccessThreshold' => [ - 'description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功)。默认为1次,当前必须为1次。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'Command' => [ - 'description' => '容器启动命令。最多20个,单个命令支持256个字符。', - 'type' => 'array', - 'items' => [ - 'description' => '容器启动命令。单个命令支持256个字符。', - 'type' => 'string', - 'required' => false, - 'example' => 'echo', - ], - 'required' => false, - 'example' => 'echo', - 'maxItems' => 101, - ], - 'LifecyclePostStartHandlerHttpGetHost' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,接收HTTP Get请求的主机地址。', - 'type' => 'string', - 'required' => false, - 'example' => 'hide', - ], - 'ReadinessProbe.HttpGet.Path' => [ - 'description' => 'HttpGet检测的路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/', - ], - 'LivenessProbe.Exec.Command' => [ - 'description' => '容器内检测命令。', - 'type' => 'array', - 'items' => [ - 'description' => '容器内检测命令。', - 'type' => 'string', - 'required' => false, - 'example' => 'echo', - ], - 'required' => false, - 'maxItems' => 101, - ], - 'LifecyclePostStartHandlerTcpSocketPort' => [ - 'description' => '使用TCPSocket方式设置postStart回调函数时,TCP Socket检测的端口。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'LifecyclePostStartHandlerHttpGetPath' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检测的路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/healthyz', - ], - 'LifecyclePostStartHandlerExec' => [ - 'description' => '使用命令行方式设置postStart回调函数时,在容器内执行的命令。', - 'type' => 'array', - 'items' => [ - 'description' => '使用命令行方式设置postStart回调函数时,在容器内执行的命令。', - 'type' => 'string', - 'required' => false, - 'example' => '["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]', - ], - 'required' => false, - 'example' => 'hide', - 'maxItems' => 101, - ], - 'LifecyclePreStopHandlerHttpGetPath' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求检测的路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/healthyz', - ], - 'Port' => [ - 'description' => '容器端口号。取值范围:1~65535', - 'type' => 'array', - 'items' => [ - 'description' => '容器端口号。取值范围:1~65535', - 'type' => 'object', - 'properties' => [ - 'Protocol' => [ - 'description' => 'TCP/UDP。', - 'type' => 'string', - 'required' => false, - 'example' => 'TCP', - ], - 'Port' => [ - 'description' => '端口号。取值范围:1~65535', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '8080', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 101, - ], - 'LifecyclePreStopHandlerHttpGetScheme' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求对应的协议类型,取值范围:'."\n" - ."\n" - .'- HTTP'."\n" - .'- HTTPS', - 'type' => 'string', - 'required' => false, - 'example' => 'HTTP', - ], - 'LivenessProbe.HttpGet.Scheme' => [ - 'description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求对应的协议类型,取值范围:'."\n" - ."\n" - .'- HTTP'."\n" - .'- HTTPS', - 'type' => 'string', - 'required' => false, - 'example' => 'HTTP', - ], - 'LifecyclePostStartHandlerHttpGetHttpHeaders' => [ - 'description' => '生成的http请求头中,有效的http请求头信息集合。', - 'type' => 'array', - 'items' => [ - 'description' => '生成的http请求头中,有效的http请求头信息集合。', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求的请求参数值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Name' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求的请求参数。', - 'type' => 'string', - 'required' => false, - 'example' => 'testValue', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 101, - ], - 'ReadinessProbe.HttpGet.Port' => [ - 'description' => 'HttpGet检测的端口号。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '8080', - ], - 'LifecyclePostStartHandlerTcpSocketHost' => [ - 'description' => '使用TCP Socket方式设置postStart回调函数时,TCP Socket检测的主机地址。', - 'type' => 'string', - 'required' => false, - 'example' => '10.0.XX.XX', - ], - 'Gpu' => [ - 'description' => '指定容器使用的GPU个数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'ReadinessProbe.InitialDelaySeconds' => [ - 'description' => '检查开始执行的时间,以容器启动完成为起点计算。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - 'LifecyclePreStopHandlerExec' => [ - 'description' => '使用命令行方式设置preStop回调函数时,在容器内执行的命令。', - 'type' => 'array', - 'items' => [ - 'description' => '使用命令行方式设置preStop回调函数时,在容器内执行的命令。', - 'type' => 'string', - 'required' => false, - 'example' => '["/bin/sh", "-c","echo Hello from the preStop handler > /usr/share/message"]', - ], - 'required' => false, - 'example' => 'hide', - 'maxItems' => 101, - ], - 'Memory' => [ - 'description' => '容器内存大小。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '2.0', - ], - 'Name' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'jenkins', - ], - 'LifecyclePreStopHandlerHttpGetHost' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,接收HTTP Get请求的主机地址。', - 'type' => 'string', - 'required' => false, - 'example' => '10.0.XX.XX', - ], - 'LifecyclePreStopHandlerTcpSocketHost' => [ - 'description' => '使用TCP Socket方式设置preStop回调函数时,TCP Socket检测的主机地址。', - 'type' => 'string', - 'required' => false, - 'example' => '10.0.XX.XX', - ], - 'Image' => [ - 'description' => '容器镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'jenkins', - ], - 'LifecyclePreStopHandlerHttpGetPort' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求检测的端口号。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'LivenessProbe.FailureThreshold' => [ - 'description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败)。默认为3次。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3', - ], - 'ReadinessProbe.Exec.Command' => [ - 'description' => '容器内检测的命令。', - 'type' => 'array', - 'items' => [ - 'description' => '容器内检测的命令。', - 'type' => 'string', - 'required' => false, - 'example' => 'echo', - ], - 'required' => false, - 'maxItems' => 101, - ], - 'LifecyclePreStopHandlerHttpGetHttpHeader' => [ - 'description' => '生成的http请求头信息。', - 'type' => 'array', - 'items' => [ - 'description' => '生成的http请求头信息。', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求的请求参数值。', - 'type' => 'string', - 'required' => false, - 'example' => 'testValue', - ], - 'Name' => [ - 'description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求的请求参数。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 101, - ], - 'ReadinessProbe.FailureThreshold' => [ - 'description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败)。默认为3次。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3', - ], - 'Cpu' => [ - 'description' => '容器vCPU大小。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '1.0', - ], - 'LivenessProbe.HttpGet.Port' => [ - 'description' => 'HttpGet检测的端口号。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '8080', - ], - 'LivenessProbe.HttpGet.Path' => [ - 'description' => 'HttpGet检测的路径。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/local/bin', - ], - 'LivenessProbe.TimeoutSeconds' => [ - 'description' => '检查超时的时间。默认为1秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'SecurityContext.RunAsUser' => [ - 'description' => '用于运行容器进程入口点的UID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1377', - ], - 'LifecyclePostStartHandlerHttpGetPort' => [ - 'description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检查的端口号。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-2df3isufhi38****'], ], [ - 'name' => 'InitContainer', + 'name' => 'ClientToken', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '指定新的Init容器信息。', - 'type' => 'array', - 'items' => [ - 'description' => '指定新的Init容器信息。', - 'type' => 'object', - 'properties' => [ - 'SecurityContext.Capability.Add' => [ - 'description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" - ."\n" - .'> NET_RAW默认不支持,需提交工单申请。', - 'type' => 'array', - 'items' => [ - 'description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" - ."\n" - .'> NET_RAW默认不支持,需提交工单申请。', - 'type' => 'string', - 'required' => false, - 'example' => 'NET_ADMIN', - ], - 'required' => false, - 'maxItems' => 101, - ], - 'Image' => [ - 'description' => 'Init容器镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'nginx', - ], - 'VolumeMount' => [ - 'description' => '挂载数据卷信息列表。', - 'type' => 'array', - 'items' => [ - 'description' => '挂载数据卷信息列表。'."\n" - ."\n", - 'type' => 'object', - 'properties' => [ - 'MountPropagation' => [ - 'description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。取值范围:'."\n" - ."\n" - .'- None:该卷不感知到任何后续在此卷或其任何子目录上执行的挂载变化。'."\n" - .'- HostToContainer:该卷将会感知到主机后续针对此卷或其任何子目录的挂载操作。'."\n" - .'- Bidirectional:和HostToContainer类似。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。'."\n" - ."\n" - .'默认值:None', - 'type' => 'string', - 'required' => false, - 'example' => 'None', - ], - 'MountPath' => [ - 'description' => 'Init容器挂载目录。容器挂载目录下的内容将被volume的内容直接覆盖,请谨慎使用。', - 'type' => 'string', - 'required' => false, - 'example' => '/pod/data', - ], - 'ReadOnly' => [ - 'description' => '是否只读。默认值:false', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'SubPath' => [ - 'description' => '数据卷的子目录,方便Pod将同一个Volume下不同目录挂载到容器不同目录。', - 'type' => 'string', - 'required' => false, - 'example' => 'data2/', - ], - 'Name' => [ - 'description' => 'Init容器挂载的数据卷名称。从ECI实例(容器组)挂载的数据卷中选择,即取值范围为配置的Volume.N.Name参数。', - 'type' => 'string', - 'required' => false, - 'example' => 'default-volume1', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 101, - ], - 'Port' => [ - 'description' => '端口号。取值范围:1~65535。', - 'type' => 'array', - 'items' => [ - 'description' => '端口号。取值范围:1~65535。', - 'type' => 'object', - 'properties' => [ - 'Protocol' => [ - 'description' => 'TCP/UDP。', - 'type' => 'string', - 'required' => false, - 'example' => 'TCP', - ], - 'Port' => [ - 'description' => 'Init容器端口号 。取值范围:1~65535。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '9000', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 101, - ], - 'SecurityContext.ReadOnlyRootFilesystem' => [ - 'description' => '容器运行的根文件系统是否为只读。目前仅支持配置为true。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'EnvironmentVar' => [ - 'description' => '容器的环境变量信息列表。', - 'type' => 'array', - 'items' => [ - 'description' => '容器的环境变量信息列表。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'Init容器的环境变量名。', - 'type' => 'string', - 'required' => false, - 'example' => 'PATH', - ], - 'Value' => [ - 'description' => 'Init容器的环境变量值。', - 'type' => 'string', - 'required' => false, - 'example' => '/usr/local/bin', - ], - 'FieldRef.FieldPath' => [ - 'description' => '环境变量值引用。目前只支持配置为status.podIP。', - 'type' => 'string', - 'required' => false, - 'example' => 'status.podIP', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 101, - ], - 'ImagePullPolicy' => [ - 'description' => '镜像拉取策略。取值范围:'."\n" - ."\n" - .'- Always:总是拉取。每次都拉取镜像。'."\n" - .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" - .'- Never:从不拉取。使用本地镜像,不拉取镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'IfNotPresent', - ], - 'StdinOnce' => [ - 'description' => '当标准输入为true时,标准输入流将在多个附加会话中保持开启状态。如果StdinOnce设为true,标准输入在容器开启时被打开,在首个客户端附加到标准输入之前都为空,然后会一直保持开启状态,接收数据,直到客户端连接断开,此时标准输入被关闭,在容器重启前一直保持关闭状态。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'Cpu' => [ - 'description' => 'Init容器vCPU大小。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '2.0', - ], - 'Tty' => [ - 'description' => '是否开启交互。默认为false,如果Command为/bin/bash类型时,需要设置为true。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'WorkingDir' => [ - 'description' => 'Init容器工作目录。', - 'type' => 'string', - 'required' => false, - 'example' => '/bin/local/', - ], - 'Command' => [ - 'description' => 'Init容器指令。', - 'type' => 'array', - 'items' => [ - 'description' => 'Init容器指令。', - 'type' => 'string', - 'required' => false, - 'example' => '/bin/sh sleep', - ], - 'required' => false, - 'example' => '/bin/sh sleep', - 'maxItems' => 101, - ], - 'Arg' => [ - 'description' => 'Init容器启动参数。', - 'type' => 'array', - 'items' => [ - 'description' => 'Init容器启动参数。', - 'type' => 'string', - 'required' => false, - 'example' => '10', - ], - 'required' => false, - 'example' => '10', - 'maxItems' => 101, - ], - 'SecurityContext.RunAsUser' => [ - 'description' => '设置运行容器的用户ID。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1000', - ], - 'Gpu' => [ - 'description' => '指定Init容器使用的GPU个数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'Memory' => [ - 'description' => 'Init容器内存大小。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '4.0', - ], - 'Stdin' => [ - 'description' => '此容器是否应在容器运行时为标准输入分配缓冲区。如果未设置,则容器中标准输入的读取值将导致EOF。默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'Name' => [ - 'description' => 'Init容器名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'init-nginx', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-****-12d3-****-426655440000'], ], [ - 'name' => 'ImageRegistryCredential', + 'name' => 'EipInstanceId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '镜像仓库凭证信息列表。', - 'type' => 'array', - 'items' => [ - 'description' => '镜像仓库凭证信息列表。', - 'type' => 'object', - 'properties' => [ - 'Password' => [ - 'description' => '镜像仓库密码。', - 'type' => 'string', - 'required' => false, - 'example' => 'yourpassword', - ], - 'Server' => [ - 'description' => '不带`http://`或`https://`前缀的镜像仓库地址。', - 'type' => 'string', - 'required' => false, - 'example' => 'registry.cn-shanghai.aliyuncs.com/ecitest/nginx:alpine', - ], - 'UserName' => [ - 'description' => '镜像仓库用户名。', - 'type' => 'string', - 'required' => false, - 'example' => 'yourname', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => '绑定已有的弹性公网IP(EIP)。'."\n" + .'如果VPC没有配置NAT网关,可以绑定EIP,以便拉取公网数据。', 'type' => 'string', 'required' => false, 'example' => 'eip-uf66jeqopgqa9hdn****'], ], [ - 'name' => 'AcrRegistryInfo', + 'name' => 'EipCreateParam', 'in' => 'query', - 'style' => 'repeatList', + 'style' => 'flat', 'schema' => [ - 'description' => 'ACR企业版实例信息。', - 'type' => 'array', - 'items' => [ - 'description' => 'ACR企业版实例信息。', - 'type' => 'object', - 'properties' => [ - 'InstanceId' => [ - 'description' => 'ACR企业版实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cri-nwj395hgf6f3****', - ], - 'InstanceName' => [ - 'description' => 'ACR企业版实例的名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'acr-test', - ], - 'RegionId' => [ - 'description' => 'ACR企业版实例所属地域。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], - 'Domain' => [ - 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', - 'type' => 'array', - 'items' => [ - 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], - 'required' => false, - 'maxItems' => 21, - ], - ], - 'required' => false, + 'description' => '创建一个弹性公网IP(EIP)并绑定。'."\n" + .'如果VPC没有配置NAT网关,可以绑定EIP,以便拉取公网数据。', + 'type' => 'object', + 'properties' => [ + 'Bandwidth' => ['description' => 'EIP带宽。单位为Mbps。默认为5 Mbps。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + 'CommonBandwidthPackage' => ['description' => '绑定已有的共享带宽包。', 'type' => 'string', 'required' => false, 'example' => 'cbwp-2zeukbj916scmj51m****'], + 'InternetChargeType' => ['description' => 'EIP的计量方式。取值范围:'."\n" + ."\n" + .'- PayByBandwidth:按带宽计费'."\n" + .'- PayByTraffic:按流量计费', 'type' => 'string', 'required' => false, 'example' => 'PayByTraffic'], + 'PublicIpAddressPoolId' => ['description' => 'IP地址池ID。'."\n" + .'EIP将从该IP地址池中分配。'."\n" + .'IP地址池功能默认不开放。如需使用,请在配额中心申请IP地址池功能权益配额。', 'type' => 'string', 'required' => false, 'example' => 'pippool-2vc4xdtjhwl4t0go5****'], + 'ISP' => ['description' => 'EIP的线路类型。取值范围:'."\n" + ."\n" + .'- BGP(默认值):BGP(多线)线路'."\n" + .'- BGP_PRO:BGP(多线)精品线路', 'type' => 'string', 'required' => false, 'example' => 'BGP'], ], 'required' => false, - 'maxItems' => 21, - ], - ], - [ - 'name' => 'UpdateType', - 'in' => 'query', - 'schema' => [ - 'description' => '更新类型。取值范围:'."\n" - ."\n" - .'- RenewUpdate:全量更新,更新时需填写相关的所有参数。如果参数是一个List,不支持单独更新某个item,如果参数是一个结构体,不支持单独更新某个内部成员。'."\n" - .'- IncrementalUpdate:增量更新,更新时可以只填某一需要更新的参数,其它相关参数保持原有不变。'."\n" - ."\n" - .'默认为RenewUpdate。', - 'type' => 'string', - 'required' => false, - 'example' => 'RenewUpdate', ], ], ], @@ -4017,2736 +1811,773 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => 'CB8D2B22-D636-4182-****-1FC9DBDAD66F', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC'], + 'DataCacheId' => ['description' => '数据缓存ID。', 'type' => 'string', 'example' => 'edc-bp15l4vvys94oo******'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedName', - 'errorMessage' => 'The container group include containers with duplicate names.', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedVolumeName', - 'errorMessage' => 'The container group includes volumes with duplicate names.', - ], - [ - 'errorCode' => 'InvalidParameter.LengthExceeded', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'InvalidParameter.ValueExceeded', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'InvalidParam.CpuOrMemorySpec', - 'errorMessage' => 'The specified specification is invalid.', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'MissingParameter', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'NoNeedUpdate', - 'errorMessage' => 'There are no changes to be updated for current resource.', - ], + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'ImageCache.IncorrectStatus', 'errorMessage' => '%s', 'description' => '镜像缓存当前的状态不对。'], + ['errorCode' => 'ImageCacheNotSupport', 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', 'description' => '镜像缓存功能还未全网开放,如果有需要请联系我们。'], + ['errorCode' => 'EipAddressPoolIpNotEnough', 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', 'description' => '指定的eip公网地址池地址资源不足。'], + ['errorCode' => 'DryRun.Success', 'errorMessage' => 'This request is a dryrun request with successful result.', 'description' => '该dryrun请求校验已经通过。'], ], 403 => [ - [ - 'errorCode' => 'InvalidAction', - 'errorMessage' => 'The specified action is invalid', - ], - ], + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建数据缓存', + 'summary' => '创建一个数据缓存。', + 'description' => '- 创建镜像缓存涉及资源计费。建议您提前了解相关计费信息。更多信息,请参见[数据缓存计费](~~2503093~~)。'."\n" + .'- 创建镜像缓存前,您需要评估待缓存数据的大小,如果数据大小超过设置的缓存大小,将会创建失败。'."\n" + .'- 创建数据缓存时,系统将自动创建一个ECI实例和一块ESSD云盘用于中转创建数据缓存。创建过程中请勿删除ECI实例和云盘,否则数据缓存将创建失败。'."\n" + .'- 创建数据缓存将生成对应的快照。请勿删除快照,否则数据缓存将会失效。', + 'changeSet' => [ + ['createdAt' => '2023-09-01T08:45:58.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-07-24T09:23:07.000Z', 'description' => '请求参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ [ - [ - 'errorCode' => 'InvalidParameter.NotFound', - 'errorMessage' => '%s', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateDataCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CB8D2B22-D636-4182-****-1FC9DBDAD66F\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateContainerGroup>\\r\\n <RequestId>CB8D2B22-D636-4182-****-1FC9DBDAD66F</RequestId>\\r\\n</UpdateContainerGroup>","errorExample":""}]', - 'title' => '更新一个容器组', - 'summary' => '更新实例。', - 'description' => '- 仅支持处于启动中(Pending)或运行中(Running)状态的ECI实例进行更新。更新操作后,ECI实例状态将变更为更新中(Updating)。'."\n" - .'- 更新RestartPolicy配置为Never的ECI实例可能会有容器Failed的风险,请慎重更新。', - 'requestParamsDescription' => '### 参数说明'."\n" - .'**Container和InitContainer**'."\n" - .'InitContainer和Container均仅支持全量更新。更新InitContainer需要重启实例。'."\n" - .'更新包括以下几种情况:'."\n" - .'- 原ECI实例同时有InitContainer和Container,但只更新InitContainer。'."\n" - .'- 原ECI实例同时有InitContainer和Container,但只更新Container。'."\n" - .'- 原ECI实例同时有InitContainer和Container,InitContainer和Container全部更新。'."\n" - .'- 原ECI实例只有Container,更新Container。'."\n" - .'- 原ECI实例只有Container,增加InitContainer。'."\n" - .'- 原ECI实例只有Container,增加InitContainer,同时更新Container。'."\n" - ."\n\n" - .'**ImageRegistryCredentials**'."\n" - .'- 仅支持全量更新。'."\n" - .'- 如果单独更新ImageRegistryCredentials,且更新后的ImageRegistryCredentials的数量不超过之前原ImageRegistryCredentials,则无需重启ECI实例,其他情况需要重启ECI实例。'."\n" - ."\n" - .'> 全量更新:如果参数是一个List,不支持单独更新某个item,如果参数是一个结构体,不支持单独更新某个内部成员。', - 'responseParamsDescription' => "\n" - ."\n\n" - ."\n\n" - ."\n", - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC\\",\\n \\"DataCacheId\\": \\"edc-bp15l4vvys94oo******\\"\\n}","type":"json"}]', ], - 'DescribeContainerGroups' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateImageCache' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '17732', - 'abilityTreeNodes' => [ - 'FEATUREeciO8VNZM', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '17725', + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的可用区。如果取值为空,则表示由系统选择。'."\n" - ."\n" - .'默认值为空。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou-h', - ], + 'schema' => ['description' => '可用区。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-g'], + ], + [ + 'name' => 'SecurityGroupId', + 'in' => 'query', + 'schema' => ['description' => '安全组ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'sg-uf66jeqopgqa9hdn****'], ], [ 'name' => 'VSwitchId', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的虚拟交换机ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-bp1jrgfqqy54kg5hc****', - ], + 'schema' => ['description' => '交换机ID。支持指定多个交换机ID(单次最多10个),各交换机ID之间可以用半角逗号(,)进行分割,例如`vsw-***,vsw-***`。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'vsw-uf6h3rbwbm90urjwa****'], ], [ - 'name' => 'NextToken', + 'name' => 'ImageCacheName', 'in' => 'query', - 'schema' => [ - 'description' => '下一个查询开始的Token,NextToken为空表示没有下一个。'."\n" - ."\n" - .'> 首次查询时无需设置该参数,后续查询的Token从返回结果中获取。'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc', - ], + 'schema' => ['description' => '镜像缓存名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'testcache'], ], [ - 'name' => 'Limit', + 'name' => 'EipInstanceId', 'in' => 'query', - 'schema' => [ - 'description' => '限定此次返回资源的数量。如果不设置,默认返回20个,最大不能超过20个。'."\n" - ."\n" - .'> 返回结果可能小于指定的数量,但不会多于指定的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => '弹性公网IP。如果需要拉取公网镜像,需要确保ECI实例能够访问公网,您可以配置EIP或者NAT网关实现公网访问。', 'type' => 'string', 'required' => false, 'example' => 'eip-2zedsm5mfl3uhdj2d****'], ], [ - 'name' => 'ContainerGroupIds', + 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '实例ID序列。最多20个,字符串需按照JSON格式传入。', - 'type' => 'string', - 'required' => false, - 'example' => '["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"]', - ], + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzh43v*****'], ], [ - 'name' => 'ContainerGroupName', + 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '实例名称,即容器组名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-xxx-xxx-xxxx-42665544xxxx'], ], [ - 'name' => 'Status', + 'name' => 'ImageCacheSize', 'in' => 'query', - 'schema' => [ - 'description' => '实例状态。取值范围:'."\n" - ."\n" - .'- Pending:启动中'."\n" - .'- Running:运行中'."\n" - .'- Succeeded:运行成功'."\n" - .'- Failed:运行失败'."\n" - .'- Scheduling:创建中'."\n" - .'- ScheduleFailed:创建失败'."\n" - .'- Restarting:重启中'."\n" - .'- Updating:更新中'."\n" - .'- Terminating:终止中'."\n" - .'- Expired:过期', - 'type' => 'string', - 'required' => false, - 'example' => 'Running', - ], + 'schema' => ['description' => '镜像缓存的大小。默认为20 GiB。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], [ - 'name' => 'ResourceGroupId', + 'name' => 'RetentionDays', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-aekzh43v***** ', - ], + 'schema' => ['description' => '镜像缓存保留时间,过期将会被清理,默认永不过期。'."\n" + ."\n" + .'> 创建失败的镜像缓存仅保留一天。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7'], ], [ - 'name' => 'WithEvent', + 'name' => 'AutoMatchImageCache', 'in' => 'query', - 'schema' => [ - 'description' => '是否返回事件信息。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '是否开启镜像缓存复用。开启后,新创建的镜像缓存可以复用已有镜像缓存的镜像层,加快镜像缓存的制作速度。取值范围:'."\n" + ."\n" + .'- true:开启'."\n" + ."\n" + .'- false:不开启'."\n" + ."\n" + .'默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ - 'name' => 'Tag', + 'name' => 'ImageRegistryCredential', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '实例标签信息。', + 'description' => '镜像仓库信息。', 'type' => 'array', 'items' => [ - 'description' => '实例标签信息。', + 'description' => '镜像仓库信息。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '实例标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'name', - ], - 'Value' => [ - 'description' => '实例标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'Password' => ['description' => '镜像仓库密码。', 'type' => 'string', 'required' => false, 'example' => 'password'], + 'Server' => ['description' => '不带 `http://` 或 `https://` 前缀的镜像仓库地址。', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com'], + 'UserName' => ['description' => '镜像仓库用户名。', 'type' => 'string', 'required' => false, 'example' => 'username'], ], 'required' => false, ], 'required' => false, - 'maxItems' => 10, + 'maxItems' => 11, ], ], [ - 'name' => 'ComputeCategory', + 'name' => 'Image', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '指定算力类别。取值范围:'."\n" - ."\n" - .'- economy:经济型'."\n" - .'- general:通用型', - 'type' => 'string', - 'required' => false, - 'example' => 'economy', + 'description' => '用于制作镜像缓存的容器镜像。', + 'type' => 'array', + 'items' => ['description' => '用于制作镜像缓存的容器镜像。', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl'], + 'required' => true, + 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', + 'maxItems' => 101, ], ], [ - 'name' => 'SecurityGroupId', + 'name' => 'Tag', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '实例所属的安全组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'sg-uf66jeqopgqa9hdn****'."\n", - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'description' => '实例数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'NextToken' => [ - 'description' => '下一个查询开始的Token。', - 'type' => 'string', - 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc', - ], - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3', - ], - 'ContainerGroups' => [ - 'description' => '实例信息列表。', - 'type' => 'array', - 'items' => [ - 'description' => '实例信息列表。', - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'description' => '实例状态。可能值:'."\n" - ."\n" - .'- Pending:启动中'."\n" - .'- Running:运行中'."\n" - .'- Succeeded:运行成功'."\n" - .'- Failed:运行失败'."\n" - .'- Scheduling:创建中'."\n" - .'- ScheduleFailed:创建失败'."\n" - .'- Restarting:重启中'."\n" - .'- Updating:更新中'."\n" - .'- Terminating:终止中'."\n" - .'- Expired:过期'."\n", - 'type' => 'string', - 'example' => 'Running', - ], - 'CreationTime' => [ - 'description' => '接到请求后的系统创建时间。UTC时间,RFC3339标准。', - 'type' => 'string', - 'example' => '2018-08-02T15:00:00Z', - ], - 'VpcId' => [ - 'description' => '实例所属的VPC ID。', - 'type' => 'string', - 'example' => 'vpc-1vzjjflab6wvjox****', - ], - 'InternetIp' => [ - 'description' => '公网IP。', - 'type' => 'string', - 'example' => '192.0.XX.XX', - ], - 'TenantSecurityGroupId' => [ - 'description' => '该参数未开放使用。', - 'type' => 'string', - 'example' => 'sg-xxx', - ], - 'SecurityGroupId' => [ - 'description' => '安全组ID。', - 'type' => 'string', - 'example' => 'sg-bp12ujq5zpxuyjfo3o8r', - ], - 'HostAliases' => [ - 'description' => '自定义实例内一个容器的Hostname映射。'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '自定义实例内一个容器的Hostname映射。'."\n", - 'type' => 'object', - 'properties' => [ - 'Hostnames' => [ - 'description' => '主机信息。', - 'type' => 'array', - 'items' => [ - 'description' => '主机名。', - 'type' => 'string', - 'example' => '[\'hehe.com\', \'haha.com\']', - ], - ], - 'Ip' => [ - 'description' => 'IP地址。', - 'type' => 'string', - 'example' => '192.0.XX.XX', - ], - ], - ], - ], - 'Tags' => [ - 'description' => '实例标签信息。', - 'type' => 'array', - 'items' => [ - 'description' => '实例标签信息。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'example' => 'name', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'example' => 'test-xh', - ], - ], - ], - ], - 'Events' => [ - 'description' => '事件信息,上限50。', - 'type' => 'array', - 'items' => [ - 'description' => '事件信息,上限50。', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => '事件类型,可能值:'."\n" - ."\n" - .'- Normal'."\n" - .'- Warning', - 'type' => 'string', - 'example' => 'Normal', - ], - 'LastTimestamp' => [ - 'description' => '事件结束时间。', - 'type' => 'string', - 'example' => '2018-08-02T15:00:00Z', - ], - 'Message' => [ - 'description' => '事件消息。', - 'type' => 'string', - 'example' => 'Started container', - ], - 'Name' => [ - 'description' => '事件的归属对象名。', - 'type' => 'string', - 'example' => 'test-xxx', - ], - 'Reason' => [ - 'description' => '事件名。', - 'type' => 'string', - 'example' => 'Created', - ], - 'Count' => [ - 'description' => '事件数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'FirstTimestamp' => [ - 'description' => '事件起始时间。', - 'type' => 'string', - 'example' => '2018-08-02T15:00:00Z', - ], - ], - ], - ], - 'SucceededTime' => [ - 'description' => '容器全部成功退出后的时间。UTC时间,RFC3339标准。', - 'type' => 'string', - 'example' => '2019-12-11T04:33:42Z', - ], - 'SpotStrategy' => [ - 'description' => '实例的抢占策略。取值范围:'."\n" - .'- NoSpot(默认):正常按量付费实例。'."\n" - .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" - .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格。', - 'type' => 'string', - 'example' => 'NoSpot', - ], - 'SpotPriceLimit' => [ - 'description' => '抢占式实例的每小时最高价格。'."\n" - ."\n" - .'仅当SpotStrategy为SpotWithPriceLimit时返回。', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.025', - ], - 'EphemeralStorage' => [ - 'description' => '临时存储空间大小。单位为:GiB。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'TenantEniInstanceId' => [ - 'description' => '该参数未开放使用。', - 'type' => 'string', - 'example' => 'i-xxx', - ], - 'Discount' => [ - 'description' => '折扣。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '9', - ], - 'RestartPolicy' => [ - 'description' => '容器组的重启策略。取值范围:'."\n" - ."\n" - .'- Never:不重启'."\n" - .'- Always:始终重启'."\n" - .'- OnFailure:失败时重启'."\n", - 'type' => 'string', - 'example' => 'Never', - ], - 'Memory' => [ - 'description' => '实例级别内存大小。单位为GiB。', - 'type' => 'number', - 'format' => 'float', - 'example' => '4.0', - ], - 'TenantVSwitchId' => [ - 'description' => '该参数未开放使用。', - 'type' => 'string', - 'example' => 'vsw-xxx', - ], - 'Containers' => [ - 'description' => '实例包含的容器列表。', - 'type' => 'array', - 'items' => [ - 'description' => '实例包含的容器列表。', - 'type' => 'object', - 'properties' => [ - 'LivenessProbe' => [ - 'description' => '存活探针。', - 'type' => 'object', - 'properties' => [ - 'SuccessThreshold' => [ - 'description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。当前必须为1。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'InitialDelaySeconds' => [ - 'description' => '检查开始执行的时间,以容器启动完成为起点计算。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'FailureThreshold' => [ - 'description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败),默认为3。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'TimeoutSeconds' => [ - 'description' => '检查超时的时间,默认为1秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TcpSocket' => [ - 'description' => 'TcpSocket。', - 'type' => 'object', - 'properties' => [ - 'Host' => [ - 'description' => '主机名。', - 'type' => 'string', - 'example' => '1.2.3.4', - ], - 'Port' => [ - 'description' => '端口号。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '80', - ], - ], - ], - 'Execs' => [ - 'description' => '执行命令。', - 'type' => 'array', - 'items' => [ - 'description' => '执行命令。', - 'type' => 'string', - 'example' => '["/bin/sh", "-c", "echo Hello world > /usr/share/message"]', - ], - ], - 'HttpGet' => [ - 'description' => 'HttpGet。', - 'type' => 'object', - 'properties' => [ - 'Scheme' => [ - 'description' => 'HTTP或HTTPS。', - 'type' => 'string', - 'example' => 'HTTP', - ], - 'Path' => [ - 'description' => 'HttpGet检测的路径。', - 'type' => 'string', - 'example' => '/usr/nginx/', - ], - 'Port' => [ - 'description' => 'HttpGet检测的端口。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '80', - ], - ], - ], - 'PeriodSeconds' => [ - 'description' => '检查执行的周期,默认为10秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - ], - ], - 'Commands' => [ - 'description' => '容器启动命令。', - 'type' => 'array', - 'items' => [ - 'description' => '容器启动命令。', - 'type' => 'string', - 'example' => '[/bin/sh echo]', - ], - ], - 'VolumeMounts' => [ - 'description' => '挂载的数据卷信息。', - 'type' => 'array', - 'items' => [ - 'description' => '挂载的数据卷信息。', - 'type' => 'object', - 'properties' => [ - 'MountPropagation' => [ - 'description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。可能值:'."\n" - ."\n" - .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" - .'- HostToCotainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" - .'- Bidirectional:和HostToCotainer类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。', - 'type' => 'string', - 'example' => 'None', - ], - 'MountPath' => [ - 'description' => '挂载目录,容器的挂载目录下的内容被Volume的内容直接覆盖。', - 'type' => 'string', - 'example' => '/usr/share/', - ], - 'ReadOnly' => [ - 'description' => '是否只读。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'Name' => [ - 'description' => '数据卷名称。', - 'type' => 'string', - 'example' => 'test-empty', - ], - 'SubPath' => [ - 'description' => '数据卷下的子目录。方便实例将同一个数据卷下的不同目录挂载到容器的不同目录。', - 'type' => 'string', - 'example' => '/usr/sub', - ], - ], - ], - ], - 'Args' => [ - 'description' => '容器启动参数。', - 'type' => 'array', - 'items' => [ - 'description' => '容器启动参数。', - 'type' => 'string', - 'example' => '["hello"]', - ], - ], - 'Image' => [ - 'description' => '容器镜像。', - 'type' => 'string', - 'example' => 'mysql', - ], - 'Ports' => [ - 'description' => '暴露端口和协议。', - 'type' => 'array', - 'items' => [ - 'description' => '暴露端口和协议。', - 'type' => 'object', - 'properties' => [ - 'Protocol' => [ - 'description' => '协议类型。', - 'type' => 'string', - 'example' => 'TCP', - ], - 'Port' => [ - 'description' => '端口号。可能值:1~65535。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '8080', - ], - ], - ], - ], - 'RestartCount' => [ - 'description' => '重启次数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'ImagePullPolicy' => [ - 'description' => '镜像拉取策略。可能值:'."\n" - ."\n" - .'- Always:总是拉取。每次都拉取镜像。'."\n" - .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" - .'- Never:从不拉取。使用本地镜像,不拉取镜像。', - 'type' => 'string', - 'example' => 'Always', - ], - 'StdinOnce' => [ - 'description' => '当标准输入为true时,标准输入流将在多个附加会话中保持开启状态。如果StdinOnce设为true,标准输入在容器开启时被打开,在首个客户端附加到标准输入之前都为空,然后会一直保持开启状态,接收数据,直到客户端连接断开,此时标准输入被关闭,在容器重启前一直保持关闭状态。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Cpu' => [ - 'description' => '容器的vCPU大小。', - 'type' => 'number', - 'format' => 'float', - 'example' => '2.0', - ], - 'PreviousState' => [ - 'description' => '上一次状态。', - 'type' => 'object', - 'properties' => [ - 'StartTime' => [ - 'description' => '容器运行开始时间。', - 'type' => 'string', - 'example' => '2021-12-02T15:00:00Z', - ], - 'FinishTime' => [ - 'description' => '容器运行结束时间。', - 'type' => 'string', - 'example' => '2021-12-02T15:01:00Z', - ], - 'DetailStatus' => [ - 'description' => '状态详情。', - 'type' => 'string', - 'example' => 'working', - ], - 'State' => [ - 'description' => '容器状态。可能值:'."\n" - ."\n" - .'- Waiting:启动中'."\n" - .'- Running:运行中'."\n" - .'- Terminated:运行终止', - 'type' => 'string', - 'example' => 'Terminated', - ], - 'Message' => [ - 'description' => '容器状态信息。', - 'type' => 'string', - 'example' => 'Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)', - ], - 'Signal' => [ - 'description' => '容器状态信号。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ExitCode' => [ - 'description' => '容器运行退出码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Reason' => [ - 'description' => '容器状态Reason。', - 'type' => 'string', - 'example' => 'Completed', - ], - ], - ], - 'Tty' => [ - 'description' => '是否开启交互。默认为false。例如:当Command配置为`/bin/bash`时,需要配置为true。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'WorkingDir' => [ - 'description' => '工作目录。', - 'type' => 'string', - 'example' => '/usr/local/nginx', - ], - 'CurrentState' => [ - 'description' => '容器当前状态。', - 'type' => 'object', - 'properties' => [ - 'StartTime' => [ - 'description' => '容器运行开始时间。', - 'type' => 'string', - 'example' => '2021-12-02T15:00:00Z', - ], - 'FinishTime' => [ - 'description' => '容器运行结束时间。', - 'type' => 'string', - 'example' => '2021-12-02T15:01:00Z', - ], - 'DetailStatus' => [ - 'description' => '容器状态详情。', - 'type' => 'string', - 'example' => 'working', - ], - 'State' => [ - 'description' => '容器状态,可能值:'."\n" - ."\n" - .'- Waiting'."\n" - .'- Running'."\n" - .'- Terminated', - 'type' => 'string', - 'example' => 'Terminated', - ], - 'Message' => [ - 'description' => '容器状态信息。', - 'type' => 'string', - 'example' => 'Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)', - ], - 'Signal' => [ - 'description' => '容器状态信号。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ExitCode' => [ - 'description' => '容器运行退出码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Reason' => [ - 'description' => '容器状态Reason。', - 'type' => 'string', - 'example' => 'Started', - ], - ], - ], - 'Ready' => [ - 'description' => '指定容器是否已通过其就绪探针。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Gpu' => [ - 'description' => 'GPU个数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'SecurityContext' => [ - 'description' => '实例运行的安全上下文。', - 'type' => 'object', - 'properties' => [ - 'ReadOnlyRootFilesystem' => [ - 'description' => '是否只读根文件系统,目前仅支持True。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RunAsUser' => [ - 'description' => '运行容器的用户ID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1000', - ], - 'Capability' => [ - 'description' => '容器内的进程所具备的特定权限。', - 'type' => 'object', - 'properties' => [ - 'Adds' => [ - 'description' => '容器内的进程所具备的特定权限。', - 'type' => 'array', - 'items' => [ - 'description' => '容器内的进程所具备的特定权限。', - 'type' => 'string', - 'example' => '[NET_ADMIN]', - ], - ], - ], - ], - ], - ], - 'Memory' => [ - 'description' => '容器内存大小。单位为GiB。', - 'type' => 'number', - 'format' => 'float', - 'example' => '2.0', - ], - 'Stdin' => [ - 'description' => '此容器是否应在容器运行时为标准输入分配缓冲区。如果未设置,则容器中标准输入的读取值将导致EOF。默认为false。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Name' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'example' => 'nginx', - ], - 'EnvironmentVars' => [ - 'description' => '环境变量。', - 'type' => 'array', - 'items' => [ - 'description' => '环境变量。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '环境变量名。'."\n", - 'type' => 'string', - 'example' => 'PATH', - ], - 'Value' => [ - 'description' => '环境变量值。', - 'type' => 'string', - 'example' => '/usr/bin/', - ], - 'ValueFrom' => [ - 'description' => '环境变量值的来源。 如果值不为空,则无法使用。', - 'type' => 'object', - 'properties' => [ - 'FieldRef' => [ - 'description' => '指定字段。', - 'type' => 'object', - 'properties' => [ - 'FieldPath' => [ - 'description' => '字段的路径。', - 'type' => 'string', - 'example' => 'status.podIP', - ], - ], - ], - ], - ], - ], - ], - ], - 'ReadinessProbe' => [ - 'description' => '应用业务探针(即就绪探针),用于检查容器是否已经就绪,可以为请求提供服务。', - 'type' => 'object', - 'properties' => [ - 'SuccessThreshold' => [ - 'description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。当前必须为1。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'InitialDelaySeconds' => [ - 'description' => '检查开始执行的时间,以容器启动完成为起点计算。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'FailureThreshold' => [ - 'description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败),默认为3。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'TimeoutSeconds' => [ - 'description' => '检查超时的时间,默认为1秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'TcpSocket' => [ - 'description' => '使用TCP Socket方式进行健康检查。', - 'type' => 'object', - 'properties' => [ - 'Host' => [ - 'description' => 'Host。', - 'type' => 'string', - 'example' => '1.2.3.4', - ], - 'Port' => [ - 'description' => '端口号。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '8888', - ], - ], - ], - 'Execs' => [ - 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。', - 'type' => 'array', - 'items' => [ - 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。', - 'type' => 'string', - 'example' => '["/bin/sh", "-c", "echo Hello world > /usr/share/message"]', - ], - ], - 'HttpGet' => [ - 'description' => '使用HTTP请求方式进行健康检查。', - 'type' => 'object', - 'properties' => [ - 'Scheme' => [ - 'description' => 'HTTP/HTTPS。', - 'type' => 'string', - 'example' => 'HTTP', - ], - 'Path' => [ - 'description' => 'HttpGet检测的路径。', - 'type' => 'string', - 'example' => '/usr/local', - ], - 'Port' => [ - 'description' => 'HttpGet检测的端口号。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '8080', - ], - ], - ], - 'PeriodSeconds' => [ - 'description' => '检查执行的周期,默认为10秒,最小为1秒。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - ], - ], - ], - 'EniInstanceId' => [ - 'description' => '弹性网卡ID。', - 'type' => 'string', - 'example' => 'eni-bp14rzqi6fd8satm****', - ], - 'InitContainers' => [ - 'description' => 'Init容器列表。', - 'type' => 'array', - 'items' => [ - 'description' => 'Init容器列表。', - 'type' => 'object', - 'properties' => [ - 'VolumeMounts' => [ - 'description' => 'Init容器挂载的数据卷信息。', - 'type' => 'array', - 'items' => [ - 'description' => 'Init容器挂载的数据卷信息。', - 'type' => 'object', - 'properties' => [ - 'MountPropagation' => [ - 'description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。可能值:'."\n" - ."\n" - .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" - .'- HostToCotainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" - .'- Bidirectional:和HostToCotainer类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。', - 'type' => 'string', - 'example' => 'None', - ], - 'MountPath' => [ - 'description' => '挂载目录,容器的挂载目录下的内容被Volume的内容直接覆盖。', - 'type' => 'string', - 'example' => '/usr/share/', - ], - 'ReadOnly' => [ - 'description' => '是否只读。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'Name' => [ - 'description' => '数据卷名称,同 Volume 中的 Name。', - 'type' => 'string', - 'example' => 'test-empty', - ], - ], - ], - ], - 'Args' => [ - 'description' => '启动参数。', - 'type' => 'array', - 'items' => [ - 'description' => '启动参数。', - 'type' => 'string', - 'example' => '[\'hello world\']', - ], - ], - 'Image' => [ - 'description' => '镜像。', - 'type' => 'string', - 'example' => 'nginx', - ], - 'Ports' => [ - 'description' => '暴露端口和协议。', - 'type' => 'array', - 'items' => [ - 'description' => '暴露端口和协议。', - 'type' => 'object', - 'properties' => [ - 'Protocol' => [ - 'description' => '协议类型。', - 'type' => 'string', - 'example' => 'TCP', - ], - 'Port' => [ - 'description' => '端口号。可能值:1~65535。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '8888', - ], - ], - ], - ], - 'RestartCount' => [ - 'description' => '重启次数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'ImagePullPolicy' => [ - 'description' => '镜像拉取策略。可能值:'."\n" - ."\n" - .'- Always:总是拉取。每次都拉取镜像。'."\n" - .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" - .'- Never:从不拉取。使用本地镜像,不拉取镜像。', - 'type' => 'string', - 'example' => 'Always', - ], - 'PreviousState' => [ - 'description' => '上一次状态。', - 'type' => 'object', - 'properties' => [ - 'StartTime' => [ - 'description' => '容器运行开始时间。', - 'type' => 'string', - 'example' => '2021-12-02T15:00:00Z', - ], - 'FinishTime' => [ - 'description' => '容器运行结束时间。', - 'type' => 'string', - 'example' => '2021-12-02T15:01:00Z', - ], - 'DetailStatus' => [ - 'description' => '状态详情。', - 'type' => 'string', - 'example' => 'working', - ], - 'State' => [ - 'description' => '容器状态,枚举值:Waiting,Running,Terminated。', - 'type' => 'string', - 'example' => 'Terminated', - ], - 'Message' => [ - 'description' => '容器状态信息。', - 'type' => 'string', - 'example' => 'Started container', - ], - 'Signal' => [ - 'description' => '容器状态信号。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ExitCode' => [ - 'description' => '容器运行退出码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Reason' => [ - 'description' => '容器状态Reason。', - 'type' => 'string', - 'example' => 'completed', - ], - ], - ], - 'WorkingDir' => [ - 'description' => '工作目录。', - 'type' => 'string', - 'example' => '/usr/test', - ], - 'Cpu' => [ - 'description' => 'vCPU大小。', - 'type' => 'number', - 'format' => 'float', - 'example' => '1.0', - ], - 'CurrentState' => [ - 'description' => '当前状态。', - 'type' => 'object', - 'properties' => [ - 'StartTime' => [ - 'description' => '容器运行开始时间。', - 'type' => 'string', - 'example' => '2021-12-02T15:00:00Z', - ], - 'FinishTime' => [ - 'description' => '容器运行结束时间。', - 'type' => 'string', - 'example' => '2021-12-02T15:01:00Z', - ], - 'DetailStatus' => [ - 'description' => '状态详情。', - 'type' => 'string', - 'example' => 'working', - ], - 'State' => [ - 'description' => '容器状态,可能值:'."\n" - ."\n" - .'- Waiting'."\n" - .'- Running'."\n" - .'- Terminated', - 'type' => 'string', - 'example' => 'Running', - ], - 'Message' => [ - 'description' => '事件消息。', - 'type' => 'string', - 'example' => 'Created container', - ], - 'Signal' => [ - 'description' => '容器状态信号。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ExitCode' => [ - 'description' => '容器退出码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Reason' => [ - 'description' => '容器状态Reason。', - 'type' => 'string', - 'example' => 'Started', - ], - ], - ], - 'Command' => [ - 'description' => '启动命令。', - 'type' => 'array', - 'items' => [ - 'description' => '启动命令。', - 'type' => 'string', - 'example' => '[/bin/sh echo]', - ], - ], - 'Ready' => [ - 'description' => '指定容器是否已通过其就绪探针。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Gpu' => [ - 'description' => 'GPU个数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'SecurityContext' => [ - 'description' => '容器运行的安全上下文。', - 'type' => 'object', - 'properties' => [ - 'ReadOnlyRootFilesystem' => [ - 'description' => '是否只读根文件系统,目前仅支持True。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RunAsUser' => [ - 'description' => '用于运行容器进程入口点的UID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1557', - ], - 'Capability' => [ - 'description' => '容器内的进程所具备的特定权限。', - 'type' => 'object', - 'properties' => [ - 'Adds' => [ - 'description' => '容器内的进程所具备的特定权限。', - 'type' => 'array', - 'items' => [ - 'description' => '容器内的进程所具备的特定权限。', - 'type' => 'string', - 'example' => 'NET_ADMIN', - ], - ], - ], - ], - ], - ], - 'Memory' => [ - 'description' => 'Init容器内存大小。单位为GiB。', - 'type' => 'number', - 'format' => 'float', - 'example' => '2.0', - ], - 'Name' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'example' => 'Init-xxx', - ], - 'EnvironmentVars' => [ - 'description' => '环境变量。', - 'type' => 'array', - 'items' => [ - 'description' => '环境变量。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '环境变量名。', - 'type' => 'string', - 'example' => 'PATH', - ], - 'Value' => [ - 'description' => '环境变量值。', - 'type' => 'string', - 'example' => '/usr/local/bin', - ], - 'ValueFrom' => [ - 'description' => '环境变量值的来源。 如果值不为空,则无法使用。', - 'type' => 'object', - 'properties' => [ - 'FieldRef' => [ - 'description' => '指定的字段。', - 'type' => 'object', - 'properties' => [ - 'FieldPath' => [ - 'description' => '指定的版本中选择字段的路径。目前只支持 `status.podIP`。', - 'type' => 'string', - 'example' => 'status.podIP', - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - 'ContainerGroupId' => [ - 'description' => '实例ID。', - 'type' => 'string', - 'example' => 'eci-bp1jrgfqqy54kg5hc****', - ], - 'TenantEniIp' => [ - 'description' => '该参数未开放使用。', - 'type' => 'string', - 'example' => '10.10.XX.XX', - ], - 'InstanceType' => [ - 'description' => '指定的ECS实例规格。', - 'type' => 'string', - 'example' => 'ecs.g5.large', - ], - 'IntranetIp' => [ - 'description' => '内网IP。', - 'type' => 'string', - 'example' => '172.16.XX.XX', - ], - 'Ipv6Address' => [ - 'description' => 'IPv6地址。', - 'type' => 'string', - 'example' => '2001:XXXX:4:4:4:4:4:4', - ], - 'RegionId' => [ - 'description' => '实例所属的地域ID。', - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'DnsConfig' => [ - 'description' => 'DNS配置信息。', - 'type' => 'object', - 'properties' => [ - 'Searches' => [ - 'description' => 'DNS搜索域列表。', - 'type' => 'array', - 'items' => [ - 'description' => 'DNS搜索域。', - 'type' => 'string', - 'example' => 'svc.local.kubenetes', - ], - ], - 'Options' => [ - 'description' => '对象选项列表,每个对象由Name和Value(可选)构成。', - 'type' => 'array', - 'items' => [ - 'description' => '对象选项列表,每个对象由Name和Value(可选)构成。', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'description' => '对象变量值。', - 'type' => 'string', - 'example' => 'value', - ], - 'Name' => [ - 'description' => '对象变量名。', - 'type' => 'string', - 'example' => 'name', - ], - ], - ], - ], - 'NameServers' => [ - 'description' => 'DNS服务器IP地址列表。', - 'type' => 'array', - 'items' => [ - 'description' => 'IP地址。', - 'type' => 'string', - 'example' => '[10.2.*.*]', - ], - ], - ], - ], - 'Volumes' => [ - 'description' => '数据卷信息。', - 'type' => 'array', - 'items' => [ - 'description' => '数据卷信息。', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => '数据卷类型,可能值:'."\n" - ."\n" - .'- EmptyDirVolume'."\n" - .'- NFSVolume'."\n" - .'- ConfigFileVolume'."\n" - .'- FlexVolume', - 'type' => 'string', - 'example' => 'EmptyDirVolume', - ], - 'DiskVolumeDiskId' => [ - 'description' => 'DiskVolume的ID。', - 'type' => 'string', - 'example' => 'd-xxxx', - ], - 'NFSVolumeReadOnly' => [ - 'description' => '是否只读。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'ConfigFileVolumeConfigFileToPaths' => [ - 'description' => '配置文件路径列表。', - 'type' => 'array', - 'items' => [ - 'description' => '配置文件路径列表。', - 'type' => 'object', - 'properties' => [ - 'Path' => [ - 'description' => '相对文件路径。', - 'type' => 'string', - 'example' => '/usr/bin/', - ], - 'Content' => [ - 'description' => '配置文件内容 (32KB)。', - 'type' => 'string', - 'example' => 'hello world', - ], - ], - ], - ], - 'FlexVolumeFsType' => [ - 'description' => '挂载的文件系统类型,默认取决于FlexVolume的script。', - 'type' => 'string', - 'example' => 'ntfs', - ], - 'FlexVolumeDriver' => [ - 'description' => '用于FlexVolume的驱动程序名称。', - 'type' => 'string', - 'example' => 'flexvolume', - ], - 'DiskVolumeFsType' => [ - 'description' => '数据卷类型。', - 'type' => 'string', - 'example' => 'xfs', - ], - 'FlexVolumeOptions' => [ - 'description' => 'FlexVolume对象选项列表。', - 'type' => 'string', - 'example' => '[nolock,tcp,noresvport]', - ], - 'NFSVolumeServer' => [ - 'description' => 'NFS服务器地址。', - 'type' => 'string', - 'example' => '0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com', - ], - 'NFSVolumePath' => [ - 'description' => 'NFS数据卷路径。', - 'type' => 'string', - 'example' => '/eci', - ], - 'Name' => [ - 'description' => '数据卷名称。', - 'type' => 'string', - 'example' => 'test-empty', - ], - 'EmptyDirVolumeMedium' => [ - 'description' => 'EmptyDir数据卷的存储媒介。默认为空,表示使用node文件系统。支持配置为以下值:'."\n" - ."\n" - .'- Memory:表示使用内存。'."\n" - .'- LocalRaid0:表示将本地盘组成RAID 0。该取值仅适用于创建本地盘实例并挂载本地盘的场景。更多信息,请参见[创建本地盘实例](~~114664~~)。', - 'type' => 'string', - 'example' => 'Memory', - ], - 'EmptyDirVolumeSizeLimit' => [ - 'description' => 'EmptyDir数据卷的大小。', - 'type' => 'string', - 'example' => '256Mi', - ], - ], - ], - ], - 'RamRoleName' => [ - 'description' => '实例RAM角色名称,ECI与ECS共用实例RAM角色,具体操作,请参见[通过API使用实例RAM角色](~~61178~~)。', - 'type' => 'string', - 'example' => 'ram:PassRole', - ], - 'VSwitchId' => [ - 'description' => '虚拟交换机ID。'."\n", - 'type' => 'string', - 'example' => 'vsw-bp1vzjjflab6wvjox****', - ], - 'Cpu' => [ - 'description' => '实例级别vCPU大小。', - 'type' => 'number', - 'format' => 'float', - 'example' => '2.0', - ], - 'ExpiredTime' => [ - 'description' => '由于账户欠费导致实例运行失败的时间。UTC时间,RFC3339标准。'."\n", - 'type' => 'string', - 'example' => '2018-08-02T15:00:00Z', - ], - 'ResourceGroupId' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'example' => 'rg-8db03793gfrz****', - ], - 'ZoneId' => [ - 'description' => '实例所属的可用区。', - 'type' => 'string', - 'example' => 'cn-hangzhou-h', - ], - 'ContainerGroupName' => [ - 'description' => '实例名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'EciSecurityContext' => [ - 'description' => '容器组运行的安全上下文。', - 'type' => 'object', - 'properties' => [ - 'Sysctls' => [ - 'description' => 'sysctl参数。', - 'type' => 'array', - 'items' => [ - 'description' => 'sysctl参数。', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'description' => 'sysctl参数值。', - 'type' => 'string', - 'example' => '65536', - ], - 'Name' => [ - 'description' => 'sysctl参数名。', - 'type' => 'string', - 'example' => 'kernel.msgmax', - ], - ], - ], - ], - ], - ], - 'FailedTime' => [ - 'description' => '实例运行失败的时间。UTC时间,RFC 3339标准。', - 'type' => 'string', - 'example' => '2018-08-02T15:00:00Z', - ], - 'ComputeCategory' => [ - 'description' => '算力类别。可能值:'."\n" - ."\n" - .'- economy:经济型'."\n" - .'- general:通用型', - 'type' => 'string', - 'example' => 'economy', - ], - 'DnsPolicy' => [ - 'description' => 'DNS策略。可能值'."\n" - ."\n" - .'- None:使用DnsConfig字段设置的DNS。'."\n" - .'- Default:继承运行环境的DNS设置。', - 'type' => 'string', - 'example' => 'None', - ], - ], - ], + 'description' => '镜像缓存标签信息,最多20个。', + 'type' => 'array', + 'items' => [ + 'description' => '镜像缓存标签信息,最多20个。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '镜像缓存标签键。', 'type' => 'string', 'required' => false, 'example' => 'imc'], + 'Value' => ['description' => '镜像缓存标签值。', 'type' => 'string', 'required' => false, 'example' => 'test'], ], + 'required' => false, ], + 'required' => false, + 'maxItems' => 21, ], ], - ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'InvalidParameter.MismatchInstanceType', - 'errorMessage' => 'The instanceId mismatch instance type.', - ], - ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 1,\\n \\"NextToken\\": \\"d78f2dd8-5979-42fe-****-b16db43be5bc\\",\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\",\\n \\"ContainerGroups\\": [\\n {\\n \\"Status\\": \\"Running\\",\\n \\"CreationTime\\": \\"2018-08-02T15:00:00Z\\",\\n \\"VpcId\\": \\"vpc-1vzjjflab6wvjox****\\",\\n \\"InternetIp\\": \\"192.0.XX.XX\\",\\n \\"TenantSecurityGroupId\\": \\"sg-xxx\\",\\n \\"SecurityGroupId\\": \\"sg-bp12ujq5zpxuyjfo3o8r\\",\\n \\"HostAliases\\": [\\n {\\n \\"Hostnames\\": [\\n \\"[\'hehe.com\', \'haha.com\']\\"\\n ],\\n \\"Ip\\": \\"192.0.XX.XX\\"\\n }\\n ],\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"name\\",\\n \\"Value\\": \\"test-xh\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"LastTimestamp\\": \\"2018-08-02T15:00:00Z\\",\\n \\"Message\\": \\"Started container\\",\\n \\"Name\\": \\"test-xxx\\",\\n \\"Reason\\": \\"Created\\",\\n \\"Count\\": 20,\\n \\"FirstTimestamp\\": \\"2018-08-02T15:00:00Z\\"\\n }\\n ],\\n \\"SucceededTime\\": \\"2019-12-11T04:33:42Z\\",\\n \\"SpotStrategy\\": \\"NoSpot\\",\\n \\"SpotPriceLimit\\": 0.025,\\n \\"EphemeralStorage\\": 20,\\n \\"TenantEniInstanceId\\": \\"i-xxx\\",\\n \\"Discount\\": 9,\\n \\"RestartPolicy\\": \\"Never\\",\\n \\"Memory\\": 4,\\n \\"TenantVSwitchId\\": \\"vsw-xxx\\",\\n \\"Containers\\": [\\n {\\n \\"LivenessProbe\\": {\\n \\"SuccessThreshold\\": 1,\\n \\"InitialDelaySeconds\\": 10,\\n \\"FailureThreshold\\": 3,\\n \\"TimeoutSeconds\\": 10,\\n \\"TcpSocket\\": {\\n \\"Host\\": \\"1.2.3.4\\",\\n \\"Port\\": 80\\n },\\n \\"Execs\\": [\\n \\"[\\\\\\"/bin/sh\\\\\\", \\\\\\"-c\\\\\\", \\\\\\"echo Hello world > /usr/share/message\\\\\\"]\\"\\n ],\\n \\"HttpGet\\": {\\n \\"Scheme\\": \\"HTTP\\",\\n \\"Path\\": \\"/usr/nginx/\\",\\n \\"Port\\": 80\\n },\\n \\"PeriodSeconds\\": 5\\n },\\n \\"Commands\\": [\\n \\"[/bin/sh echo]\\"\\n ],\\n \\"VolumeMounts\\": [\\n {\\n \\"MountPropagation\\": \\"None\\",\\n \\"MountPath\\": \\"/usr/share/\\",\\n \\"ReadOnly\\": false,\\n \\"Name\\": \\"test-empty\\",\\n \\"SubPath\\": \\"/usr/sub\\"\\n }\\n ],\\n \\"Args\\": [\\n \\"[\\\\\\"hello\\\\\\"]\\"\\n ],\\n \\"Image\\": \\"mysql\\",\\n \\"Ports\\": [\\n {\\n \\"Protocol\\": \\"TCP\\",\\n \\"Port\\": 8080\\n }\\n ],\\n \\"RestartCount\\": 0,\\n \\"ImagePullPolicy\\": \\"Always\\",\\n \\"StdinOnce\\": true,\\n \\"Cpu\\": 2,\\n \\"PreviousState\\": {\\n \\"StartTime\\": \\"2021-12-02T15:00:00Z\\",\\n \\"FinishTime\\": \\"2021-12-02T15:01:00Z\\",\\n \\"DetailStatus\\": \\"working\\",\\n \\"State\\": \\"Terminated\\",\\n \\"Message\\": \\"Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)\\",\\n \\"Signal\\": 1,\\n \\"ExitCode\\": 0,\\n \\"Reason\\": \\"Completed\\"\\n },\\n \\"Tty\\": false,\\n \\"WorkingDir\\": \\"/usr/local/nginx\\",\\n \\"CurrentState\\": {\\n \\"StartTime\\": \\"2021-12-02T15:00:00Z\\",\\n \\"FinishTime\\": \\"2021-12-02T15:01:00Z\\",\\n \\"DetailStatus\\": \\"working\\",\\n \\"State\\": \\"Terminated\\",\\n \\"Message\\": \\"Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)\\",\\n \\"Signal\\": 1,\\n \\"ExitCode\\": 0,\\n \\"Reason\\": \\"Started\\"\\n },\\n \\"Ready\\": true,\\n \\"Gpu\\": 1,\\n \\"SecurityContext\\": {\\n \\"ReadOnlyRootFilesystem\\": true,\\n \\"RunAsUser\\": 1000,\\n \\"Capability\\": {\\n \\"Adds\\": [\\n \\"[NET_ADMIN]\\"\\n ]\\n }\\n },\\n \\"Memory\\": 2,\\n \\"Stdin\\": true,\\n \\"Name\\": \\"nginx\\",\\n \\"EnvironmentVars\\": [\\n {\\n \\"Key\\": \\"PATH\\",\\n \\"Value\\": \\"/usr/bin/\\",\\n \\"ValueFrom\\": {\\n \\"FieldRef\\": {\\n \\"FieldPath\\": \\"status.podIP\\"\\n }\\n }\\n }\\n ],\\n \\"ReadinessProbe\\": {\\n \\"SuccessThreshold\\": 1,\\n \\"InitialDelaySeconds\\": 5,\\n \\"FailureThreshold\\": 3,\\n \\"TimeoutSeconds\\": 1,\\n \\"TcpSocket\\": {\\n \\"Host\\": \\"1.2.3.4\\",\\n \\"Port\\": 8888\\n },\\n \\"Execs\\": [\\n \\"[\\\\\\"/bin/sh\\\\\\", \\\\\\"-c\\\\\\", \\\\\\"echo Hello world > /usr/share/message\\\\\\"]\\"\\n ],\\n \\"HttpGet\\": {\\n \\"Scheme\\": \\"HTTP\\",\\n \\"Path\\": \\"/usr/local\\",\\n \\"Port\\": 8080\\n },\\n \\"PeriodSeconds\\": 1\\n }\\n }\\n ],\\n \\"EniInstanceId\\": \\"eni-bp14rzqi6fd8satm****\\",\\n \\"InitContainers\\": [\\n {\\n \\"VolumeMounts\\": [\\n {\\n \\"MountPropagation\\": \\"None\\",\\n \\"MountPath\\": \\"/usr/share/\\",\\n \\"ReadOnly\\": false,\\n \\"Name\\": \\"test-empty\\"\\n }\\n ],\\n \\"Args\\": [\\n \\"[\'hello world\']\\"\\n ],\\n \\"Image\\": \\"nginx\\",\\n \\"Ports\\": [\\n {\\n \\"Protocol\\": \\"TCP\\",\\n \\"Port\\": 8888\\n }\\n ],\\n \\"RestartCount\\": 5,\\n \\"ImagePullPolicy\\": \\"Always\\",\\n \\"PreviousState\\": {\\n \\"StartTime\\": \\"2021-12-02T15:00:00Z\\",\\n \\"FinishTime\\": \\"2021-12-02T15:01:00Z\\",\\n \\"DetailStatus\\": \\"working\\",\\n \\"State\\": \\"Terminated\\",\\n \\"Message\\": \\"Started container\\",\\n \\"Signal\\": 1,\\n \\"ExitCode\\": 0,\\n \\"Reason\\": \\"completed\\"\\n },\\n \\"WorkingDir\\": \\"/usr/test\\",\\n \\"Cpu\\": 1,\\n \\"CurrentState\\": {\\n \\"StartTime\\": \\"2021-12-02T15:00:00Z\\",\\n \\"FinishTime\\": \\"2021-12-02T15:01:00Z\\",\\n \\"DetailStatus\\": \\"working\\",\\n \\"State\\": \\"Running\\",\\n \\"Message\\": \\"Created container\\",\\n \\"Signal\\": 1,\\n \\"ExitCode\\": 0,\\n \\"Reason\\": \\"Started\\"\\n },\\n \\"Command\\": [\\n \\"[/bin/sh echo]\\"\\n ],\\n \\"Ready\\": true,\\n \\"Gpu\\": 1,\\n \\"SecurityContext\\": {\\n \\"ReadOnlyRootFilesystem\\": true,\\n \\"RunAsUser\\": 1557,\\n \\"Capability\\": {\\n \\"Adds\\": [\\n \\"NET_ADMIN\\"\\n ]\\n }\\n },\\n \\"Memory\\": 2,\\n \\"Name\\": \\"Init-xxx\\",\\n \\"EnvironmentVars\\": [\\n {\\n \\"Key\\": \\"PATH\\",\\n \\"Value\\": \\"/usr/local/bin\\",\\n \\"ValueFrom\\": {\\n \\"FieldRef\\": {\\n \\"FieldPath\\": \\"status.podIP\\"\\n }\\n }\\n }\\n ]\\n }\\n ],\\n \\"ContainerGroupId\\": \\"eci-bp1jrgfqqy54kg5hc****\\",\\n \\"TenantEniIp\\": \\"10.10.XX.XX\\",\\n \\"InstanceType\\": \\"ecs.g5.large\\",\\n \\"IntranetIp\\": \\"172.16.XX.XX\\",\\n \\"Ipv6Address\\": \\"2001:XXXX:4:4:4:4:4:4\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"DnsConfig\\": {\\n \\"Searches\\": [\\n \\"svc.local.kubenetes\\"\\n ],\\n \\"Options\\": [\\n {\\n \\"Value\\": \\"value\\",\\n \\"Name\\": \\"name\\"\\n }\\n ],\\n \\"NameServers\\": [\\n \\"[10.2.*.*]\\"\\n ]\\n },\\n \\"Volumes\\": [\\n {\\n \\"Type\\": \\"EmptyDirVolume\\",\\n \\"DiskVolumeDiskId\\": \\"d-xxxx\\",\\n \\"NFSVolumeReadOnly\\": false,\\n \\"ConfigFileVolumeConfigFileToPaths\\": [\\n {\\n \\"Path\\": \\"/usr/bin/\\",\\n \\"Content\\": \\"hello world\\"\\n }\\n ],\\n \\"FlexVolumeFsType\\": \\"ntfs\\",\\n \\"FlexVolumeDriver\\": \\"flexvolume\\",\\n \\"DiskVolumeFsType\\": \\"xfs\\",\\n \\"FlexVolumeOptions\\": \\"[nolock,tcp,noresvport]\\",\\n \\"NFSVolumeServer\\": \\"0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com\\",\\n \\"NFSVolumePath\\": \\"/eci\\",\\n \\"Name\\": \\"test-empty\\",\\n \\"EmptyDirVolumeMedium\\": \\"Memory\\",\\n \\"EmptyDirVolumeSizeLimit\\": \\"256Mi\\"\\n }\\n ],\\n \\"RamRoleName\\": \\"ram:PassRole\\",\\n \\"VSwitchId\\": \\"vsw-bp1vzjjflab6wvjox****\\",\\n \\"Cpu\\": 2,\\n \\"ExpiredTime\\": \\"2018-08-02T15:00:00Z\\",\\n \\"ResourceGroupId\\": \\"rg-8db03793gfrz****\\",\\n \\"ZoneId\\": \\"cn-hangzhou-h\\",\\n \\"ContainerGroupName\\": \\"test\\",\\n \\"EciSecurityContext\\": {\\n \\"Sysctls\\": [\\n {\\n \\"Value\\": \\"65536\\",\\n \\"Name\\": \\"kernel.msgmax\\"\\n }\\n ]\\n },\\n \\"FailedTime\\": \\"2018-08-02T15:00:00Z\\",\\n \\"ComputeCategory\\": \\"economy\\",\\n \\"DnsPolicy\\": \\"None\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupsResponse>\\n <TotalCount>1</TotalCount>\\n <NextToken/>\\n <RequestId>CAABE95E-ED57-56CC-B361-48566745A3CC</RequestId>\\n <ContainerGroups>\\n <Discount>10</Discount>\\n <Memory>4</Memory>\\n <Containers>\\n <EnvironmentVars>\\n <ValueFrom>\\n <FieldRef/>\\n </ValueFrom>\\n <Value>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</Value>\\n <Key>PATH</Key>\\n </EnvironmentVars>\\n <EnvironmentVars>\\n <ValueFrom>\\n <FieldRef/>\\n </ValueFrom>\\n <Value>1.15.10-1~stretch</Value>\\n <Key>NGINX_VERSION</Key>\\n </EnvironmentVars>\\n <EnvironmentVars>\\n <ValueFrom>\\n <FieldRef/>\\n </ValueFrom>\\n <Value>1.15.10.0.3.0-1~stretch</Value>\\n <Key>NJS_VERSION</Key>\\n </EnvironmentVars>\\n <ReadinessProbe>\\n <HttpGet/>\\n <TcpSocket/>\\n </ReadinessProbe>\\n <Memory>0</Memory>\\n <LivenessProbe>\\n <HttpGet/>\\n <TcpSocket/>\\n </LivenessProbe>\\n <Cpu>0</Cpu>\\n <Image>registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:latest</Image>\\n <Gpu>0</Gpu>\\n <PreviousState>\\n <FinishTime/>\\n <State/>\\n <StartTime/>\\n </PreviousState>\\n <Name>container-1</Name>\\n <RestartCount>0</RestartCount>\\n <Ready>true</Ready>\\n <WorkingDir/>\\n <ImagePullPolicy>IfNotPresent</ImagePullPolicy>\\n <CurrentState>\\n <FinishTime/>\\n <State>Running</State>\\n <StartTime>2021-09-08T02:49:52Z</StartTime>\\n </CurrentState>\\n <SecurityContext>\\n <Capability/>\\n </SecurityContext>\\n </Containers>\\n <Cpu>2</Cpu>\\n <EciSecurityContext/>\\n <FailedTime/>\\n <IntranetIp>172.16.XX.XX</IntranetIp>\\n <ContainerGroupName>container-group-1631069337474</ContainerGroupName>\\n <DnsConfig/>\\n <InternetIp/>\\n <ExpiredTime/>\\n <InstanceType>ecs.c5.large</InstanceType>\\n <SpotStrategy>SpotAsPriceGo</SpotStrategy>\\n <Status>Running</Status>\\n <ZoneId>cn-beijing-g</ZoneId>\\n <SucceededTime/>\\n <SecurityGroupId>sg-2ze81zoc3yl7a3we****</SecurityGroupId>\\n <VSwitchId>vsw-2ze23nqzig8inprou****</VSwitchId>\\n <RestartPolicy>Always</RestartPolicy>\\n <VpcId>vpc-2zeghwzptn5zii0w7****</VpcId>\\n <CreationTime>2021-09-08T02:49:40Z</CreationTime>\\n <EniInstanceId>eni-2ze80ferll5c3wjk****</EniInstanceId>\\n <ContainerGroupId>eci-2zeg7owsmm74shw8****</ContainerGroupId>\\n <RegionId>cn-beijing</RegionId>\\n </ContainerGroups>\\n</DescribeContainerGroupsResponse>","errorExample":""}]', - 'title' => '批量查询容器组信息', - 'summary' => '调用DescribeContainerGroups批量查询ECI实例的信息。', - 'description' => '- 当ECI实例运行终止后,底层计算资源将会被回收。随实例一起创建的其它资源(例如EIP等)默认随实例一起释放。'."\n" - .'- 终态(处于Failed、Succeeded或Expired状态)实例的元数据信息的保留情况如下:'."\n" - .' - 1小时内的实例信息全部保留。'."\n" - .' - 超出1小时的实例仅保留最近的100条(单个地域分别计算)。'."\n" - .'- 如果使用RAM用户账号或者RAM角色进行查询,当RAM用户或者角色缺乏接口权限时,会返回空列表。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DescribeContainerGroupStatus' => [ - 'summary' => '调用DescribeContainerGroupStatus批量查询ECI实例的状态。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '45919', - 'abilityTreeNodes' => [ - 'FEATUREeciO8VNZM', - ], - ], - 'parameters' => [ - [ - 'name' => 'RegionId', + 'name' => 'Flash', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '是否开启极速镜像缓存功能,开启后,可以加速镜像缓存创建。取值范围:'."\n" + ."\n" + .'- true:开启'."\n" + ."\n" + .'- false:不开启'."\n" + ."\n" + .'默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ - 'name' => 'ZoneId', + 'name' => 'AcrRegistryInfo', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '可用区ID。', - 'type' => 'string', + 'description' => 'ACR实例信息。更多信息,请参见[免密拉取ACR镜像](~~194250~~)。', + 'type' => 'array', + 'items' => [ + 'description' => 'ACR实例信息。', + 'type' => 'object', + 'properties' => [ + 'Domain' => [ + 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', + 'type' => 'array', + 'items' => ['description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', 'type' => 'string', 'required' => false, 'example' => 'test****-registry.cn-beijing.cr.aliyuncs.com'], + 'required' => false, + 'example' => 'test****-registry.cn-beijing.cr.aliyuncs.com', + 'maxItems' => 100, + ], + 'InstanceName' => ['description' => 'ACR企业版实例的名称。', 'type' => 'string', 'required' => false, 'example' => 'test****'], + 'InstanceId' => ['description' => 'ACR企业版实例ID。', 'type' => 'string', 'required' => false, 'example' => 'cri-nwj395hgf6f3****'], + 'RegionId' => ['description' => 'ACR企业版实例所属地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], + 'ArnService' => ['description' => 'ECI实例等资源归属账号下的RAM角色的ARN。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1609982529******:role/role-assume'], + 'ArnUser' => ['description' => 'ACR实例归属账号下的RAM角色的ARN。', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1298452580******:role/role-acr'], + ], + 'required' => false, + ], 'required' => false, - 'example' => 'cn-hangzhou-k', + 'maxItems' => 21, ], ], [ - 'name' => 'VSwitchId', + 'name' => 'Annotations', 'in' => 'query', - 'schema' => [ - 'description' => '交换机ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-uf6h3rbwbm90urjwa****', - ], + 'schema' => ['description' => '注解。该参数暂不对外使用。', 'type' => 'string', 'required' => false, 'example' => 'hide'], ], [ - 'name' => 'ResourceGroupId', + 'name' => 'PlainHttpRegistry', 'in' => 'query', - 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-uf66jeqopgqa9hdn****', - ], + 'schema' => ['description' => '自建镜像仓库地址。使用HTTP协议的自建镜像仓库中的镜像创建镜像缓存时,需配置该参数,使得ECI使用HTTP协议拉取镜像,避免因协议不同而导致镜像拉取失败。', 'type' => 'string', 'required' => false, 'example' => '"harbor***.pre.com,192.168.XX.XX:5000,reg***.test.com:80"'], ], [ - 'name' => 'ContainerGroupIds', + 'name' => 'InsecureRegistry', 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例ID序列。最多20个,字符串需按照JSON格式传入。', - 'type' => 'string', - 'required' => false, - 'example' => '["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"]', - ], + 'schema' => ['description' => '自建镜像仓库地址。'."\n" + ."\n" + .'使用自签发证书的自建镜像仓库中的镜像创建镜像缓存时,需配置该参数来跳过证书认证,避免因证书认证失败而导致镜像拉取失败。', 'type' => 'string', 'required' => false, 'example' => '"harbor***.pre.com,192.168.XX.XX:5000,reg***.test.com:80"'], ], [ - 'name' => 'SinceSecond', + 'name' => 'StandardCopyCount', 'in' => 'query', - 'schema' => [ - 'description' => '返回最近几秒内有状态更新的ECI实例状态,用于轮询查询状态。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '3600', - 'minimum' => '60', - 'example' => '60', - ], + 'schema' => ['description' => '标准快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n" + ."\n" + .'> 未开启极速镜像缓存功能(Flash取值为false)时,创镜像缓存的过程中仅生成标准快照。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7'], ], [ - 'name' => 'Tag', + 'name' => 'FlashCopyCount', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'ECI实例绑定的标签。', - 'type' => 'array', - 'items' => [ - 'description' => 'ECI实例绑定的标签。', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'description' => 'ECI实例的标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'testValue', - ], - 'Key' => [ - 'description' => 'ECI实例的标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'testKey', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 10, - ], + 'schema' => ['description' => '本地快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n" + ."\n" + .'> 开启极速镜像缓存功能(Flash取值为true)时,创建镜像缓存的过程中将先创建本地快照,在本地快照创建完成后开始创建标准快照,待标准快照创建完成后会自动删除本地快照。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7'], ], [ - 'name' => 'NextToken', + 'name' => 'EliminationStrategy', 'in' => 'query', - 'schema' => [ - 'description' => '下一个查询开始的Token,NextToken为空表示没有下一个。 '."\n" - .'首次查询时无需设置该参数,后续查询的Token从返回结果中获取。', - 'type' => 'string', - 'required' => false, - 'example' => 'd78f2dd8-5979-42fe-xaee-b16db43be5bc', - ], + 'schema' => ['description' => '镜像缓存的淘汰策略。默认为空,表示一直保留。'."\n" + ."\n" + .'支持配置为LRU,表示可以被自动删除。当镜像缓存数量达到配额限制时,系统将自动删除最不常用的EliminationStrategy为LRU的镜像缓存。', 'type' => 'string', 'required' => false, 'example' => 'LRU'], ], [ - 'name' => 'Limit', + 'name' => 'OsType', 'in' => 'query', - 'schema' => [ - 'description' => '限定此次返回资源(ECI实例)的数量。默认为200个。'."\n" - ."\n" - .'> 返回结果可能小于指定的数量,但不会多于指定的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '200', - 'minimum' => '1', - 'example' => '200', - 'default' => '50', - ], + 'schema' => ['description' => '容器镜像的操作系统。取值范围:'."\n" + ."\n" + .'- Linux(默认值)'."\n" + .'- Windows'."\n" + ."\n" + .'> Windows正在邀测中,如需使用,请提交工单申请。', 'type' => 'string', 'required' => false, 'example' => 'Linux'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '1340C38D-6189-54D1-86F6-7D5ECF3E0088', - ], - 'NextToken' => [ - 'description' => '下一个查询开始的Token。', - 'type' => 'string', - 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc', - ], - 'TotalCount' => [ - 'description' => '结果条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Data' => [ - 'description' => 'ECI实例状态信息集合。', - 'type' => 'array', - 'items' => [ - 'description' => 'ECI实例状态信息集合。', - 'type' => 'object', - 'properties' => [ - 'ContainerGroupId' => [ - 'description' => 'ECI实例ID。', - 'type' => 'string', - 'example' => 'eci-bp1jrgfqqy54kg5hc****', - ], - 'Name' => [ - 'description' => 'ECI实例名称。', - 'type' => 'string', - 'example' => 'nginx', - ], - 'Namespace' => [ - 'description' => 'ECI实例所在命名空间。', - 'type' => 'string', - 'example' => 'default', - ], - 'Status' => [ - 'description' => 'ECI实例状态。', - 'type' => 'string', - 'example' => 'Running', - ], - 'uuid' => [ - 'description' => 'ECI实例UUID,对应K8s的POD UID。', - 'type' => 'string', - 'example' => '78ee0657-987g-b8b2-1f507dic4****', - ], - 'Annotations' => [ - 'description' => 'ECI实例的注解。', - 'type' => 'string', - 'example' => '"{\\"tenancy.x-k8s.io/namespace\\":\\"redis\\"}"', - ], - 'PodStatus' => [ - 'description' => 'ECI实例的状态信息。', - 'type' => 'object', - 'properties' => [ - 'Conditions' => [ - 'description' => 'Pod conditions信息。', - 'type' => 'array', - 'items' => [ - 'description' => 'Pod conditions信息。', - 'type' => 'object', - 'properties' => [ - 'type' => [ - 'description' => 'condition类型。可能值:'."\n" - ."\n" - .'- PodReadyToStartContainers'."\n" - .'- Initialized'."\n" - .'- Ready'."\n" - .'- ContainersReady'."\n" - .'- PodScheduled'."\n" - .'- ContainerHasSufficientDisk'."\n" - .'- ContainerInstanceCreated'."\n" - .'- Unschedulable', - 'type' => 'string', - 'example' => 'Ready', - ], - 'status' => [ - 'description' => 'condition状态。', - 'type' => 'string', - 'example' => 'True', - ], - 'Reason' => [ - 'description' => '事件原因。', - 'type' => 'string', - 'example' => 'Completed', - ], - 'Message' => [ - 'description' => '事件消息。', - 'type' => 'string', - 'example' => 'Completed', - ], - 'lastTransitionTime' => [ - 'description' => '最后一次状态变化时间。', - 'type' => 'string', - 'example' => '2021-05-12T07:02:47Z', - ], - ], - ], - ], - 'ContainerStatuses' => [ - 'description' => '容器状态信息。', - 'type' => 'array', - 'items' => [ - 'description' => '容器状态信息。', - 'type' => 'object', - 'properties' => [ - 'Image' => [ - 'description' => '容器镜像。', - 'type' => 'string', - 'example' => 'registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu:18.04', - ], - 'ImageID' => [ - 'description' => '镜像ID。', - 'type' => 'string', - 'example' => 'registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu@sha256:134c7fe821b9d359490cd009ce7ca322453f4f2d018623f849e580a89a685e5d', - ], - 'Name' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'example' => 'ubuntu', - ], - 'Ready' => [ - 'description' => '容器是否Ready。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'RestartCount' => [ - 'description' => '重启次数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Started' => [ - 'description' => '容器是否启动。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'State' => [ - 'description' => '容器状态。包括:'."\n" - ."\n" - .'- Waiting'."\n" - .'- Running'."\n" - .'- Terminated', - 'type' => 'object', - 'properties' => [ - 'Waiting' => [ - 'description' => '容器正在等待创建,还未开始运行。', - 'type' => 'object', - 'properties' => [ - 'Reason' => [ - 'description' => '事件原因。', - 'type' => 'string', - 'example' => 'Started', - ], - 'Message' => [ - 'description' => '事件消息。', - 'type' => 'string', - 'example' => 'Back-off', - ], - ], - ], - 'Running' => [ - 'description' => '容器已经成功创建,并且正在运行。', - 'type' => 'object', - 'properties' => [ - 'StartedAtstartedAt' => [ - 'description' => '开始时间。', - 'type' => 'string', - 'example' => '2021-05-23T20:49:31Z', - ], - ], - ], - 'Terminated' => [ - 'description' => '容器运行终止并退出,包括运行成功终止和运行失败终止。', - 'type' => 'object', - 'properties' => [ - 'ContainerID' => [ - 'description' => '容器ID。', - 'type' => 'string', - 'example' => 'containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******', - ], - 'ExitCode' => [ - 'description' => '退出码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'FinishedAt' => [ - 'description' => '结束时间。', - 'type' => 'string', - 'example' => '2021-05-23T20:55:31Z', - ], - 'StartedAt' => [ - 'description' => '开始时间。', - 'type' => 'string', - 'example' => '2021-05-23T20:49:31Z', - ], - 'Signal' => [ - 'description' => '信号码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Reason' => [ - 'description' => '事件原因。', - 'type' => 'string', - 'example' => 'Completed', - ], - 'Message' => [ - 'description' => '事件消息。', - 'type' => 'string', - 'example' => 'Completed', - ], - ], - ], - ], - ], - 'LastState' => [ - 'description' => '容器上一次状态。', - 'type' => 'object', - 'properties' => [ - 'Waiting' => [ - 'description' => '容器正在等待创建,还未开始运行。', - 'type' => 'object', - 'properties' => [ - 'Reason' => [ - 'description' => '事件原因。', - 'type' => 'string', - 'example' => 'Started', - ], - 'Message' => [ - 'description' => '事件消息。', - 'type' => 'string', - 'example' => 'Back-off', - ], - ], - ], - 'Running' => [ - 'description' => '容器已经成功创建,并且正在运行。', - 'type' => 'object', - 'properties' => [ - 'StartedAtstartedAt' => [ - 'description' => '开始时间。', - 'type' => 'string', - 'example' => '2021-05-23T20:49:31Z', - ], - ], - ], - 'Terminated' => [ - 'description' => '容器运行终止并退出,包括运行成功终止和运行失败终止。', - 'type' => 'object', - 'properties' => [ - 'ContainerID' => [ - 'description' => '容器ID。', - 'type' => 'string', - 'example' => 'containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******', - ], - 'ExitCode' => [ - 'description' => '退出码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'FinishedAt' => [ - 'description' => '结束时间。', - 'type' => 'string', - 'example' => '2021-05-23T20:49:31Z', - ], - 'StartedAt' => [ - 'description' => '开始时间。', - 'type' => 'string', - 'example' => '2021-05-12T07:02:52Z', - ], - 'Signal' => [ - 'description' => '信号码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Reason' => [ - 'description' => '事件原因。', - 'type' => 'string', - 'example' => 'Completed', - ], - 'Message' => [ - 'description' => '事件消息。', - 'type' => 'string', - 'example' => 'Completed', - ], - ], - ], - ], - ], - ], - ], - ], - 'HostIp' => [ - 'description' => '主机IP。', - 'type' => 'string', - 'example' => '192.168.XX.XX', - ], - 'Phase' => [ - 'description' => 'Pod生命周期阶段。', - 'type' => 'string', - 'example' => 'Running', - ], - 'PodIp' => [ - 'description' => 'Pod IP地址。', - 'type' => 'string', - 'example' => '192.168.XX.XX', - ], - 'PodIps' => [ - 'description' => 'Pod IP地址集合。', - 'type' => 'array', - 'items' => [ - 'description' => 'Pod IP地址集合。', - 'type' => 'object', - 'properties' => [ - 'Ip' => [ - 'description' => 'Pod IP地址。', - 'type' => 'string', - 'example' => '192.168.XX.XX', - ], - ], - ], - ], - 'QosClass' => [ - 'description' => 'Pod Qos。', - 'type' => 'string', - 'example' => 'Guaranteed', - ], - 'StartTime' => [ - 'description' => '容器开始运行时间。', - 'type' => 'string', - 'example' => '2021-05-12T07:02:47Z', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC391DD'], + 'ImageCacheId' => ['description' => '镜像缓存ID。', 'type' => 'string', 'example' => 'imc-2zebxkiifuyzzlhl****'], + 'ContainerGroupId' => ['description' => '用于中转创建镜像缓存的ECI实例ID。'."\n", 'type' => 'string', 'example' => 'eci-2zebxkiifuyzzlhl****'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter.MismatchInstanceType', - 'errorMessage' => 'The instanceId mismatch instance type.', + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'ImageCache.IncorrectStatus', 'errorMessage' => '%s', 'description' => '镜像缓存当前的状态不对。'], + ['errorCode' => 'ImageCacheNotSupport', 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', 'description' => '镜像缓存功能还未全网开放,如果有需要请联系我们。'], + ['errorCode' => 'EipAddressPoolIpNotEnough', 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', 'description' => '指定的eip公网地址池地址资源不足。'], + ['errorCode' => 'OperationConflict', 'errorMessage' => 'The request was denied. It conflicts with a previous request.', 'description' => ''], + ], + 403 => [ + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ], + ], + 'title' => '创建一个镜像缓存', + 'summary' => '调用CreateImageCache接口创建一个镜像缓存,以便后续创建ECI实例可以加速镜像拉取,减少实例启动耗时。', + 'description' => '### 注意事项'."\n" + ."\n" + .'- 创建镜像缓存涉及资源计费。建议您提前了解相关计费信息。更多信息,请参见[镜像缓存计费](~~447682~~)。'."\n" + .'- 创建镜像缓存前,您需要评估待缓存镜像的总大小,如果镜像总大小超过设置的缓存大小,将会创建失败。'."\n" + .'- 创建镜像缓存时,系统将自动创建一个ECI实例和一块ESSD PL1类型的云盘用于中转创建镜像缓存。创建过程中请勿删除ECI实例和云盘,否则镜像缓存将创建失败。'."\n" + .'- 创建镜像缓存将生成对应的快照。请勿删除快照,否则镜像缓存将会失效。'."\n" + .'- 如果使用SDK,则对应版本为:Java 1.0.10以上,Python 1.0.7以上。'."\n" + ."\n" + .'### 使用建议'."\n" + .'- 对于使用自定义域名的ACR企业版镜像,需要指定ACR实例(设置AcrRegistryInfo相关参数)来配置免密。设置AcrRegistryInfo相关参数时,必须设置AcrRegistryInfo.N.InstanceId。'."\n" + .'- 如果该镜像缓存将用于批量创建多个(超过1000个)ECI实例,建议您设置StandardCopyCount和FlashCopyCount实现快照多副本功能。快照多副本按增量数据收费,由于本次创建的多个快照副本数据均一致,因此使用快照多副本功能不会增加额外费用。'."\n" + ."\n" + .'> 调用CreateImageCache创建镜像缓存时,系统将自动为您创建一个服务关联角色AliyunServiceRoleForECI,用于访问ECS、VPC等相关云服务。更多信息,请参见[弹性容器实例服务关联角色](~~212914~~)。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2024-09-26T09:30:38.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-08-02T06:28:43.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2023-06-27T03:46:10.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-06-24T08:52:00.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2022-02-28T16:20:17.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-02-28T16:20:17.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-09-10T07:37:05.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-08-12T06:21:27.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-06-10T01:40:39.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-06-10T01:40:39.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-04-27T03:03:09.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateImageCache'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1340C38D-6189-54D1-86F6-7D5ECF3E0088\\",\\n \\"NextToken\\": \\"d78f2dd8-5979-42fe-****-b16db43be5bc\\",\\n \\"TotalCount\\": 1,\\n \\"Data\\": [\\n {\\n \\"ContainerGroupId\\": \\"eci-bp1jrgfqqy54kg5hc****\\",\\n \\"Name\\": \\"nginx\\",\\n \\"Namespace\\": \\"default\\",\\n \\"Status\\": \\"Running\\",\\n \\"uuid\\": \\"78ee0657-987g-b8b2-1f507dic4****\\",\\n \\"Annotations\\": \\"\\\\\\"{\\\\\\\\\\\\\\"tenancy.x-k8s.io/namespace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"redis\\\\\\\\\\\\\\"}\\\\\\"\\",\\n \\"PodStatus\\": {\\n \\"Conditions\\": [\\n {\\n \\"type\\": \\"Ready\\",\\n \\"status\\": \\"True\\",\\n \\"Reason\\": \\"Completed\\",\\n \\"Message\\": \\"Completed\\",\\n \\"lastTransitionTime\\": \\"2021-05-12T07:02:47Z\\"\\n }\\n ],\\n \\"ContainerStatuses\\": [\\n {\\n \\"Image\\": \\"registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu:18.04\\",\\n \\"ImageID\\": \\"registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu@sha256:134c7fe821b9d359490cd009ce7ca322453f4f2d018623f849e580a89a685e5d\\",\\n \\"Name\\": \\"ubuntu\\",\\n \\"Ready\\": true,\\n \\"RestartCount\\": 1,\\n \\"Started\\": true,\\n \\"State\\": {\\n \\"Waiting\\": {\\n \\"Reason\\": \\"Started\\",\\n \\"Message\\": \\"Back-off\\"\\n },\\n \\"Running\\": {\\n \\"StartedAtstartedAt\\": \\"2021-05-23T20:49:31Z\\"\\n },\\n \\"Terminated\\": {\\n \\"ContainerID\\": \\"containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******\\",\\n \\"ExitCode\\": 0,\\n \\"FinishedAt\\": \\"2021-05-23T20:55:31Z\\",\\n \\"StartedAt\\": \\"2021-05-23T20:49:31Z\\",\\n \\"Signal\\": 1,\\n \\"Reason\\": \\"Completed\\",\\n \\"Message\\": \\"Completed\\"\\n }\\n },\\n \\"LastState\\": {\\n \\"Waiting\\": {\\n \\"Reason\\": \\"Started\\",\\n \\"Message\\": \\"Back-off\\"\\n },\\n \\"Running\\": {\\n \\"StartedAtstartedAt\\": \\"2021-05-23T20:49:31Z\\"\\n },\\n \\"Terminated\\": {\\n \\"ContainerID\\": \\"containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******\\",\\n \\"ExitCode\\": 0,\\n \\"FinishedAt\\": \\"2021-05-23T20:49:31Z\\",\\n \\"StartedAt\\": \\"2021-05-12T07:02:52Z\\",\\n \\"Signal\\": 1,\\n \\"Reason\\": \\"Completed\\",\\n \\"Message\\": \\"Completed\\"\\n }\\n }\\n }\\n ],\\n \\"HostIp\\": \\"192.168.XX.XX\\",\\n \\"Phase\\": \\"Running\\",\\n \\"PodIp\\": \\"192.168.XX.XX\\",\\n \\"PodIps\\": [\\n {\\n \\"Ip\\": \\"192.168.XX.XX\\"\\n }\\n ],\\n \\"QosClass\\": \\"Guaranteed\\",\\n \\"StartTime\\": \\"2021-05-12T07:02:47Z\\"\\n }\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupStatusResponse>\\n <RequestId>1340C38D-6189-54D1-86F6-7D5ECF3E0088</RequestId>\\n <NextToken>d78f2dd8-5979-42fe-****-b16db43be5bc</NextToken>\\n <TotalCount>1</TotalCount>\\n <Data>\\n <ContainerGroupId>eci-bp1jrgfqqy54kg5hc****</ContainerGroupId>\\n <Name>nginx</Name>\\n <Namespace>default</Namespace>\\n <Status>Running</Status>\\n <uuid>78ee0657-987g-b8b2-1f507dic4****</uuid>\\n <PodStatus>\\n <Conditions>\\n <type>Ready</type>\\n <status>True</status>\\n <Reason>Completed</Reason>\\n <Message>Completed</Message>\\n <lastTransitionTime>2021-05-12T07:02:47Z</lastTransitionTime>\\n </Conditions>\\n <ContainerStatuses>\\n <Image>registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu:18.04</Image>\\n <ImageID>registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu@sha256:134c7fe821b9d359490cd009ce7ca322453f4f2d018623f849e580a89a685e5d</ImageID>\\n <Name>ubuntu</Name>\\n <Ready>true</Ready>\\n <RestartCount>1</RestartCount>\\n <Started>true</Started>\\n <State>\\n <Waiting>\\n <Reason>Started</Reason>\\n <Message>Back-off</Message>\\n </Waiting>\\n <Running>\\n <StartedAtstartedAt>2021-05-23T20:49:31Z</StartedAtstartedAt>\\n </Running>\\n <Terminated>\\n <ContainerID>containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******</ContainerID>\\n <ExitCode>0</ExitCode>\\n <FinishedAt>2021-05-23T20:55:31Z</FinishedAt>\\n <StartedAt>2021-05-23T20:49:31Z</StartedAt>\\n <Signal>1</Signal>\\n <Reason>Completed</Reason>\\n <Message>Completed</Message>\\n </Terminated>\\n </State>\\n <LastState>\\n <Waiting>\\n <Reason>Started</Reason>\\n <Message>Back-off</Message>\\n </Waiting>\\n <Running>\\n <StartedAtstartedAt>2021-05-23T20:49:31Z</StartedAtstartedAt>\\n </Running>\\n <Terminated>\\n <ContainerID>containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******</ContainerID>\\n <ExitCode>0</ExitCode>\\n <FinishedAt>2021-05-23T20:49:31Z</FinishedAt>\\n <StartedAt>021-05-12T07:02:52Z</StartedAt>\\n <Signal>1</Signal>\\n <Reason>Completed</Reason>\\n <Message>Completed</Message>\\n </Terminated>\\n </LastState>\\n </ContainerStatuses>\\n <HostIp>192.168.XX.XX</HostIp>\\n <Phase>Running</Phase>\\n <PodIp>192.168.XX.XX</PodIp>\\n <PodIps>\\n <Ip>192.168.XX.XX</Ip>\\n </PodIps>\\n <QosClass>Guaranteed</QosClass>\\n <StartTime>2021-05-12T07:02:47Z</StartTime>\\n </PodStatus>\\n </Data>\\n</DescribeContainerGroupStatusResponse>","errorExample":""}]', - 'title' => '批量查询容器组状态', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC391DD\\",\\n \\"ImageCacheId\\": \\"imc-2zebxkiifuyzzlhl****\\",\\n \\"ContainerGroupId\\": \\"eci-2zebxkiifuyzzlhl****\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateImageCacheResponse>\\n <ImageCacheId>imc-2zebxkiifuyzzlhl****</ImageCacheId>\\n <RequestId>0E234675-3465-4CC3-9D0F-9A864BC391DD</RequestId>\\n <ContainerGroupId>eci-2zebxkiifuyzzlhl****</ContainerGroupId>\\n</CreateImageCacheResponse>","errorExample":""}]', ], - 'DescribeContainerGroupEvents' => [ - 'summary' => '调用DescribeContainerGroupEvents批量查询ECI实例的事件信息。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateInstanceOpsTask' => [ + 'summary' => '调用CreateInstanceOpsTask创建一个运维任务。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '48556', - 'abilityTreeNodes' => [ - 'FEATUREeciO8VNZM', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '92950', + 'abilityTreeNodes' => ['FEATUREeciXQE3ZY', 'FEATUREeciO9KN4L'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ZoneId', - 'in' => 'query', - 'schema' => [ - 'description' => '可用区ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou-k', - ], - ], - [ - 'name' => 'VSwitchId', - 'in' => 'query', - 'schema' => [ - 'description' => '交换机ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'vsw-uf6h3rbwbm90urjwa****', - ], - ], - [ - 'name' => 'ResourceGroupId', - 'in' => 'query', - 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-uf66jeqopgqa9hdn****', - ], - ], - [ - 'name' => 'ContainerGroupIds', - 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例ID序列。最多20个,字符串需按照JSON格式传入。', - 'type' => 'string', - 'required' => false, - 'example' => '["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"]', - ], - ], - [ - 'name' => 'Tag', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'ECI实例绑定的标签。', - 'type' => 'array', - 'items' => [ - 'description' => 'ECI实例绑定的标签。', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'description' => 'ECI实例的标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'name', - ], - 'Key' => [ - 'description' => 'ECI实例的标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 10, - ], - ], - [ - 'name' => 'NextToken', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '下一个查询开始的Token,NextToken为空表示没有下一个。'."\n" - ."\n" - .'首次查询时无需设置该参数,后续查询的Token从返回结果中获取。', - 'type' => 'string', - 'required' => false, - 'example' => 'd78f2dd8-5979-42fe-xaee-b16db43be5bc', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'EventSource', + 'name' => 'ContainerGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '事件源。取值范围:'."\n" - ."\n" - .'- EciService'."\n" - .'- K8sAgent'."\n" - ."\n" - .'默认为空,查询所有事件。', - 'type' => 'string', - 'required' => false, - 'example' => 'K8sAgent', - 'enum' => [ - 'EciService', - 'K8sAgent', - ], - ], + 'schema' => ['description' => 'ECI实例ID。', 'type' => 'string', 'required' => true, 'example' => 'eci-bp1dvysdafbh00t7****'], ], [ - 'name' => 'SinceSecond', + 'name' => 'OpsType', 'in' => 'query', - 'schema' => [ - 'description' => '返回最近几秒内新增的事件,用于轮询增量事件。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '3600', - 'minimum' => '60', - 'example' => '60', - ], + 'schema' => ['description' => '运维任务类型。取值范围:'."\n" + ."\n" + .'- coredump'."\n" + .'- tcpdump', 'type' => 'string', 'required' => true, 'example' => 'coredump'], ], [ - 'name' => 'Limit', + 'name' => 'OpsValue', 'in' => 'query', - 'schema' => [ - 'description' => '限定此次返回资源(ECI实例)的数量。默认为200个。'."\n" - ."\n" - .'> 返回结果可能小于指定的数量,但不会多于指定的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '200', - 'minimum' => '1', - 'example' => '200', - 'default' => '50', - ], + 'schema' => ['description' => '运维任务参数。根据OpsType的取值,可设置相应参数。'."\n" + .'- 当OpsType取值为coredump时,OpsValue取值范围如下:'."\n" + .' - enable:开启coredump。'."\n" + .' - disable:关闭coredump。'."\n" + .'- 当OpsType取值为tcpdump时,OpsValue取值为JSON格式的参数字符串,例如`{"Enable":true, "IfDeviceName":"eth0"}`。具体参数如下:'."\n" + .' - Enable:是否开启tcpdump,必填参数,取值为true表示开启,取值为false表示关闭。'."\n" + .' - Protocol:网络协议。取值范围为tcp、udp、icmpv4。'."\n" + .' - SourceIp:源IP地址。'."\n" + .' - SourceCidr:源IP网段。CIDR格式。如果同时设置了IP和IP网段,在IP网段有效时,将忽略IP设置。'."\n" + .' - SourcePort:源端口。取值范围为1~65535。'."\n" + .' - DestIp:目的IP地址。'."\n" + .' - DestCidr:目的IP网段。CIDR格式。如果同时设置了IP和IP网段,在IP网段有效时,将忽略IP设置。'."\n" + .' - DestPort:目的端口。取值范围为1~65535。'."\n" + .' - IfDeviceName:目标网卡。默认为eth0。'."\n" + .' - Snaplen:数据包抓取长度。默认为65535字节。'."\n" + .' - Duration:抓取时间。单位为秒。'."\n" + .' - PacketNum:抓取数据包的目标个数。'."\n" + .' - FileSize:抓取数据包的目标文件大小。单位为字节。最大为1073741824字节(即1 GB)。', 'type' => 'string', 'required' => true, 'example' => 'enable'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '1340C38D-6189-54D1-86F6-7D5ECF3E0088', - ], - 'TotalCount' => [ - 'description' => '返回的事件条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'Data' => [ - 'description' => '事件信息列表。', - 'type' => 'array', - 'items' => [ - 'description' => '事件信息列表。', - 'type' => 'object', - 'properties' => [ - 'ContainerGroupId' => [ - 'description' => 'ECI实例ID。', - 'type' => 'string', - 'example' => 'eci-uf6fonnghi50v6nq****', - ], - 'Name' => [ - 'description' => 'ECI实例名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'Namespace' => [ - 'description' => 'ECI实例所在命名空间。', - 'type' => 'string', - 'example' => 'redis', - ], - 'uuid' => [ - 'description' => 'ECI实例的UUID。', - 'type' => 'string', - 'example' => '3fc6b309-****-****', - ], - 'Annotations' => [ - 'description' => 'ECI实例的注解。', - 'type' => 'string', - 'example' => '"{\\"tenancy.x-k8s.io/namespace\\":\\"redis\\"}"', - ], - 'Events' => [ - 'description' => '事件列表。', - 'type' => 'array', - 'items' => [ - 'description' => '事件列表。', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => '事件类型。可能值:'."\n" - ."\n" - .'- Normal'."\n" - .'- Warning', - 'type' => 'string', - 'example' => 'Normal', - ], - 'Count' => [ - 'description' => '事件数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'FirstTimestamp' => [ - 'description' => '事件第一次出现的时间。', - 'type' => 'string', - 'example' => '2021-10-04T09:08:04Z', - ], - 'LastTimestamp' => [ - 'description' => '事件最后一次出现的时间。', - 'type' => 'string', - 'example' => '2021-10-04T09:08:04Z', - ], - 'Message' => [ - 'description' => '事件信息。', - 'type' => 'string', - 'example' => 'Started container', - ], - 'Reason' => [ - 'description' => '事件原因。', - 'type' => 'string', - 'example' => 'Started', - ], - 'ReportingComponent' => [ - 'description' => '上报事件的组件。', - 'type' => 'string', - 'example' => 'test', - ], - 'ReportingInstance' => [ - 'description' => '上报事件的实例。', - 'type' => 'string', - 'example' => 'test', - ], - 'Source' => [ - 'description' => '来源。', - 'type' => 'object', - 'properties' => [ - 'Component' => [ - 'description' => '组件。', - 'type' => 'string', - 'example' => 'kubelet', - ], - 'Host' => [ - 'description' => '主机类型。', - 'type' => 'string', - 'example' => 'eci', - ], - ], - ], - 'involvedObject' => [ - 'description' => '事件关联的资源对象。', - 'type' => 'object', - 'properties' => [ - 'Kind' => [ - 'description' => '资源类型。', - 'type' => 'string', - 'example' => 'Pod', - ], - 'Name' => [ - 'description' => '资源名称。', - 'type' => 'string', - 'example' => 'test', - ], - 'Namespace' => [ - 'description' => '资源所在命名空间。', - 'type' => 'string', - 'example' => 'default', - ], - 'Uid' => [ - 'description' => '资源ID。', - 'type' => 'string', - 'example' => 'eci-8vb5nkcq3a5cu0p3****', - ], - 'ApiVersion' => [ - 'description' => 'K8s版本。', - 'type' => 'string', - 'example' => 'v1', - ], - ], - ], - 'Metadata' => [ - 'description' => '事件元数据。', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'description' => '事件名称。', - 'type' => 'string', - 'example' => 'eci-uto-created-eci-for-ubuntu.167e3fb73cc7f9cb', - ], - 'Namespace' => [ - 'description' => '命名空间。', - 'type' => 'string', - 'example' => 'default', - ], - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A318-353284CFC7B'], + 'Result' => ['description' => '运维任务执行结果。', 'type' => 'string', 'example' => 'Enable Success'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter.MismatchInstanceType', - 'errorMessage' => 'The instanceId mismatch instance type.', + ['errorCode' => 'Coredump.RefrshIntervalTooShort', 'errorMessage' => 'The time interval since last setting too short, please try again later.', 'description' => ''], + ['errorCode' => 'Ops.TypeNotSupport', 'errorMessage' => '%s', 'description' => ''], + ['errorCode' => 'Coredump.RegionNotSupport', 'errorMessage' => '%s', 'description' => ''], + ['errorCode' => 'CorePattern.UpdateFail', 'errorMessage' => 'Update coredump settings fail, please try again later', 'description' => ''], + ['errorCode' => 'Coredump.InvalidCorePatternType', 'errorMessage' => '%s', 'description' => ''], + ['errorCode' => 'InvalidCorePatternValue', 'errorMessage' => '%s', 'description' => ''], + ['errorCode' => 'InvalidInstanceId.NotFound', 'errorMessage' => 'The specified instanceId does not exist', 'description' => ''], + ['errorCode' => 'Ops.InstanceNotSupport', 'errorMessage' => '%s', 'description' => ''], + ['errorCode' => 'Ops.IntervalTooShort', 'errorMessage' => 'The time interval since last setting too short, please try again later.', 'description' => ''], + ['errorCode' => 'Ops.RegionNotSupport', 'errorMessage' => '%s', 'description' => ''], + ['errorCode' => 'Ops.OpsValueInvalid', 'errorMessage' => 'Ops value check failed, please confirm by ops type and try again later.', 'description' => ''], + ['errorCode' => 'Ops.ExecuteTaskFail', 'errorMessage' => '%s', 'description' => ''], + ['errorCode' => 'Tcpdump.InvalidValue', 'errorMessage' => '%s', 'description' => ''], + ], + ], + 'title' => '创建运维任务', + 'description' => '## 接口说明'."\n" + .'运维任务支持以下两种:'."\n" + ."\n" + .'- coredump:开启coredump后,在容器异常终止时,系统会生成core文件,以便您分析异常,找出问题原因。更多信息,请参见[开启coredump](~~167801~~)。'."\n" + .'- tcpdump:开启tcpdump后,系统将抓取网络数据包,以便您分析报文,定位网络问题。更多信息,请参见[开启tcpdump](~~429749~~)。', + 'changeSet' => [ + ['createdAt' => '2022-06-20T09:27:52.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2021-12-17T02:12:03.000Z', 'description' => 'OpenAPI 下线'], + ['createdAt' => '2021-12-17T02:12:03.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateInstanceOpsTask', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1340C38D-6189-54D1-86F6-7D5ECF3E0088\\",\\n \\"TotalCount\\": 10,\\n \\"Data\\": [\\n {\\n \\"ContainerGroupId\\": \\"eci-uf6fonnghi50v6nq****\\",\\n \\"Name\\": \\"test\\",\\n \\"Namespace\\": \\"redis\\",\\n \\"uuid\\": \\"3fc6b309-****-****\\",\\n \\"Annotations\\": \\"\\\\\\"{\\\\\\\\\\\\\\"tenancy.x-k8s.io/namespace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"redis\\\\\\\\\\\\\\"}\\\\\\"\\",\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"Count\\": 10,\\n \\"FirstTimestamp\\": \\"2021-10-04T09:08:04Z\\",\\n \\"LastTimestamp\\": \\"2021-10-04T09:08:04Z\\",\\n \\"Message\\": \\"Started container\\",\\n \\"Reason\\": \\"Started\\",\\n \\"ReportingComponent\\": \\"test\\",\\n \\"ReportingInstance\\": \\"test\\",\\n \\"Source\\": {\\n \\"Component\\": \\"kubelet\\",\\n \\"Host\\": \\"eci\\"\\n },\\n \\"involvedObject\\": {\\n \\"Kind\\": \\"Pod\\",\\n \\"Name\\": \\"test\\",\\n \\"Namespace\\": \\"default\\",\\n \\"Uid\\": \\"eci-8vb5nkcq3a5cu0p3****\\",\\n \\"ApiVersion\\": \\"v1\\"\\n },\\n \\"Metadata\\": {\\n \\"Name\\": \\"eci-uto-created-eci-for-ubuntu.167e3fb73cc7f9cb\\",\\n \\"Namespace\\": \\"default\\"\\n }\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupEventsResponse>\\n <RequestId>1340C38D-6189-54D1-86F6-7D5ECF3E0088</RequestId>\\n <TotalCount>10</TotalCount>\\n <Data>\\n <ContainerGroupId>eci-uf6fonnghi50v6nq****</ContainerGroupId>\\n <Events>\\n <Type>Normal</Type>\\n <Count>10</Count>\\n <FirstTimestamp>2021-10-04T09:08:04Z</FirstTimestamp>\\n <LastTimestamp>2021-10-04T09:08:04Z</LastTimestamp>\\n <Message>Started container</Message>\\n <Reason>Started</Reason>\\n <ReportingComponent>test</ReportingComponent>\\n <ReportingInstance>test</ReportingInstance>\\n <Source>\\n <Component>kubelet</Component>\\n <Host>eci</Host>\\n </Source>\\n <involvedObject>\\n <Kind>Pod</Kind>\\n <Name>test</Name>\\n <Namespace>default</Namespace>\\n <Uid>eci-8vb5nkcq3a5cu0p3****</Uid>\\n <ApiVersion>v1</ApiVersion>\\n </involvedObject>\\n <Metadata>\\n <Name>eci-uto-created-eci-for-ubuntu.167e3fb73cc7f9cb</Name>\\n <Namespace>default</Namespace>\\n </Metadata>\\n </Events>\\n </Data>\\n</DescribeContainerGroupEventsResponse>","errorExample":""}]', - 'title' => '查询容器组事件列表', - 'description' => '调用本接口可以同时查询多个ECI实例的事件信息。默认返回每个ECI实例最新的50条事件信息。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B\\",\\n \\"Result\\": \\"Enable Success\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateInstanceOpsTaskResponse>\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B</RequestId>\\n <Result>Coredump settings has been configured successfully.</Result>\\n</CreateInstanceOpsTaskResponse>","errorExample":""}]', ], - 'ResizeContainerGroupVolume' => [ - 'summary' => '调用ResizeContainerGroupVolume扩容指定ECI实例挂载的云盘数据卷。', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreateVirtualNode' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '86142', - 'abilityTreeNodes' => [ - 'FEATUREeci0764O2', - 'FEATUREeciJCC6LW', - ], + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => ['FEATUREeciOZ73BH', 'FEATUREeciESSPHI'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'RegionId', + 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '可用区ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-b'], ], [ - 'name' => 'ContainerGroupId', + 'name' => 'SecurityGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '要扩容数据卷的ECI实例ID,即容器组ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'eci-2zelg8vwnlzdhf8hv****', - ], + 'schema' => ['description' => '安全组ID。虚拟节点以及该虚拟节点下的ECI实例将加入到该安全组中。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'sg-2ze81zoc3yl7a3we****'], ], [ - 'name' => 'ClientToken', + 'name' => 'VSwitchId', 'in' => 'query', - 'schema' => [ - 'title' => '幂等参数', - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000', - ], + 'schema' => ['description' => '交换机ID。虚拟节点以及虚拟节点下的ECI实例所使用的交换机。 '."\n" + .'支持指定多个(1~10个)属于同一VPC的交换机。 ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'vsw-2ze23nqzig8inprou****'], ], [ - 'name' => 'VolumeName', + 'name' => 'VirtualNodeName', 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例挂载的数据卷名称。目前仅支持扩容云盘。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-volume1', - ], + 'schema' => ['description' => '虚拟节点的名称。长度为2~128个英文字符,可以包含小写英文字符、数字、半角句号(.)或者短划线(-)。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'testNode'], ], [ - 'name' => 'NewSize', + 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '扩容后的云盘容量大小。单位为GiB。取值范围:'."\n" - ."\n" - .'- 高效云盘(cloud_efficiency):20~32768'."\n" - .'- SSD云盘(cloud_ssd):20~32768'."\n" - .'- ESSD云盘(cloud_essd):20~32768'."\n" - .'- 普通云盘(cloud):5~2000'."\n" - ."\n" - .'> 扩容后的云盘容量必须大于原有云盘容量。如果扩容指定的容量与原有云盘容量一致,则仅扩容文件系统。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '100', - ], + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-uf66jeqopgqa9hdn****'], ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3', - ], - ], - ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'], ], - ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => '%s', - ], + [ + 'name' => 'EnablePublicNetwork', + 'in' => 'query', + 'schema' => ['description' => '是否支持公网。默认为false。 '."\n" + .'如果设置为true,则虚拟节点将对外暴露一个公网IP。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], - 403 => [ - [ - 'errorCode' => 'InvalidVolumeType', - 'errorMessage' => 'The specified volumeName is invalid, only volume of cloud disk support capacity resize', - ], - [ - 'errorCode' => 'IncorrectStatusDetail', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'InvalidAction', - 'errorMessage' => 'The specified action is invalid ', - ], + [ + 'name' => 'EipInstanceId', + 'in' => 'query', + 'schema' => ['description' => '弹性公网IP的ID。', 'type' => 'string', 'required' => false, 'example' => 'eip-uf66jeqopgqa9hdn****'], ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\"\\n}","errorExample":""},{"type":"xml","example":"<ResizeContainerGroupVolumeResponse>\\r\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>\\r\\n</ResizeContainerGroupVolumeResponse>","errorExample":""}]', - 'title' => '扩容容器组的数据卷', - 'description' => '## 接口说明'."\n" - ."\n" - .'- 该接口仅支持扩容数据卷,不支持缩容数据卷。'."\n" - .'- 目前仅支持扩容云盘类型的数据卷,暂不支持扩容其他类型的数据卷。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'RestartContainerGroup' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'KubeConfig', + 'in' => 'query', + 'schema' => ['description' => '虚拟节点要连接的Kubernetes集群的KubeConfig。需进行Base64编码后传入。', 'type' => 'string', 'required' => false, 'example' => 'JTVDbmFwaVZlcnNpb24lM0ElMjB2MSU1Q25jbHVzdGVycyUzQSU1Q24tJTIwY2x1c3RlciUzQSU1Q24uLi******'], ], - ], - 'operationType' => 'write', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - ], - 'parameters' => [ [ - 'name' => 'RegionId', + 'name' => 'CustomResources', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '虚拟节点支持的自定义资源。如果ECI Pod的request中声明了相应的自定义资源,则该Pod会被调度到VNode。'."\n" + .'格式为`资源名称=资源数量`,多个资源之间使用半角逗号间隔。', 'type' => 'string', 'required' => false, 'example' => 'example1.com=100,example2.com=200'], ], [ - 'name' => 'RegionId', + 'name' => 'ClusterDomain', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '集群的域名。配置后,除了主机的搜索域外,Kubelet会配置所有容器来搜索该域名。', 'type' => 'string', 'required' => false, 'example' => 'example.com'], ], [ - 'name' => 'ContainerGroupId', + 'name' => 'ClusterDNS', + 'in' => 'query', + 'schema' => ['description' => 'DNS服务器的IP地址。如果ECI Pod中设置了`dnsPolicy=ClusterFirst`,则使用该配置值为容器提供DNS服务。'."\n" + .'支持配置多个IP地址,多个IP地址之间使用半角逗号间隔。', 'type' => 'string', 'required' => false, 'example' => '100.1.XX.XX'], + ], + [ + 'name' => 'Tag', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'ECI实例ID,即容器组ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'eci-2zelg8vwnlzdhf8hv****', + 'description' => '虚拟节点标签信息。最多可以配置20个。', + 'type' => 'array', + 'items' => [ + 'description' => '虚拟节点标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'name'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 21, ], ], [ - 'name' => 'ClientToken', + 'name' => 'Taint', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', + 'description' => '虚拟节点污点信息。最多可以配置20个。', + 'type' => 'array', + 'items' => [ + 'description' => '虚拟节点污点信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '污点的Key。', 'type' => 'string', 'required' => false, 'example' => 'testKey'], + 'Value' => ['description' => '污点的Value。', 'type' => 'string', 'required' => false, 'example' => 'testValue'], + 'Effect' => ['description' => '污点的Effect。取值范围:'."\n" + ."\n" + .'- NoSchedule:不将Pod调度到具有该污点的节点上。'."\n" + .'- NoExecute:不将Pod调度到具有该污点的节点上的同时,驱逐节点上已经存在的Pod。'."\n" + .'- PreferNoSchedule:尽量不将Pod调度到具有该污点的节点上。', 'type' => 'string', 'required' => false, 'example' => 'NoSchedule'], + ], + 'required' => false, + ], 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000', + 'maxItems' => 21, ], ], + [ + 'name' => 'TlsBootstrapEnabled', + 'in' => 'query', + 'schema' => ['description' => '是否启用TLS启动引导。启用后,请使用TLS启动引导的KubeConfig证书。取值范围:'."\n" + ."\n" + .'- true:启用'."\n" + .'- false:不启用'."\n" + ."\n" + .'默认为false。'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'false'], + ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回信息。', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '45D5B0AD-3B00-4A9B-9911-6D5303B06712', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '89164E78-FC82-4684-BE97-DCDD85D26546'], + 'VirtualNodeId' => ['description' => '虚拟节点ID。', 'type' => 'string', 'example' => 'vnd-2ze960zkdqrldeaw****'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => '%s', - ], + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'InvalidParameter.DuplicatedName', 'errorMessage' => 'The container group include containers with duplicate names.', 'description' => '容器组内有重复名字的容器。'], + ['errorCode' => 'InvalidParameter.DuplicatedVolumeName', 'errorMessage' => 'The container group includes volumes with duplicate names.', 'description' => '容器组内有重复名字的数据卷。'], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'ImageSnapshot.IncorrectStatus', 'errorMessage' => '%s', 'description' => '用于镜像缓存的快照状态不正确。'], + ['errorCode' => 'ImageSnapshot.NotSupport', 'errorMessage' => '%s', 'description' => '基于数据盘快照的镜像缓存功能暂未全网开放,如有需要请联系我们。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'DiskNumber.LimitExceed', 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', 'description' => '实例下云盘数目超过限制。'], + ['errorCode' => 'InvalidPaymentMethod.InsufficientBalance', 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', 'description' => '您的账户暂无有效支付方式,请添加支付方式或保持预付款余额充足。'], + ['errorCode' => 'DiskVolume.NotInSameZone', 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', 'description' => '即将创建的实例和云盘不在同一可用区。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', 'description' => ''], + ['errorCode' => 'HighCpuMemConfigRequired', 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', 'description' => '您需要申请CPU高配白名单。'], + ['errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', 'description' => '当前可用区没有推荐的规格可使用,请稍后重试或者到其他的可用区创建。'], + ['errorCode' => 'LocalDiskAmountNotMatch', 'errorMessage' => 'The number of local volumes does not match the instance type.', 'description' => '本地盘数量跟实例规格不匹配'], + ['errorCode' => 'Payfor.CreditPayInsufficientBalance', 'errorMessage' => 'Your payment credit line is insufficient.', 'description' => '您的付款信用额度不足。'], + ['errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', 'description' => '指定的实例无效,只有 I/O 优化类型的实例支持设置“KMS Key”。'], + ['errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', 'errorMessage' => 'KMS must be enabled for encrypted disks.', 'description' => '加密磁盘需要启用密钥管理服务。'], + ['errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', 'description' => '设置参数“KmsKeyId”后,您必须开启加密属性。'], + ['errorCode' => 'Ipv6AddressNotSupportVsw', 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', 'description' => '该交换机暂未开通ipv6地址。'], + ['errorCode' => 'EipAddressPoolIpNotEnough', 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', 'description' => '指定的eip公网地址池地址资源不足。'], + ['errorCode' => 'VnodeDedicatedHostIdAlreadyExist', 'errorMessage' => 'DedicatedHostId:%s of Vnode:%s already exists.', 'description' => 'DedicatedHostId已经存在'], + ['errorCode' => 'DedicatedHostQuotaExceeded', 'errorMessage' => 'The quota of DedicatedHost is exceeded.', 'description' => '专有宿主机的quota超过限制'], ], 403 => [ - [ - 'errorCode' => 'InvalidAction', - 'errorMessage' => 'The specified action is invalid', - ], + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role does not belong to ECS.', 'description' => ''], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', 'description' => '无权访问指定的 KMSKeyId。'], + ['errorCode' => 'Forbidden.AccountClosed', 'errorMessage' => 'The operation is forbidden. Your account has been closed.', 'description' => '操作被禁止,因为用户账户已注销。'], + ['errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', 'description' => '安全组由其他云产品管理,禁止操作。'], + ['errorCode' => 'Spot.NotMatched', 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ], + [ + ['errorCode' => 'ImageSnapshot.NotFound', 'errorMessage' => 'The specified snapshot does not exist.', 'description' => '镜像缓存,快照不存在。'], + ['errorCode' => 'InvalidDiskId.NotFound', 'errorMessage' => 'The specified disk does not exist.', 'description' => '指定的云盘不存在。'], + ['errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', 'errorMessage' => 'The specified KMSKeyId does not exist.', 'description' => '指定的参数“KMSKeyId”不存在。'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"45D5B0AD-3B00-4A9B-9911-6D5303B06712\\"\\n}","errorExample":""},{"type":"xml","example":"<RestartContainerGroupResponse>\\r\\n <RequestId>45D5B0AD-3B00-4A9B-9911-6D5303B06712</RequestId>\\r\\n<RestartContainerGroupResponse>","errorExample":""}]', - 'title' => '重启一个容器组', - 'summary' => '调用RestartContainerGroup重启一个ECI实例。', - 'description' => '- 仅状态为启动中(Pending)或者运行中(Running)的ECI实例支持重启,已经运行完成的ECI实例不支持重启。'."\n" - .'- 创建时间早于2019-03-07 15:00:00的ECI实例不支持重启。'."\n" - .'- 重启中的ECI实例状态将变更为Restarting。', + 'title' => '创建一个虚拟节点', + 'summary' => '创建一个虚拟节点(VNode),用于对接自建Kubernetes集群,使其可以扩展资源到ECI。', + 'description' => '- 调用本接口创建虚拟节点时,系统将自动为您创建一个服务关联角色AliyunServiceRoleForECIVnode,用于访问ECI、ECS、VPC等相关云服务。更多信息,请参见[虚拟节点服务关联角色](~~311014~~)。'."\n" + ."\n" + .'- 虚拟节点按个数计费。每个虚拟节点会有一个常驻节点,相当于2 vCPU,8 GiB的ECI实例,收取相关ECI实例费用。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2023-07-03T01:56:18.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-06-13T12:09:50.000Z', 'description' => '错误码发生变更、响应参数发生变更'], + ['createdAt' => '2022-06-24T08:52:00.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2021-09-15T08:39:09.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-09-15T08:39:09.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-09-15T08:39:09.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-09-06T04:58:46.000Z', 'description' => 'OpenAPI 下线'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateVirtualNode', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/*'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89164E78-FC82-4684-BE97-DCDD85D26546\\",\\n \\"VirtualNodeId\\": \\"vnd-2ze960zkdqrldeaw****\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateVirtualNodeResponse>\\n <RequestId>89164E78-FC82-4684-BE97-DCDD85D26546</RequestId>\\n <VirtualNodeId>vnd-2ze960zkdqrldeaw****</VirtualNodeId>\\n</CreateVirtualNodeResponse>","errorExample":""}]', ], 'DeleteContainerGroup' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6757,66 +2588,36 @@ 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '17727', - 'abilityTreeNodes' => [ - 'FEATUREeciO8VNZM', - ], + 'abilityTreeNodes' => ['FEATUREeciO8VNZM'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ContainerGroupId', 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例ID,即容器组ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'eci-2zelg8vwnlzdhf8hv****', - ], + 'schema' => ['description' => 'ECI实例ID,即容器组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'eci-2zelg8vwnlzdhf8hv****'], ], [ 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000', - ], + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'], ], [ 'name' => 'Force', 'in' => 'query', 'allowEmptyValue' => true, - 'schema' => [ - 'description' => '是否强制清理资源。取值范围:'."\n" - .'- true:不等待graceful termination超时时间,强制清理资源。'."\n" - .'- false(默认值):等待graceful termination超时时间,正常清理资源。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '是否强制清理资源。取值范围:'."\n" + .'- true:不等待graceful termination超时时间,强制清理资源。'."\n" + .'- false(默认值):等待graceful termination超时时间,正常清理资源。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], ], 'responses' => [ @@ -6824,149 +2625,95 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '45D5B0AD-3B00-4A9B-9911-6D5303B06712', - ], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '45D5B0AD-3B00-4A9B-9911-6D5303B06712'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'OperationConflict', - 'errorMessage' => 'Request was denied due to conflict with a previous request.', - ], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'OperationConflict', 'errorMessage' => 'Request was denied due to conflict with a previous request.', 'description' => '该请求被禁止,因为与之前的请求冲突'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"45D5B0AD-3B00-4A9B-9911-6D5303B06712\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteContainerGroupResponse>\\r\\n <RequestId>45D5B0AD-3B00-4A9B-9911-6D5303B06712</RequestId>\\r\\n</DeleteContainerGroupResponse>","errorExample":""}]', 'title' => '删除一个容器组', 'summary' => '调用DeleteContainerGroup删除一个ECI实例。', 'description' => '您可以删除不再使用的ECI实例。操作前,请确保您已了解ECI实例的生命周期。具体请参见[ECI实例生命周期介绍](~~122385~~)。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'ExecContainerCommand' => [ - 'summary' => '调用ExecContainerCommand在容器内部执行命令。', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2024-06-28T06:11:20.000Z', 'description' => '请求参数发生变更'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteContainerGroup'], + ], ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eci:DeleteContainerGroup', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"45D5B0AD-3B00-4A9B-9911-6D5303B06712\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteContainerGroupResponse>\\r\\n <RequestId>45D5B0AD-3B00-4A9B-9911-6D5303B06712</RequestId>\\r\\n</DeleteContainerGroupResponse>","errorExample":""}]', + ], + 'DeleteDataCache' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'delete', 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '17739', - 'abilityTreeNodes' => [ - 'FEATUREeciO8VNZM', - ], + 'chargeType' => 'paid', + 'abilityTreeCode' => '179691', + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ContainerGroupId', - 'in' => 'query', - 'schema' => [ - 'description' => '实例ID,即容器组ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'eci-2zebxkiifulhl****', - ], - ], - [ - 'name' => 'ContainerName', - 'in' => 'query', - 'schema' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'nginx', - ], - ], - [ - 'name' => 'Command', + 'name' => 'DataCacheId', 'in' => 'query', - 'schema' => [ - 'description' => '要在容器内执行的命令序列。最多20个命令,单个命令最长256个字符。 '."\n" - .'执行多个命令时,字符串需按照JSON格式传入,例如:`["/bin/sh", "-c", "ls -a"]`。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '["/bin/sh", "-c", "ls -a"]', - ], + 'schema' => ['description' => '数据缓存ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'edc-bp1a7n7uawwwol******'], ], [ - 'name' => 'TTY', + 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '是否开启交互。默认为false。 '."\n" - .'当Command为`/bin/bash`命令时,需要设置为true。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '5e74729e-ce21-4c3e-9163-cbaf0f02768e'], ], [ - 'name' => 'Stdin', + 'name' => 'Bucket', 'in' => 'query', - 'schema' => [ - 'description' => '是否标准输入。默认为true。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '数据缓存Bucket。默认为default。', 'type' => 'string', 'required' => false, 'example' => 'default'], ], [ - 'name' => 'Sync', + 'name' => 'Path', 'in' => 'query', - 'schema' => [ - 'description' => '是否立即执行命令并同步返回结果。默认为false。 '."\n" - .'如果设置为true,TTY只能设置为false(即Command不是`/bin/bash`命令)。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '数据缓存对应Virtual Host的目录。', 'type' => 'string', 'required' => false, 'example' => '/data/models/'], ], ], 'responses' => [ @@ -6974,184 +2721,134 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '28B583A8-313D-4383-7817-B5A9F7E0****', - ], - 'WebSocketUri' => [ - 'description' => 'WebSocket URL。您可以利用WebSocket URL建立与容器的连接。', - 'type' => 'string', - 'example' => 'wss://eci-cn-shanghai.aliyun.com/exec/?s=ktHPx****', - ], - 'HttpUrl' => [ - 'description' => 'HTTP URL。在30秒内访问该地址可以进入到容器。更多信息,请参见[使用并集成ECI Terminal](~~202846~~)。', - 'type' => 'string', - 'example' => 'https://eci.console.aliyun.com/terminal?param=X32a****', - ], - 'SyncResponse' => [ - 'description' => '命令的返回结果。当Sync设置为true时返回该参数。', - 'type' => 'string', - 'example' => 'Hello', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'C0F8A012-1426-5EB2-96F5-B4416DEB5B78'], ], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'InvalidParameter.ValueExceeded', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除数据缓存', + 'summary' => '删除一个数据缓存。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eci:DeleteDataCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/{#datacacheId}'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"28B583A8-313D-4383-7817-B5A9F7E0****\\",\\n \\"WebSocketUri\\": \\"wss://eci-cn-shanghai.aliyun.com/exec/?s=ktHPx****\\",\\n \\"HttpUrl\\": \\"https://eci.console.aliyun.com/terminal?param=X32a****\\",\\n \\"SyncResponse\\": \\"Hello\\"\\n}","errorExample":""},{"type":"xml","example":"<ExecContainerCommandResponse>\\n <RequestId>28B583A8-313D-4383-7817-B5A9F7E0****</RequestId>\\n <WebSocketUri>wss://eci-cn-shanghai.aliyun.com/exec/?s=ktHPx****</WebSocketUri>\\n <HttpUrl>https://eci.console.aliyun.com/terminal?param=X32a****</HttpUrl>\\n</ExecContainerCommandResponse>","errorExample":""}]', - 'title' => '在容器内部执行命令', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C0F8A012-1426-5EB2-96F5-B4416DEB5B78\\"\\n}","type":"json"}]', ], - 'DescribeContainerLog' => [ - 'summary' => '调用DescribeContainerLog获取容器组内某个容器的日志信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteImageCache' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '17733', - 'abilityTreeNodes' => [ - 'FEATUREeciO8VNZM', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '17728', + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ContainerGroupId', + 'name' => 'RegionId', 'in' => 'query', - 'allowEmptyValue' => false, - 'schema' => [ - 'description' => 'ECI实例ID,即容器组ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'eci-uf6fonnghi50v6nq****', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ContainerName', + 'name' => 'ImageCacheId', 'in' => 'query', - 'schema' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'nginx', - ], + 'schema' => ['description' => '镜像缓存ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'imc-2zebxkiifuyzzlhl****'], ], [ - 'name' => 'StartTime', + 'name' => 'ClientToken', 'in' => 'query', + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。'."\n", 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => 'UTC时间,RFC3339标准。', - 'type' => 'string', - 'required' => false, - 'example' => '2018-08-02T15:00:00Z', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A218-354284CFC7A2'], + ], ], ], - [ - 'name' => 'Tail', - 'in' => 'query', - 'schema' => [ - 'description' => '查询最新多少行的日志内容。默认500行,最大2000行 。 '."\n" - .'日志内容最大返回1 MB数据。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '500', + ], + 'title' => '删除一个镜像缓存', + 'summary' => '调用DeleteImageCache删除一个镜像缓存。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eci:DeleteImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ], ], ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A218-354284CFC7A2\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteImageCacheResponse>\\r\\n <RequestId>89945DD3-9072-47D0-A218-354284CFC7A2</RequestId>\\r\\n</DeleteImageCacheResponse>","errorExample":""}]', + ], + 'DeleteVirtualNode' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'LastTime', - 'in' => 'query', - 'schema' => [ - 'description' => '是否查询上一个容器(如果容器退出重启了)。取值范围:'."\n" - ."\n" - .'- true:查询上一个容器。'."\n" - .'- false:不查询。'."\n" - ."\n" - .'默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], + 'AK' => [], ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete'], + 'parameters' => [ [ - 'name' => 'SinceSeconds', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '查询最近多少秒内的日志。例如:10s、20s、30s。'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'LimitBytes', + 'name' => 'VirtualNodeId', 'in' => 'query', - 'schema' => [ - 'description' => '日志总大小的限制。单位为Byte,取值范围为1~1048576(1 MB)。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'docRequired' => false, - 'example' => '123798', - ], + 'schema' => ['description' => '虚拟节点ID。', 'type' => 'string', 'required' => true, 'example' => 'vnd-2ze960zkdqrldeaw****'], ], [ - 'name' => 'Timestamps', + 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '是否返回日志时间戳。取值范围:'."\n" - ."\n" - .'- true:返回日志时间戳。'."\n" - .'- false:不返回日志时间戳。'."\n" - ."\n" - .'默认为false。', - 'type' => 'boolean', - 'required' => false, - 'docRequired' => false, - 'example' => 'false', - ], + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'], ], ], 'responses' => [ @@ -7159,206 +2856,175 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => 'CA850ADA-****-4AC8-****-5B5990EAB7D0', - ], - 'ContainerName' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'example' => 'nginx', - ], - 'Content' => [ - 'description' => '日志内容。', - 'type' => 'string', - 'example' => '{}', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3'], ], ], ], ], 'errorCodes' => [ - 403 => [ - [ - 'errorCode' => 'Forbidden.Unauthorized', - 'errorMessage' => 'You are not authorized to operate on the specified resource.', - ], + 400 => [ + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'InvalidParameter.DuplicatedName', 'errorMessage' => 'The container group include containers with duplicate names.', 'description' => '容器组内有重复名字的容器。'], + ['errorCode' => 'InvalidParameter.DuplicatedVolumeName', 'errorMessage' => 'The container group includes volumes with duplicate names.', 'description' => '容器组内有重复名字的数据卷。'], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'ImageSnapshot.IncorrectStatus', 'errorMessage' => '%s', 'description' => '用于镜像缓存的快照状态不正确。'], + ['errorCode' => 'ImageSnapshot.NotSupport', 'errorMessage' => '%s', 'description' => '基于数据盘快照的镜像缓存功能暂未全网开放,如有需要请联系我们。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'DiskNumber.LimitExceed', 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', 'description' => '实例下云盘数目超过限制。'], + ['errorCode' => 'InvalidPaymentMethod.InsufficientBalance', 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', 'description' => '您的账户暂无有效支付方式,请添加支付方式或保持预付款余额充足。'], + ['errorCode' => 'DiskVolume.NotInSameZone', 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', 'description' => '即将创建的实例和云盘不在同一可用区。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', 'description' => ''], + ['errorCode' => 'HighCpuMemConfigRequired', 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', 'description' => '您需要申请CPU高配白名单。'], + ['errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', 'description' => '当前可用区没有推荐的规格可使用,请稍后重试或者到其他的可用区创建。'], + ['errorCode' => 'LocalDiskAmountNotMatch', 'errorMessage' => 'The number of local volumes does not match the instance type.', 'description' => '本地盘数量跟实例规格不匹配'], + ['errorCode' => 'Payfor.CreditPayInsufficientBalance', 'errorMessage' => 'Your payment credit line is insufficient.', 'description' => '您的付款信用额度不足。'], + ['errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', 'description' => '指定的实例无效,只有 I/O 优化类型的实例支持设置“KMS Key”。'], + ['errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', 'errorMessage' => 'KMS must be enabled for encrypted disks.', 'description' => '加密磁盘需要启用密钥管理服务。'], + ['errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', 'description' => '设置参数“KmsKeyId”后,您必须开启加密属性。'], + ['errorCode' => 'Ipv6AddressNotSupportVsw', 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', 'description' => '该交换机暂未开通ipv6地址。'], + ['errorCode' => 'VirtualNode.DELETE.FAILED', 'errorMessage' => 'The vnode has eci on it, please delete eci first.', 'description' => ''], ], - 408 => [ - [ - 'errorCode' => 'Request Timeout', - 'errorMessage' => 'Request timed out, please try again later.', - ], + 403 => [ + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role does not belong to ECS.', 'description' => ''], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', 'description' => '无权访问指定的 KMSKeyId。'], + ['errorCode' => 'Forbidden.AccountClosed', 'errorMessage' => 'The operation is forbidden. Your account has been closed.', 'description' => '操作被禁止,因为用户账户已注销。'], + ['errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', 'description' => '安全组由其他云产品管理,禁止操作。'], + ['errorCode' => 'Spot.NotMatched', 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ], + [ + ['errorCode' => 'ImageSnapshot.NotFound', 'errorMessage' => 'The specified snapshot does not exist.', 'description' => '镜像缓存,快照不存在。'], + ['errorCode' => 'InvalidDiskId.NotFound', 'errorMessage' => 'The specified disk does not exist.', 'description' => '指定的云盘不存在。'], + ['errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', 'errorMessage' => 'The specified KMSKeyId does not exist.', 'description' => '指定的参数“KMSKeyId”不存在。'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CA850ADA-****-4AC8-****-5B5990EAB7D0\\",\\n \\"ContainerName\\": \\"nginx\\",\\n \\"Content\\": \\"{}\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>CA850ADA-****-4AC8-****-5B5990EAB7D0</RequestId>\\n<ContainerName>nginx</ContainerName>\\n<Content>{}</Content>","errorExample":""}]', - 'title' => '获取容器日志信息', + 'title' => '删除一个虚拟节点', + 'summary' => '调用DeleteVirtualNode删除一个虚拟节点。', + 'description' => '调用本接口删除虚拟节点前,请确保该节点下已经没有ECI实例。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CommitContainer' => [ - 'summary' => '调用CommitContainer接口创建异步任务,将ECI实例中的指定容器保存为镜像,并推送至阿里云ACR的镜像仓库中。', - 'methods' => [ - 'get', - 'post', + 'changeSet' => [ + ['createdAt' => '2022-09-08T09:25:20.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-09-06T04:58:46.000Z', 'description' => 'OpenAPI 下线'], + ], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eci:DeleteVirtualNode', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#VirtualNodeId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteVirtualNodeResponse>\\r\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>\\r\\n</DeleteVirtualNodeResponse>","errorExample":""}]', + ], + 'DescribeAvailableResource' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '151229', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '103990', + 'abilityTreeNodes' => ['FEATUREeciY9GS39', 'FEATUREeci5NN3BU', 'FEATUREeciIT94P2', 'FEATUREeciCZBDK8'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。'."\n" + ."\n" + .'您可以调用[DescribeRegions](~~146965~~)查看最新的阿里云地域列表。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ContainerGroupId', + 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'description' => '要创建CommitContainer任务的ECI实例。', - 'type' => 'string', - 'required' => true, - 'example' => 'eci-bp1do4xz75fa5sd****', - ], + 'schema' => ['description' => '可用区ID。'."\n" + ."\n" + .'默认值为空,此时查询指定地域下的所有可用区。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'cn-hangzhou-e'], ], [ - 'name' => 'ContainerName', - 'in' => 'query', - 'schema' => [ - 'description' => '要制作镜像的容器的名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'container-1', - ], - ], - [ - 'name' => 'Image', + 'name' => 'DestinationResource', 'in' => 'query', 'style' => 'flat', 'schema' => [ - 'description' => '容器镜像信息。', + 'description' => '要查询的资源信息。', 'type' => 'object', 'properties' => [ - 'Repository' => [ - 'description' => 'ACR镜像仓库地址。 '."\n" - .'出于安全考虑,目前仅支持将镜像推送(Push)至ACR。', - 'type' => 'string', - 'required' => true, - 'example' => 'registry-vpc.cn-beijing.aliyuncs.com/test/test-****', - ], - 'Tag' => [ - 'description' => '镜像标签。默认为空,代表不修改标签。', - 'type' => 'string', - 'required' => true, - 'example' => '0.0.6', - ], - 'Message' => [ - 'description' => '镜像的说明信息。', - 'type' => 'string', - 'required' => false, - 'example' => 'test commit', - ], - 'Author' => [ - 'description' => '镜像的authorization。', - 'type' => 'string', - 'required' => false, - 'example' => 'alice', - ], + 'Category' => ['description' => '资源类型。取值范围:'."\n" + ."\n" + .'- InstanceTypeFamily:表示查询实例规格族,配合Value使用。'."\n" + .'- InstanceType:表示查询实例规格,配合Value,以及Cores和Memory使用。', 'type' => 'string', 'required' => true, 'example' => 'InstanceTypeFamily'], + 'Value' => ['description' => '实例规格族或者具体实例规格。'."\n" + ."\n" + .'- 当Category取值为InstanceTypeFamily时,取值为实例规格族,如ecs.c5。'."\n" + .'- 当Category取值为InstanceType时,取值为具体实例规格。如ecs.c5.large。', 'type' => 'string', 'required' => false, 'example' => 'ecs.c6'], + 'Cores' => ['description' => 'vCPU核数。当Category取值为InstanceType时,可以设置。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '2'], + 'Memory' => ['description' => '内存大小。单位为GiB。当Category取值为InstanceType时,可以设置。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '4'], ], - 'required' => false, + 'required' => true, ], ], [ - 'name' => 'AcrRegistryInfo', + 'name' => 'RegionId', 'in' => 'query', - 'style' => 'flat', - 'schema' => [ - 'description' => 'ACR企业版实例的访问凭证配置信息。 '."\n" - ."\n" - .'> 使用ACR个人版实例时无需配置该参数;使用ACR企业版实例时必须配置该参数。', - 'type' => 'object', - 'properties' => [ - 'InstanceId' => [ - 'description' => 'ACR企业版实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cri-nwj395hgf6f3****', - ], - 'RegionId' => [ - 'description' => 'ACR企业版实例所属的地域。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], - 'ArnService' => [ - 'description' => '跨账号授权场景下,使用者(被授权者)的RAM角色ARN。', - 'type' => 'string', - 'required' => false, - 'example' => 'acs:ram::1609982529******:role/role-test', - ], - 'ArnUser' => [ - 'description' => '跨账号授权场景下,授权者的RAM角色ARN。', - 'type' => 'string', - 'required' => false, - 'example' => 'acs:ram::1298452580******:role/role-test', - ], - ], - 'required' => false, - ], + 'schema' => ['description' => '地域ID。'."\n" + ."\n" + .'您可以调用[DescribeRegions](~~146965~~)查看最新的阿里云地域列表。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'Arn', + 'name' => 'SpotResource', 'in' => 'query', 'style' => 'flat', 'schema' => [ - 'description' => '授权需要的ARN信息。', + 'description' => '要查询的抢占式实例的资源信息。', 'type' => 'object', 'properties' => [ - 'RoleArn' => [ - 'description' => '授权角色的ARN。', - 'type' => 'string', - 'required' => false, - 'example' => 'acs:ram:xxx', - ], - 'RoleType' => [ - 'description' => '授权类型。可配置为service,表示使用RAM角色进行授权。', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [], - 'example' => 'service', - ], + 'SpotStrategy' => ['description' => '实例的抢占策略。取值范围:'."\n" + ."\n" + .'- NoSpot:正常按量付费实例。'."\n" + .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" + .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。'."\n" + ."\n" + .'默认为:NoSpot。'."\n" + ."\n" + .'> 查询抢占式实例资源信息时,即取值为SpotWithPriceLimit或SpotAsPriceGo时,Category取值必须为InstanceType,同时需指定具体实例规格(Value),或者指定vCPU和内存(Cores和Memory)。', 'type' => 'string', 'required' => false, 'example' => 'SpotAsPriceGo'], + 'SpotPriceLimit' => ['description' => '抢占式实例的每小时最高价格,最多精确到小数点后3位。当SpotStrategy取值为SpotWithPriceLimit时,必须设置SpotPriceLimit。', 'type' => 'number', 'format' => 'double', 'required' => false, 'example' => '0.2'], + 'SpotDuration' => ['description' => '抢占式实例的保护期。单位为小时。默认为1。可设置为0,表示无保护期。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], 'required' => false, ], @@ -7367,17 +3033,70 @@ 'responses' => [ 200 => [ 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => 'CB8D2B22-D636-4182-****-1FC9DBDAD66F', - ], - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-bp18cwvrb3v9tjk0tekz', + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '6829735A-FF76-58C6-AECB-27CBF135A7AA'], + 'AvailableZones' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'AvailableZone' => [ + 'description' => '可用区级别的资源信息集合。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'ZoneId' => ['description' => '可用区ID。', 'type' => 'string', 'example' => 'cn-hangzhou-e'], + 'AvailableResources' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'AvailableResource' => [ + 'description' => '该可用区支持的资源信息集合。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Type' => ['description' => '资源类型。可能值:'."\n" + .'- InstanceTypeFamily:表示实例规格族。'."\n" + .'- InstanceType:表示实例规格。', 'type' => 'string', 'example' => 'InstanceTypeFamily'], + 'SupportedResources' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'SupportedResource' => [ + 'description' => '资源信息组成的数组。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => '支持的ECS实例规格信息。'."\n" + ."\n" + .'- 当Type为InstanceTypeFamily时,Value值为实例规格族。'."\n" + .'- 当Type为InstanceType时,Value值为实例规格。', 'type' => 'string', 'example' => 'ecs.c6'], + 'StatusCategory' => ['description' => '根据库存详细分类资源类别。可能值:'."\n" + ."\n" + .'- WithStock:库存充足。'."\n" + .'- ClosedWithStock:库存供应保障能力低,建议选用WithStock状态的实例规格。'."\n" + .'- WithoutStock:库存售罄,将会补充资源,建议选用WithStock状态的实例规格。'."\n" + .'- ClosedWithoutStock:库存售罄,且不补充资源,请选用WithStock状态的实例规格。', 'type' => 'string', 'example' => 'WithStock'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -7385,39 +3104,34 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => '%s', - ], + ['errorCode' => 'MissingParameter', 'errorMessage' => '%s', 'description' => '必填参数缺失'], + ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s', 'description' => '不合法的参数'], ], 403 => [ - [ - 'errorCode' => 'InvalidVolumeType', - 'errorMessage' => 'The specified volumeName is invalid, only volume of cloud disk support capacity resize', - ], - [ - 'errorCode' => 'IncorrectStatusDetail', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'InvalidAction', - 'errorMessage' => 'The specified action is invalid ', - ], + ['errorCode' => 'Spot.NotMatched', 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory.', 'description' => '推荐使用多可用区多规格配置来避免库存不足'], + ], + [ + ['errorCode' => 'InvalidParameter.NotFound', 'errorMessage' => '%s', 'description' => '参数未找到'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CB8D2B22-D636-4182-****-1FC9DBDAD66F\\",\\n \\"TaskId\\": \\"t-bp18cwvrb3v9tjk0tekz\\"\\n}","errorExample":""},{"type":"xml","example":"<CommitContainerResponse>\\n <RequestId>CB8D2B22-D636-4182-****-1FC9DBDAD66F</RequestId>\\n <TaskId>t-bp18cwvrb3v9tjk0tekz</TaskId>\\n</CommitContainerResponse>","errorExample":""}]', - 'title' => '创建CommitContainer任务', - 'description' => '调用CommitContainer接口前,您需要准备好ACR镜像仓库,然后创建RAM角色并完成授权操作。具体操作,请参见[提交容器生成镜像并推送到ACR](~~473046~~)。', - ], - 'DescribeCommitContainerTask' => [ - 'methods' => [ - 'post', - 'get', + 'title' => '查询可用ECS实例规格', + 'summary' => '调用DescribeAvailableResource查询指定地域和可用区下可售ECS实例规格族。', + 'description' => '调用CreateContainerGroup创建ECI实例时支持通过InstanceType参数来指定ECS规格,以满足特定的规格需求。为保证ECI实例能够创建成功,在创建ECI实例前,您可以先调用本接口查询指定地域和可用区下支持哪些ECS实例规格或实例规格族。', + 'changeSet' => [ + ['createdAt' => '2024-06-21T05:33:34.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2022-07-11T01:59:00.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2021-11-16T08:13:55.000Z', 'description' => 'OpenAPI 下线'], + ['createdAt' => '2021-11-16T08:13:55.000Z', 'description' => '请求参数发生变更'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6829735A-FF76-58C6-AECB-27CBF135A7AA\\",\\n \\"AvailableZones\\": {\\n \\"AvailableZone\\": [\\n {\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ZoneId\\": \\"cn-hangzhou-e\\",\\n \\"AvailableResources\\": {\\n \\"AvailableResource\\": [\\n {\\n \\"Type\\": \\"InstanceTypeFamily\\",\\n \\"SupportedResources\\": {\\n \\"SupportedResource\\": [\\n {\\n \\"Value\\": \\"ecs.c6\\",\\n \\"StatusCategory\\": \\"WithStock\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAvailableResourceResponse>\\n <RequestId>6829735A-FF76-58C6-AECB-27CBF135A7AA</RequestId>\\n <AvailableZones>\\n <RegionId>cn-hangzhou</RegionId>\\n <ZoneId>cn-hangzhou-e</ZoneId>\\n <AvailableResources>\\n <Type>InstanceTypeFamily</Type>\\n <SupportedResources>\\n <Value>ecs.c6</Value>\\n <StatusCategory>WithStock</StatusCategory>\\n </SupportedResources>\\n </AvailableResources>\\n </AvailableZones>\\n</DescribeAvailableResourceResponse>","errorExample":""}]', + ], + 'DescribeCommitContainerTask' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7428,66 +3142,36 @@ 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '150868', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', - 'type' => 'string', - 'required' => false, - 'example' => 'AAAAAdDWBF2****', - ], + 'schema' => ['description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', 'type' => 'string', 'required' => false, 'example' => 'AAAAAdDWBF2****'], ], [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'description' => '分页查询时每页行数。 '."\n" - .'最大值为50。 '."\n" - .'默认值为10。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => '分页查询时每页行数。 '."\n" + .'最大值为50。 '."\n" + .'默认值为10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], [ 'name' => 'ContainerGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '执行CommitContainer任务的ECI实例ID。 '."\n" - .'查询时按实例ID或者任务ID进行查询,两者至少要填其中一个。', - 'type' => 'string', - 'required' => false, - 'example' => 'eci-2zelg8vwnlzdhf8hv****', - ], + 'schema' => ['description' => '执行CommitContainer任务的ECI实例ID。 '."\n" + .'查询时按实例ID或者任务ID进行查询,两者至少要填其中一个。', 'type' => 'string', 'required' => false, 'example' => 'eci-2zelg8vwnlzdhf8hv****'], ], [ 'name' => 'TaskStatus', @@ -7500,11 +3184,7 @@ .'- Failed:失败', 'type' => 'string', 'required' => false, - 'enumValueTitles' => [ - 'Succeeded' => 'Succeeded', - 'Failed' => 'Failed', - 'Running' => 'Running', - ], + 'enumValueTitles' => ['Succeeded' => 'Succeeded', 'Failed' => 'Failed', 'Running' => 'Running'], 'example' => 'Running', ], ], @@ -7515,13 +3195,8 @@ 'schema' => [ 'description' => '任务ID。', 'type' => 'array', - 'items' => [ - 'description' => '任务ID。 '."\n" - .'查询时按实例ID或者任务ID进行查询,两者至少要填其中一个。', - 'type' => 'string', - 'required' => false, - 'example' => 't-2zej6nstkg744qc3****', - ], + 'items' => ['description' => '任务ID。 '."\n" + .'查询时按实例ID或者任务ID进行查询,两者至少要填其中一个。', 'type' => 'string', 'required' => false, 'example' => 't-2zej6nstkg744qc3****'], 'required' => false, 'maxItems' => 10, 'minItems' => 0, @@ -7533,27 +3208,10 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'description' => '符合查询条件的结果条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'NextToken' => [ - 'description' => '本次调用返回的查询凭证值。', - 'type' => 'string', - 'example' => 'AAAAAdDWBF2****', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '45D5B0AD-3B00-4A9B-9911-6D5303B06712', - ], - 'MaxResults' => [ - 'description' => '每页显示行数。', - 'type' => 'string', - 'example' => '20', - ], + 'TotalCount' => ['description' => '符合查询条件的结果条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'NextToken' => ['description' => '本次调用返回的查询凭证值。', 'type' => 'string', 'example' => 'AAAAAdDWBF2****'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '45D5B0AD-3B00-4A9B-9911-6D5303B06712'], + 'MaxResults' => ['description' => '每页显示行数。', 'type' => 'string', 'example' => '20'], 'CommitTasks' => [ 'description' => '任务详细信息。', 'type' => 'array', @@ -7561,35 +3219,15 @@ 'description' => '任务详细信息。', 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'description' => '任务ID。', - 'type' => 'string', - 'example' => 't-2zej6nstkg744qc3****', - ], - 'TaskStatus' => [ - 'description' => '任务状态。可能值:'."\n" - ."\n" - .'- Running:运行中'."\n" - .'- Succeeded:成功'."\n" - .'- Failed:失败', - 'type' => 'string', - 'example' => 'Running', - ], - 'TaskProgress' => [ - 'description' => '任务进度(百分比)。', - 'type' => 'string', - 'example' => '50%', - ], - 'StatusMessage' => [ - 'description' => '状态消息。', - 'type' => 'string', - 'example' => 'Commit container -xxxxxx', - ], - 'ContainerName' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'example' => 'worker0', - ], + 'TaskId' => ['description' => '任务ID。', 'type' => 'string', 'example' => 't-2zej6nstkg744qc3****'], + 'TaskStatus' => ['description' => '任务状态。可能值:'."\n" + ."\n" + .'- Running:运行中'."\n" + .'- Succeeded:成功'."\n" + .'- Failed:失败', 'type' => 'string', 'example' => 'Running'], + 'TaskProgress' => ['description' => '任务进度(百分比)。', 'type' => 'string', 'example' => '50%'], + 'StatusMessage' => ['description' => '状态消息。', 'type' => 'string', 'example' => 'Commit container -xxxxxx'], + 'ContainerName' => ['description' => '容器名称。', 'type' => 'string', 'example' => 'worker0'], 'CommitPhaseInfos' => [ 'description' => '任务阶段信息。', 'type' => 'array', @@ -7597,43 +3235,19 @@ 'description' => '任务阶段信息。', 'type' => 'object', 'properties' => [ - 'Phase' => [ - 'description' => '阶段名称。可能值:'."\n" - ."\n" - .'- PullBaseImage:拉取原容器镜像。'."\n" - .'- CommitContainer:提交容器生成镜像。'."\n" - .'- PushCommittedImage:推送镜像到ACR。', - 'type' => 'string', - 'example' => 'PullBaseImage', - ], - 'Status' => [ - 'description' => '阶段状态。', - 'type' => 'string', - 'example' => 'Success', - ], - 'Message' => [ - 'description' => '阶段信息。', - 'type' => 'string', - 'example' => 'Pull base image for container container-1 successfully', - ], - 'RecordTime' => [ - 'description' => '阶段时间。', - 'type' => 'string', - 'example' => '2023-01-05T14:06:40.920005316+08:00', - ], + 'Phase' => ['description' => '阶段名称。可能值:'."\n" + ."\n" + .'- PullBaseImage:拉取原容器镜像。'."\n" + .'- CommitContainer:提交容器生成镜像。'."\n" + .'- PushCommittedImage:推送镜像到ACR。', 'type' => 'string', 'example' => 'PullBaseImage'], + 'Status' => ['description' => '阶段状态。', 'type' => 'string', 'example' => 'Success'], + 'Message' => ['description' => '阶段信息。', 'type' => 'string', 'example' => 'Pull base image for container container-1 successfully'], + 'RecordTime' => ['description' => '阶段时间。', 'type' => 'string', 'example' => '2023-01-05T14:06:40.920005316+08:00'], ], ], ], - 'TaskCreationTime' => [ - 'description' => '任务开始时间。', - 'type' => 'string', - 'example' => '2023-03-06T08:22:40Z', - ], - 'TaskFinishedTime' => [ - 'description' => '任务完成时间。', - 'type' => 'string', - 'example' => '2023-03-06T08:23:40Z', - ], + 'TaskCreationTime' => ['description' => '任务开始时间。', 'type' => 'string', 'example' => '2023-03-06T08:22:40Z'], + 'TaskFinishedTime' => ['description' => '任务完成时间。', 'type' => 'string', 'example' => '2023-03-06T08:23:40Z'], ], ], ], @@ -7641,435 +3255,199 @@ ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 5,\\n \\"NextToken\\": \\"AAAAAdDWBF2****\\",\\n \\"RequestId\\": \\"45D5B0AD-3B00-4A9B-9911-6D5303B06712\\",\\n \\"MaxResults\\": \\"20\\",\\n \\"CommitTasks\\": [\\n {\\n \\"TaskId\\": \\"t-2zej6nstkg744qc3****\\",\\n \\"TaskStatus\\": \\"Running\\",\\n \\"TaskProgress\\": \\"50%\\",\\n \\"StatusMessage\\": \\"Commit container -xxxxxx\\",\\n \\"ContainerName\\": \\"worker0\\",\\n \\"CommitPhaseInfos\\": [\\n {\\n \\"Phase\\": \\"PullBaseImage\\",\\n \\"Status\\": \\"Success\\",\\n \\"Message\\": \\"Pull base image for container container-1 successfully\\",\\n \\"RecordTime\\": \\"2023-01-05T14:06:40.920005316+08:00\\"\\n }\\n ],\\n \\"TaskCreationTime\\": \\"2023-03-06T08:22:40Z\\",\\n \\"TaskFinishedTime\\": \\"2023-03-06T08:23:40Z\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeCommitContainerTaskResponse>\\n <TotalCount>1</TotalCount>\\n <CommitTasks>\\n <TaskId>t-2zej6nstkg744qc3****</TaskId>\\n <ContainerName>container-1</ContainerName>\\n <CommitPhaseInfos>\\n <Status>Running</Status>\\n <RecordTime>2023-01-05T16:19:28.969043719+08:00</RecordTime>\\n <Phase>PullBaseImage</Phase>\\n <Message>Start pulling base image for container container-1</Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Success</Status>\\n <RecordTime>2023-01-05T16:19:30.828749277+08:00</RecordTime>\\n <Phase>PullBaseImage</Phase>\\n <Message>Pull base image for container container-1 successfully</Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Running</Status>\\n <RecordTime>2023-01-05T16:19:30.828751003+08:00</RecordTime>\\n <Phase>CommitContainer</Phase>\\n <Message>Start to commit container container-1 to image registry-vpc.cn-beijing.aliyuncs.com/jsy-test/jsy-registry:0.0.1</Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Success</Status>\\n <RecordTime>2023-01-05T16:19:31.149874126+08:00</RecordTime>\\n <Phase>CommitContainer</Phase>\\n <Message>Commit container container-1 to image registry-vpc.cn-beijing.aliyuncs.com/jsy-test/jsy-registry:0.0.1 successfully </Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Running</Status>\\n <RecordTime>2023-01-05T16:19:31.149874907+08:00</RecordTime>\\n <Phase>PushCommittedImage</Phase>\\n <Message>Start to push image container-1:registry-vpc.cn-beijing.aliyuncs.com/jsy-test/jsy-registry</Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Success</Status>\\n <RecordTime>2023-01-05T16:19:32.979481284+08:00</RecordTime>\\n <Phase>PushCommittedImage</Phase>\\n <Message>Push image registry-vpc.cn-beijing.aliyuncs.com/***-test/***-registry:1.0.1 successfully</Message>\\n </CommitPhaseInfos>\\n <CreationTime>2023-01-05T16:19:28Z</CreationTime>\\n <TaskStatus>Succeeded</TaskStatus>\\n <FinishedTime>2023-01-05T16:19:40Z</FinishedTime>\\n </CommitTasks>\\n <NextToken/>\\n <RequestId>42E65299-8224-5D4A-915E-5AEC04A523FC</RequestId>\\n</DescribeCommitContainerTaskResponse>","errorExample":""}]', 'title' => '查询CommitContainer任务详情', 'summary' => '调用DescribeCommitContainerTask查询CommitContainer任务的详情。', - ], - 'CreateImageCache' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2023-08-01T02:38:56.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-08-01T02:29:38.000Z', 'description' => '响应参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeCommitContainerTask', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'CommitContainerTask', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 5,\\n \\"NextToken\\": \\"AAAAAdDWBF2****\\",\\n \\"RequestId\\": \\"45D5B0AD-3B00-4A9B-9911-6D5303B06712\\",\\n \\"MaxResults\\": \\"20\\",\\n \\"CommitTasks\\": [\\n {\\n \\"TaskId\\": \\"t-2zej6nstkg744qc3****\\",\\n \\"TaskStatus\\": \\"Running\\",\\n \\"TaskProgress\\": \\"50%\\",\\n \\"StatusMessage\\": \\"Commit container -xxxxxx\\",\\n \\"ContainerName\\": \\"worker0\\",\\n \\"CommitPhaseInfos\\": [\\n {\\n \\"Phase\\": \\"PullBaseImage\\",\\n \\"Status\\": \\"Success\\",\\n \\"Message\\": \\"Pull base image for container container-1 successfully\\",\\n \\"RecordTime\\": \\"2023-01-05T14:06:40.920005316+08:00\\"\\n }\\n ],\\n \\"TaskCreationTime\\": \\"2023-03-06T08:22:40Z\\",\\n \\"TaskFinishedTime\\": \\"2023-03-06T08:23:40Z\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeCommitContainerTaskResponse>\\n <TotalCount>1</TotalCount>\\n <CommitTasks>\\n <TaskId>t-2zej6nstkg744qc3****</TaskId>\\n <ContainerName>container-1</ContainerName>\\n <CommitPhaseInfos>\\n <Status>Running</Status>\\n <RecordTime>2023-01-05T16:19:28.969043719+08:00</RecordTime>\\n <Phase>PullBaseImage</Phase>\\n <Message>Start pulling base image for container container-1</Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Success</Status>\\n <RecordTime>2023-01-05T16:19:30.828749277+08:00</RecordTime>\\n <Phase>PullBaseImage</Phase>\\n <Message>Pull base image for container container-1 successfully</Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Running</Status>\\n <RecordTime>2023-01-05T16:19:30.828751003+08:00</RecordTime>\\n <Phase>CommitContainer</Phase>\\n <Message>Start to commit container container-1 to image registry-vpc.cn-beijing.aliyuncs.com/jsy-test/jsy-registry:0.0.1</Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Success</Status>\\n <RecordTime>2023-01-05T16:19:31.149874126+08:00</RecordTime>\\n <Phase>CommitContainer</Phase>\\n <Message>Commit container container-1 to image registry-vpc.cn-beijing.aliyuncs.com/jsy-test/jsy-registry:0.0.1 successfully </Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Running</Status>\\n <RecordTime>2023-01-05T16:19:31.149874907+08:00</RecordTime>\\n <Phase>PushCommittedImage</Phase>\\n <Message>Start to push image container-1:registry-vpc.cn-beijing.aliyuncs.com/jsy-test/jsy-registry</Message>\\n </CommitPhaseInfos>\\n <CommitPhaseInfos>\\n <Status>Success</Status>\\n <RecordTime>2023-01-05T16:19:32.979481284+08:00</RecordTime>\\n <Phase>PushCommittedImage</Phase>\\n <Message>Push image registry-vpc.cn-beijing.aliyuncs.com/***-test/***-registry:1.0.1 successfully</Message>\\n </CommitPhaseInfos>\\n <CreationTime>2023-01-05T16:19:28Z</CreationTime>\\n <TaskStatus>Succeeded</TaskStatus>\\n <FinishedTime>2023-01-05T16:19:40Z</FinishedTime>\\n </CommitTasks>\\n <NextToken/>\\n <RequestId>42E65299-8224-5D4A-915E-5AEC04A523FC</RequestId>\\n</DescribeCommitContainerTaskResponse>","errorExample":""}]', + ], + 'DescribeContainerGroupEvents' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '17725', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '48556', + 'abilityTreeNodes' => ['FEATUREeciO8VNZM'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'description' => '可用区。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou-g', - ], - ], - [ - 'name' => 'SecurityGroupId', - 'in' => 'query', - 'schema' => [ - 'description' => '安全组ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'sg-uf66jeqopgqa9hdn****', - ], + 'schema' => ['description' => '可用区ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-k'], ], [ 'name' => 'VSwitchId', 'in' => 'query', - 'schema' => [ - 'description' => '交换机ID。支持指定多个交换机ID(单次最多10个),各交换机ID之间可以用半角逗号(,)进行分割,例如`vsw-***,vsw-***`。', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'vsw-uf6h3rbwbm90urjwa****', - ], - ], - [ - 'name' => 'ImageCacheName', - 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存名称。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'testcache', - ], - ], - [ - 'name' => 'EipInstanceId', - 'in' => 'query', - 'schema' => [ - 'description' => '弹性公网IP。如果需要拉取公网镜像,需要确保ECI实例能够访问公网,您可以配置EIP或者NAT网关实现公网访问。', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-2zedsm5mfl3uhdj2d****', - ], + 'schema' => ['description' => '交换机ID。', 'type' => 'string', 'required' => false, 'example' => 'vsw-uf6h3rbwbm90urjwa****'], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-aekzh43v*****', - ], - ], - [ - 'name' => 'ClientToken', - 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-xxx-xxx-xxxx-42665544xxxx', - ], - ], - [ - 'name' => 'ImageCacheSize', - 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存的大小。默认为20 GiB。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - ], - [ - 'name' => 'RetentionDays', - 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存保留时间,过期将会被清理,默认永不过期。'."\n" - ."\n" - .'> 创建失败的镜像缓存仅保留一天。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '7', - ], + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-uf66jeqopgqa9hdn****'], ], [ - 'name' => 'AutoMatchImageCache', - 'in' => 'query', - 'schema' => [ - 'description' => '是否开启镜像缓存复用。开启后,新创建的镜像缓存可以复用已有镜像缓存的镜像层,加快镜像缓存的制作速度。取值范围:'."\n" - ."\n" - .'- true:开启'."\n" - ."\n" - .'- false:不开启'."\n" - ."\n" - .'默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - ], - [ - 'name' => 'ImageRegistryCredential', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '镜像仓库信息。', - 'type' => 'array', - 'items' => [ - 'description' => '镜像仓库信息。', - 'type' => 'object', - 'properties' => [ - 'Password' => [ - 'description' => '镜像仓库密码。', - 'type' => 'string', - 'required' => false, - 'example' => 'password', - ], - 'Server' => [ - 'description' => '不带 `http://` 或 `https://` 前缀的镜像仓库地址。', - 'type' => 'string', - 'required' => false, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com', - ], - 'UserName' => [ - 'description' => '镜像仓库用户名。', - 'type' => 'string', - 'required' => false, - 'example' => 'username', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 11, - ], - ], - [ - 'name' => 'Image', + 'name' => 'ContainerGroupIds', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '用于制作镜像缓存的容器镜像。', - 'type' => 'array', - 'items' => [ - 'description' => '用于制作镜像缓存的容器镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', - ], - 'required' => true, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', - 'maxItems' => 101, - ], + 'schema' => ['description' => 'ECI实例ID序列。最多20个,字符串需按照JSON格式传入。', 'type' => 'string', 'required' => false, 'example' => '["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"]'], ], [ 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '镜像缓存标签信息,最多20个。', - 'type' => 'array', - 'items' => [ - 'description' => '镜像缓存标签信息,最多20个。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '镜像缓存标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'imc', - ], - 'Value' => [ - 'description' => '镜像缓存标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], - ], - [ - 'name' => 'Flash', - 'in' => 'query', - 'schema' => [ - 'description' => '是否开启极速镜像缓存功能,开启后,可以加速镜像缓存创建。取值范围:'."\n" - ."\n" - .'- true:开启'."\n" - ."\n" - .'- false:不开启'."\n" - ."\n" - .'默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - ], - [ - 'name' => 'AcrRegistryInfo', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'ACR实例信息。更多信息,请参见[免密拉取ACR镜像](~~194250~~)。', + 'description' => 'ECI实例绑定的标签。', 'type' => 'array', 'items' => [ - 'description' => 'ACR实例信息。', + 'description' => 'ECI实例绑定的标签。', 'type' => 'object', 'properties' => [ - 'Domain' => [ - 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', - 'type' => 'array', - 'items' => [ - 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', - 'type' => 'string', - 'required' => false, - 'example' => 'test****-registry.cn-beijing.cr.aliyuncs.com', - ], - 'required' => false, - 'example' => 'test****-registry.cn-beijing.cr.aliyuncs.com', - 'maxItems' => 100, - ], - 'InstanceName' => [ - 'description' => 'ACR企业版实例的名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test****', - ], - 'InstanceId' => [ - 'description' => 'ACR企业版实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cri-nwj395hgf6f3****', - ], - 'RegionId' => [ - 'description' => 'ACR企业版实例所属地域。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-beijing', - ], - 'ArnService' => [ - 'description' => 'ECI实例等资源归属账号下的RAM角色的ARN。', - 'type' => 'string', - 'required' => false, - 'example' => 'acs:ram::1609982529******:role/role-assume', - ], - 'ArnUser' => [ - 'description' => 'ACR实例归属账号下的RAM角色的ARN。', - 'type' => 'string', - 'required' => false, - 'example' => 'acs:ram::1298452580******:role/role-acr', - ], + 'Value' => ['description' => 'ECI实例的标签值。', 'type' => 'string', 'required' => false, 'example' => 'name'], + 'Key' => ['description' => 'ECI实例的标签键。', 'type' => 'string', 'required' => false, 'example' => 'test'], ], 'required' => false, ], 'required' => false, - 'maxItems' => 21, - ], - ], - [ - 'name' => 'Annotations', - 'in' => 'query', - 'schema' => [ - 'description' => '注解。该参数暂不对外使用。', - 'type' => 'string', - 'required' => false, - 'example' => 'hide', - ], - ], - [ - 'name' => 'PlainHttpRegistry', - 'in' => 'query', - 'schema' => [ - 'description' => '自建镜像仓库地址。使用HTTP协议的自建镜像仓库中的镜像创建镜像缓存时,需配置该参数,使得ECI使用HTTP协议拉取镜像,避免因协议不同而导致镜像拉取失败。', - 'type' => 'string', - 'required' => false, - 'example' => '"harbor***.pre.com,192.168.XX.XX:5000,reg***.test.com:80"', + 'maxItems' => 10, ], ], [ - 'name' => 'InsecureRegistry', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '自建镜像仓库地址。'."\n" - ."\n" - .'使用自签发证书的自建镜像仓库中的镜像创建镜像缓存时,需配置该参数来跳过证书认证,避免因证书认证失败而导致镜像拉取失败。', - 'type' => 'string', - 'required' => false, - 'example' => '"harbor***.pre.com,192.168.XX.XX:5000,reg***.test.com:80"', - ], + 'schema' => ['description' => '下一个查询开始的Token,NextToken为空表示没有下一个。'."\n" + ."\n" + .'首次查询时无需设置该参数,后续查询的Token从返回结果中获取。', 'type' => 'string', 'required' => false, 'example' => 'd78f2dd8-5979-42fe-xaee-b16db43be5bc'], ], [ - 'name' => 'StandardCopyCount', + 'name' => 'EventSource', 'in' => 'query', 'schema' => [ - 'description' => '标准快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n" + 'description' => '事件源。取值范围:'."\n" ."\n" - .'> 未开启极速镜像缓存功能(Flash取值为false)时,创镜像缓存的过程中仅生成标准快照。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '7', - ], - ], - [ - 'name' => 'FlashCopyCount', - 'in' => 'query', - 'schema' => [ - 'description' => '本地快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n" + .'- EciService'."\n" + .'- K8sAgent'."\n" ."\n" - .'> 开启极速镜像缓存功能(Flash取值为true)时,创建镜像缓存的过程中将先创建本地快照,在本地快照创建完成后开始创建标准快照,待标准快照创建完成后会自动删除本地快照。', - 'type' => 'integer', - 'format' => 'int32', + .'默认为空,查询所有事件。', + 'type' => 'string', 'required' => false, - 'example' => '7', + 'example' => 'K8sAgent', + 'enum' => ['EciService', 'K8sAgent'], ], ], [ - 'name' => 'EliminationStrategy', + 'name' => 'SinceSecond', 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存的淘汰策略。默认为空,表示一直保留。'."\n" - ."\n" - .'支持配置为LRU,表示可以被自动删除。当镜像缓存数量达到配额限制时,系统将自动删除最不常用的EliminationStrategy为LRU的镜像缓存。', - 'type' => 'string', - 'required' => false, - 'example' => 'LRU', - ], + 'schema' => ['description' => '返回最近几秒内新增的事件,用于轮询增量事件。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '3600', 'minimum' => '60', 'example' => '60'], ], [ - 'name' => 'OsType', + 'name' => 'Limit', 'in' => 'query', - 'schema' => [ - 'description' => '容器镜像的操作系统。取值范围:'."\n" - ."\n" - .'- Linux(默认值)'."\n" - .'- Windows'."\n" - ."\n" - .'> Windows正在邀测中,如需使用,请提交工单申请。', - 'type' => 'string', - 'required' => false, - 'example' => 'Linux', - ], + 'schema' => ['description' => '限定此次返回资源(ECI实例)的数量。默认为200个。'."\n" + ."\n" + .'> 返回结果可能小于指定的数量,但不会多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '200', 'minimum' => '1', 'example' => '200', 'default' => '50'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '0E234675-3465-4CC3-9D0F-9A864BC391DD', - ], - 'ImageCacheId' => [ - 'description' => '镜像缓存ID。', - 'type' => 'string', - 'example' => 'imc-2zebxkiifuyzzlhl****', - ], - 'ContainerGroupId' => [ - 'description' => '用于中转创建镜像缓存的ECI实例ID。'."\n", - 'type' => 'string', - 'example' => 'eci-2zebxkiifuyzzlhl****', + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '1340C38D-6189-54D1-86F6-7D5ECF3E0088'], + 'TotalCount' => ['description' => '返回的事件条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'Data' => [ + 'description' => '事件信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '事件信息列表。', + 'type' => 'object', + 'properties' => [ + 'ContainerGroupId' => ['description' => 'ECI实例ID。', 'type' => 'string', 'example' => 'eci-uf6fonnghi50v6nq****'], + 'Name' => ['description' => 'ECI实例名称。', 'type' => 'string', 'example' => 'test'], + 'Namespace' => ['description' => 'ECI实例所在命名空间。', 'type' => 'string', 'example' => 'redis'], + 'uuid' => ['description' => 'ECI实例的UUID。', 'type' => 'string', 'example' => '3fc6b309-****-****'], + 'Annotations' => ['description' => 'ECI实例的注解。', 'type' => 'string', 'example' => '"{\\"tenancy.x-k8s.io/namespace\\":\\"redis\\"}"'], + 'Events' => [ + 'description' => '事件列表。', + 'type' => 'array', + 'items' => [ + 'description' => '事件列表。', + 'type' => 'object', + 'properties' => [ + 'Type' => ['description' => '事件类型。可能值:'."\n" + ."\n" + .'- Normal'."\n" + .'- Warning', 'type' => 'string', 'example' => 'Normal'], + 'Count' => ['description' => '事件数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'FirstTimestamp' => ['description' => '事件第一次出现的时间。', 'type' => 'string', 'example' => '2021-10-04T09:08:04Z'], + 'LastTimestamp' => ['description' => '事件最后一次出现的时间。', 'type' => 'string', 'example' => '2021-10-04T09:08:04Z'], + 'Message' => ['description' => '事件信息。', 'type' => 'string', 'example' => 'Started container'], + 'Reason' => ['description' => '事件原因。', 'type' => 'string', 'example' => 'Started'], + 'ReportingComponent' => ['description' => '上报事件的组件。', 'type' => 'string', 'example' => 'test'], + 'ReportingInstance' => ['description' => '上报事件的实例。', 'type' => 'string', 'example' => 'test'], + 'Source' => [ + 'description' => '来源。', + 'type' => 'object', + 'properties' => [ + 'Component' => ['description' => '组件。', 'type' => 'string', 'example' => 'kubelet'], + 'Host' => ['description' => '主机类型。', 'type' => 'string', 'example' => 'eci'], + ], + ], + 'involvedObject' => [ + 'description' => '事件关联的资源对象。', + 'type' => 'object', + 'properties' => [ + 'Kind' => ['description' => '资源类型。', 'type' => 'string', 'example' => 'Pod'], + 'Name' => ['description' => '资源名称。', 'type' => 'string', 'example' => 'test'], + 'Namespace' => ['description' => '资源所在命名空间。', 'type' => 'string', 'example' => 'default'], + 'Uid' => ['description' => '资源ID。', 'type' => 'string', 'example' => 'eci-8vb5nkcq3a5cu0p3****'], + 'ApiVersion' => ['description' => 'K8s版本。', 'type' => 'string', 'example' => 'v1'], + ], + ], + 'Metadata' => [ + 'description' => '事件元数据。', + 'type' => 'object', + 'properties' => [ + 'Name' => ['description' => '事件名称。', 'type' => 'string', 'example' => 'eci-uto-created-eci-for-ubuntu.167e3fb73cc7f9cb'], + 'Namespace' => ['description' => '命名空间。', 'type' => 'string', 'example' => 'default'], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -8077,200 +3455,93 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'ImageCache.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageCacheNotSupport', - 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', - ], - [ - 'errorCode' => 'EipAddressPoolIpNotEnough', - 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', - ], - [ - 'errorCode' => 'OperationConflict', - 'errorMessage' => 'The request was denied. It conflicts with a previous request.', - ], - ], - 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', - ], + ['errorCode' => 'InvalidParameter.MismatchInstanceType', 'errorMessage' => 'The instanceId mismatch instance type.', 'description' => '实例类型错误'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC391DD\\",\\n \\"ImageCacheId\\": \\"imc-2zebxkiifuyzzlhl****\\",\\n \\"ContainerGroupId\\": \\"eci-2zebxkiifuyzzlhl****\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateImageCacheResponse>\\n <ImageCacheId>imc-2zebxkiifuyzzlhl****</ImageCacheId>\\n <RequestId>0E234675-3465-4CC3-9D0F-9A864BC391DD</RequestId>\\n <ContainerGroupId>eci-2zebxkiifuyzzlhl****</ContainerGroupId>\\n</CreateImageCacheResponse>","errorExample":""}]', - 'title' => '创建一个镜像缓存', - 'summary' => '调用CreateImageCache接口创建一个镜像缓存,以便后续创建ECI实例可以加速镜像拉取,减少实例启动耗时。', - 'description' => '### 注意事项'."\n" - ."\n" - .'- 创建镜像缓存涉及资源计费。建议您提前了解相关计费信息。更多信息,请参见[镜像缓存计费](~~447682~~)。'."\n" - .'- 创建镜像缓存前,您需要评估待缓存镜像的总大小,如果镜像总大小超过设置的缓存大小,将会创建失败。'."\n" - .'- 创建镜像缓存时,系统将自动创建一个ECI实例和一块ESSD PL1类型的云盘用于中转创建镜像缓存。创建过程中请勿删除ECI实例和云盘,否则镜像缓存将创建失败。'."\n" - .'- 创建镜像缓存将生成对应的快照。请勿删除快照,否则镜像缓存将会失效。'."\n" - .'- 如果使用SDK,则对应版本为:Java 1.0.10以上,Python 1.0.7以上。'."\n" - ."\n" - .'### 使用建议'."\n" - .'- 对于使用自定义域名的ACR企业版镜像,需要指定ACR实例(设置AcrRegistryInfo相关参数)来配置免密。设置AcrRegistryInfo相关参数时,必须设置AcrRegistryInfo.N.InstanceId。'."\n" - .'- 如果该镜像缓存将用于批量创建多个(超过1000个)ECI实例,建议您设置StandardCopyCount和FlashCopyCount实现快照多副本功能。快照多副本按增量数据收费,由于本次创建的多个快照副本数据均一致,因此使用快照多副本功能不会增加额外费用。'."\n" - ."\n" - .'> 调用CreateImageCache创建镜像缓存时,系统将自动为您创建一个服务关联角色AliyunServiceRoleForECI,用于访问ECS、VPC等相关云服务。更多信息,请参见[弹性容器实例服务关联角色](~~212914~~)。', + 'title' => '查询容器组事件列表', + 'summary' => '调用DescribeContainerGroupEvents批量查询ECI实例的事件信息。', + 'description' => '调用本接口可以同时查询多个ECI实例的事件信息。默认返回每个ECI实例最新的50条事件信息。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DeleteImageCache' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2025-03-28T05:43:32.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2025-03-28T03:48:42.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2024-09-04T07:12:21.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2023-06-02T08:20:25.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-09-06T07:27:31.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-07-19T02:35:33.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-10-13T09:53:16.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2021-09-27T11:35:59.000Z', 'description' => '请求参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroupEvents'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroupEvents', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1340C38D-6189-54D1-86F6-7D5ECF3E0088\\",\\n \\"TotalCount\\": 10,\\n \\"Data\\": [\\n {\\n \\"ContainerGroupId\\": \\"eci-uf6fonnghi50v6nq****\\",\\n \\"Name\\": \\"test\\",\\n \\"Namespace\\": \\"redis\\",\\n \\"uuid\\": \\"3fc6b309-****-****\\",\\n \\"Annotations\\": \\"\\\\\\"{\\\\\\\\\\\\\\"tenancy.x-k8s.io/namespace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"redis\\\\\\\\\\\\\\"}\\\\\\"\\",\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"Count\\": 10,\\n \\"FirstTimestamp\\": \\"2021-10-04T09:08:04Z\\",\\n \\"LastTimestamp\\": \\"2021-10-04T09:08:04Z\\",\\n \\"Message\\": \\"Started container\\",\\n \\"Reason\\": \\"Started\\",\\n \\"ReportingComponent\\": \\"test\\",\\n \\"ReportingInstance\\": \\"test\\",\\n \\"Source\\": {\\n \\"Component\\": \\"kubelet\\",\\n \\"Host\\": \\"eci\\"\\n },\\n \\"involvedObject\\": {\\n \\"Kind\\": \\"Pod\\",\\n \\"Name\\": \\"test\\",\\n \\"Namespace\\": \\"default\\",\\n \\"Uid\\": \\"eci-8vb5nkcq3a5cu0p3****\\",\\n \\"ApiVersion\\": \\"v1\\"\\n },\\n \\"Metadata\\": {\\n \\"Name\\": \\"eci-uto-created-eci-for-ubuntu.167e3fb73cc7f9cb\\",\\n \\"Namespace\\": \\"default\\"\\n }\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupEventsResponse>\\n <RequestId>1340C38D-6189-54D1-86F6-7D5ECF3E0088</RequestId>\\n <TotalCount>10</TotalCount>\\n <Data>\\n <ContainerGroupId>eci-uf6fonnghi50v6nq****</ContainerGroupId>\\n <Events>\\n <Type>Normal</Type>\\n <Count>10</Count>\\n <FirstTimestamp>2021-10-04T09:08:04Z</FirstTimestamp>\\n <LastTimestamp>2021-10-04T09:08:04Z</LastTimestamp>\\n <Message>Started container</Message>\\n <Reason>Started</Reason>\\n <ReportingComponent>test</ReportingComponent>\\n <ReportingInstance>test</ReportingInstance>\\n <Source>\\n <Component>kubelet</Component>\\n <Host>eci</Host>\\n </Source>\\n <involvedObject>\\n <Kind>Pod</Kind>\\n <Name>test</Name>\\n <Namespace>default</Namespace>\\n <Uid>eci-8vb5nkcq3a5cu0p3****</Uid>\\n <ApiVersion>v1</ApiVersion>\\n </involvedObject>\\n <Metadata>\\n <Name>eci-uto-created-eci-for-ubuntu.167e3fb73cc7f9cb</Name>\\n <Namespace>default</Namespace>\\n </Metadata>\\n </Events>\\n </Data>\\n</DescribeContainerGroupEventsResponse>","errorExample":""}]', + ], + 'DescribeContainerGroupMetric' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '17728', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '17730', + 'abilityTreeNodes' => ['FEATUREeciO8VNZM'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'RegionId', + 'name' => 'ContainerGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'ECI实例ID,即容器组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'eci-bp17da5olmkuagfr****'], ], [ - 'name' => 'ImageCacheId', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'imc-2zebxkiifuyzzlhl****', - ], + 'schema' => ['description' => '查询某个时间段内的监控数据时,设置的开始时间。取值必须为30天之内,默认为EndTime减去5分钟。'."\n" + ."\n" + .'格式为RFC3339时间格式。例如:北京时间2019年03月12号上午9点整可以表示为2019-03-12T09:00:00.000+08:00或者2019-03-12T01:00:00.000Z', 'type' => 'string', 'required' => false, 'example' => '2019-03-12T01:00:00.000Z'], ], [ - 'name' => 'ClientToken', + 'name' => 'EndTime', 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000', - ], + 'schema' => ['description' => '查询某个时间段内的监控数据时,设置的结束时间。默认为当前时间。'."\n" + ."\n" + .'格式为RFC3339时间格式。', 'type' => 'string', 'required' => false, 'example' => '2019-09-12T01:05:00.000Z '], + ], + [ + 'name' => 'Period', + 'in' => 'query', + 'schema' => ['description' => '数据聚合周期,单位为秒。目前只支持15、30、60和600秒。默认为60秒。'."\n" + ."\n" + .'> 如果StartTime和EndTime均没有设置,则默认获取最新5分钟的监控数据,默认聚合周期为15S,传入的Period将被忽略。', 'type' => 'string', 'required' => false, 'example' => '15'], ], ], 'responses' => [ @@ -8278,374 +3549,633 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A218-354284CFC7A2', + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => 'D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC'], + 'ContainerGroupId' => ['description' => 'ECI实例ID,即容器组ID。', 'type' => 'string', 'example' => 'eci-bp1dqpye03ke5s6p****'], + 'Records' => [ + 'description' => 'ECI实例的监控数据详情。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Network' => [ + 'description' => '网络数据。', + 'type' => 'object', + 'properties' => [ + 'Interfaces' => [ + 'description' => '网卡数据。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RxErrors' => ['description' => '累计接收错误数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'TxDrops' => ['description' => '累计发送丢包数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'TxBytes' => ['description' => '累计发送字节数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1381805699'], + 'RxPackets' => ['description' => '累计接收包数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '4800583'], + 'TxPackets' => ['description' => '累计发送包数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '5158427'], + 'Name' => ['description' => '网卡名称。', 'type' => 'string', 'example' => 'eth0'], + 'TxErrors' => ['description' => '累计发送错误数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'RxBytes' => ['description' => '累计接收字节数。', 'type' => 'integer', 'format' => 'int64', 'example' => '505001954'], + 'RxDrops' => ['description' => '累计接收丢包数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + ], + ], + ], + ], + ], + 'CPU' => [ + 'description' => 'CPU数据。', + 'type' => 'object', + 'properties' => [ + 'UsageNanoCores' => ['description' => 'CPU在采样窗口内的使用量(纳秒)。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'Limit' => ['description' => 'CPU使用上限(CPU核数*1000)。', 'type' => 'integer', 'format' => 'int64', 'example' => '2000'], + 'UsageCoreNanoSeconds' => ['description' => 'CPU历史使用总量。', 'type' => 'integer', 'format' => 'int64', 'example' => '70769883'], + 'Load' => ['description' => '最近10秒的平均负载情况。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + ], + ], + 'Disk' => [ + 'description' => '磁盘数据。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'WriteBytes' => ['description' => '磁盘写入的数据量,单位为Byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '1375109120'], + 'WriteIO' => ['description' => '该参数暂未开放使用。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'Device' => ['description' => '磁盘名称。', 'type' => 'string', 'example' => '/dev/vda'], + 'ReadIO' => ['description' => '该参数暂未开放使用。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'ReadBytes' => ['description' => '磁盘读取的数据量,单位为Byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '210714112'], + ], + ], + ], + 'Timestamp' => ['description' => '每条监控数据对应的统计时间。格式为RFC3339时间格式。', 'type' => 'string', 'example' => '2021-08-25T16:22:00.000+08:00'], + 'Memory' => [ + 'description' => '内存数据。', + 'type' => 'object', + 'properties' => [ + 'Rss' => ['description' => '常驻内存集,即实际使用的物理内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + 'UsageBytes' => ['description' => '已使用内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + 'WorkingSet' => ['description' => '当前内存工作集使用量。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + 'AvailableBytes' => ['description' => '可用内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '4285091840'], + 'Cache' => ['description' => '缓存。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + ], + ], + 'Filesystem' => [ + 'description' => '文件系统分区数据。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Capacity' => ['description' => '空间总量。', 'type' => 'integer', 'format' => 'int64', 'example' => '41610981376'], + 'Available' => ['description' => '可用空间。', 'type' => 'integer', 'format' => 'int64', 'example' => '35319836672'], + 'FsName' => ['description' => '分区名称。', 'type' => 'string', 'example' => '/dev/root'], + 'Usage' => ['description' => '已使用空间。', 'type' => 'integer', 'format' => 'int64', 'example' => '4368744448'], + 'Category' => ['description' => '分区类型。可能值:'."\n" + ."\n" + .'- System'."\n" + .'- Volume'."\n" + .'- Other'."\n", 'type' => 'string', 'example' => 'System'], + ], + ], + ], + 'Containers' => [ + 'description' => '容器的监控数据详情。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'description' => '容器的CPU数据。', + 'type' => 'object', + 'properties' => [ + 'UsageNanoCores' => ['description' => 'CPU在采样窗口内的使用量(纳秒)。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'Limit' => ['description' => 'CPU使用上限(CPU核数*1000)。', 'type' => 'integer', 'format' => 'int64', 'example' => '1024'], + 'UsageCoreNanoSeconds' => ['description' => 'CPU历史使用总量。', 'type' => 'integer', 'format' => 'int64', 'example' => '40876694'], + 'Load' => ['description' => '最近10秒的平均负载情况。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + ], + ], + 'Memory' => [ + 'description' => '容器的内存数据。', + 'type' => 'object', + 'properties' => [ + 'Rss' => ['description' => '常驻内存集,即实际使用的物理内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + 'UsageBytes' => ['description' => '已使用内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + 'WorkingSet' => ['description' => '当前内存工作集使用量。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + 'AvailableBytes' => ['description' => '可用内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '4285091840'], + 'Cache' => ['description' => '缓存。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + ], + ], + 'Name' => ['description' => '容器名称。', 'type' => 'string', 'example' => 'u1'], + ], + ], + ], + ], + ], ], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A218-354284CFC7A2\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteImageCacheResponse>\\r\\n <RequestId>89945DD3-9072-47D0-A218-354284CFC7A2</RequestId>\\r\\n</DeleteImageCacheResponse>","errorExample":""}]', - 'title' => '删除一个镜像缓存', - 'summary' => '调用DeleteImageCache删除一个镜像缓存。', + 'title' => '查询一个ECI实例的监控数据', + 'summary' => '调用DescribeContainerGroupMetric查询一个ECI实例的监控数据。', + 'description' => '- 最多支持返回50条监控数据,超出50条将会报错。'."\n" + .'- 仅支持分别查询5分钟以内的实时数据,或者5分钟之前的历史数据。如果查询时间段超出了当前时间点,默认只查询5分钟之前的历史数据。'."\n" + .'- 仅支持查询创建时间晚于北京时间2019年04月03日15点的ECI实例的监控数据。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'UpdateImageCache' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2025-03-28T05:43:32.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2025-03-28T03:48:42.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2021-05-24T03:55:50.000Z', 'description' => '响应参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '2000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroupMetric'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroupMetric', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC\\",\\n \\"ContainerGroupId\\": \\"eci-bp1dqpye03ke5s6p****\\",\\n \\"Records\\": [\\n {\\n \\"Network\\": {\\n \\"Interfaces\\": [\\n {\\n \\"RxErrors\\": 0,\\n \\"TxDrops\\": 0,\\n \\"TxBytes\\": 1381805699,\\n \\"RxPackets\\": 4800583,\\n \\"TxPackets\\": 5158427,\\n \\"Name\\": \\"eth0\\",\\n \\"TxErrors\\": 0,\\n \\"RxBytes\\": 505001954,\\n \\"RxDrops\\": 0\\n }\\n ]\\n },\\n \\"CPU\\": {\\n \\"UsageNanoCores\\": 0,\\n \\"Limit\\": 2000,\\n \\"UsageCoreNanoSeconds\\": 70769883,\\n \\"Load\\": 0\\n },\\n \\"Disk\\": [\\n {\\n \\"WriteBytes\\": 1375109120,\\n \\"WriteIO\\": 123,\\n \\"Device\\": \\"/dev/vda\\",\\n \\"ReadIO\\": 123,\\n \\"ReadBytes\\": 210714112\\n }\\n ],\\n \\"Timestamp\\": \\"2021-08-25T16:22:00.000+08:00\\",\\n \\"Memory\\": {\\n \\"Rss\\": 9289728,\\n \\"UsageBytes\\": 9289728,\\n \\"WorkingSet\\": 9289728,\\n \\"AvailableBytes\\": 4285091840,\\n \\"Cache\\": 9289728\\n },\\n \\"Filesystem\\": [\\n {\\n \\"Capacity\\": 41610981376,\\n \\"Available\\": 35319836672,\\n \\"FsName\\": \\"/dev/root\\",\\n \\"Usage\\": 4368744448,\\n \\"Category\\": \\"System\\"\\n }\\n ],\\n \\"Containers\\": [\\n {\\n \\"CPU\\": {\\n \\"UsageNanoCores\\": 0,\\n \\"Limit\\": 1024,\\n \\"UsageCoreNanoSeconds\\": 40876694,\\n \\"Load\\": 0\\n },\\n \\"Memory\\": {\\n \\"Rss\\": 9289728,\\n \\"UsageBytes\\": 9289728,\\n \\"WorkingSet\\": 9289728,\\n \\"AvailableBytes\\": 4285091840,\\n \\"Cache\\": 9289728\\n },\\n \\"Name\\": \\"u1\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupMetricResponse>\\n <RequestId>96F7805E-16E6-55B1-817F-EA6CF365E7AE</RequestId>\\n <ContainerGroupId>eci-2zea33h8fdgiw23jfp3f</ContainerGroupId>\\n <Records>\\n <Memory>\\n <UsageBytes>11153408</UsageBytes>\\n <Rss>1593344</Rss>\\n <AvailableBytes>4289445888</AvailableBytes>\\n <WorkingSet>5521408</WorkingSet>\\n <Cache>7028736</Cache>\\n </Memory>\\n <Network>\\n <Interfaces>\\n <RxPackets>0</RxPackets>\\n <TxDrops>0</TxDrops>\\n <RxDrops>0</RxDrops>\\n <RxErrors>0</RxErrors>\\n <TxErrors>0</TxErrors>\\n <TxPackets>0</TxPackets>\\n <RxBytes>505001954</RxBytes>\\n <TxBytes>1381805699</TxBytes>\\n <Name>eth0</Name>\\n </Interfaces>\\n </Network>\\n <Containers>\\n <Memory>\\n <UsageBytes>9850880</UsageBytes>\\n <Rss>1593344</Rss>\\n <AvailableBytes>0</AvailableBytes>\\n <WorkingSet>4841472</WorkingSet>\\n <Cache>7028736</Cache>\\n </Memory>\\n <CPU>\\n <UsageCoreNanoSeconds>38373298</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <UsageNanoCores>0</UsageNanoCores>\\n <Limit>0</Limit>\\n </CPU>\\n <Name>nginx</Name>\\n </Containers>\\n <Containers>\\n <Memory>\\n <UsageBytes>9850880</UsageBytes>\\n <Rss>1593344</Rss>\\n <AvailableBytes>0</AvailableBytes>\\n <WorkingSet>4841472</WorkingSet>\\n <Cache>7028736</Cache>\\n </Memory>\\n <CPU>\\n <UsageCoreNanoSeconds>38373298</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <UsageNanoCores>0</UsageNanoCores>\\n <Limit>0</Limit>\\n </CPU>\\n <Name>nginx</Name>\\n </Containers>\\n <CPU>\\n <UsageCoreNanoSeconds>70769883</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <UsageNanoCores>0</UsageNanoCores>\\n <Limit>2000</Limit>\\n </CPU>\\n <Filesystem>\\n <Usage>612556800</Usage>\\n <Category>System</Category>\\n <FsName>/dev/disk/by-uuid/39d6ac87-caa5-4bdd-b31e-660301e51bab</FsName>\\n <Capacity>52576092160</Capacity>\\n <Available>49262403584</Available>\\n </Filesystem>\\n <Filesystem>\\n <Usage>5022646272</Usage>\\n <Category>Other</Category>\\n <FsName>/dev/root</FsName>\\n <Capacity>41610981376</Capacity>\\n <Available>34665934848</Available>\\n </Filesystem>\\n <Filesystem>\\n <Usage>0</Usage>\\n <Category>Other</Category>\\n <FsName>/dev/shm</FsName>\\n <Capacity>1991725056</Capacity>\\n <Available>1991725056</Available>\\n </Filesystem>\\n <Filesystem>\\n <Usage>37249024</Usage>\\n <Category>Other</Category>\\n <FsName>/dev/vda2</FsName>\\n <Capacity>511647744</Capacity>\\n <Available>436822016</Available>\\n </Filesystem>\\n <Timestamp>2021-08-25T16:22:00.000+08:00</Timestamp>\\n <Disk>\\n <Device>/dev/vda</Device>\\n <ReadBytes>177200640</ReadBytes>\\n <WriteBytes>8542216192</WriteBytes>\\n </Disk>\\n </Records>\\n</DescribeContainerGroupMetricResponse>","errorExample":""}]', + ], + 'DescribeContainerGroupPrice' => [ + 'summary' => '查询ECI实例的价格。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '17731', + 'abilityTreeNodes' => ['FEATUREeciY9GS39', 'FEATUREeci5NN3BU', 'FEATUREeciIT94P2', 'FEATUREeciCZBDK8'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou ', - ], + 'schema' => ['description' => '地域ID。您可以调用[DescribeRegions](~~146965~~)查询最新的地域可用区信息。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou ', - ], + 'schema' => ['description' => '地域ID。您可以调用[DescribeRegions](~~146965~~)查询最新的地域可用区信息。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ImageCacheId', + 'name' => 'Cpu', 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'imc-bp195erqe9o2pb09**** ', - ], + 'schema' => ['description' => 'vCPU大小。ECI支持的vCPU和内存规格请参见[vCPU和内存规格说明](~~114662~~)。', 'type' => 'number', 'format' => 'float', 'required' => false, 'docRequired' => true, 'example' => '2.0'], ], [ - 'name' => 'SecurityGroupId', + 'name' => 'Memory', 'in' => 'query', - 'schema' => [ - 'description' => '安全组ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'sg-uf66jeqopgqa9hdn**** ', - ], + 'schema' => ['description' => '内存大小。单位为GiB。ECI支持的vCPU和内存规格请参见[vCPU和内存规格说明](~~114662~~)。', 'type' => 'number', 'format' => 'float', 'required' => false, 'docRequired' => true, 'example' => '4.0'], ], [ - 'name' => 'VSwitchId', + 'name' => 'InstanceType', 'in' => 'query', - 'schema' => [ - 'description' => '交换机ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'vsw-uf6h3rbwbm90urjwa**** ', - ], + 'schema' => ['description' => '指定的ECS实例规格。ECI支持指定的ECS规格请参见[ECI支持的ECS规格说明](~~114664~~)。'."\n" + ."\n" + .'> 设置该参数后,将自动忽略传入的vCPU和内存值,仅返回ECS规格的价格信息。', 'type' => 'string', 'required' => false, 'example' => 'ecs.c5.large'], ], [ - 'name' => 'ImageCacheName', + 'name' => 'SpotStrategy', 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存名称。', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'testcache', - ], + 'schema' => ['description' => '实例的抢占策略。取值范围:'."\n" + ."\n" + .'- NoSpot:正常按量付费实例。'."\n" + .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" + .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。'."\n" + ."\n" + .'默认为:NoSpot。', 'type' => 'string', 'required' => false, 'example' => 'SpotWithPriceLimit'], ], [ - 'name' => 'EipInstanceId', + 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'description' => '弹性公网IP。如果需要拉取公网镜像,需要确保ECI实例能够访问公网,您可以配置EIP或者NAT网关实现公网访问。', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-2zedsm5mfl3uhdj2d****', - ], + 'schema' => ['description' => '可用区。您可以调用[DescribeRegions](~~146965~~)查询最新的地域可用区信息。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-g'], ], [ - 'name' => 'ResourceGroupId', + 'name' => 'SpotPriceLimit', 'in' => 'query', - 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-aekzh43v***** ', - ], + 'schema' => ['description' => '设置抢占式实例的每小时最高价格,最多精确到小数点后3位。当SpotStrategy取值为SpotWithPriceLimit时,必须设置SpotPriceLimit。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '0.2'], ], [ - 'name' => 'ClientToken', + 'name' => 'EphemeralStorage', 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-xxx-xxx-xxxx-42665544xxxx', - ], + 'schema' => ['description' => '临时存储空间大小。单位为GiB.。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], [ - 'name' => 'ImageCacheSize', + 'name' => 'SpotDuration', 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存的大小。默认为20 GiB。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => '抢占式实例的保护期。单位为小时。默认为1。可设置为0,表示无保护期。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], [ - 'name' => 'RetentionDays', + 'name' => 'ComputeCategory', 'in' => 'query', + 'schema' => ['description' => '算力类别。取值为economy时,表示查询经济型规格的价格。', 'type' => 'string', 'required' => false, 'example' => 'economy'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '镜像缓存保留时间,过期将会被清理,默认永不过期。'."\n" - ."\n" - .'> 创建失败的镜像缓存仅保留一天。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '7', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '7A872585-33C7-4D69-AB8E-412E81EBA387'], + 'PriceInfo' => [ + 'description' => '价格信息类型(Price),包括价格和优惠规则。', + 'type' => 'object', + 'properties' => [ + 'SpotPrices' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'SpotPrice' => [ + 'description' => '抢占式实例价格信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ZoneId' => ['description' => '可用区。', 'type' => 'string', 'example' => 'cn-hangzhou-i'], + 'SpotPrice' => ['description' => '抢占式实例的价格。', 'type' => 'number', 'format' => 'float', 'example' => '0.056'], + 'InstanceType' => ['description' => '实例规格。', 'type' => 'string', 'example' => 'ecs.c5.large'], + 'OriginPrice' => ['description' => '原价。', 'type' => 'number', 'format' => 'float', 'example' => '0.622'], + ], + ], + ], + ], + ], + 'Price' => [ + 'description' => '价格。', + 'type' => 'object', + 'properties' => [ + 'DiscountPrice' => ['description' => '折扣价。', 'type' => 'number', 'format' => 'float', 'example' => '0'], + 'TradePrice' => ['description' => '最终价,为原价减去折扣。', 'type' => 'number', 'format' => 'float', 'example' => '0.00012252'], + 'OriginalPrice' => ['description' => '原价。', 'type' => 'number', 'format' => 'float', 'example' => '0.00012252'], + 'DetailInfos' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'DetailInfo' => [ + 'description' => '价格的详细信息。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Resource' => ['description' => '资源名称。', 'type' => 'string', 'example' => 'cpu'], + 'DiscountPrice' => ['description' => '折扣价。', 'type' => 'number', 'format' => 'float', 'example' => '0'], + 'TradePrice' => ['description' => '成交价。', 'type' => 'number', 'format' => 'float', 'example' => '0.000098'], + 'OriginalPrice' => ['description' => '原价。', 'type' => 'number', 'format' => 'float', 'example' => '0.000098'], + 'Rules' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Rule' => [ + 'description' => '定价规则子集。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Description' => ['description' => '规则描述。', 'type' => 'string', 'example' => '*****'], + 'RuleId' => ['description' => '规则ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'Currency' => ['description' => '货币单位。可能值:'."\n" + ."\n" + .'- CNY:该值仅适用于中国站。'."\n" + .'- USD:该值仅适用于国际站。', 'type' => 'string', 'example' => 'CNY'], + ], + ], + 'Rules' => [ + 'type' => 'object', + 'itemNode' => true, + 'properties' => [ + 'Rule' => [ + 'description' => '活动规则。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Description' => ['description' => '活动规则描述。', 'type' => 'string', 'example' => '*****'], + 'RuleId' => ['description' => '活动ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'], + ], + ], + ], + ], + ], + ], + ], + ], ], ], + ], + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'InvalidParam.CpuOrMemorySpec', 'errorMessage' => 'The specified specification is invalid.', 'description' => '指定的规格还未开放售卖,不提供价格查询。'], + ['errorCode' => 'TradeBidCommodityNotMatch', 'errorMessage' => 'The trade ID and the commodity do not match.', 'description' => '交易的业务ID和商品不匹配。'], + ['errorCode' => 'InvalidSpotCpuMemorySpec', 'errorMessage' => 'The specified CPU and memory are not allowed. You must create spot ECI using standard ECS specifications for CPU and memory.', 'description' => '必须采用标准的ECS规格来创建ECI spot。'], + ['errorCode' => 'FeatureBasedConstraintConflict', 'errorMessage' => 'A conflict occurs in specified feature constraints: [%s].', 'description' => '指定的规格特性约束发生冲突'], + ], + 403 => [ + ['errorCode' => 'Spot.NotMatched', 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'FeatureAccessRestricted', 'errorMessage' => 'Access to this feature:[%s] is restricted. Please contact Alibaba Cloud ECI support to request access.', 'description' => '使用该特性需要申请白名单,请联系阿里云ECI团队申请加白。'], + ], + ], + 'title' => '查询实例价格', + 'description' => '- 本接口不支持资源组鉴权。'."\n" + .'- ECI实例支持指定vCPU和内存,或者指定ECS规格创建。调用本接口查询价格时,请传入ECI支持指定的规格。'."\n" + .' - [vCPU和内存规格说明](~~114662~~)。'."\n" + .' - [ECI支持的ECS规格说明](~~114664~~)。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2023-12-27T06:42:57.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-12-25T06:03:04.000Z', 'description' => '错误码发生变更、响应参数发生变更'], + ['createdAt' => '2021-10-25T02:27:01.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroupPrice'], + ], + ], + 'ramActions' => [ [ - 'name' => 'AutoMatchImageCache', - 'in' => 'query', - 'schema' => [ - 'description' => '是否开启镜像缓存复用。开启后,新创建的镜像缓存可以复用已有镜像缓存的镜像层,加快镜像缓存的制作速度。取值范围:'."\n" - ."\n" - .'- true:开启'."\n" - .'- false:不开启'."\n" - ."\n" - .'默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroupPrice', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7A872585-33C7-4D69-AB8E-412E81EBA387\\",\\n \\"PriceInfo\\": {\\n \\"SpotPrices\\": {\\n \\"SpotPrice\\": [\\n {\\n \\"ZoneId\\": \\"cn-hangzhou-i\\",\\n \\"SpotPrice\\": 0.056,\\n \\"InstanceType\\": \\"ecs.c5.large\\",\\n \\"OriginPrice\\": 0.622\\n }\\n ]\\n },\\n \\"Price\\": {\\n \\"DiscountPrice\\": 0,\\n \\"TradePrice\\": 0.00012252,\\n \\"OriginalPrice\\": 0.00012252,\\n \\"DetailInfos\\": {\\n \\"DetailInfo\\": [\\n {\\n \\"Resource\\": \\"cpu\\",\\n \\"DiscountPrice\\": 0,\\n \\"TradePrice\\": 0.000098,\\n \\"OriginalPrice\\": 0.000098,\\n \\"Rules\\": {\\n \\"Rule\\": [\\n {\\n \\"Description\\": \\"*****\\",\\n \\"RuleId\\": 123456\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"Currency\\": \\"CNY\\"\\n },\\n \\"Rules\\": {\\n \\"Rule\\": [\\n {\\n \\"Description\\": \\"*****\\",\\n \\"RuleId\\": 123456\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupPriceResponse>\\n <RequestId>49BF254A-F5A6-5B71-9F2B-5DB61B4FE12B</RequestId>\\n <PriceInfo>\\n <Price>\\n <OriginalPrice>0.00017222</OriginalPrice>\\n <Currency>CNY</Currency>\\n <DiscountPrice>0.00016949</DiscountPrice>\\n <DetailInfos>\\n <DetailInfo>\\n <OriginalPrice>0.00017222</OriginalPrice>\\n <DiscountPrice>0.00016949</DiscountPrice>\\n <Resource>instance_type</Resource>\\n <TradePrice>0.00000273</TradePrice>\\n <Rules>\\n </Rules>\\n </DetailInfo>\\n </DetailInfos>\\n <TradePrice>0.00000273</TradePrice>\\n </Price>\\n <Rules>\\n <Rule>\\n <Description>买满1年,立享官网价格8.5折优惠</Description>\\n <RuleId>123456</RuleId>\\n </Rule>\\n </Rules>\\n </PriceInfo>\\n</DescribeContainerGroupPriceResponse>","errorExample":""}]', + ], + 'DescribeContainerGroupStatus' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'ImageRegistryCredential', + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '45919', + 'abilityTreeNodes' => ['FEATUREeciO8VNZM'], + ], + 'parameters' => [ + [ + 'name' => 'RegionId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '镜像仓库信息。', - 'type' => 'array', - 'items' => [ - 'description' => '镜像仓库信息。', - 'type' => 'object', - 'properties' => [ - 'Password' => [ - 'description' => '镜像仓库密码。', - 'type' => 'string', - 'required' => false, - 'example' => 'password', - ], - 'Server' => [ - 'description' => '不带 `http://` 或 `https://` 前缀的镜像仓库地址。', - 'type' => 'string', - 'required' => false, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com', - ], - 'UserName' => [ - 'description' => '镜像仓库用户名。', - 'type' => 'string', - 'required' => false, - 'example' => 'username', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 11, - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'Image', + 'name' => 'ZoneId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '用于制作镜像缓存的容器镜像列表。'."\n" - ."\n" - .'> 如果您希望触发一次镜像缓存的原地升级,而不需要更新缓存镜像列表,仍然需要传入缓存镜像列表,否则镜像数据不会更新到最新版本,只会刷新meta数据。', - 'type' => 'array', - 'items' => [ - 'description' => '用于制作镜像缓存的容器镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', - ], - 'required' => false, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', - 'maxItems' => 101, - ], + 'schema' => ['description' => '可用区ID。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-k'], ], [ - 'name' => 'Tag', + 'name' => 'VSwitchId', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '镜像缓存绑定的标签信息,最多20个。', - 'type' => 'array', - 'items' => [ - 'description' => '镜像缓存绑定的标签信息,最多20个。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '镜像缓存标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'imc', - ], - 'Value' => [ - 'description' => '镜像缓存标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => '交换机ID。', 'type' => 'string', 'required' => false, 'example' => 'vsw-uf6h3rbwbm90urjwa****'], ], [ - 'name' => 'Flash', + 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '是否开启极速镜像缓存功能,开启后,可以加速镜像缓存创建。取值范围:'."\n" - ."\n" - .'- true:开启'."\n" - .'- false:不开启'."\n" - ."\n" - .'默认为false。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-uf66jeqopgqa9hdn****'], ], [ - 'name' => 'AcrRegistryInfo', + 'name' => 'ContainerGroupIds', + 'in' => 'query', + 'schema' => ['description' => 'ECI实例ID序列。最多20个,字符串需按照JSON格式传入。', 'type' => 'string', 'required' => false, 'example' => '["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"]'], + ], + [ + 'name' => 'SinceSecond', + 'in' => 'query', + 'schema' => ['description' => '返回最近几秒内有状态更新的ECI实例状态,用于轮询查询状态。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '3600', 'minimum' => '60', 'example' => '60'], + ], + [ + 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'ACR企业版实例信息。', + 'description' => 'ECI实例绑定的标签。', 'type' => 'array', 'items' => [ - 'description' => 'ACR企业版实例信息。', + 'description' => 'ECI实例绑定的标签。', 'type' => 'object', 'properties' => [ - 'Domain' => [ - 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', - 'type' => 'array', - 'items' => [ - 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', - 'type' => 'string', - 'required' => false, - 'example' => 'test****-registry.cn-hangzhou.cr.aliyuncs.com', - ], - 'required' => false, - 'example' => 'test****-registry.cn-hangzhou.cr.aliyuncs.com', - 'maxItems' => 100, - ], - 'InstanceName' => [ - 'description' => 'ACR企业版实例的名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test****', - ], - 'InstanceId' => [ - 'description' => 'ACR企业版实例ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cri-nwj395hgf6f3**** ', - ], - 'RegionId' => [ - 'description' => 'ACR企业版实例所属地域。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou', - ], + 'Value' => ['description' => 'ECI实例的标签值。', 'type' => 'string', 'required' => false, 'example' => 'testValue'], + 'Key' => ['description' => 'ECI实例的标签键。', 'type' => 'string', 'required' => false, 'example' => 'testKey'], ], 'required' => false, ], 'required' => false, - 'maxItems' => 21, + 'maxItems' => 10, ], ], [ - 'name' => 'StandardCopyCount', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '标准快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n" - ."\n" - .'> 未开启极速镜像缓存功能(Flash取值为false)时,创镜像缓存的过程中仅生成标准快照。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '7', - ], + 'schema' => ['description' => '下一个查询开始的Token,NextToken为空表示没有下一个。 '."\n" + .'首次查询时无需设置该参数,后续查询的Token从返回结果中获取。', 'type' => 'string', 'required' => false, 'example' => 'd78f2dd8-5979-42fe-xaee-b16db43be5bc'], ], [ - 'name' => 'FlashCopyCount', + 'name' => 'Limit', 'in' => 'query', - 'schema' => [ - 'description' => '本地快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n" - ."\n" - .'> 开启极速镜像缓存功能(Flash取值为true)时,创建镜像缓存的过程中将先创建本地快照,在本地快照创建完成后开始创建标准快照,待标准快照创建完成后会自动删除本地快照。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '7', - ], - ], - [ - 'name' => 'EliminationStrategy', - 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存的淘汰策略。默认为空,表示一直保留。'."\n" - ."\n" - .'支持配置为LRU,表示可以被自动删除。当镜像缓存数量达到配额限制时,系统将自动删除最不常用的EliminationStrategy为LRU的镜像缓存。', - 'type' => 'string', - 'required' => false, - 'example' => 'LRU', - ], + 'schema' => ['description' => '限定此次返回资源(ECI实例)的数量。默认为200个。'."\n" + ."\n" + .'> 返回结果可能小于指定的数量,但不会多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '200', 'minimum' => '1', 'example' => '200', 'default' => '50'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '0E234675-3465-4CC3-9D0F-9A864BC391DD', + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '1340C38D-6189-54D1-86F6-7D5ECF3E0088'], + 'NextToken' => ['description' => '下一个查询开始的Token。', 'type' => 'string', 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc'], + 'TotalCount' => ['description' => '结果条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Data' => [ + 'description' => 'ECI实例状态信息集合。', + 'type' => 'array', + 'items' => [ + 'description' => 'ECI实例状态信息集合。', + 'type' => 'object', + 'properties' => [ + 'ContainerGroupId' => ['description' => 'ECI实例ID。', 'type' => 'string', 'example' => 'eci-bp1jrgfqqy54kg5hc****'], + 'Name' => ['description' => 'ECI实例名称。', 'type' => 'string', 'example' => 'nginx'], + 'Namespace' => ['description' => 'ECI实例所在命名空间。', 'type' => 'string', 'example' => 'default'], + 'Status' => ['description' => 'ECI实例状态。', 'type' => 'string', 'example' => 'Running'], + 'uuid' => ['description' => 'ECI实例UUID,对应K8s的POD UID。', 'type' => 'string', 'example' => '78ee0657-987g-b8b2-1f507dic4****'], + 'Annotations' => ['description' => 'ECI实例的注解。', 'type' => 'string', 'example' => '"{\\"tenancy.x-k8s.io/namespace\\":\\"redis\\"}"'], + 'PodStatus' => [ + 'description' => 'ECI实例的状态信息。', + 'type' => 'object', + 'properties' => [ + 'Conditions' => [ + 'description' => 'Pod conditions信息。', + 'type' => 'array', + 'items' => [ + 'description' => 'Pod conditions信息。', + 'type' => 'object', + 'properties' => [ + 'type' => ['description' => 'condition类型。可能值:'."\n" + ."\n" + .'- PodReadyToStartContainers'."\n" + .'- Initialized'."\n" + .'- Ready'."\n" + .'- ContainersReady'."\n" + .'- PodScheduled'."\n" + .'- ContainerHasSufficientDisk'."\n" + .'- ContainerInstanceCreated'."\n" + .'- Unschedulable', 'type' => 'string', 'example' => 'Ready'], + 'status' => ['description' => 'condition状态。', 'type' => 'string', 'example' => 'True'], + 'Reason' => ['description' => '事件原因。', 'type' => 'string', 'example' => 'Completed'], + 'Message' => ['description' => '事件消息。', 'type' => 'string', 'example' => 'Completed'], + 'lastTransitionTime' => ['description' => '最后一次状态变化时间。', 'type' => 'string', 'example' => '2021-05-12T07:02:47Z'], + ], + ], + ], + 'ContainerStatuses' => [ + 'description' => '容器状态信息。', + 'type' => 'array', + 'items' => [ + 'description' => '容器状态信息。', + 'type' => 'object', + 'properties' => [ + 'Image' => ['description' => '容器镜像。', 'type' => 'string', 'example' => 'registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu:18.04'], + 'ImageID' => ['description' => '镜像ID。', 'type' => 'string', 'example' => 'registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu@sha256:134c7fe821b9d359490cd009ce7ca322453f4f2d018623f849e580a89a685e5d'], + 'Name' => ['description' => '容器名称。', 'type' => 'string', 'example' => 'ubuntu'], + 'Ready' => ['description' => '容器是否Ready。', 'type' => 'boolean', 'example' => 'true'], + 'RestartCount' => ['description' => '重启次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Started' => ['description' => '容器是否启动。', 'type' => 'boolean', 'example' => 'true'], + 'State' => [ + 'description' => '容器状态。包括:'."\n" + ."\n" + .'- Waiting'."\n" + .'- Running'."\n" + .'- Terminated', + 'type' => 'object', + 'properties' => [ + 'Waiting' => [ + 'description' => '容器正在等待创建,还未开始运行。', + 'type' => 'object', + 'properties' => [ + 'Reason' => ['description' => '事件原因。', 'type' => 'string', 'example' => 'Started'], + 'Message' => ['description' => '事件消息。', 'type' => 'string', 'example' => 'Back-off'], + ], + ], + 'Running' => [ + 'description' => '容器已经成功创建,并且正在运行。', + 'type' => 'object', + 'properties' => [ + 'StartedAtstartedAt' => ['description' => '开始时间。', 'type' => 'string', 'example' => '2021-05-23T20:49:31Z'], + ], + ], + 'Terminated' => [ + 'description' => '容器运行终止并退出,包括运行成功终止和运行失败终止。', + 'type' => 'object', + 'properties' => [ + 'ContainerID' => ['description' => '容器ID。', 'type' => 'string', 'example' => 'containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******'], + 'ExitCode' => ['description' => '退出码。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'FinishedAt' => ['description' => '结束时间。', 'type' => 'string', 'example' => '2021-05-23T20:55:31Z'], + 'StartedAt' => ['description' => '开始时间。', 'type' => 'string', 'example' => '2021-05-23T20:49:31Z'], + 'Signal' => ['description' => '信号码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Reason' => ['description' => '事件原因。', 'type' => 'string', 'example' => 'Completed'], + 'Message' => ['description' => '事件消息。', 'type' => 'string', 'example' => 'Completed'], + ], + ], + ], + ], + 'LastState' => [ + 'description' => '容器上一次状态。', + 'type' => 'object', + 'properties' => [ + 'Waiting' => [ + 'description' => '容器正在等待创建,还未开始运行。', + 'type' => 'object', + 'properties' => [ + 'Reason' => ['description' => '事件原因。', 'type' => 'string', 'example' => 'Started'], + 'Message' => ['description' => '事件消息。', 'type' => 'string', 'example' => 'Back-off'], + ], + ], + 'Running' => [ + 'description' => '容器已经成功创建,并且正在运行。', + 'type' => 'object', + 'properties' => [ + 'StartedAtstartedAt' => ['description' => '开始时间。', 'type' => 'string', 'example' => '2021-05-23T20:49:31Z'], + ], + ], + 'Terminated' => [ + 'description' => '容器运行终止并退出,包括运行成功终止和运行失败终止。', + 'type' => 'object', + 'properties' => [ + 'ContainerID' => ['description' => '容器ID。', 'type' => 'string', 'example' => 'containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******'], + 'ExitCode' => ['description' => '退出码。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'FinishedAt' => ['description' => '结束时间。', 'type' => 'string', 'example' => '2021-05-23T20:49:31Z'], + 'StartedAt' => ['description' => '开始时间。', 'type' => 'string', 'example' => '2021-05-12T07:02:52Z'], + 'Signal' => ['description' => '信号码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Reason' => ['description' => '事件原因。', 'type' => 'string', 'example' => 'Completed'], + 'Message' => ['description' => '事件消息。', 'type' => 'string', 'example' => 'Completed'], + ], + ], + ], + ], + ], + ], + ], + 'HostIp' => ['description' => '主机IP。', 'type' => 'string', 'example' => '192.168.XX.XX'], + 'Phase' => ['description' => 'Pod生命周期阶段。', 'type' => 'string', 'example' => 'Running'], + 'PodIp' => ['description' => 'Pod IP地址。', 'type' => 'string', 'example' => '192.168.XX.XX'], + 'PodIps' => [ + 'description' => 'Pod IP地址集合。', + 'type' => 'array', + 'items' => [ + 'description' => 'Pod IP地址集合。', + 'type' => 'object', + 'properties' => [ + 'Ip' => ['description' => 'Pod IP地址。', 'type' => 'string', 'example' => '192.168.XX.XX'], + ], + ], + ], + 'QosClass' => ['description' => 'Pod Qos。', 'type' => 'string', 'example' => 'Guaranteed'], + 'StartTime' => ['description' => '容器开始运行时间。', 'type' => 'string', 'example' => '2021-05-12T07:02:47Z'], + ], + ], + ], + ], ], ], ], @@ -8653,312 +4183,163 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'ImageCache.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageCacheNotSupport', - 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', - ], - [ - 'errorCode' => 'OperationConflict', - 'errorMessage' => 'Request was denied due to conflict with a previous request.', - ], - [ - 'errorCode' => 'NoNeedUpdate', - 'errorMessage' => 'There are no changes to be updated for current resource.', - ], + ['errorCode' => 'InvalidParameter.MismatchInstanceType', 'errorMessage' => 'The instanceId mismatch instance type.', 'description' => '实例类型错误'], ], - 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', + ], + 'title' => '批量查询容器组状态', + 'summary' => '调用DescribeContainerGroupStatus批量查询ECI实例的状态。', + 'changeSet' => [ + ['createdAt' => '2025-03-28T05:43:32.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2025-03-28T03:48:42.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2024-09-04T07:12:21.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2023-05-08T07:38:48.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-09-06T07:27:31.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-07-19T02:35:33.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-10-13T09:53:16.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2021-09-27T11:35:59.000Z', 'description' => '请求参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroupStatus'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroupStatus', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC391DD\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateImageCacheResponse>\\r\\n <RequestId>0E234675-3465-4CC3-9D0F-9A864BC391DD</RequestId>\\r\\n</UpdateImageCacheResponse>","errorExample":""}]', - 'title' => '更新一个镜像缓存', - 'summary' => '调用UpdateImageCache更新一个镜像缓存。', - 'description' => '仅支持更新状态为Ready(创建完成)或者UpdateFailed(更新失败)的镜像缓存。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"1340C38D-6189-54D1-86F6-7D5ECF3E0088\\",\\n \\"NextToken\\": \\"d78f2dd8-5979-42fe-****-b16db43be5bc\\",\\n \\"TotalCount\\": 1,\\n \\"Data\\": [\\n {\\n \\"ContainerGroupId\\": \\"eci-bp1jrgfqqy54kg5hc****\\",\\n \\"Name\\": \\"nginx\\",\\n \\"Namespace\\": \\"default\\",\\n \\"Status\\": \\"Running\\",\\n \\"uuid\\": \\"78ee0657-987g-b8b2-1f507dic4****\\",\\n \\"Annotations\\": \\"\\\\\\"{\\\\\\\\\\\\\\"tenancy.x-k8s.io/namespace\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"redis\\\\\\\\\\\\\\"}\\\\\\"\\",\\n \\"PodStatus\\": {\\n \\"Conditions\\": [\\n {\\n \\"type\\": \\"Ready\\",\\n \\"status\\": \\"True\\",\\n \\"Reason\\": \\"Completed\\",\\n \\"Message\\": \\"Completed\\",\\n \\"lastTransitionTime\\": \\"2021-05-12T07:02:47Z\\"\\n }\\n ],\\n \\"ContainerStatuses\\": [\\n {\\n \\"Image\\": \\"registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu:18.04\\",\\n \\"ImageID\\": \\"registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu@sha256:134c7fe821b9d359490cd009ce7ca322453f4f2d018623f849e580a89a685e5d\\",\\n \\"Name\\": \\"ubuntu\\",\\n \\"Ready\\": true,\\n \\"RestartCount\\": 1,\\n \\"Started\\": true,\\n \\"State\\": {\\n \\"Waiting\\": {\\n \\"Reason\\": \\"Started\\",\\n \\"Message\\": \\"Back-off\\"\\n },\\n \\"Running\\": {\\n \\"StartedAtstartedAt\\": \\"2021-05-23T20:49:31Z\\"\\n },\\n \\"Terminated\\": {\\n \\"ContainerID\\": \\"containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******\\",\\n \\"ExitCode\\": 0,\\n \\"FinishedAt\\": \\"2021-05-23T20:55:31Z\\",\\n \\"StartedAt\\": \\"2021-05-23T20:49:31Z\\",\\n \\"Signal\\": 1,\\n \\"Reason\\": \\"Completed\\",\\n \\"Message\\": \\"Completed\\"\\n }\\n },\\n \\"LastState\\": {\\n \\"Waiting\\": {\\n \\"Reason\\": \\"Started\\",\\n \\"Message\\": \\"Back-off\\"\\n },\\n \\"Running\\": {\\n \\"StartedAtstartedAt\\": \\"2021-05-23T20:49:31Z\\"\\n },\\n \\"Terminated\\": {\\n \\"ContainerID\\": \\"containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******\\",\\n \\"ExitCode\\": 0,\\n \\"FinishedAt\\": \\"2021-05-23T20:49:31Z\\",\\n \\"StartedAt\\": \\"2021-05-12T07:02:52Z\\",\\n \\"Signal\\": 1,\\n \\"Reason\\": \\"Completed\\",\\n \\"Message\\": \\"Completed\\"\\n }\\n }\\n }\\n ],\\n \\"HostIp\\": \\"192.168.XX.XX\\",\\n \\"Phase\\": \\"Running\\",\\n \\"PodIp\\": \\"192.168.XX.XX\\",\\n \\"PodIps\\": [\\n {\\n \\"Ip\\": \\"192.168.XX.XX\\"\\n }\\n ],\\n \\"QosClass\\": \\"Guaranteed\\",\\n \\"StartTime\\": \\"2021-05-12T07:02:47Z\\"\\n }\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupStatusResponse>\\n <RequestId>1340C38D-6189-54D1-86F6-7D5ECF3E0088</RequestId>\\n <NextToken>d78f2dd8-5979-42fe-****-b16db43be5bc</NextToken>\\n <TotalCount>1</TotalCount>\\n <Data>\\n <ContainerGroupId>eci-bp1jrgfqqy54kg5hc****</ContainerGroupId>\\n <Name>nginx</Name>\\n <Namespace>default</Namespace>\\n <Status>Running</Status>\\n <uuid>78ee0657-987g-b8b2-1f507dic4****</uuid>\\n <PodStatus>\\n <Conditions>\\n <type>Ready</type>\\n <status>True</status>\\n <Reason>Completed</Reason>\\n <Message>Completed</Message>\\n <lastTransitionTime>2021-05-12T07:02:47Z</lastTransitionTime>\\n </Conditions>\\n <ContainerStatuses>\\n <Image>registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu:18.04</Image>\\n <ImageID>registry-vpc.cn-zhangjiakou.aliyuncs.com/eci_open/ubuntu@sha256:134c7fe821b9d359490cd009ce7ca322453f4f2d018623f849e580a89a685e5d</ImageID>\\n <Name>ubuntu</Name>\\n <Ready>true</Ready>\\n <RestartCount>1</RestartCount>\\n <Started>true</Started>\\n <State>\\n <Waiting>\\n <Reason>Started</Reason>\\n <Message>Back-off</Message>\\n </Waiting>\\n <Running>\\n <StartedAtstartedAt>2021-05-23T20:49:31Z</StartedAtstartedAt>\\n </Running>\\n <Terminated>\\n <ContainerID>containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******</ContainerID>\\n <ExitCode>0</ExitCode>\\n <FinishedAt>2021-05-23T20:55:31Z</FinishedAt>\\n <StartedAt>2021-05-23T20:49:31Z</StartedAt>\\n <Signal>1</Signal>\\n <Reason>Completed</Reason>\\n <Message>Completed</Message>\\n </Terminated>\\n </State>\\n <LastState>\\n <Waiting>\\n <Reason>Started</Reason>\\n <Message>Back-off</Message>\\n </Waiting>\\n <Running>\\n <StartedAtstartedAt>2021-05-23T20:49:31Z</StartedAtstartedAt>\\n </Running>\\n <Terminated>\\n <ContainerID>containerd://3ff993933bea366c4719e43a1b067d89bc7f01f1f573981659a44ff17a******</ContainerID>\\n <ExitCode>0</ExitCode>\\n <FinishedAt>2021-05-23T20:49:31Z</FinishedAt>\\n <StartedAt>021-05-12T07:02:52Z</StartedAt>\\n <Signal>1</Signal>\\n <Reason>Completed</Reason>\\n <Message>Completed</Message>\\n </Terminated>\\n </LastState>\\n </ContainerStatuses>\\n <HostIp>192.168.XX.XX</HostIp>\\n <Phase>Running</Phase>\\n <PodIp>192.168.XX.XX</PodIp>\\n <PodIps>\\n <Ip>192.168.XX.XX</Ip>\\n </PodIps>\\n <QosClass>Guaranteed</QosClass>\\n <StartTime>2021-05-12T07:02:47Z</StartTime>\\n </PodStatus>\\n </Data>\\n</DescribeContainerGroupStatusResponse>","errorExample":""}]', ], - 'DescribeImageCaches' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeContainerGroups' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '17734', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], + 'abilityTreeCode' => '17732', + 'abilityTreeNodes' => ['FEATUREeciO8VNZM'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '实例所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '实例所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ImageCacheId', + 'name' => 'ZoneId', 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'imc-bp195erqe9o2pb09****', - ], + 'schema' => ['description' => '实例所属的可用区。如果取值为空,则表示由系统选择。'."\n" + ."\n" + .'默认值为空。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou-h'], ], [ - 'name' => 'ImageCacheName', + 'name' => 'VSwitchId', 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'testcache', - ], + 'schema' => ['description' => '实例所属的虚拟交换机ID。', 'type' => 'string', 'required' => false, 'example' => 'vsw-bp1jrgfqqy54kg5hc****'], ], [ - 'name' => 'SnapshotId', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '镜像缓存对应的快照ID。', - 'type' => 'string', - 'required' => false, - 'example' => 's-2zec5oj8e1yhxijt****', - ], + 'schema' => ['description' => '下一个查询开始的Token,NextToken为空表示没有下一个。'."\n" + ."\n" + .'> 首次查询时无需设置该参数,后续查询的Token从返回结果中获取。'."\n", 'type' => 'string', 'required' => false, 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc'], ], [ - 'name' => 'Image', + 'name' => 'Limit', 'in' => 'query', - 'schema' => [ - 'description' => '容器镜像。', - 'type' => 'string', - 'required' => false, - 'example' => 'nginx', - ], + 'schema' => ['description' => '限定此次返回资源的数量。如果不设置,默认返回20个,最大不能超过20个。'."\n" + ."\n" + .'> 返回结果可能小于指定的数量,但不会多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + [ + 'name' => 'ContainerGroupIds', + 'in' => 'query', + 'schema' => ['description' => '实例ID序列。最多20个,字符串需按照JSON格式传入。', 'type' => 'string', 'required' => false, 'example' => '["eci-bp17gw49eu09yiwm****", "eci-bp19aq49du01abcm****", "eci-2zegym1qhbmdfr1s****"]'], + ], + [ + 'name' => 'ContainerGroupName', + 'in' => 'query', + 'schema' => ['description' => '实例名称,即容器组名称。', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => ['description' => '实例状态。取值范围:'."\n" + ."\n" + .'- Pending:启动中'."\n" + .'- Running:运行中'."\n" + .'- Succeeded:运行成功'."\n" + .'- Failed:运行失败'."\n" + .'- Scheduling:创建中'."\n" + .'- ScheduleFailed:创建失败'."\n" + .'- Restarting:重启中'."\n" + .'- Updating:更新中'."\n" + .'- Terminating:终止中'."\n" + .'- Expired:过期', 'type' => 'string', 'required' => false, 'example' => 'Running'], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '所属资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-2df3isufhi38****', - ], + 'schema' => ['description' => '实例所属的资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzh43v***** '], + ], + [ + 'name' => 'WithEvent', + 'in' => 'query', + 'schema' => ['description' => '是否返回事件信息。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '镜像缓存绑定的标签信息。', + 'description' => '实例标签信息。', 'type' => 'array', 'items' => [ - 'description' => '镜像缓存绑定的标签信息,最多20个。', + 'description' => '实例标签信息。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '镜像缓存标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'imc', - ], - 'Value' => [ - 'description' => '镜像缓存标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'Key' => ['description' => '实例标签键。', 'type' => 'string', 'required' => false, 'example' => 'name'], + 'Value' => ['description' => '实例标签值。', 'type' => 'string', 'required' => false, 'example' => 'test'], ], 'required' => false, ], 'required' => false, - 'maxItems' => 21, - ], - ], - [ - 'name' => 'MatchImage', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '指定容器镜像,用于查询最佳匹配的镜像缓存,最多100个。', - 'type' => 'array', - 'items' => [ - 'description' => '指定容器镜像,用于查询最佳匹配的镜像缓存,最多100个。', - 'type' => 'string', - 'required' => false, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', - ], - 'required' => false, - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', - 'maxItems' => 101, - ], - ], - [ - 'name' => 'Limit', - 'in' => 'query', - 'allowEmptyValue' => true, - 'schema' => [ - 'description' => '查询结果条数上限。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - ], - [ - 'name' => 'NextToken', - 'in' => 'query', - 'allowEmptyValue' => true, - 'schema' => [ - 'description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', - 'type' => 'string', - 'required' => false, - 'example' => 'AAAAAdDWBF2****', + 'maxItems' => 10, ], ], [ - 'name' => 'ImageFullMatch', + 'name' => 'ComputeCategory', 'in' => 'query', - 'schema' => [ - 'description' => '是否完全匹配容器镜像。 '."\n" - .'在配置了MatchImage取值的情况下,进一步过滤查询结果。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => '指定算力类别。取值范围:'."\n" + ."\n" + .'- economy:经济型'."\n" + .'- general:通用型', 'type' => 'string', 'required' => false, 'example' => 'economy'], ], [ - 'name' => 'ImageMatchCountRequest', + 'name' => 'SecurityGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '完全匹配容器镜像的镜像缓存个数。 '."\n" - .'在配置了MatchImage取值的情况下,进一步过滤查询结果。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '3', - ], + 'schema' => ['description' => '实例所属的安全组ID。', 'type' => 'string', 'required' => false, 'example' => 'sg-uf66jeqopgqa9hdn****'."\n"], ], ], 'responses' => [ @@ -8966,518 +4347,690 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '39FC2E43-3DD7-4CEF-9EF4-E4AD6E635301', - ], - 'ImageCaches' => [ - 'description' => '镜像缓存信息列表。', + 'TotalCount' => ['description' => '实例数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'NextToken' => ['description' => '下一个查询开始的Token。', 'type' => 'string', 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc'], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3'], + 'ContainerGroups' => [ + 'description' => '实例信息列表。', 'type' => 'array', 'items' => [ - 'description' => '镜像缓存信息列表。', + 'description' => '实例信息列表。', 'type' => 'object', 'properties' => [ - 'Images' => [ - 'description' => '镜像缓存包含的镜像列表。', + 'Status' => ['description' => '实例状态。可能值:'."\n" + ."\n" + .'- Pending:启动中'."\n" + .'- Running:运行中'."\n" + .'- Succeeded:运行成功'."\n" + .'- Failed:运行失败'."\n" + .'- Scheduling:创建中'."\n" + .'- ScheduleFailed:创建失败'."\n" + .'- Restarting:重启中'."\n" + .'- Updating:更新中'."\n" + .'- Terminating:终止中'."\n" + .'- Expired:过期'."\n", 'type' => 'string', 'example' => 'Running'], + 'CreationTime' => ['description' => '接到请求后的系统创建时间。UTC时间,RFC3339标准。', 'type' => 'string', 'example' => '2018-08-02T15:00:00Z'], + 'VpcId' => ['description' => '实例所属的VPC ID。', 'type' => 'string', 'example' => 'vpc-1vzjjflab6wvjox****'], + 'InternetIp' => ['description' => '公网IP。', 'type' => 'string', 'example' => '192.0.XX.XX'], + 'TenantSecurityGroupId' => ['description' => '该参数未开放使用。', 'type' => 'string', 'example' => 'sg-xxx'], + 'SecurityGroupId' => ['description' => '安全组ID。', 'type' => 'string', 'example' => 'sg-bp12ujq5zpxuyjfo3o8r'], + 'HostAliases' => [ + 'description' => '自定义实例内一个容器的Hostname映射。'."\n", 'type' => 'array', 'items' => [ - 'description' => '镜像缓存包含的镜像列表。', - 'type' => 'string', - 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', + 'description' => '自定义实例内一个容器的Hostname映射。'."\n", + 'type' => 'object', + 'properties' => [ + 'Hostnames' => [ + 'description' => '主机信息。', + 'type' => 'array', + 'items' => ['description' => '主机名。', 'type' => 'string', 'example' => '[\'hehe.com\', \'haha.com\']'], + ], + 'Ip' => ['description' => 'IP地址。', 'type' => 'string', 'example' => '192.0.XX.XX'], + ], ], ], - 'CreationTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2021-02-09T02:24:07Z', - ], - 'Status' => [ - 'description' => '镜像缓存状态。可能值:'."\n" - ."\n" - .'- Preparing:准备中'."\n" - .'- Creating:创建中'."\n" - .'- Ready:创建完成'."\n" - .'- Failed:创建失败'."\n" - .'- Updating:更新中'."\n" - .'- UpdateFailed:更新失败'."\n" - ."\n" - .'当状态为Ready时,即可使用该镜像缓存。', - 'type' => 'string', - 'example' => 'Ready', - ], - 'Progress' => [ - 'description' => '镜像缓存对应快照的创建进度。'."\n" - ."\n" - .'> 如果开启了极速镜像缓存功能,将先创建一份临时使用的本地快照再创建一份标准快照,该进度为标准快照的创建进度。', - 'type' => 'string', - 'example' => '100%', - ], - 'ExpireDateTime' => [ - 'description' => '到期时间。', - 'type' => 'string', - 'example' => '2019-11-10T09:00:48Z', - ], - 'LastMatchedTime' => [ - 'description' => '最新一次匹配到镜像缓存的时间。', - 'type' => 'string', - 'example' => '2021-08-18T03:48:10Z', + 'Tags' => [ + 'description' => '实例标签信息。', + 'type' => 'array', + 'items' => [ + 'description' => '实例标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '标签键。', 'type' => 'string', 'example' => 'name'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'example' => 'test-xh'], + ], + ], ], - 'ContainerGroupId' => [ - 'description' => '容器组ID。', - 'type' => 'string', - 'example' => 'eci-bp18oq3m15prd9jb****', + 'Events' => [ + 'description' => '事件信息,上限50。', + 'type' => 'array', + 'items' => [ + 'description' => '事件信息,上限50。', + 'type' => 'object', + 'properties' => [ + 'Type' => ['description' => '事件类型,可能值:'."\n" + ."\n" + .'- Normal'."\n" + .'- Warning', 'type' => 'string', 'example' => 'Normal'], + 'LastTimestamp' => ['description' => '事件结束时间。', 'type' => 'string', 'example' => '2018-08-02T15:00:00Z'], + 'Message' => ['description' => '事件消息。', 'type' => 'string', 'example' => 'Started container'], + 'Name' => ['description' => '事件的归属对象名。', 'type' => 'string', 'example' => 'test-xxx'], + 'Reason' => ['description' => '事件名。', 'type' => 'string', 'example' => 'Created'], + 'Count' => ['description' => '事件数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'FirstTimestamp' => ['description' => '事件起始时间。', 'type' => 'string', 'example' => '2018-08-02T15:00:00Z'], + ], + ], ], - 'Tags' => [ - 'description' => '镜像缓存的标签列表信息。', + 'SucceededTime' => ['description' => '容器全部成功退出后的时间。UTC时间,RFC3339标准。', 'type' => 'string', 'example' => '2019-12-11T04:33:42Z'], + 'SpotStrategy' => ['description' => '实例的抢占策略。取值范围:'."\n" + .'- NoSpot(默认):正常按量付费实例。'."\n" + .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" + .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格。', 'type' => 'string', 'example' => 'NoSpot'], + 'SpotPriceLimit' => ['description' => '抢占式实例的每小时最高价格。'."\n" + ."\n" + .'仅当SpotStrategy为SpotWithPriceLimit时返回。', 'type' => 'number', 'format' => 'double', 'example' => '0.025'], + 'EphemeralStorage' => ['description' => '临时存储空间大小。单位为:GiB。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'TenantEniInstanceId' => ['description' => '该参数未开放使用。', 'type' => 'string', 'example' => 'i-xxx'], + 'Discount' => ['description' => '折扣。', 'type' => 'integer', 'format' => 'int32', 'example' => '9'], + 'RestartPolicy' => ['description' => '容器组的重启策略。取值范围:'."\n" + ."\n" + .'- Never:不重启'."\n" + .'- Always:始终重启'."\n" + .'- OnFailure:失败时重启'."\n", 'type' => 'string', 'example' => 'Never'], + 'Memory' => ['description' => '实例级别内存大小。单位为GiB。', 'type' => 'number', 'format' => 'float', 'example' => '4.0'], + 'TenantVSwitchId' => ['description' => '该参数未开放使用。', 'type' => 'string', 'example' => 'vsw-xxx'], + 'Containers' => [ + 'description' => '实例包含的容器列表。', 'type' => 'array', 'items' => [ - 'description' => '镜像缓存的标签列表信息。', + 'description' => '实例包含的容器列表。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'example' => 'imc', + 'LivenessProbe' => [ + 'description' => '存活探针。', + 'type' => 'object', + 'properties' => [ + 'SuccessThreshold' => ['description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。当前必须为1。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'InitialDelaySeconds' => ['description' => '检查开始执行的时间,以容器启动完成为起点计算。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'FailureThreshold' => ['description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败),默认为3。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'TimeoutSeconds' => ['description' => '检查超时的时间,默认为1秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'TcpSocket' => [ + 'description' => 'TcpSocket。', + 'type' => 'object', + 'properties' => [ + 'Host' => ['description' => '主机名。', 'type' => 'string', 'example' => '1.2.3.4'], + 'Port' => ['description' => '端口号。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'], + ], + ], + 'Execs' => [ + 'description' => '执行命令。', + 'type' => 'array', + 'items' => ['description' => '执行命令。', 'type' => 'string', 'example' => '["/bin/sh", "-c", "echo Hello world > /usr/share/message"]'], + ], + 'HttpGet' => [ + 'description' => 'HttpGet。', + 'type' => 'object', + 'properties' => [ + 'Scheme' => ['description' => 'HTTP或HTTPS。', 'type' => 'string', 'example' => 'HTTP'], + 'Path' => ['description' => 'HttpGet检测的路径。', 'type' => 'string', 'example' => '/usr/nginx/'], + 'Port' => ['description' => 'HttpGet检测的端口。', 'type' => 'integer', 'format' => 'int32', 'example' => '80'], + ], + ], + 'PeriodSeconds' => ['description' => '检查执行的周期,默认为10秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + ], ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'example' => 'test', + 'Commands' => [ + 'description' => '容器启动命令。', + 'type' => 'array', + 'items' => ['description' => '容器启动命令。', 'type' => 'string', 'example' => '[/bin/sh echo]'], + ], + 'VolumeMounts' => [ + 'description' => '挂载的数据卷信息。', + 'type' => 'array', + 'items' => [ + 'description' => '挂载的数据卷信息。', + 'type' => 'object', + 'properties' => [ + 'MountPropagation' => ['description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。可能值:'."\n" + ."\n" + .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" + .'- HostToCotainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" + .'- Bidirectional:和HostToCotainer类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。', 'type' => 'string', 'example' => 'None'], + 'MountPath' => ['description' => '挂载目录,容器的挂载目录下的内容被Volume的内容直接覆盖。', 'type' => 'string', 'example' => '/usr/share/'], + 'ReadOnly' => ['description' => '是否只读。', 'type' => 'boolean', 'example' => 'false'], + 'Name' => ['description' => '数据卷名称。', 'type' => 'string', 'example' => 'test-empty'], + 'SubPath' => ['description' => '数据卷下的子目录。方便实例将同一个数据卷下的不同目录挂载到容器的不同目录。', 'type' => 'string', 'example' => '/usr/sub'], + ], + ], + ], + 'Args' => [ + 'description' => '容器启动参数。', + 'type' => 'array', + 'items' => ['description' => '容器启动参数。', 'type' => 'string', 'example' => '["hello"]'], + ], + 'Image' => ['description' => '容器镜像。', 'type' => 'string', 'example' => 'mysql'], + 'Ports' => [ + 'description' => '暴露端口和协议。', + 'type' => 'array', + 'items' => [ + 'description' => '暴露端口和协议。', + 'type' => 'object', + 'properties' => [ + 'Protocol' => ['description' => '协议类型。', 'type' => 'string', 'example' => 'TCP'], + 'Port' => ['description' => '端口号。可能值:1~65535。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'], + ], + ], + ], + 'RestartCount' => ['description' => '重启次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'ImagePullPolicy' => ['description' => '镜像拉取策略。可能值:'."\n" + ."\n" + .'- Always:总是拉取。每次都拉取镜像。'."\n" + .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" + .'- Never:从不拉取。使用本地镜像,不拉取镜像。', 'type' => 'string', 'example' => 'Always'], + 'StdinOnce' => ['description' => '当标准输入为true时,标准输入流将在多个附加会话中保持开启状态。如果StdinOnce设为true,标准输入在容器开启时被打开,在首个客户端附加到标准输入之前都为空,然后会一直保持开启状态,接收数据,直到客户端连接断开,此时标准输入被关闭,在容器重启前一直保持关闭状态。', 'type' => 'boolean', 'example' => 'true'], + 'Cpu' => ['description' => '容器的vCPU大小。', 'type' => 'number', 'format' => 'float', 'example' => '2.0'], + 'PreviousState' => [ + 'description' => '上一次状态。', + 'type' => 'object', + 'properties' => [ + 'StartTime' => ['description' => '容器运行开始时间。', 'type' => 'string', 'example' => '2021-12-02T15:00:00Z'], + 'FinishTime' => ['description' => '容器运行结束时间。', 'type' => 'string', 'example' => '2021-12-02T15:01:00Z'], + 'DetailStatus' => ['description' => '状态详情。', 'type' => 'string', 'example' => 'working'], + 'State' => ['description' => '容器状态。可能值:'."\n" + ."\n" + .'- Waiting:启动中'."\n" + .'- Running:运行中'."\n" + .'- Terminated:运行终止', 'type' => 'string', 'example' => 'Terminated'], + 'Message' => ['description' => '容器状态信息。', 'type' => 'string', 'example' => 'Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)'], + 'Signal' => ['description' => '容器状态信号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ExitCode' => ['description' => '容器运行退出码。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Reason' => ['description' => '容器状态Reason。', 'type' => 'string', 'example' => 'Completed'], + ], + ], + 'Tty' => ['description' => '是否开启交互。默认为false。例如:当Command配置为`/bin/bash`时,需要配置为true。', 'type' => 'boolean', 'example' => 'false'], + 'WorkingDir' => ['description' => '工作目录。', 'type' => 'string', 'example' => '/usr/local/nginx'], + 'CurrentState' => [ + 'description' => '容器当前状态。', + 'type' => 'object', + 'properties' => [ + 'StartTime' => ['description' => '容器运行开始时间。', 'type' => 'string', 'example' => '2021-12-02T15:00:00Z'], + 'FinishTime' => ['description' => '容器运行结束时间。', 'type' => 'string', 'example' => '2021-12-02T15:01:00Z'], + 'DetailStatus' => ['description' => '容器状态详情。', 'type' => 'string', 'example' => 'working'], + 'State' => ['description' => '容器状态,可能值:'."\n" + ."\n" + .'- Waiting'."\n" + .'- Running'."\n" + .'- Terminated', 'type' => 'string', 'example' => 'Terminated'], + 'Message' => ['description' => '容器状态信息。', 'type' => 'string', 'example' => 'Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)'], + 'Signal' => ['description' => '容器状态信号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ExitCode' => ['description' => '容器运行退出码。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Reason' => ['description' => '容器状态Reason。', 'type' => 'string', 'example' => 'Started'], + ], + ], + 'Ready' => ['description' => '指定容器是否已通过其就绪探针。', 'type' => 'boolean', 'example' => 'true'], + 'Gpu' => ['description' => 'GPU个数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'SecurityContext' => [ + 'description' => '实例运行的安全上下文。', + 'type' => 'object', + 'properties' => [ + 'ReadOnlyRootFilesystem' => ['description' => '是否只读根文件系统,目前仅支持True。', 'type' => 'boolean', 'example' => 'true'], + 'RunAsUser' => ['description' => '运行容器的用户ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'], + 'Capability' => [ + 'description' => '容器内的进程所具备的特定权限。', + 'type' => 'object', + 'properties' => [ + 'Adds' => [ + 'description' => '容器内的进程所具备的特定权限。', + 'type' => 'array', + 'items' => ['description' => '容器内的进程所具备的特定权限。', 'type' => 'string', 'example' => '[NET_ADMIN]'], + ], + ], + ], + ], + ], + 'Memory' => ['description' => '容器内存大小。单位为GiB。', 'type' => 'number', 'format' => 'float', 'example' => '2.0'], + 'Stdin' => ['description' => '此容器是否应在容器运行时为标准输入分配缓冲区。如果未设置,则容器中标准输入的读取值将导致EOF。默认为false。', 'type' => 'boolean', 'example' => 'true'], + 'Name' => ['description' => '容器名称。', 'type' => 'string', 'example' => 'nginx'], + 'EnvironmentVars' => [ + 'description' => '环境变量。', + 'type' => 'array', + 'items' => [ + 'description' => '环境变量。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '环境变量名。'."\n", 'type' => 'string', 'example' => 'PATH'], + 'Value' => ['description' => '环境变量值。', 'type' => 'string', 'example' => '/usr/bin/'], + 'ValueFrom' => [ + 'description' => '环境变量值的来源。 如果值不为空,则无法使用。', + 'type' => 'object', + 'properties' => [ + 'FieldRef' => [ + 'description' => '指定字段。', + 'type' => 'object', + 'properties' => [ + 'FieldPath' => ['description' => '字段的路径。', 'type' => 'string', 'example' => 'status.podIP'], + ], + ], + ], + ], + ], + ], + ], + 'ReadinessProbe' => [ + 'description' => '应用业务探针(即就绪探针),用于检查容器是否已经就绪,可以为请求提供服务。', + 'type' => 'object', + 'properties' => [ + 'SuccessThreshold' => ['description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。当前必须为1。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'InitialDelaySeconds' => ['description' => '检查开始执行的时间,以容器启动完成为起点计算。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'FailureThreshold' => ['description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败),默认为3。', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'TimeoutSeconds' => ['description' => '检查超时的时间,默认为1秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'TcpSocket' => [ + 'description' => '使用TCP Socket方式进行健康检查。', + 'type' => 'object', + 'properties' => [ + 'Host' => ['description' => 'Host。', 'type' => 'string', 'example' => '1.2.3.4'], + 'Port' => ['description' => '端口号。', 'type' => 'integer', 'format' => 'int32', 'example' => '8888'], + ], + ], + 'Execs' => [ + 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。', + 'type' => 'array', + 'items' => ['description' => '使用命令行方式进行健康检查时,在容器内执行的命令。', 'type' => 'string', 'example' => '["/bin/sh", "-c", "echo Hello world > /usr/share/message"]'], + ], + 'HttpGet' => [ + 'description' => '使用HTTP请求方式进行健康检查。', + 'type' => 'object', + 'properties' => [ + 'Scheme' => ['description' => 'HTTP/HTTPS。', 'type' => 'string', 'example' => 'HTTP'], + 'Path' => ['description' => 'HttpGet检测的路径。', 'type' => 'string', 'example' => '/usr/local'], + 'Port' => ['description' => 'HttpGet检测的端口号。', 'type' => 'integer', 'format' => 'int32', 'example' => '8080'], + ], + ], + 'PeriodSeconds' => ['description' => '检查执行的周期,默认为10秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], ], ], ], ], - 'Events' => [ - 'description' => '镜像缓存拉取镜像事件信息。', + 'EniInstanceId' => ['description' => '弹性网卡ID。', 'type' => 'string', 'example' => 'eni-bp14rzqi6fd8satm****'], + 'InitContainers' => [ + 'description' => 'Init容器列表。', 'type' => 'array', 'items' => [ - 'description' => '镜像缓存拉取镜像事件信息。', + 'description' => 'Init容器列表。', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'description' => '事件类型。', - 'type' => 'string', - 'example' => 'Normal', + 'VolumeMounts' => [ + 'description' => 'Init容器挂载的数据卷信息。', + 'type' => 'array', + 'items' => [ + 'description' => 'Init容器挂载的数据卷信息。', + 'type' => 'object', + 'properties' => [ + 'MountPropagation' => ['description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。可能值:'."\n" + ."\n" + .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" + .'- HostToCotainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" + .'- Bidirectional:和HostToCotainer类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。', 'type' => 'string', 'example' => 'None'], + 'MountPath' => ['description' => '挂载目录,容器的挂载目录下的内容被Volume的内容直接覆盖。', 'type' => 'string', 'example' => '/usr/share/'], + 'ReadOnly' => ['description' => '是否只读。', 'type' => 'boolean', 'example' => 'false'], + 'Name' => ['description' => '数据卷名称,同 Volume 中的 Name。', 'type' => 'string', 'example' => 'test-empty'], + ], + ], ], - 'LastTimestamp' => [ - 'description' => '事件结束时间。', - 'type' => 'string', - 'example' => '2021-02-09T02:24:48Z', + 'Args' => [ + 'description' => '启动参数。', + 'type' => 'array', + 'items' => ['description' => '启动参数。', 'type' => 'string', 'example' => '[\'hello world\']'], ], - 'Message' => [ - 'description' => '事件消息。', - 'type' => 'string', - 'example' => 'Successfully check image cache resource.', + 'Image' => ['description' => '镜像。', 'type' => 'string', 'example' => 'nginx'], + 'Ports' => [ + 'description' => '暴露端口和协议。', + 'type' => 'array', + 'items' => [ + 'description' => '暴露端口和协议。', + 'type' => 'object', + 'properties' => [ + 'Protocol' => ['description' => '协议类型。', 'type' => 'string', 'example' => 'TCP'], + 'Port' => ['description' => '端口号。可能值:1~65535。', 'type' => 'integer', 'format' => 'int32', 'example' => '8888'], + ], + ], ], - 'Name' => [ - 'description' => '事件名称。', - 'type' => 'string', - 'example' => 'imagetest.1661f31f851a****', + 'RestartCount' => ['description' => '重启次数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'ImagePullPolicy' => ['description' => '镜像拉取策略。可能值:'."\n" + ."\n" + .'- Always:总是拉取。每次都拉取镜像。'."\n" + .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" + .'- Never:从不拉取。使用本地镜像,不拉取镜像。', 'type' => 'string', 'example' => 'Always'], + 'PreviousState' => [ + 'description' => '上一次状态。', + 'type' => 'object', + 'properties' => [ + 'StartTime' => ['description' => '容器运行开始时间。', 'type' => 'string', 'example' => '2021-12-02T15:00:00Z'], + 'FinishTime' => ['description' => '容器运行结束时间。', 'type' => 'string', 'example' => '2021-12-02T15:01:00Z'], + 'DetailStatus' => ['description' => '状态详情。', 'type' => 'string', 'example' => 'working'], + 'State' => ['description' => '容器状态,枚举值:Waiting,Running,Terminated。', 'type' => 'string', 'example' => 'Terminated'], + 'Message' => ['description' => '容器状态信息。', 'type' => 'string', 'example' => 'Started container'], + 'Signal' => ['description' => '容器状态信号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ExitCode' => ['description' => '容器运行退出码。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Reason' => ['description' => '容器状态Reason。', 'type' => 'string', 'example' => 'completed'], + ], ], - 'Count' => [ - 'description' => '事件数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'WorkingDir' => ['description' => '工作目录。', 'type' => 'string', 'example' => '/usr/test'], + 'Cpu' => ['description' => 'vCPU大小。', 'type' => 'number', 'format' => 'float', 'example' => '1.0'], + 'CurrentState' => [ + 'description' => '当前状态。', + 'type' => 'object', + 'properties' => [ + 'StartTime' => ['description' => '容器运行开始时间。', 'type' => 'string', 'example' => '2021-12-02T15:00:00Z'], + 'FinishTime' => ['description' => '容器运行结束时间。', 'type' => 'string', 'example' => '2021-12-02T15:01:00Z'], + 'DetailStatus' => ['description' => '状态详情。', 'type' => 'string', 'example' => 'working'], + 'State' => ['description' => '容器状态,可能值:'."\n" + ."\n" + .'- Waiting'."\n" + .'- Running'."\n" + .'- Terminated', 'type' => 'string', 'example' => 'Running'], + 'Message' => ['description' => '事件消息。', 'type' => 'string', 'example' => 'Created container'], + 'Signal' => ['description' => '容器状态信号。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ExitCode' => ['description' => '容器退出码。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Reason' => ['description' => '容器状态Reason。', 'type' => 'string', 'example' => 'Started'], + ], ], - 'FirstTimestamp' => [ - 'description' => '事件开始时间。', - 'type' => 'string', - 'example' => '2021-02-09T02:24:48Z', + 'Command' => [ + 'description' => '启动命令。', + 'type' => 'array', + 'items' => ['description' => '启动命令。', 'type' => 'string', 'example' => '[/bin/sh echo]'], ], - 'Reason' => [ - 'description' => '事件原因。', - 'type' => 'string', - 'example' => 'Started', + 'Ready' => ['description' => '指定容器是否已通过其就绪探针。', 'type' => 'boolean', 'example' => 'true'], + 'Gpu' => ['description' => 'GPU个数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'SecurityContext' => [ + 'description' => '容器运行的安全上下文。', + 'type' => 'object', + 'properties' => [ + 'ReadOnlyRootFilesystem' => ['description' => '是否只读根文件系统,目前仅支持True。', 'type' => 'boolean', 'example' => 'true'], + 'RunAsUser' => ['description' => '用于运行容器进程入口点的UID。', 'type' => 'integer', 'format' => 'int64', 'example' => '1557'], + 'Capability' => [ + 'description' => '容器内的进程所具备的特定权限。', + 'type' => 'object', + 'properties' => [ + 'Adds' => [ + 'description' => '容器内的进程所具备的特定权限。', + 'type' => 'array', + 'items' => ['description' => '容器内的进程所具备的特定权限。', 'type' => 'string', 'example' => 'NET_ADMIN'], + ], + ], + ], + ], + ], + 'Memory' => ['description' => 'Init容器内存大小。单位为GiB。', 'type' => 'number', 'format' => 'float', 'example' => '2.0'], + 'Name' => ['description' => '容器名称。', 'type' => 'string', 'example' => 'Init-xxx'], + 'EnvironmentVars' => [ + 'description' => '环境变量。', + 'type' => 'array', + 'items' => [ + 'description' => '环境变量。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '环境变量名。', 'type' => 'string', 'example' => 'PATH'], + 'Value' => ['description' => '环境变量值。', 'type' => 'string', 'example' => '/usr/local/bin'], + 'ValueFrom' => [ + 'description' => '环境变量值的来源。 如果值不为空,则无法使用。', + 'type' => 'object', + 'properties' => [ + 'FieldRef' => [ + 'description' => '指定的字段。', + 'type' => 'object', + 'properties' => [ + 'FieldPath' => ['description' => '指定的版本中选择字段的路径。目前只支持 `status.podIP`。', 'type' => 'string', 'example' => 'status.podIP'], + ], + ], + ], + ], + ], + ], ], ], ], ], - 'ImageCacheId' => [ - 'description' => '镜像缓存ID。'."\n", - 'type' => 'string', - 'example' => 'imc-bp195erqe9o2pb09****', - ], - 'RegionId' => [ - 'description' => '所属地域。', - 'type' => 'string', - 'example' => 'cn-beijing', - ], - 'SnapshotId' => [ - 'description' => '镜像缓存对应的快照ID。', - 'type' => 'string', - 'example' => 's-2zec5oj8e1yhxijt****', - ], - 'FlashSnapshotId' => [ - 'description' => '本地快照ID。开启极速镜像缓存功能后,将临时创建一份本地快照。', - 'type' => 'string', - 'example' => 's-bp12w3v37sit96t6****', - ], - 'ResourceGroupId' => [ - 'description' => '所属资源组ID。', - 'type' => 'string', - 'example' => 'rg-2df3isufhi38****', - ], - 'ImageCacheSize' => [ - 'description' => '镜像缓存大小。单位:GiB。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', + 'ContainerGroupId' => ['description' => '实例ID。', 'type' => 'string', 'example' => 'eci-bp1jrgfqqy54kg5hc****'], + 'TenantEniIp' => ['description' => '该参数未开放使用。', 'type' => 'string', 'example' => '10.10.XX.XX'], + 'InstanceType' => ['description' => '指定的ECS实例规格。', 'type' => 'string', 'example' => 'ecs.g5.large'], + 'IntranetIp' => ['description' => '内网IP。', 'type' => 'string', 'example' => '172.16.XX.XX'], + 'Ipv6Address' => ['description' => 'IPv6地址。', 'type' => 'string', 'example' => '2001:XXXX:4:4:4:4:4:4'], + 'RegionId' => ['description' => '实例所属的地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'DnsConfig' => [ + 'description' => 'DNS配置信息。', + 'type' => 'object', + 'properties' => [ + 'Searches' => [ + 'description' => 'DNS搜索域列表。', + 'type' => 'array', + 'items' => ['description' => 'DNS搜索域。', 'type' => 'string', 'example' => 'svc.local.kubenetes'], + ], + 'Options' => [ + 'description' => '对象选项列表,每个对象由Name和Value(可选)构成。', + 'type' => 'array', + 'items' => [ + 'description' => '对象选项列表,每个对象由Name和Value(可选)构成。', + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => '对象变量值。', 'type' => 'string', 'example' => 'value'], + 'Name' => ['description' => '对象变量名。', 'type' => 'string', 'example' => 'name'], + ], + ], + ], + 'NameServers' => [ + 'description' => 'DNS服务器IP地址列表。', + 'type' => 'array', + 'items' => ['description' => 'IP地址。', 'type' => 'string', 'example' => '[10.2.*.*]'], + ], + ], ], - 'ImageCacheName' => [ - 'description' => '镜像缓存名称。', - 'type' => 'string', - 'example' => 'imagetest', + 'Volumes' => [ + 'description' => '数据卷信息。', + 'type' => 'array', + 'items' => [ + 'description' => '数据卷信息。', + 'type' => 'object', + 'properties' => [ + 'Type' => ['description' => '数据卷类型,可能值:'."\n" + ."\n" + .'- EmptyDirVolume'."\n" + .'- NFSVolume'."\n" + .'- ConfigFileVolume'."\n" + .'- FlexVolume', 'type' => 'string', 'example' => 'EmptyDirVolume'], + 'DiskVolumeDiskId' => ['description' => 'DiskVolume的ID。', 'type' => 'string', 'example' => 'd-xxxx'], + 'NFSVolumeReadOnly' => ['description' => '是否只读。', 'type' => 'boolean', 'example' => 'false'], + 'ConfigFileVolumeConfigFileToPaths' => [ + 'description' => '配置文件路径列表。', + 'type' => 'array', + 'items' => [ + 'description' => '配置文件路径列表。', + 'type' => 'object', + 'properties' => [ + 'Path' => ['description' => '相对文件路径。', 'type' => 'string', 'example' => '/usr/bin/'], + 'Content' => ['description' => '配置文件内容 (32KB)。', 'type' => 'string', 'example' => 'hello world'], + ], + ], + ], + 'FlexVolumeFsType' => ['description' => '挂载的文件系统类型,默认取决于FlexVolume的script。', 'type' => 'string', 'example' => 'ntfs'], + 'FlexVolumeDriver' => ['description' => '用于FlexVolume的驱动程序名称。', 'type' => 'string', 'example' => 'flexvolume'], + 'DiskVolumeFsType' => ['description' => '数据卷类型。', 'type' => 'string', 'example' => 'xfs'], + 'FlexVolumeOptions' => ['description' => 'FlexVolume对象选项列表。', 'type' => 'string', 'example' => '[nolock,tcp,noresvport]'], + 'NFSVolumeServer' => ['description' => 'NFS服务器地址。', 'type' => 'string', 'example' => '0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com'], + 'NFSVolumePath' => ['description' => 'NFS数据卷路径。', 'type' => 'string', 'example' => '/eci'], + 'Name' => ['description' => '数据卷名称。', 'type' => 'string', 'example' => 'test-empty'], + 'EmptyDirVolumeMedium' => ['description' => 'EmptyDir数据卷的存储媒介。默认为空,表示使用node文件系统。支持配置为以下值:'."\n" + ."\n" + .'- Memory:表示使用内存。'."\n" + .'- LocalRaid0:表示将本地盘组成RAID 0。该取值仅适用于创建本地盘实例并挂载本地盘的场景。更多信息,请参见[创建本地盘实例](~~114664~~)。', 'type' => 'string', 'example' => 'Memory'], + 'EmptyDirVolumeSizeLimit' => ['description' => 'EmptyDir数据卷的大小。', 'type' => 'string', 'example' => '256Mi'], + ], + ], ], - 'EliminationStrategy' => [ - 'description' => '镜像缓存的淘汰策略。默认为空,表示一直保留。'."\n" - ."\n" - .'支持配置为LRU,表示可以被自动删除。当镜像缓存数量达到配额限制时,系统将自动删除最不常用的EliminationStrategy为LRU的镜像缓存。', - 'type' => 'string', - 'example' => 'LRU', + 'RamRoleName' => ['description' => '实例RAM角色名称,ECI与ECS共用实例RAM角色,具体操作,请参见[通过API使用实例RAM角色](~~61178~~)。', 'type' => 'string', 'example' => 'ram:PassRole'], + 'VSwitchId' => ['description' => '虚拟交换机ID。'."\n", 'type' => 'string', 'example' => 'vsw-bp1vzjjflab6wvjox****'], + 'Cpu' => ['description' => '实例级别vCPU大小。', 'type' => 'number', 'format' => 'float', 'example' => '2.0'], + 'ExpiredTime' => ['description' => '由于账户欠费导致实例运行失败的时间。UTC时间,RFC3339标准。'."\n", 'type' => 'string', 'example' => '2018-08-02T15:00:00Z'], + 'ResourceGroupId' => ['description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-8db03793gfrz****'], + 'ZoneId' => ['description' => '实例所属的可用区。', 'type' => 'string', 'example' => 'cn-hangzhou-h'], + 'ContainerGroupName' => ['description' => '实例名称。', 'type' => 'string', 'example' => 'test'], + 'EciSecurityContext' => [ + 'description' => '容器组运行的安全上下文。', + 'type' => 'object', + 'properties' => [ + 'Sysctls' => [ + 'description' => 'sysctl参数。', + 'type' => 'array', + 'items' => [ + 'description' => 'sysctl参数。', + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => 'sysctl参数值。', 'type' => 'string', 'example' => '65536'], + 'Name' => ['description' => 'sysctl参数名。', 'type' => 'string', 'example' => 'kernel.msgmax'], + ], + ], + ], + ], ], + 'FailedTime' => ['description' => '实例运行失败的时间。UTC时间,RFC 3339标准。', 'type' => 'string', 'example' => '2018-08-02T15:00:00Z'], + 'ComputeCategory' => ['description' => '算力类别。可能值:'."\n" + ."\n" + .'- economy:经济型'."\n" + .'- general:通用型', 'type' => 'string', 'example' => 'economy'], + 'DnsPolicy' => ['description' => 'DNS策略。可能值'."\n" + ."\n" + .'- None:使用DnsConfig字段设置的DNS。'."\n" + .'- Default:继承运行环境的DNS设置。', 'type' => 'string', 'example' => 'None'], ], ], ], - 'NextToken' => [ - 'description' => '本次调用返回的查询凭证值。', - 'type' => 'string', - 'example' => 'AAAAAdDWBF2****', - ], - 'TotalCount' => [ - 'description' => '查询结果总条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '15', - ], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - ], - 403 => [ - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role does not belong to ECS.', - ], + ['errorCode' => 'InvalidParameter.MismatchInstanceType', 'errorMessage' => 'The instanceId mismatch instance type.', 'description' => '实例类型错误'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"39FC2E43-3DD7-4CEF-9EF4-E4AD6E635301\\",\\n \\"ImageCaches\\": [\\n {\\n \\"Images\\": [\\n \\"registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl\\"\\n ],\\n \\"CreationTime\\": \\"2021-02-09T02:24:07Z\\",\\n \\"Status\\": \\"Ready\\",\\n \\"Progress\\": \\"100%\\",\\n \\"ExpireDateTime\\": \\"2019-11-10T09:00:48Z\\",\\n \\"LastMatchedTime\\": \\"2021-08-18T03:48:10Z\\",\\n \\"ContainerGroupId\\": \\"eci-bp18oq3m15prd9jb****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"imc\\",\\n \\"Value\\": \\"test\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"LastTimestamp\\": \\"2021-02-09T02:24:48Z\\",\\n \\"Message\\": \\"Successfully check image cache resource.\\",\\n \\"Name\\": \\"imagetest.1661f31f851a****\\",\\n \\"Count\\": 1,\\n \\"FirstTimestamp\\": \\"2021-02-09T02:24:48Z\\",\\n \\"Reason\\": \\"Started\\"\\n }\\n ],\\n \\"ImageCacheId\\": \\"imc-bp195erqe9o2pb09****\\",\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"SnapshotId\\": \\"s-2zec5oj8e1yhxijt****\\",\\n \\"FlashSnapshotId\\": \\"s-bp12w3v37sit96t6****\\",\\n \\"ResourceGroupId\\": \\"rg-2df3isufhi38****\\",\\n \\"ImageCacheSize\\": 20,\\n \\"ImageCacheName\\": \\"imagetest\\",\\n \\"EliminationStrategy\\": \\"LRU\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAAdDWBF2****\\",\\n \\"TotalCount\\": 15\\n}","errorExample":""},{"type":"xml","example":"<DescribeImageCachesResponse>\\n <RequestId>39FC2E43-3DD7-4CEF-9EF4-E4AD6E635301</RequestId>\\n <ImageCaches>\\n <Images>registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl</Images>\\n <CreationTime>2021-02-09T02:24:07Z</CreationTime>\\n <Status>Ready</Status>\\n <Progress>100%</Progress>\\n <ExpireDateTime>2019-11-10T09:00:48Z</ExpireDateTime>\\n <LastMatchedTime>2021-08-18T03:48:10Z</LastMatchedTime>\\n <ContainerGroupId>eci-bp18oq3m15prd9jb****</ContainerGroupId>\\n <Tags>\\n <Key>imc</Key>\\n <Value>test</Value>\\n </Tags>\\n <Events>\\n <Type>Normal</Type>\\n <LastTimestamp>2021-02-09T02:24:48Z</LastTimestamp>\\n <Message>Successfully check image cache resource.</Message>\\n <Name>imagetest.1661f31f851a****</Name>\\n <Count>1</Count>\\n <FirstTimestamp>2021-02-09T02:24:48Z</FirstTimestamp>\\n </Events>\\n <ImageCacheId>imc-bp195erqe9o2pb09****</ImageCacheId>\\n <RegionId>cn-beijing</RegionId>\\n <SnapshotId>s-2zec5oj8e1yhxijt****</SnapshotId>\\n <FlashSnapshotId>s-bp12w3v37sit96t6****</FlashSnapshotId>\\n <ResourceGroupId>rg-2df3isufhi38****</ResourceGroupId>\\n <ImageCacheSize>20</ImageCacheSize>\\n <ImageCacheName>imagetest</ImageCacheName>\\n <EliminationStrategy>LRU</EliminationStrategy>\\n </ImageCaches>\\n <NextToken>AAAAAdDWBF2****</NextToken>\\n <TotalCount>15</TotalCount>\\n</DescribeImageCachesResponse>","errorExample":""}]', - 'title' => '批量查询镜像缓存信息', - 'summary' => '调用DescribeImageCaches批量查询镜像缓存信息。', + 'title' => '批量查询容器组信息', + 'summary' => '调用DescribeContainerGroups批量查询ECI实例的信息。', + 'description' => '- 当ECI实例运行终止后,底层计算资源将会被回收。随实例一起创建的其它资源(例如EIP等)默认随实例一起释放。'."\n" + .'- 终态(处于Failed、Succeeded或Expired状态)实例的元数据信息的保留情况如下:'."\n" + .' - 1小时内的实例信息全部保留。'."\n" + .' - 超出1小时的实例仅保留最近的100条(单个地域分别计算)。'."\n" + .'- 如果使用RAM用户账号或者RAM角色进行查询,当RAM用户或者角色缺乏接口权限时,会返回空列表。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'CreateDataCache' => [ - 'summary' => '创建一个数据缓存。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2024-09-26T06:28:56.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2024-09-04T07:12:21.000Z', 'description' => '错误码发生变更'], + ['createdAt' => '2023-12-27T06:42:57.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-12-25T06:03:05.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ['createdAt' => '2023-04-17T06:30:20.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-04-04T08:02:32.000Z', 'description' => '响应参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '2000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroups'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroups', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 1,\\n \\"NextToken\\": \\"d78f2dd8-5979-42fe-****-b16db43be5bc\\",\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\",\\n \\"ContainerGroups\\": [\\n {\\n \\"Status\\": \\"Running\\",\\n \\"CreationTime\\": \\"2018-08-02T15:00:00Z\\",\\n \\"VpcId\\": \\"vpc-1vzjjflab6wvjox****\\",\\n \\"InternetIp\\": \\"192.0.XX.XX\\",\\n \\"TenantSecurityGroupId\\": \\"sg-xxx\\",\\n \\"SecurityGroupId\\": \\"sg-bp12ujq5zpxuyjfo3o8r\\",\\n \\"HostAliases\\": [\\n {\\n \\"Hostnames\\": [\\n \\"[\'hehe.com\', \'haha.com\']\\"\\n ],\\n \\"Ip\\": \\"192.0.XX.XX\\"\\n }\\n ],\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"name\\",\\n \\"Value\\": \\"test-xh\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"LastTimestamp\\": \\"2018-08-02T15:00:00Z\\",\\n \\"Message\\": \\"Started container\\",\\n \\"Name\\": \\"test-xxx\\",\\n \\"Reason\\": \\"Created\\",\\n \\"Count\\": 20,\\n \\"FirstTimestamp\\": \\"2018-08-02T15:00:00Z\\"\\n }\\n ],\\n \\"SucceededTime\\": \\"2019-12-11T04:33:42Z\\",\\n \\"SpotStrategy\\": \\"NoSpot\\",\\n \\"SpotPriceLimit\\": 0.025,\\n \\"EphemeralStorage\\": 20,\\n \\"TenantEniInstanceId\\": \\"i-xxx\\",\\n \\"Discount\\": 9,\\n \\"RestartPolicy\\": \\"Never\\",\\n \\"Memory\\": 4,\\n \\"TenantVSwitchId\\": \\"vsw-xxx\\",\\n \\"Containers\\": [\\n {\\n \\"LivenessProbe\\": {\\n \\"SuccessThreshold\\": 1,\\n \\"InitialDelaySeconds\\": 10,\\n \\"FailureThreshold\\": 3,\\n \\"TimeoutSeconds\\": 10,\\n \\"TcpSocket\\": {\\n \\"Host\\": \\"1.2.3.4\\",\\n \\"Port\\": 80\\n },\\n \\"Execs\\": [\\n \\"[\\\\\\"/bin/sh\\\\\\", \\\\\\"-c\\\\\\", \\\\\\"echo Hello world > /usr/share/message\\\\\\"]\\"\\n ],\\n \\"HttpGet\\": {\\n \\"Scheme\\": \\"HTTP\\",\\n \\"Path\\": \\"/usr/nginx/\\",\\n \\"Port\\": 80\\n },\\n \\"PeriodSeconds\\": 5\\n },\\n \\"Commands\\": [\\n \\"[/bin/sh echo]\\"\\n ],\\n \\"VolumeMounts\\": [\\n {\\n \\"MountPropagation\\": \\"None\\",\\n \\"MountPath\\": \\"/usr/share/\\",\\n \\"ReadOnly\\": false,\\n \\"Name\\": \\"test-empty\\",\\n \\"SubPath\\": \\"/usr/sub\\"\\n }\\n ],\\n \\"Args\\": [\\n \\"[\\\\\\"hello\\\\\\"]\\"\\n ],\\n \\"Image\\": \\"mysql\\",\\n \\"Ports\\": [\\n {\\n \\"Protocol\\": \\"TCP\\",\\n \\"Port\\": 8080\\n }\\n ],\\n \\"RestartCount\\": 0,\\n \\"ImagePullPolicy\\": \\"Always\\",\\n \\"StdinOnce\\": true,\\n \\"Cpu\\": 2,\\n \\"PreviousState\\": {\\n \\"StartTime\\": \\"2021-12-02T15:00:00Z\\",\\n \\"FinishTime\\": \\"2021-12-02T15:01:00Z\\",\\n \\"DetailStatus\\": \\"working\\",\\n \\"State\\": \\"Terminated\\",\\n \\"Message\\": \\"Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)\\",\\n \\"Signal\\": 1,\\n \\"ExitCode\\": 0,\\n \\"Reason\\": \\"Completed\\"\\n },\\n \\"Tty\\": false,\\n \\"WorkingDir\\": \\"/usr/local/nginx\\",\\n \\"CurrentState\\": {\\n \\"StartTime\\": \\"2021-12-02T15:00:00Z\\",\\n \\"FinishTime\\": \\"2021-12-02T15:01:00Z\\",\\n \\"DetailStatus\\": \\"working\\",\\n \\"State\\": \\"Terminated\\",\\n \\"Message\\": \\"Back-off 5m0s restarting failed container=test pod=test_eci-xxx(xxx)\\",\\n \\"Signal\\": 1,\\n \\"ExitCode\\": 0,\\n \\"Reason\\": \\"Started\\"\\n },\\n \\"Ready\\": true,\\n \\"Gpu\\": 1,\\n \\"SecurityContext\\": {\\n \\"ReadOnlyRootFilesystem\\": true,\\n \\"RunAsUser\\": 1000,\\n \\"Capability\\": {\\n \\"Adds\\": [\\n \\"[NET_ADMIN]\\"\\n ]\\n }\\n },\\n \\"Memory\\": 2,\\n \\"Stdin\\": true,\\n \\"Name\\": \\"nginx\\",\\n \\"EnvironmentVars\\": [\\n {\\n \\"Key\\": \\"PATH\\",\\n \\"Value\\": \\"/usr/bin/\\",\\n \\"ValueFrom\\": {\\n \\"FieldRef\\": {\\n \\"FieldPath\\": \\"status.podIP\\"\\n }\\n }\\n }\\n ],\\n \\"ReadinessProbe\\": {\\n \\"SuccessThreshold\\": 1,\\n \\"InitialDelaySeconds\\": 5,\\n \\"FailureThreshold\\": 3,\\n \\"TimeoutSeconds\\": 1,\\n \\"TcpSocket\\": {\\n \\"Host\\": \\"1.2.3.4\\",\\n \\"Port\\": 8888\\n },\\n \\"Execs\\": [\\n \\"[\\\\\\"/bin/sh\\\\\\", \\\\\\"-c\\\\\\", \\\\\\"echo Hello world > /usr/share/message\\\\\\"]\\"\\n ],\\n \\"HttpGet\\": {\\n \\"Scheme\\": \\"HTTP\\",\\n \\"Path\\": \\"/usr/local\\",\\n \\"Port\\": 8080\\n },\\n \\"PeriodSeconds\\": 1\\n }\\n }\\n ],\\n \\"EniInstanceId\\": \\"eni-bp14rzqi6fd8satm****\\",\\n \\"InitContainers\\": [\\n {\\n \\"VolumeMounts\\": [\\n {\\n \\"MountPropagation\\": \\"None\\",\\n \\"MountPath\\": \\"/usr/share/\\",\\n \\"ReadOnly\\": false,\\n \\"Name\\": \\"test-empty\\"\\n }\\n ],\\n \\"Args\\": [\\n \\"[\'hello world\']\\"\\n ],\\n \\"Image\\": \\"nginx\\",\\n \\"Ports\\": [\\n {\\n \\"Protocol\\": \\"TCP\\",\\n \\"Port\\": 8888\\n }\\n ],\\n \\"RestartCount\\": 5,\\n \\"ImagePullPolicy\\": \\"Always\\",\\n \\"PreviousState\\": {\\n \\"StartTime\\": \\"2021-12-02T15:00:00Z\\",\\n \\"FinishTime\\": \\"2021-12-02T15:01:00Z\\",\\n \\"DetailStatus\\": \\"working\\",\\n \\"State\\": \\"Terminated\\",\\n \\"Message\\": \\"Started container\\",\\n \\"Signal\\": 1,\\n \\"ExitCode\\": 0,\\n \\"Reason\\": \\"completed\\"\\n },\\n \\"WorkingDir\\": \\"/usr/test\\",\\n \\"Cpu\\": 1,\\n \\"CurrentState\\": {\\n \\"StartTime\\": \\"2021-12-02T15:00:00Z\\",\\n \\"FinishTime\\": \\"2021-12-02T15:01:00Z\\",\\n \\"DetailStatus\\": \\"working\\",\\n \\"State\\": \\"Running\\",\\n \\"Message\\": \\"Created container\\",\\n \\"Signal\\": 1,\\n \\"ExitCode\\": 0,\\n \\"Reason\\": \\"Started\\"\\n },\\n \\"Command\\": [\\n \\"[/bin/sh echo]\\"\\n ],\\n \\"Ready\\": true,\\n \\"Gpu\\": 1,\\n \\"SecurityContext\\": {\\n \\"ReadOnlyRootFilesystem\\": true,\\n \\"RunAsUser\\": 1557,\\n \\"Capability\\": {\\n \\"Adds\\": [\\n \\"NET_ADMIN\\"\\n ]\\n }\\n },\\n \\"Memory\\": 2,\\n \\"Name\\": \\"Init-xxx\\",\\n \\"EnvironmentVars\\": [\\n {\\n \\"Key\\": \\"PATH\\",\\n \\"Value\\": \\"/usr/local/bin\\",\\n \\"ValueFrom\\": {\\n \\"FieldRef\\": {\\n \\"FieldPath\\": \\"status.podIP\\"\\n }\\n }\\n }\\n ]\\n }\\n ],\\n \\"ContainerGroupId\\": \\"eci-bp1jrgfqqy54kg5hc****\\",\\n \\"TenantEniIp\\": \\"10.10.XX.XX\\",\\n \\"InstanceType\\": \\"ecs.g5.large\\",\\n \\"IntranetIp\\": \\"172.16.XX.XX\\",\\n \\"Ipv6Address\\": \\"2001:XXXX:4:4:4:4:4:4\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"DnsConfig\\": {\\n \\"Searches\\": [\\n \\"svc.local.kubenetes\\"\\n ],\\n \\"Options\\": [\\n {\\n \\"Value\\": \\"value\\",\\n \\"Name\\": \\"name\\"\\n }\\n ],\\n \\"NameServers\\": [\\n \\"[10.2.*.*]\\"\\n ]\\n },\\n \\"Volumes\\": [\\n {\\n \\"Type\\": \\"EmptyDirVolume\\",\\n \\"DiskVolumeDiskId\\": \\"d-xxxx\\",\\n \\"NFSVolumeReadOnly\\": false,\\n \\"ConfigFileVolumeConfigFileToPaths\\": [\\n {\\n \\"Path\\": \\"/usr/bin/\\",\\n \\"Content\\": \\"hello world\\"\\n }\\n ],\\n \\"FlexVolumeFsType\\": \\"ntfs\\",\\n \\"FlexVolumeDriver\\": \\"flexvolume\\",\\n \\"DiskVolumeFsType\\": \\"xfs\\",\\n \\"FlexVolumeOptions\\": \\"[nolock,tcp,noresvport]\\",\\n \\"NFSVolumeServer\\": \\"0eafxxxxx-xxxxx.cn-hangzhou.nas.aliyuncs.com\\",\\n \\"NFSVolumePath\\": \\"/eci\\",\\n \\"Name\\": \\"test-empty\\",\\n \\"EmptyDirVolumeMedium\\": \\"Memory\\",\\n \\"EmptyDirVolumeSizeLimit\\": \\"256Mi\\"\\n }\\n ],\\n \\"RamRoleName\\": \\"ram:PassRole\\",\\n \\"VSwitchId\\": \\"vsw-bp1vzjjflab6wvjox****\\",\\n \\"Cpu\\": 2,\\n \\"ExpiredTime\\": \\"2018-08-02T15:00:00Z\\",\\n \\"ResourceGroupId\\": \\"rg-8db03793gfrz****\\",\\n \\"ZoneId\\": \\"cn-hangzhou-h\\",\\n \\"ContainerGroupName\\": \\"test\\",\\n \\"EciSecurityContext\\": {\\n \\"Sysctls\\": [\\n {\\n \\"Value\\": \\"65536\\",\\n \\"Name\\": \\"kernel.msgmax\\"\\n }\\n ]\\n },\\n \\"FailedTime\\": \\"2018-08-02T15:00:00Z\\",\\n \\"ComputeCategory\\": \\"economy\\",\\n \\"DnsPolicy\\": \\"None\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupsResponse>\\n <TotalCount>1</TotalCount>\\n <NextToken/>\\n <RequestId>CAABE95E-ED57-56CC-B361-48566745A3CC</RequestId>\\n <ContainerGroups>\\n <Discount>10</Discount>\\n <Memory>4</Memory>\\n <Containers>\\n <EnvironmentVars>\\n <ValueFrom>\\n <FieldRef/>\\n </ValueFrom>\\n <Value>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</Value>\\n <Key>PATH</Key>\\n </EnvironmentVars>\\n <EnvironmentVars>\\n <ValueFrom>\\n <FieldRef/>\\n </ValueFrom>\\n <Value>1.15.10-1~stretch</Value>\\n <Key>NGINX_VERSION</Key>\\n </EnvironmentVars>\\n <EnvironmentVars>\\n <ValueFrom>\\n <FieldRef/>\\n </ValueFrom>\\n <Value>1.15.10.0.3.0-1~stretch</Value>\\n <Key>NJS_VERSION</Key>\\n </EnvironmentVars>\\n <ReadinessProbe>\\n <HttpGet/>\\n <TcpSocket/>\\n </ReadinessProbe>\\n <Memory>0</Memory>\\n <LivenessProbe>\\n <HttpGet/>\\n <TcpSocket/>\\n </LivenessProbe>\\n <Cpu>0</Cpu>\\n <Image>registry-vpc.cn-beijing.aliyuncs.com/eci_open/nginx:latest</Image>\\n <Gpu>0</Gpu>\\n <PreviousState>\\n <FinishTime/>\\n <State/>\\n <StartTime/>\\n </PreviousState>\\n <Name>container-1</Name>\\n <RestartCount>0</RestartCount>\\n <Ready>true</Ready>\\n <WorkingDir/>\\n <ImagePullPolicy>IfNotPresent</ImagePullPolicy>\\n <CurrentState>\\n <FinishTime/>\\n <State>Running</State>\\n <StartTime>2021-09-08T02:49:52Z</StartTime>\\n </CurrentState>\\n <SecurityContext>\\n <Capability/>\\n </SecurityContext>\\n </Containers>\\n <Cpu>2</Cpu>\\n <EciSecurityContext/>\\n <FailedTime/>\\n <IntranetIp>172.16.XX.XX</IntranetIp>\\n <ContainerGroupName>container-group-1631069337474</ContainerGroupName>\\n <DnsConfig/>\\n <InternetIp/>\\n <ExpiredTime/>\\n <InstanceType>ecs.c5.large</InstanceType>\\n <SpotStrategy>SpotAsPriceGo</SpotStrategy>\\n <Status>Running</Status>\\n <ZoneId>cn-beijing-g</ZoneId>\\n <SucceededTime/>\\n <SecurityGroupId>sg-2ze81zoc3yl7a3we****</SecurityGroupId>\\n <VSwitchId>vsw-2ze23nqzig8inprou****</VSwitchId>\\n <RestartPolicy>Always</RestartPolicy>\\n <VpcId>vpc-2zeghwzptn5zii0w7****</VpcId>\\n <CreationTime>2021-09-08T02:49:40Z</CreationTime>\\n <EniInstanceId>eni-2ze80ferll5c3wjk****</EniInstanceId>\\n <ContainerGroupId>eci-2zeg7owsmm74shw8****</ContainerGroupId>\\n <RegionId>cn-beijing</RegionId>\\n </ContainerGroups>\\n</DescribeContainerGroupsResponse>","errorExample":""}]', + ], + 'DescribeContainerLog' => [ + 'summary' => '调用DescribeContainerLog获取容器组内某个容器的日志信息。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'get', 'riskType' => 'none', - 'chargeType' => 'paid', - 'abilityTreeCode' => '178965', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], - 'tenantRelevance' => 'tenant', + 'chargeType' => 'free', + 'abilityTreeCode' => '17733', + 'abilityTreeNodes' => ['FEATUREeciO8VNZM'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'SecurityGroupId', - 'in' => 'query', - 'schema' => [ - 'description' => '创建数据缓存过程中生成的ECI实例所属的安全组ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'sg-2ze81zoc3yl7a3we****', - ], - ], - [ - 'name' => 'VSwitchId', - 'in' => 'query', - 'schema' => [ - 'description' => '创建数据缓存过程中生成的ECI实例所属的交换机ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'vsw-bp1jrgfqqy54kg5hc****', - ], - ], - [ - 'name' => 'Bucket', - 'in' => 'query', - 'schema' => [ - 'description' => '数据的存储空间。默认为default。支持自定义,以便进行业务分组和避免路径冲突。'."\n" - ."\n" - .'> eci-system为ECI保留空间,不可使用。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], - ], - [ - 'name' => 'Path', - 'in' => 'query', - 'schema' => [ - 'description' => '数据存储的路径。', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => '/model/test', - ], - ], - [ - 'name' => 'Name', + 'name' => 'ContainerGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存名称。', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'test', - ], + 'allowEmptyValue' => false, + 'schema' => ['description' => 'ECI实例ID,即容器组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'eci-uf6fonnghi50v6nq****'], ], [ - 'name' => 'Size', + 'name' => 'ContainerName', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存大小。单位为GiB,默认为20 GiB。请根据实际数据量评估所需大小。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '30', - ], + 'schema' => ['description' => '容器名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'nginx'], ], [ - 'name' => 'DataSource', + 'name' => 'StartTime', 'in' => 'query', - 'style' => 'flat', - 'schema' => [ - 'description' => '数据源。', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => '数据源类型。取值范围:'."\n" - .'- URL'."\n" - .'- NAS'."\n" - .'- OSS'."\n" - .'- SNAPSHOT', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'NAS' => 'NAS', - 'SNAPSHOT' => 'SNAPSHOT', - 'URL' => 'URL', - 'OSS' => 'OSS', - ], - 'example' => 'URL', - ], - 'Options' => [ - 'description' => '数据源的配置参数。', - 'type' => 'object', - 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '{'."\n" - .' "#10#repoSource": "HuggingFace/Model",'."\n" - .' "#6#repoId": "stabilityai/stable-diffusion-2-1"'."\n" - .'}', - 'description' => '数据源的配置参数。不同类型数据源要传入的参数不同。各类型数据源及其配置参数说明,请参见[创建数据缓存](~~2391456~~)。', - ], - ], - ], - 'required' => false, - 'docRequired' => false, - ], + 'schema' => ['description' => 'UTC时间,RFC3339标准。', 'type' => 'string', 'required' => false, 'example' => '2018-08-02T15:00:00Z'], ], [ - 'name' => 'RetentionDays', + 'name' => 'Tail', 'in' => 'query', - 'schema' => [ - 'description' => '保留天数。过期会被清理。默认不过期。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '7', - ], + 'schema' => ['description' => '查询最新多少行的日志内容。默认500行,最大2000行 。 '."\n" + .'日志内容最大返回1 MB数据。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '500'], ], [ - 'name' => 'Tag', + 'name' => 'LastTime', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '数据缓存绑定的标签列表。', - 'type' => 'array', - 'items' => [ - 'description' => '数据缓存绑定的标签列表。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'testkey', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'testvalue', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => '是否查询上一个容器(如果容器退出重启了)。取值范围:'."\n" + ."\n" + .'- true:查询上一个容器。'."\n" + .'- false:不查询。'."\n" + ."\n" + .'默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ - 'name' => 'ResourceGroupId', + 'name' => 'SinceSeconds', 'in' => 'query', - 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-2df3isufhi38****', - ], + 'schema' => ['description' => '查询最近多少秒内的日志。例如:10s、20s、30s。'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], [ - 'name' => 'ClientToken', + 'name' => 'LimitBytes', 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-****-12d3-****-426655440000', - ], + 'schema' => ['description' => '日志总大小的限制。单位为Byte,取值范围为1~1048576(1 MB)。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'docRequired' => false, 'example' => '123798'], ], [ - 'name' => 'EipInstanceId', + 'name' => 'Timestamps', 'in' => 'query', - 'schema' => [ - 'description' => '绑定已有的弹性公网IP(EIP)。'."\n" - .'如果VPC没有配置NAT网关,可以绑定EIP,以便拉取公网数据。', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-uf66jeqopgqa9hdn****', - ], - ], - [ - 'name' => 'EipCreateParam', - 'in' => 'query', - 'style' => 'flat', - 'schema' => [ - 'description' => '创建一个弹性公网IP(EIP)并绑定。'."\n" - .'如果VPC没有配置NAT网关,可以绑定EIP,以便拉取公网数据。', - 'type' => 'object', - 'properties' => [ - 'Bandwidth' => [ - 'description' => 'EIP带宽。单位为Mbps。默认为5 Mbps。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - 'CommonBandwidthPackage' => [ - 'description' => '绑定已有的共享带宽包。', - 'type' => 'string', - 'required' => false, - 'example' => 'cbwp-2zeukbj916scmj51m****', - ], - 'InternetChargeType' => [ - 'description' => 'EIP的计量方式。取值范围:'."\n" - ."\n" - .'- PayByBandwidth:按带宽计费'."\n" - .'- PayByTraffic:按流量计费', - 'type' => 'string', - 'required' => false, - 'example' => 'PayByTraffic', - ], - 'PublicIpAddressPoolId' => [ - 'description' => 'IP地址池ID。'."\n" - .'EIP将从该IP地址池中分配。'."\n" - .'IP地址池功能默认不开放。如需使用,请在配额中心申请IP地址池功能权益配额。', - 'type' => 'string', - 'required' => false, - 'example' => 'pippool-2vc4xdtjhwl4t0go5****', - ], - 'ISP' => [ - 'description' => 'EIP的线路类型。取值范围:'."\n" - ."\n" - .'- BGP(默认值):BGP(多线)线路'."\n" - .'- BGP_PRO:BGP(多线)精品线路', - 'type' => 'string', - 'required' => false, - 'example' => 'BGP', - ], - ], - 'required' => false, - ], + 'schema' => ['description' => '是否返回日志时间戳。取值范围:'."\n" + ."\n" + .'- true:返回日志时间戳。'."\n" + .'- false:不返回日志时间戳。'."\n" + ."\n" + .'默认为false。', 'type' => 'boolean', 'required' => false, 'docRequired' => false, 'example' => 'false'], ], ], 'responses' => [ @@ -9485,149 +5038,57 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC', - ], - 'DataCacheId' => [ - 'description' => '数据缓存ID。', - 'type' => 'string', - 'example' => 'edc-bp15l4vvys94oo******', - ], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => 'CA850ADA-****-4AC8-****-5B5990EAB7D0'], + 'ContainerName' => ['description' => '容器名称。', 'type' => 'string', 'example' => 'nginx'], + 'Content' => ['description' => '日志内容。', 'type' => 'string', 'example' => '{}'], ], ], ], ], 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'ImageCache.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageCacheNotSupport', - 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', - ], - [ - 'errorCode' => 'EipAddressPoolIpNotEnough', - 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', - ], - [ - 'errorCode' => 'DryRun.Success', - 'errorMessage' => 'This request is a dryrun request with successful result.', - ], - ], 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', - ], + ['errorCode' => 'Forbidden.Unauthorized', 'errorMessage' => 'You are not authorized to operate on the specified resource.', 'description' => '您在在未认证的情况下操作该资源'], + ], + 408 => [ + ['errorCode' => 'Request Timeout', 'errorMessage' => 'Request timed out, please try again later.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => '获取容器日志信息', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2025-03-28T05:43:33.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2025-03-28T03:48:42.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-03-22T06:54:03.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-09-05T09:45:54.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-12-07T07:58:19.000Z', 'description' => '请求参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerLog'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerLog', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC\\",\\n \\"DataCacheId\\": \\"edc-bp15l4vvys94oo******\\"\\n}","type":"json"}]', - 'title' => '创建数据缓存', - 'description' => '- 创建镜像缓存涉及资源计费。建议您提前了解相关计费信息。更多信息,请参见[数据缓存计费](~~2503093~~)。'."\n" - .'- 创建镜像缓存前,您需要评估待缓存数据的大小,如果数据大小超过设置的缓存大小,将会创建失败。'."\n" - .'- 创建数据缓存时,系统将自动创建一个ECI实例和一块ESSD云盘用于中转创建数据缓存。创建过程中请勿删除ECI实例和云盘,否则数据缓存将创建失败。'."\n" - .'- 创建数据缓存将生成对应的快照。请勿删除快照,否则数据缓存将会失效。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CA850ADA-****-4AC8-****-5B5990EAB7D0\\",\\n \\"ContainerName\\": \\"nginx\\",\\n \\"Content\\": \\"{}\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>CA850ADA-****-4AC8-****-5B5990EAB7D0</RequestId>\\n<ContainerName>nginx</ContainerName>\\n<Content>{}</Content>","errorExample":""}]', ], 'DescribeDataCaches' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -9640,32 +5101,18 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '179701', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'DataCacheId', @@ -9674,12 +5121,7 @@ 'schema' => [ 'description' => '数据缓存ID。', 'type' => 'array', - 'items' => [ - 'description' => '数据缓存ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'edc-bp1a7n7uawwwol******', - ], + 'items' => ['description' => '数据缓存ID。', 'type' => 'string', 'required' => false, 'example' => 'edc-bp1a7n7uawwwol******'], 'required' => false, 'docRequired' => false, 'maxItems' => 100, @@ -9688,22 +5130,12 @@ [ 'name' => 'Bucket', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存Bucket。默认为default。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['description' => '数据缓存Bucket。默认为default。', 'type' => 'string', 'required' => false, 'example' => 'default'], ], [ 'name' => 'Path', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存对应Virtual Host的目录。', - 'type' => 'string', - 'required' => false, - 'example' => '/data/models/', - ], + 'schema' => ['description' => '数据缓存对应Virtual Host的目录。', 'type' => 'string', 'required' => false, 'example' => '/data/models/'], ], [ 'name' => 'Tag', @@ -9716,18 +5148,8 @@ 'description' => '标签列表', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'testkey', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'testvalue', - ], + 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'testkey'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => 'testvalue'], ], 'required' => false, ], @@ -9738,35 +5160,19 @@ [ 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-acfmzw2jz2z****', - ], + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-acfmzw2jz2z****'], ], [ 'name' => 'Limit', 'in' => 'query', 'allowEmptyValue' => true, - 'schema' => [ - 'description' => '查询结果条数上限。默认值和最大值为20。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => '查询结果条数上限。默认值和最大值为20。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], [ 'name' => 'NextToken', 'in' => 'query', 'allowEmptyValue' => true, - 'schema' => [ - 'description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', - 'type' => 'string', - 'required' => false, - 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc', - ], + 'schema' => ['description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', 'type' => 'string', 'required' => false, 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc'], ], ], 'responses' => [ @@ -9774,11 +5180,7 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'B8756BA0-6452-419C-9727-37A6209C85E0', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'B8756BA0-6452-419C-9727-37A6209C85E0'], 'DataCaches' => [ 'description' => '数据缓存信息。', 'type' => 'array', @@ -9786,50 +5188,22 @@ 'description' => '数据缓存信息。', 'type' => 'object', 'properties' => [ - 'DataCacheId' => [ - 'description' => '数据缓存ID。', - 'type' => 'string', - 'example' => 'edc-bp15l4vvys94oo******'."\n", - ], - 'CreationTime' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2023-06-16T02:43Z', - ], - 'Status' => [ - 'description' => '数据缓存状态。可能值:'."\n" - ."\n" - .'- Loading:缓存数据中'."\n" - .'- Creating:创建中'."\n" - .'- Available:创建成功'."\n" - .'- Failed:创建失败'."\n" - .'- Updating:更新中'."\n" - .'- UpdateFailed:更新失败'."\n" - ."\n" - .'当状态为Available时,即可使用该数据缓存。', - 'type' => 'string', - 'example' => 'Available', - ], - 'Progress' => [ - 'description' => '创建进度。', - 'type' => 'string', - 'example' => '100%', - ], - 'LastMatchedTime' => [ - 'description' => '最新一次匹配数据缓存的时间。', - 'type' => 'string', - 'example' => '2023-06-18T02:43Z', - ], - 'ExpireDateTime' => [ - 'description' => '到期时间。', - 'type' => 'string', - 'example' => '2023-06-26T02:43Z'."\n", - ], - 'ContainerGroupId' => [ - 'description' => '创建数据缓存过程中,生成的ECI实例ID。', - 'type' => 'string', - 'example' => 'eci-8vb1y2w1dv7zeirn****', - ], + 'DataCacheId' => ['description' => '数据缓存ID。', 'type' => 'string', 'example' => 'edc-bp15l4vvys94oo******'."\n"], + 'CreationTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2023-06-16T02:43Z'], + 'Status' => ['description' => '数据缓存状态。可能值:'."\n" + ."\n" + .'- Loading:缓存数据中'."\n" + .'- Creating:创建中'."\n" + .'- Available:创建成功'."\n" + .'- Failed:创建失败'."\n" + .'- Updating:更新中'."\n" + .'- UpdateFailed:更新失败'."\n" + ."\n" + .'当状态为Available时,即可使用该数据缓存。', 'type' => 'string', 'example' => 'Available'], + 'Progress' => ['description' => '创建进度。', 'type' => 'string', 'example' => '100%'], + 'LastMatchedTime' => ['description' => '最新一次匹配数据缓存的时间。', 'type' => 'string', 'example' => '2023-06-18T02:43Z'], + 'ExpireDateTime' => ['description' => '到期时间。', 'type' => 'string', 'example' => '2023-06-26T02:43Z'."\n"], + 'ContainerGroupId' => ['description' => '创建数据缓存过程中,生成的ECI实例ID。', 'type' => 'string', 'example' => 'eci-8vb1y2w1dv7zeirn****'], 'Tags' => [ 'description' => '标签列表。', 'type' => 'array', @@ -9837,16 +5211,8 @@ 'description' => '标签列表。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'example' => 'testkey', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'example' => 'testvalue', - ], + 'Key' => ['description' => '标签键。', 'type' => 'string', 'example' => 'testkey'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'example' => 'testvalue'], ], ], ], @@ -9857,184 +5223,98 @@ 'description' => '事件列表。', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'description' => '事件类型。可能值:'."\n" - ."\n" - .'- Normal'."\n" - .'- Warning', - 'type' => 'string', - 'example' => 'Normal', - ], - 'LastTimestamp' => [ - 'description' => '事件结束时间。', - 'type' => 'string', - 'example' => '2021-06-16T02:24:48Z', - ], - 'Message' => [ - 'description' => '事件信息。', - 'type' => 'string', - 'example' => 'Successfully check data cache resource.', - ], - 'Name' => [ - 'description' => '事件名称。', - 'type' => 'string', - 'example' => 'datacache', - ], - 'Count' => [ - 'description' => '事件数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'FirstTimestamp' => [ - 'description' => '事件开始时间。', - 'type' => 'string', - 'example' => '2021-06-16T02:14:48Z', - ], - 'Reason' => [ - 'description' => '事件原因。', - 'type' => 'string', - 'example' => 'Started', - ], + 'Type' => ['description' => '事件类型。可能值:'."\n" + ."\n" + .'- Normal'."\n" + .'- Warning', 'type' => 'string', 'example' => 'Normal'], + 'LastTimestamp' => ['description' => '事件结束时间。', 'type' => 'string', 'example' => '2021-06-16T02:24:48Z'], + 'Message' => ['description' => '事件信息。', 'type' => 'string', 'example' => 'Successfully check data cache resource.'], + 'Name' => ['description' => '事件名称。', 'type' => 'string', 'example' => 'datacache'], + 'Count' => ['description' => '事件数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'FirstTimestamp' => ['description' => '事件开始时间。', 'type' => 'string', 'example' => '2021-06-16T02:14:48Z'], + 'Reason' => ['description' => '事件原因。', 'type' => 'string', 'example' => 'Started'], ], ], ], - 'RegionId' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'SnapshotId' => [ - 'description' => '快照ID。', - 'type' => 'string', - 'example' => 's-2zec5oj8e1yhxijt****', - ], - 'FlashSnapshotId' => [ - 'description' => '本地快照ID。', - 'type' => 'string', - 'example' => 's-bp12w3v37sit96t6****'."\n", - ], - 'ResourceGroupId' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'example' => 'rg-aek2hlt3ux4****', - ], - 'Size' => [ - 'description' => '数据缓存大小。单位为GiB。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '20', - ], - 'Name' => [ - 'description' => '数据缓存名称。', - 'type' => 'string', - 'example' => 'test', - ], + 'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'SnapshotId' => ['description' => '快照ID。', 'type' => 'string', 'example' => 's-2zec5oj8e1yhxijt****'], + 'FlashSnapshotId' => ['description' => '本地快照ID。', 'type' => 'string', 'example' => 's-bp12w3v37sit96t6****'."\n"], + 'ResourceGroupId' => ['description' => '资源组ID。', 'type' => 'string', 'example' => 'rg-aek2hlt3ux4****'], + 'Size' => ['description' => '数据缓存大小。单位为GiB。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'Name' => ['description' => '数据缓存名称。', 'type' => 'string', 'example' => 'test'], 'DataSource' => [ 'description' => '数据源信息。', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'description' => '数据源类型。可能值:'."\n" - ."\n" - .'- NAS'."\n" - .'- OSS'."\n" - .'- URL'."\n" - .'- SNAPSHOT', - 'type' => 'string', - 'example' => 'URL', - ], - 'Options' => [ - 'description' => '数据源的配置参数。', - 'type' => 'string', - 'example' => '{'."\n" - .' "options": {'."\n" - .' "path": "/",'."\n" - .' "server": "0ce1f4****-or***.cn-hangzhou.nas.aliyuncs.com",'."\n" - .' "vers": "3",'."\n" - .' "options": "nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport"'."\n" - .' },'."\n" - .' "type": "NAS"'."\n" - .'}', - ], + 'Type' => ['description' => '数据源类型。可能值:'."\n" + ."\n" + .'- NAS'."\n" + .'- OSS'."\n" + .'- URL'."\n" + .'- SNAPSHOT', 'type' => 'string', 'example' => 'URL'], + 'Options' => ['description' => '数据源的配置参数。', 'type' => 'string', 'example' => '{'."\n" + .' "options": {'."\n" + .' "path": "/",'."\n" + .' "server": "0ce1f4****-or***.cn-hangzhou.nas.aliyuncs.com",'."\n" + .' "vers": "3",'."\n" + .' "options": "nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport"'."\n" + .' },'."\n" + .' "type": "NAS"'."\n" + .'}'], ], ], - 'Bucket' => [ - 'description' => '数据缓存Bucket。', - 'type' => 'string', - 'example' => 'default', - ], - 'Path' => [ - 'description' => '数据缓存对应Virtual Host的目录。', - 'type' => 'string', - 'example' => '/data/models/', - ], + 'Bucket' => ['description' => '数据缓存Bucket。', 'type' => 'string', 'example' => 'default'], + 'Path' => ['description' => '数据缓存对应Virtual Host的目录。', 'type' => 'string', 'example' => '/data/models/'], ], ], ], - 'NextToken' => [ - 'description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', - 'type' => 'string', - 'example' => 'd78f2dd8-5979-42fe-xaee-b16db43be5bc', - ], - 'TotalCount' => [ - 'description' => '符合查询条件的结果条数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], + 'NextToken' => ['description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', 'type' => 'string', 'example' => 'd78f2dd8-5979-42fe-xaee-b16db43be5bc'], + 'TotalCount' => ['description' => '符合查询条件的结果条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], ], 403 => [ - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role does not belong to ECS.', - ], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role does not belong to ECS.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B8756BA0-6452-419C-9727-37A6209C85E0\\",\\n \\"DataCaches\\": [\\n {\\n \\"DataCacheId\\": \\"edc-bp15l4vvys94oo******\\\\n\\",\\n \\"CreationTime\\": \\"2023-06-16T02:43Z\\",\\n \\"Status\\": \\"Available\\",\\n \\"Progress\\": \\"100%\\",\\n \\"LastMatchedTime\\": \\"2023-06-18T02:43Z\\",\\n \\"ExpireDateTime\\": \\"2023-06-26T02:43Z\\\\n\\",\\n \\"ContainerGroupId\\": \\"eci-8vb1y2w1dv7zeirn****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"testkey\\",\\n \\"Value\\": \\"testvalue\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"LastTimestamp\\": \\"2021-06-16T02:24:48Z\\",\\n \\"Message\\": \\"Successfully check data cache resource.\\",\\n \\"Name\\": \\"datacache\\",\\n \\"Count\\": 1,\\n \\"FirstTimestamp\\": \\"2021-06-16T02:14:48Z\\",\\n \\"Reason\\": \\"Started\\"\\n }\\n ],\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"SnapshotId\\": \\"s-2zec5oj8e1yhxijt****\\",\\n \\"FlashSnapshotId\\": \\"s-bp12w3v37sit96t6****\\\\n\\",\\n \\"ResourceGroupId\\": \\"rg-aek2hlt3ux4****\\",\\n \\"Size\\": 20,\\n \\"Name\\": \\"test\\",\\n \\"DataSource\\": {\\n \\"Type\\": \\"URL\\",\\n \\"Options\\": \\"{\\\\n \\\\\\"options\\\\\\": {\\\\n \\\\\\"path\\\\\\": \\\\\\"/\\\\\\",\\\\n \\\\\\"server\\\\\\": \\\\\\"0ce1f4****-or***.cn-hangzhou.nas.aliyuncs.com\\\\\\",\\\\n \\\\\\"vers\\\\\\": \\\\\\"3\\\\\\",\\\\n \\\\\\"options\\\\\\": \\\\\\"nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport\\\\\\"\\\\n },\\\\n \\\\\\"type\\\\\\": \\\\\\"NAS\\\\\\"\\\\n}\\"\\n },\\n \\"Bucket\\": \\"default\\",\\n \\"Path\\": \\"/data/models/\\"\\n }\\n ],\\n \\"NextToken\\": \\"d78f2dd8-5979-42fe-xaee-b16db43be5bc\\",\\n \\"TotalCount\\": 2\\n}","type":"json"}]', 'title' => '查询数据缓存', 'summary' => '查询数据缓存信息。', - ], - 'UpdateDataCache' => [ - 'summary' => '更新一个数据缓存。', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2023-09-05T06:04:22.000Z', 'description' => '响应参数发生变更'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eci:DescribeDataCaches', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/{#datacacheId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B8756BA0-6452-419C-9727-37A6209C85E0\\",\\n \\"DataCaches\\": [\\n {\\n \\"DataCacheId\\": \\"edc-bp15l4vvys94oo******\\\\n\\",\\n \\"CreationTime\\": \\"2023-06-16T02:43Z\\",\\n \\"Status\\": \\"Available\\",\\n \\"Progress\\": \\"100%\\",\\n \\"LastMatchedTime\\": \\"2023-06-18T02:43Z\\",\\n \\"ExpireDateTime\\": \\"2023-06-26T02:43Z\\\\n\\",\\n \\"ContainerGroupId\\": \\"eci-8vb1y2w1dv7zeirn****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"testkey\\",\\n \\"Value\\": \\"testvalue\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"LastTimestamp\\": \\"2021-06-16T02:24:48Z\\",\\n \\"Message\\": \\"Successfully check data cache resource.\\",\\n \\"Name\\": \\"datacache\\",\\n \\"Count\\": 1,\\n \\"FirstTimestamp\\": \\"2021-06-16T02:14:48Z\\",\\n \\"Reason\\": \\"Started\\"\\n }\\n ],\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"SnapshotId\\": \\"s-2zec5oj8e1yhxijt****\\",\\n \\"FlashSnapshotId\\": \\"s-bp12w3v37sit96t6****\\\\n\\",\\n \\"ResourceGroupId\\": \\"rg-aek2hlt3ux4****\\",\\n \\"Size\\": 20,\\n \\"Name\\": \\"test\\",\\n \\"DataSource\\": {\\n \\"Type\\": \\"URL\\",\\n \\"Options\\": \\"{\\\\n \\\\\\"options\\\\\\": {\\\\n \\\\\\"path\\\\\\": \\\\\\"/\\\\\\",\\\\n \\\\\\"server\\\\\\": \\\\\\"0ce1f4****-or***.cn-hangzhou.nas.aliyuncs.com\\\\\\",\\\\n \\\\\\"vers\\\\\\": \\\\\\"3\\\\\\",\\\\n \\\\\\"options\\\\\\": \\\\\\"nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport\\\\\\"\\\\n },\\\\n \\\\\\"type\\\\\\": \\\\\\"NAS\\\\\\"\\\\n}\\"\\n },\\n \\"Bucket\\": \\"default\\",\\n \\"Path\\": \\"/data/models/\\"\\n }\\n ],\\n \\"NextToken\\": \\"d78f2dd8-5979-42fe-xaee-b16db43be5bc\\",\\n \\"TotalCount\\": 2\\n}","type":"json"}]', + ], + 'DescribeImageCaches' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -10043,182 +5323,59 @@ 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'paid', - 'abilityTreeCode' => '180519', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '17734', + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'DataCacheId', - 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'edc-bp1a7n7uawwwol******', - ], - ], - [ - 'name' => 'SecurityGroupId', - 'in' => 'query', - 'schema' => [ - 'description' => '安全组ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'sg-2ze81zoc3yl7a3we****', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'VSwitchId', + 'name' => 'ImageCacheId', 'in' => 'query', - 'schema' => [ - 'description' => '交换机ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'vsw-2ze23nqzig8inprou****', - ], + 'schema' => ['description' => '镜像缓存ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'imc-bp195erqe9o2pb09****'], ], [ - 'name' => 'Bucket', + 'name' => 'ImageCacheName', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存Bucket。默认为default。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['description' => '镜像缓存名称。', 'type' => 'string', 'required' => false, 'example' => 'testcache'], ], [ - 'name' => 'Name', + 'name' => 'SnapshotId', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存名称。', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'test', - ], + 'schema' => ['description' => '镜像缓存对应的快照ID。', 'type' => 'string', 'required' => false, 'example' => 's-2zec5oj8e1yhxijt****'], ], [ - 'name' => 'Size', - 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存大小。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - ], - [ - 'name' => 'DataSource', + 'name' => 'Image', 'in' => 'query', - 'style' => 'flat', - 'schema' => [ - 'description' => '数据源信息。', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => '数据源类型。取值范围:'."\n" - ."\n" - .'- URL'."\n" - .'- NAS'."\n" - .'- OSS'."\n" - .'- SNAPSHOT', - 'type' => 'string', - 'required' => false, - 'example' => 'URL', - ], - 'Options' => [ - 'description' => '数据源的配置参数。', - 'type' => 'object', - 'required' => false, - 'additionalProperties' => [ - 'type' => 'string', - 'example' => '{'."\n" - .' "#10#repoSource": "HuggingFace/Model",'."\n" - .' "#6#repoId": "stabilityai/stable-diffusion-2-1"'."\n" - .'}', - 'description' => '数据源的配置参数。不同类型数据源要传入的参数不同。各类型数据源及其配置参数说明,请参见[创建数据缓存](~~2391456~~)。', - ], - ], - ], - 'required' => false, - 'docRequired' => false, - ], - ], - [ - 'name' => 'RetentionDays', - 'in' => 'query', - 'schema' => [ - 'description' => '保留天数。过期会被清理。默认不过期。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '7', - ], + 'schema' => ['description' => '容器镜像。', 'type' => 'string', 'required' => false, 'example' => 'nginx'], ], [ 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-acfmzw2jz2z****', - ], + 'schema' => ['description' => '所属资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-2df3isufhi38****'], ], [ 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '标签列表。', + 'description' => '镜像缓存绑定的标签信息。', 'type' => 'array', 'items' => [ - 'description' => '标签列表。', + 'description' => '镜像缓存绑定的标签信息,最多20个。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'testkey', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'testvalue', - ], + 'Key' => ['description' => '镜像缓存标签键。', 'type' => 'string', 'required' => false, 'example' => 'imc'], + 'Value' => ['description' => '镜像缓存标签值。', 'type' => 'string', 'required' => false, 'example' => 'test'], ], 'required' => false, ], @@ -10227,76 +5384,41 @@ ], ], [ - 'name' => 'ClientToken', + 'name' => 'MatchImage', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', + 'description' => '指定容器镜像,用于查询最佳匹配的镜像缓存,最多100个。', + 'type' => 'array', + 'items' => ['description' => '指定容器镜像,用于查询最佳匹配的镜像缓存,最多100个。', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl'], 'required' => false, - 'example' => '2f22dc16-cad0-4d3f-87e5-91e604756547', + 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', + 'maxItems' => 101, ], ], [ - 'name' => 'EipInstanceId', + 'name' => 'Limit', 'in' => 'query', - 'schema' => [ - 'description' => '弹性公网IP。如果VPC没有配置NAT网关,可以绑定弹性公网IP,以便拉取公网数据。', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-2zedsm5mfl3uhdj2d****', - ], + 'allowEmptyValue' => true, + 'schema' => ['description' => '查询结果条数上限。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], [ - 'name' => 'EipCreateParam', + 'name' => 'NextToken', 'in' => 'query', - 'style' => 'flat', - 'schema' => [ - 'description' => '创建一个弹性公网IP(EIP)并绑定。'."\n" - .'如果VPC没有配置NAT网关,可以绑定EIP,以便拉取公网数据。', - 'type' => 'object', - 'properties' => [ - 'Bandwidth' => [ - 'description' => 'EIP带宽。单位为Mbps。默认为5 Mbps。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - 'CommonBandwidthPackage' => [ - 'description' => '绑定已有的共享带宽包。', - 'type' => 'string', - 'required' => false, - 'example' => 'cbwp-2zeukbj916scmj51m****', - ], - 'InternetChargeType' => [ - 'description' => 'EIP的计量方式。取值范围:'."\n" - ."\n" - .'- PayByBandwidth:按带宽计费'."\n" - .'- PayByTraffic:按流量计费', - 'type' => 'string', - 'required' => false, - 'example' => 'PayByTraffic', - ], - 'PublicIpAddressPoolId' => [ - 'description' => 'IP地址池ID。'."\n" - .'EIP将从该IP地址池中分配。'."\n" - .'IP地址池功能默认不开放。如需使用,请在配额中心申请IP地址池功能权益配额。', - 'type' => 'string', - 'required' => false, - 'example' => 'pippool-bp187arfugi543y1s****', - ], - 'ISP' => [ - 'description' => 'EIP的线路类型。取值范围:'."\n" - ."\n" - .'- BGP(默认值):BGP(多线)线路'."\n" - .'- BGP_PRO:BGP(多线)精品线路', - 'type' => 'string', - 'required' => false, - 'example' => 'BGP', - ], - ], - 'required' => false, - ], + 'allowEmptyValue' => true, + 'schema' => ['description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', 'type' => 'string', 'required' => false, 'example' => 'AAAAAdDWBF2****'], + ], + [ + 'name' => 'ImageFullMatch', + 'in' => 'query', + 'schema' => ['description' => '是否完全匹配容器镜像。 '."\n" + .'在配置了MatchImage取值的情况下,进一步过滤查询结果。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + ], + [ + 'name' => 'ImageMatchCountRequest', + 'in' => 'query', + 'schema' => ['description' => '完全匹配容器镜像的镜像缓存个数。 '."\n" + .'在配置了MatchImage取值的情况下,进一步过滤查询结果。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'], ], ], 'responses' => [ @@ -10304,776 +5426,597 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'BD8BBB43-8E05-5F46-89A9-2512D8A324A2', + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '39FC2E43-3DD7-4CEF-9EF4-E4AD6E635301'], + 'ImageCaches' => [ + 'description' => '镜像缓存信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '镜像缓存信息列表。', + 'type' => 'object', + 'properties' => [ + 'Images' => [ + 'description' => '镜像缓存包含的镜像列表。', + 'type' => 'array', + 'items' => ['description' => '镜像缓存包含的镜像列表。', 'type' => 'string', 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl'], + ], + 'CreationTime' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2021-02-09T02:24:07Z'], + 'Status' => ['description' => '镜像缓存状态。可能值:'."\n" + ."\n" + .'- Preparing:准备中'."\n" + .'- Creating:创建中'."\n" + .'- Ready:创建完成'."\n" + .'- Failed:创建失败'."\n" + .'- Updating:更新中'."\n" + .'- UpdateFailed:更新失败'."\n" + ."\n" + .'当状态为Ready时,即可使用该镜像缓存。', 'type' => 'string', 'example' => 'Ready'], + 'Progress' => ['description' => '镜像缓存对应快照的创建进度。'."\n" + ."\n" + .'> 如果开启了极速镜像缓存功能,将先创建一份临时使用的本地快照再创建一份标准快照,该进度为标准快照的创建进度。', 'type' => 'string', 'example' => '100%'], + 'ExpireDateTime' => ['description' => '到期时间。', 'type' => 'string', 'example' => '2019-11-10T09:00:48Z'], + 'LastMatchedTime' => ['description' => '最新一次匹配到镜像缓存的时间。', 'type' => 'string', 'example' => '2021-08-18T03:48:10Z'], + 'ContainerGroupId' => ['description' => '容器组ID。', 'type' => 'string', 'example' => 'eci-bp18oq3m15prd9jb****'], + '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' => [ + 'Type' => ['description' => '事件类型。', 'type' => 'string', 'example' => 'Normal'], + 'LastTimestamp' => ['description' => '事件结束时间。', 'type' => 'string', 'example' => '2021-02-09T02:24:48Z'], + 'Message' => ['description' => '事件消息。', 'type' => 'string', 'example' => 'Successfully check image cache resource.'], + 'Name' => ['description' => '事件名称。', 'type' => 'string', 'example' => 'imagetest.1661f31f851a****'], + 'Count' => ['description' => '事件数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'FirstTimestamp' => ['description' => '事件开始时间。', 'type' => 'string', 'example' => '2021-02-09T02:24:48Z'], + 'Reason' => ['description' => '事件原因。', 'type' => 'string', 'example' => 'Started'], + ], + ], + ], + 'ImageCacheId' => ['description' => '镜像缓存ID。'."\n", 'type' => 'string', 'example' => 'imc-bp195erqe9o2pb09****'], + 'RegionId' => ['description' => '所属地域。', 'type' => 'string', 'example' => 'cn-beijing'], + 'SnapshotId' => ['description' => '镜像缓存对应的快照ID。', 'type' => 'string', 'example' => 's-2zec5oj8e1yhxijt****'], + 'FlashSnapshotId' => ['description' => '本地快照ID。开启极速镜像缓存功能后,将临时创建一份本地快照。', 'type' => 'string', 'example' => 's-bp12w3v37sit96t6****'], + 'ResourceGroupId' => ['description' => '所属资源组ID。', 'type' => 'string', 'example' => 'rg-2df3isufhi38****'], + 'ImageCacheSize' => ['description' => '镜像缓存大小。单位:GiB。', 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'ImageCacheName' => ['description' => '镜像缓存名称。', 'type' => 'string', 'example' => 'imagetest'], + 'EliminationStrategy' => ['description' => '镜像缓存的淘汰策略。默认为空,表示一直保留。'."\n" + ."\n" + .'支持配置为LRU,表示可以被自动删除。当镜像缓存数量达到配额限制时,系统将自动删除最不常用的EliminationStrategy为LRU的镜像缓存。', 'type' => 'string', 'example' => 'LRU'], + ], + ], ], + 'NextToken' => ['description' => '本次调用返回的查询凭证值。', 'type' => 'string', 'example' => 'AAAAAdDWBF2****'], + 'TotalCount' => ['description' => '查询结果总条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '15'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'ImageCache.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageCacheNotSupport', - 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', - ], - [ - 'errorCode' => 'EipAddressPoolIpNotEnough', - 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', - ], + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], ], 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', - ], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role does not belong to ECS.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => '批量查询镜像缓存信息', + 'summary' => '调用DescribeImageCaches批量查询镜像缓存信息。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2023-09-05T06:04:22.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-04-17T06:16:06.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-10-09T04:06:37.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ['createdAt' => '2021-09-22T09:02:50.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-09-22T09:02:50.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2021-08-10T06:19:05.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2021-06-10T01:40:39.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2021-06-10T01:40:39.000Z', 'description' => '响应参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeImageCaches', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/*'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#imagecacheId}'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BD8BBB43-8E05-5F46-89A9-2512D8A324A2\\"\\n}","type":"json"}]', - 'title' => '更新数据缓存', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"39FC2E43-3DD7-4CEF-9EF4-E4AD6E635301\\",\\n \\"ImageCaches\\": [\\n {\\n \\"Images\\": [\\n \\"registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl\\"\\n ],\\n \\"CreationTime\\": \\"2021-02-09T02:24:07Z\\",\\n \\"Status\\": \\"Ready\\",\\n \\"Progress\\": \\"100%\\",\\n \\"ExpireDateTime\\": \\"2019-11-10T09:00:48Z\\",\\n \\"LastMatchedTime\\": \\"2021-08-18T03:48:10Z\\",\\n \\"ContainerGroupId\\": \\"eci-bp18oq3m15prd9jb****\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"imc\\",\\n \\"Value\\": \\"test\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"LastTimestamp\\": \\"2021-02-09T02:24:48Z\\",\\n \\"Message\\": \\"Successfully check image cache resource.\\",\\n \\"Name\\": \\"imagetest.1661f31f851a****\\",\\n \\"Count\\": 1,\\n \\"FirstTimestamp\\": \\"2021-02-09T02:24:48Z\\",\\n \\"Reason\\": \\"Started\\"\\n }\\n ],\\n \\"ImageCacheId\\": \\"imc-bp195erqe9o2pb09****\\",\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"SnapshotId\\": \\"s-2zec5oj8e1yhxijt****\\",\\n \\"FlashSnapshotId\\": \\"s-bp12w3v37sit96t6****\\",\\n \\"ResourceGroupId\\": \\"rg-2df3isufhi38****\\",\\n \\"ImageCacheSize\\": 20,\\n \\"ImageCacheName\\": \\"imagetest\\",\\n \\"EliminationStrategy\\": \\"LRU\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAAdDWBF2****\\",\\n \\"TotalCount\\": 15\\n}","errorExample":""},{"type":"xml","example":"<DescribeImageCachesResponse>\\n <RequestId>39FC2E43-3DD7-4CEF-9EF4-E4AD6E635301</RequestId>\\n <ImageCaches>\\n <Images>registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl</Images>\\n <CreationTime>2021-02-09T02:24:07Z</CreationTime>\\n <Status>Ready</Status>\\n <Progress>100%</Progress>\\n <ExpireDateTime>2019-11-10T09:00:48Z</ExpireDateTime>\\n <LastMatchedTime>2021-08-18T03:48:10Z</LastMatchedTime>\\n <ContainerGroupId>eci-bp18oq3m15prd9jb****</ContainerGroupId>\\n <Tags>\\n <Key>imc</Key>\\n <Value>test</Value>\\n </Tags>\\n <Events>\\n <Type>Normal</Type>\\n <LastTimestamp>2021-02-09T02:24:48Z</LastTimestamp>\\n <Message>Successfully check image cache resource.</Message>\\n <Name>imagetest.1661f31f851a****</Name>\\n <Count>1</Count>\\n <FirstTimestamp>2021-02-09T02:24:48Z</FirstTimestamp>\\n </Events>\\n <ImageCacheId>imc-bp195erqe9o2pb09****</ImageCacheId>\\n <RegionId>cn-beijing</RegionId>\\n <SnapshotId>s-2zec5oj8e1yhxijt****</SnapshotId>\\n <FlashSnapshotId>s-bp12w3v37sit96t6****</FlashSnapshotId>\\n <ResourceGroupId>rg-2df3isufhi38****</ResourceGroupId>\\n <ImageCacheSize>20</ImageCacheSize>\\n <ImageCacheName>imagetest</ImageCacheName>\\n <EliminationStrategy>LRU</EliminationStrategy>\\n </ImageCaches>\\n <NextToken>AAAAAdDWBF2****</NextToken>\\n <TotalCount>15</TotalCount>\\n</DescribeImageCachesResponse>","errorExample":""}]', ], - 'CopyDataCache' => [ - 'summary' => '将数据缓存从一个地域拷贝到另一个地域。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeInstanceOpsRecords' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'paid', - 'abilityTreeCode' => '186053', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '105962', + 'abilityTreeNodes' => ['FEATUREeciXQE3ZY', 'FEATUREeciO9KN4L'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '已有数据缓存所在地域。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '已有数据缓存所在地域。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-beijing', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'Bucket', + 'name' => 'ContainerGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存Bucket。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], + 'schema' => ['description' => 'ECI实例ID。', 'type' => 'string', 'required' => true, 'example' => 'eci-bp1dvysdafbh00t7****'], ], [ - 'name' => 'Path', + 'name' => 'OpsType', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存路径', - 'type' => 'string', - 'required' => false, - 'example' => '/bucket-test', - ], + 'schema' => ['description' => '运维任务类型。取值范围:'."\n" + ."\n" + .'- coredump'."\n" + .'- tcpdump', 'type' => 'string', 'required' => true, 'example' => 'coredump'], ], - [ - 'name' => 'Name', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '数据缓存名称。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'test', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3'], + 'Records' => [ + 'description' => '运维任务信息合集。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CreateTime' => ['description' => '运维任务创建时间。', 'type' => 'string', 'example' => '2024-07-22T09:27:43Z'], + 'ExpireTime' => ['description' => '运维任务过期时间。', 'type' => 'string', 'example' => '2024-07-22T21:27:43Z'], + 'OpsType' => ['description' => '运维任务类型。', 'type' => 'string', 'example' => 'Coredump'], + 'OpsStatus' => ['description' => '运维任务状态。可能值:'."\n" + .'- Ready:开启运维任务。'."\n" + .'- Failed:运维任务执行失败。'."\n" + .'- Expired:配置下发过期,有效期内未触发运维任务。'."\n" + .'- Closed:关闭运维任务。'."\n" + .'- Success:运维任务执行成功。', 'type' => 'string', 'example' => 'Ready'], + 'ResultType' => ['description' => '运维结果类型。当OpsStatus为Success时返回该参数。 '."\n" + .'目前仅支持返回Oss,表示运维任务生成的文件将保存到OSS中。', 'type' => 'string', 'example' => 'Oss'], + 'ResultContent' => ['description' => '运维结果内容,即运维任务所生成文件在的下载地址。当OpsStatus为Success时返回该参数。', 'type' => 'string', 'example' => 'http://eci-******'], + ], + ], + ], + ], ], ], + ], + 'title' => '查询运维任务信息', + 'summary' => '调用DescribeInstanceOpsRecords查询运维任务信息。', + 'changeSet' => [ + ['createdAt' => '2021-12-17T02:12:03.000Z', 'description' => 'OpenAPI 下线'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ [ - 'name' => 'RetentionDays', - 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存保留天数。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '7', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeInstanceOpsRecords', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\",\\n \\"Records\\": [\\n {\\n \\"CreateTime\\": \\"2024-07-22T09:27:43Z\\",\\n \\"ExpireTime\\": \\"2024-07-22T21:27:43Z\\",\\n \\"OpsType\\": \\"Coredump\\",\\n \\"OpsStatus\\": \\"Ready\\",\\n \\"ResultType\\": \\"Oss\\",\\n \\"ResultContent\\": \\"http://eci-******\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeInstanceOpsRecordsResponse>\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>\\n <Records>\\n <CreateTime>2021-12-29T15:00:00Z</CreateTime>\\n <ExpireTime>2099-12-29T15:00:00Z</ExpireTime>\\n <OpsType>coredump</OpsType>\\n <OpsStatus>Ready</OpsStatus>\\n <ResultType>OSS</ResultType>\\n <ResultContent>https://******</ResultContent>\\n </Records>\\n</DescribeInstanceOpsRecordsResponse>","errorExample":""}]', + ], + 'DescribeMultiContainerGroupMetric' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'Tag', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '数据缓存标签列表。', - 'type' => 'array', - 'items' => [ - 'description' => '数据缓存标签列表。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'testkey', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'testvalue', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'abilityTreeCode' => '17736', + 'abilityTreeNodes' => ['FEATUREeciO8VNZM'], + ], + 'parameters' => [ [ - 'name' => 'ResourceGroupId', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存所属资源组 。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-2df3isufhi38****', - ], + 'schema' => ['description' => '地域ID。'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ClientToken', + 'name' => 'ContainerGroupIds', 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000 ', - ], + 'schema' => ['description' => 'ECI实例ID,即容器组ID。格式为JSON数组,一次最多支持20个ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '["eci-2zegym1qhbmdfr1s****","eci-2ze39w5svzj5ic34****"]'], ], [ - 'name' => 'DataCacheId', + 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'edc-bp15l4vvys94oo******'."\n", - ], + 'schema' => ['description' => '实例所属的资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-acfmzw2jz2z****'], ], [ - 'name' => 'DestinationRegionId', + 'name' => 'MetricType', 'in' => 'query', - 'schema' => [ - 'description' => '要拷贝到的目的地域。', - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '监控信息类型。目前仅支持配置为summary,表示返回Records。', 'type' => 'string', 'required' => false, 'example' => 'summary'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回参数列表。', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '58EE0CB3-C864-5395-A4F7-24F425074839', - ], - 'DataCacheId' => [ - 'description' => '拷贝到新的地域后,生成的数据缓存ID。', - 'type' => 'string', - 'example' => 'edc-bp1423y6d7v7l6ua****', + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => 'B8756BA0-6452-419C-9727-37A6209C85E0'], + 'MonitorDatas' => [ + 'description' => '监控信息集合。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Records' => [ + 'description' => '监控数据详情。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Network' => [ + 'description' => '网络数据。', + 'type' => 'object', + 'properties' => [ + 'Interfaces' => [ + 'description' => '网卡数据。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RxErrors' => ['description' => '累计接收错误数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'TxDrops' => ['description' => '累计发送丢包数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'TxBytes' => ['description' => '累计发送字节数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1381805699'], + 'RxPackets' => ['description' => '累计接收包数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '4800583'], + 'TxPackets' => ['description' => '累计发送包数量。', 'type' => 'integer', 'format' => 'int64', 'example' => '5158427'], + 'Name' => ['description' => '网卡名称。', 'type' => 'string', 'example' => 'eth0'], + 'TxErrors' => ['description' => '累计发送错误数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'RxBytes' => ['description' => '累计接收字节数。', 'type' => 'integer', 'format' => 'int64', 'example' => '505001954'], + 'RxDrops' => ['description' => '累计接收丢包数。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + ], + ], + ], + ], + ], + 'CPU' => [ + 'description' => 'CPU数据。', + 'type' => 'object', + 'properties' => [ + 'UsageNanoCores' => ['description' => 'CPU在采样窗口内的使用量(纳秒)。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'Limit' => ['description' => 'CPU使用上限(CPU核数*1000)。', 'type' => 'integer', 'format' => 'int64', 'example' => '2000'], + 'UsageCoreNanoSeconds' => ['description' => 'CPU历史使用总量。', 'type' => 'integer', 'format' => 'int64', 'example' => '70769883'], + 'Load' => ['description' => '最近10秒的平均负载情况。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + ], + ], + 'Disk' => [ + 'description' => '磁盘数据。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'WriteBytes' => ['description' => '磁盘写入的数据量,单位为Byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '1375109120'], + 'Device' => ['description' => '磁盘名称。', 'type' => 'string', 'example' => '/dev/vda'], + 'WriteIo' => ['description' => '该参数暂未开放使用。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'ReadBytes' => ['description' => '磁盘读取的数据量,单位为Byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '210714112'], + 'ReadIo' => ['description' => '该参数暂未开放使用。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + ], + ], + ], + 'Timestamp' => ['description' => '监控数据对应的统计时间。格式为RFC3339时间格式。', 'type' => 'string', 'example' => '2019-12-19T02:31:54Z'], + 'Memory' => [ + 'description' => '内存数据。', + 'type' => 'object', + 'properties' => [ + 'Rss' => ['description' => '常驻内存集,即实际使用的物理内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '1593344'], + 'UsageBytes' => ['description' => '已使用内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '11153408'], + 'WorkingSet' => ['description' => '当前内存工作集使用量。', 'type' => 'integer', 'format' => 'int64', 'example' => '5521408'], + 'AvailableBytes' => ['description' => '可用内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '4289445888'], + 'Cache' => ['description' => '缓存。', 'type' => 'integer', 'format' => 'int64', 'example' => '7028736'], + ], + ], + 'Containers' => [ + 'description' => '容器的监控数据详情。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'CPU' => [ + 'description' => '容器的CPU数据。', + 'type' => 'object', + 'properties' => [ + 'UsageNanoCores' => ['description' => 'CPU在采样窗口内的使用量(纳秒)。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'Limit' => ['description' => 'CPU使用上限(CPU核数*1000)。', 'type' => 'integer', 'format' => 'int64', 'example' => '321234'], + 'UsageCoreNanoSeconds' => ['description' => 'CPU历史使用总量。', 'type' => 'integer', 'format' => 'int64', 'example' => '40876694'], + 'Load' => ['description' => '最近10秒的平均负载情况。', 'type' => 'integer', 'format' => 'int64', 'example' => '12341'], + ], + ], + 'Memory' => [ + 'description' => '容器的内存数据。', + 'type' => 'object', + 'properties' => [ + 'Rss' => ['description' => '常驻内存集,即实际使用的物理内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + 'UsageBytes' => ['description' => ' 已使用内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + 'WorkingSet' => ['description' => '当前内存工作集使用量。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + 'AvailableBytes' => ['description' => '可用内存。', 'type' => 'integer', 'format' => 'int64', 'example' => '4285091840'], + 'Cache' => ['description' => '缓存。', 'type' => 'integer', 'format' => 'int64', 'example' => '9289728'], + ], + ], + 'Name' => ['description' => '名称。', 'type' => 'string', 'example' => 'test1'], + ], + ], + ], + 'Filesystem' => [ + 'description' => '文件系统分区数据。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Capacity' => ['description' => '空间总量。', 'type' => 'integer', 'format' => 'int64', 'example' => '41610981376'], + 'Available' => ['description' => '可用空间。', 'type' => 'integer', 'format' => 'int64', 'example' => '35319836672'], + 'FsName' => ['description' => '分区名称。', 'type' => 'string', 'example' => '/dev/root'], + 'Usage' => ['description' => '已使用空间。', 'type' => 'integer', 'format' => 'int64', 'example' => '4368744448'], + ], + ], + ], + ], + ], + ], + 'ContainerGroupId' => ['description' => '实例ID,即容器组ID。', 'type' => 'string', 'example' => 'eci-bp15oolgorelvhfb****'], + ], + ], ], ], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'ImageCache.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageCacheNotSupport', - 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', - ], - [ - 'errorCode' => 'EipAddressPoolIpNotEnough', - 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', - ], - ], - 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', + 'title' => '查询多个ECI实例的监控数据', + 'summary' => '调用DescribeContainerGroupMetric查询一个ECI实例的监控数据。', + 'description' => '- 仅返回每个ECI实例最新的一条监控信息。'."\n" + .'- 仅支持查询创建时间晚于北京时间2019年04月03日15时的ECI实例的监控数据。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2025-03-28T05:43:32.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2025-03-28T03:48:42.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-09-19T07:28:43.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-09-15T08:17:03.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-09-15T08:17:03.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-07-11T03:51:54.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-04-26T12:05:48.000Z', 'description' => '响应参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '2000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeMultiContainerGroupMetric'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeMultiContainerGroupMetric', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"58EE0CB3-C864-5395-A4F7-24F425074839\\",\\n \\"DataCacheId\\": \\"edc-bp1423y6d7v7l6ua****\\"\\n}","type":"json"}]', - 'title' => '拷贝数据缓存', - 'description' => '数据缓存不支持直接跨地域使用,通过本接口可以将数据缓存从一个地域拷贝到另一个地域。该接口适用于以下场景:'."\n" - .'- 需要在多个地域使用数据缓存,在A地域已有数据缓存的情况,可以通过本接口快速拷贝到B地域。'."\n" - .'- 对于中国内地地域的用户,创建数据缓存时如果直接拉取国外地址的数据,可能会因为网络限制导致数据拉取过慢,此时可以先在非中国内地的地域(例如中国香港)创建数据缓存,然后通过本接口拷贝到中国内地地域。'."\n" - ."\n\n" - .'><notice>拷贝数据缓存的过程相当于复制快照,费用涉及复制过程产生的流量费用以及最终生成的数据缓存的存储费用。></notice>', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B8756BA0-6452-419C-9727-37A6209C85E0\\",\\n \\"MonitorDatas\\": [\\n {\\n \\"Records\\": [\\n {\\n \\"Network\\": {\\n \\"Interfaces\\": [\\n {\\n \\"RxErrors\\": 0,\\n \\"TxDrops\\": 0,\\n \\"TxBytes\\": 1381805699,\\n \\"RxPackets\\": 4800583,\\n \\"TxPackets\\": 5158427,\\n \\"Name\\": \\"eth0\\",\\n \\"TxErrors\\": 0,\\n \\"RxBytes\\": 505001954,\\n \\"RxDrops\\": 0\\n }\\n ]\\n },\\n \\"CPU\\": {\\n \\"UsageNanoCores\\": 0,\\n \\"Limit\\": 2000,\\n \\"UsageCoreNanoSeconds\\": 70769883,\\n \\"Load\\": 0\\n },\\n \\"Disk\\": [\\n {\\n \\"WriteBytes\\": 1375109120,\\n \\"Device\\": \\"/dev/vda\\",\\n \\"WriteIo\\": 123,\\n \\"ReadBytes\\": 210714112,\\n \\"ReadIo\\": 123\\n }\\n ],\\n \\"Timestamp\\": \\"2019-12-19T02:31:54Z\\",\\n \\"Memory\\": {\\n \\"Rss\\": 1593344,\\n \\"UsageBytes\\": 11153408,\\n \\"WorkingSet\\": 5521408,\\n \\"AvailableBytes\\": 4289445888,\\n \\"Cache\\": 7028736\\n },\\n \\"Containers\\": [\\n {\\n \\"CPU\\": {\\n \\"UsageNanoCores\\": 0,\\n \\"Limit\\": 321234,\\n \\"UsageCoreNanoSeconds\\": 40876694,\\n \\"Load\\": 12341\\n },\\n \\"Memory\\": {\\n \\"Rss\\": 9289728,\\n \\"UsageBytes\\": 9289728,\\n \\"WorkingSet\\": 9289728,\\n \\"AvailableBytes\\": 4285091840,\\n \\"Cache\\": 9289728\\n },\\n \\"Name\\": \\"test1\\"\\n }\\n ],\\n \\"Filesystem\\": [\\n {\\n \\"Capacity\\": 41610981376,\\n \\"Available\\": 35319836672,\\n \\"FsName\\": \\"/dev/root\\",\\n \\"Usage\\": 4368744448\\n }\\n ]\\n }\\n ],\\n \\"ContainerGroupId\\": \\"eci-bp15oolgorelvhfb****\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeMultiContainerGroupMetricResponse>\\n <RequestId>3BB0E196-5882-4038-BE05-D0765CA13236</RequestId>\\n <MonitorDatas>\\n <ContainerGroupId>eci-2zegym1qhbmdfr1s****</ContainerGroupId>\\n <Records>\\n <Memory>\\n <UsageBytes>4005888</UsageBytes>\\n <Rss>1413120</Rss>\\n <AvailableBytes>4291596288</AvailableBytes>\\n <WorkingSet>3371008</WorkingSet>\\n <Cache>0</Cache>\\n </Memory>\\n <Network>\\n <Interfaces>\\n <RxPackets>1822804</RxPackets>\\n <TxDrops>0</TxDrops>\\n <RxDrops>0</RxDrops>\\n <TxErrors>0</TxErrors>\\n <RxErrors>0</RxErrors>\\n <TxPackets>1694857</TxPackets>\\n <RxBytes>660431995</RxBytes>\\n <TxBytes>410762742</TxBytes>\\n <Name>eth0</Name>\\n </Interfaces>\\n </Network>\\n <Containers>\\n <Memory>\\n <UsageBytes>2854912</UsageBytes>\\n <Rss>1355776</Rss>\\n <AvailableBytes>0</AvailableBytes>\\n <WorkingSet>2842624</WorkingSet>\\n <Cache>0</Cache>\\n </Memory>\\n <CPU>\\n <UsageCoreNanoSeconds>37824896</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <Limit>0</Limit>\\n <UsageNanoCores>0</UsageNanoCores>\\n </CPU>\\n <Name>nginx</Name>\\n </Containers>\\n <CPU>\\n <UsageCoreNanoSeconds>72555191</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <Limit>2000</Limit>\\n <UsageNanoCores>0</UsageNanoCores>\\n </CPU>\\n <Filesystem>\\n <Usage>37130240</Usage>\\n <FsName>/dev/vda2</FsName>\\n <Capacity>511647744</Capacity>\\n <Available>436940800</Available>\\n </Filesystem>\\n <Disk>\\n <WriteIo>0</WriteIo>\\n <Device>/dev/vda</Device>\\n <ReadIo>0</ReadIo>\\n <ReadBytes>273759744</ReadBytes>\\n <WriteBytes>2066857984</WriteBytes>\\n </Disk>\\n <Timestamp/>\\n </Records>\\n </MonitorDatas>\\n <MonitorDatas>\\n <ContainerGroupId>eci-2ze39w5svzj5ic34****</ContainerGroupId>\\n <Records>\\n <Memory>\\n <UsageBytes>6463488</UsageBytes>\\n <Rss>3149824</Rss>\\n <AvailableBytes>4289142784</AvailableBytes>\\n <WorkingSet>5824512</WorkingSet>\\n <Cache>0</Cache>\\n </Memory>\\n <Network>\\n <Interfaces>\\n <RxPackets>1764600</RxPackets>\\n <TxDrops>0</TxDrops>\\n <RxDrops>0</RxDrops>\\n <TxErrors>0</TxErrors>\\n <RxErrors>0</RxErrors>\\n <TxPackets>1641017</TxPackets>\\n <RxBytes>596649892</RxBytes>\\n <TxBytes>406628708</TxBytes>\\n <Name>eth0</Name>\\n </Interfaces>\\n </Network>\\n <Containers>\\n <Memory>\\n <UsageBytes>5242880</UsageBytes>\\n <Rss>3149824</Rss>\\n <AvailableBytes>0</AvailableBytes>\\n <WorkingSet>5230592</WorkingSet>\\n <Cache>0</Cache>\\n </Memory>\\n <CPU>\\n <UsageCoreNanoSeconds>119544335</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <Limit>0</Limit>\\n <UsageNanoCores>0</UsageNanoCores>\\n </CPU>\\n <Name>nginx</Name>\\n </Containers>\\n <CPU>\\n <UsageCoreNanoSeconds>162459172</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <Limit>2000</Limit>\\n <UsageNanoCores>0</UsageNanoCores>\\n </CPU>\\n <Filesystem>\\n <Usage>37130240</Usage>\\n <FsName>/dev/vda2</FsName>\\n <Capacity>511647744</Capacity>\\n <Available>436940800</Available>\\n </Filesystem>\\n <Disk>\\n <WriteIo>0</WriteIo>\\n <Device>/dev/vda</Device>\\n <ReadIo>0</ReadIo>\\n <ReadBytes>279165440</ReadBytes>\\n <WriteBytes>2090905600</WriteBytes>\\n </Disk>\\n <Timestamp/>\\n </Records>\\n </MonitorDatas>\\n</DescribeMultiContainerGroupMetricResponse>","errorExample":""}]', ], - 'DeleteDataCache' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DescribeRegions' => [ + 'summary' => '查询弹性容器实例支持的地域和可用区信息。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'get', 'riskType' => 'none', - 'chargeType' => 'paid', - 'abilityTreeCode' => '179691', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - ], + 'chargeType' => 'free', + 'abilityTreeCode' => '17738', + 'abilityTreeNodes' => ['FEATUREeciWX1P2C', 'FEATUREeciO4MP7I', 'FEATUREeciL85GGA', 'FEATUREeciTLPZOI'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'DataCacheId', - 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存ID。', - 'type' => 'string', - 'required' => false, - 'docRequired' => true, - 'example' => 'edc-bp1a7n7uawwwol******', - ], - ], - [ - 'name' => 'ClientToken', - 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '5e74729e-ce21-4c3e-9163-cbaf0f02768e', - ], - ], - [ - 'name' => 'Bucket', - 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存Bucket。默认为default。', - 'type' => 'string', - 'required' => false, - 'example' => 'default', - ], - ], - [ - 'name' => 'Path', - 'in' => 'query', - 'schema' => [ - 'description' => '数据缓存对应Virtual Host的目录。', - 'type' => 'string', - 'required' => false, - 'example' => '/data/models/', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'cn-hangzhou'], ], ], 'responses' => [ 200 => [ 'schema' => [ + 'description' => '返回信息。', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'C0F8A012-1426-5EB2-96F5-B4416DEB5B78', + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3'], + 'Regions' => [ + 'description' => '地域信息集合。', + 'type' => 'array', + 'items' => [ + 'description' => '地域信息集合。', + 'type' => 'object', + 'properties' => [ + 'Zones' => [ + 'description' => '可用区。', + 'type' => 'array', + 'items' => ['description' => '可用区。', 'type' => 'string', 'example' => 'cn-hangzhou-g'], + ], + 'RecommendZones' => [ + 'description' => '推荐的可用区列表。', + 'type' => 'array', + 'items' => ['description' => '推荐的可用区。当前地域下,整体库存量相对充足的可用区。', 'type' => 'string', 'example' => 'cn-hangzhou-j'], + ], + 'RegionEndpoint' => ['description' => '地域对应的接入地址(Endpoint)。', 'type' => 'string', 'example' => 'eci.aliyuncs.com'], + 'RegionId' => ['description' => '地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'UnavailableZones' => [ + 'description' => '不可用的可用区列表。', + 'type' => 'array', + 'items' => ['description' => '不可用的可用区。该可用区可能存在故障,建议使用其他可用区。', 'type' => 'string', 'example' => 'cn-hangzhou-e'], + ], + ], + ], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C0F8A012-1426-5EB2-96F5-B4416DEB5B78\\"\\n}","type":"json"}]', - 'title' => '删除数据缓存', - 'summary' => '删除一个数据缓存。', - ], - 'CreateVirtualNode' => [ - 'summary' => '创建一个虚拟节点(VNode),用于对接自建Kubernetes集群,使其可以扩展资源到ECI。', - 'methods' => [ - 'post', - 'get', + 'title' => '查询可以使用的阿里云地域和可用区', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2024-10-15T11:17:49.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-09-01T08:53:39.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-01-11T08:13:17.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ['createdAt' => '2023-01-11T07:30:35.000Z', 'description' => '请求参数发生变更'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeRegions'], + ], ], + 'ramActions' => [], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\",\\n \\"Regions\\": [\\n {\\n \\"Zones\\": [\\n \\"cn-hangzhou-g\\"\\n ],\\n \\"RecommendZones\\": [\\n \\"cn-hangzhou-j\\"\\n ],\\n \\"RegionEndpoint\\": \\"eci.aliyuncs.com\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"UnavailableZones\\": [\\n \\"cn-hangzhou-e\\"\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeRegionsResponse>\\n <RequestId>BF910418-FF74-4C99-B2D5-B77C88E49A44</RequestId>\\n <Regions>\\n <RecommendZones>cn-hangzhou-h</RecommendZones>\\n <RecommendZones>cn-hangzhou-i</RecommendZones>\\n <RecommendZones>cn-hangzhou-j</RecommendZones>\\n <RegionId>cn-hangzhou</RegionId>\\n <RegionEndpoint>eci.aliyuncs.com</RegionEndpoint>\\n <Zones>cn-hangzhou-g</Zones>\\n <Zones>cn-hangzhou-e</Zones>\\n <Zones>cn-hangzhou-f</Zones>\\n <Zones>cn-hangzhou-h</Zones>\\n <Zones>cn-hangzhou-i</Zones>\\n <Zones>cn-hangzhou-j</Zones>\\n <Zones>cn-hangzhou-k</Zones>\\n </Regions>\\n</DescribeRegionsResponse>","errorExample":""}]', + ], + 'DescribeVirtualNodes' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'paid', - 'abilityTreeNodes' => [ - 'FEATUREeciOZ73BH', - 'FEATUREeciESSPHI', - ], - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ZoneId', - 'in' => 'query', - 'schema' => [ - 'description' => '可用区ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'cn-hangzhou-b', - ], - ], - [ - 'name' => 'SecurityGroupId', - 'in' => 'query', - 'schema' => [ - 'description' => '安全组ID。虚拟节点以及该虚拟节点下的ECI实例将加入到该安全组中。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'sg-2ze81zoc3yl7a3we****', - ], - ], - [ - 'name' => 'VSwitchId', - 'in' => 'query', - 'schema' => [ - 'description' => '交换机ID。虚拟节点以及虚拟节点下的ECI实例所使用的交换机。 '."\n" - .'支持指定多个(1~10个)属于同一VPC的交换机。 ', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'vsw-2ze23nqzig8inprou****', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'VirtualNodeName', 'in' => 'query', - 'schema' => [ - 'description' => '虚拟节点的名称。长度为2~128个英文字符,可以包含小写英文字符、数字、半角句号(.)或者短划线(-)。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'testNode', - ], + 'schema' => ['description' => '虚拟节点名称。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'testNode'], ], [ - 'name' => 'ResourceGroupId', + 'name' => 'VirtualNodeIds', 'in' => 'query', - 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-uf66jeqopgqa9hdn****', - ], + 'schema' => ['description' => '虚拟节点ID序列。最多20个,字符串需按照JSON格式传入。', 'type' => 'string', 'required' => false, 'example' => '["vnd-2ze960zkdqrldeaw****","vnd-3ebzcviqbwt25dsz****"]'], ], [ 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000', - ], + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'], ], [ - 'name' => 'EnablePublicNetwork', - 'in' => 'query', - 'schema' => [ - 'description' => '是否支持公网。默认为false。 '."\n" - .'如果设置为true,则虚拟节点将对外暴露一个公网IP。', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - ], - [ - 'name' => 'EipInstanceId', + 'name' => 'Status', 'in' => 'query', - 'schema' => [ - 'description' => '弹性公网IP的ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'eip-uf66jeqopgqa9hdn****', - ], + 'schema' => ['description' => '虚拟节点状态。取值范围:'."\n" + ."\n" + .'- Pending'."\n" + .'- Ready'."\n" + .'- Failed', 'type' => 'string', 'required' => false, 'example' => 'Ready'], ], [ - 'name' => 'KubeConfig', + 'name' => 'ResourceGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '虚拟节点要连接的Kubernetes集群的KubeConfig。需进行Base64编码后传入。', - 'type' => 'string', - 'required' => false, - 'example' => 'JTVDbmFwaVZlcnNpb24lM0ElMjB2MSU1Q25jbHVzdGVycyUzQSU1Q24tJTIwY2x1c3RlciUzQSU1Q24uLi******', - ], + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'rg-uf66jeqopgqa9hdn****'], ], [ - 'name' => 'CustomResources', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'description' => '虚拟节点支持的自定义资源。如果ECI Pod的request中声明了相应的自定义资源,则该Pod会被调度到VNode。'."\n" - .'格式为`资源名称=资源数量`,多个资源之间使用半角逗号间隔。', - 'type' => 'string', - 'required' => false, - 'example' => 'example1.com=100,example2.com=200', - ], + 'schema' => ['description' => '下一个查询开始的Token,NextToken为空表示没有下一个。'."\n" + ."\n" + .'首次查询时无需设置该参数,后续查询的Token从返回结果中获取。', 'type' => 'string', 'required' => false, 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc'], ], [ - 'name' => 'ClusterDomain', + 'name' => 'Limit', 'in' => 'query', - 'schema' => [ - 'description' => '集群的域名。配置后,除了主机的搜索域外,Kubelet会配置所有容器来搜索该域名。', - 'type' => 'string', - 'required' => false, - 'example' => 'example.com', - ], - ], - [ - 'name' => 'ClusterDNS', - 'in' => 'query', - 'schema' => [ - 'description' => 'DNS服务器的IP地址。如果ECI Pod中设置了`dnsPolicy=ClusterFirst`,则使用该配置值为容器提供DNS服务。'."\n" - .'支持配置多个IP地址,多个IP地址之间使用半角逗号间隔。', - 'type' => 'string', - 'required' => false, - 'example' => '100.1.XX.XX', - ], + 'schema' => ['description' => '限制本次查询返回的资源数量。默认返回20个,最大不能超过20个。'."\n" + ."\n" + .'> 返回结果可能小于指定的数量,但不会多于指定的数量。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '20'], ], [ 'name' => 'Tag', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '虚拟节点标签信息。最多可以配置20个。', - 'type' => 'array', - 'items' => [ - 'description' => '虚拟节点标签信息。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'name', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], - ], - [ - 'name' => 'Taint', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '虚拟节点污点信息。最多可以配置20个。', + 'description' => '虚拟节点绑定的标签列表。', 'type' => 'array', 'items' => [ - 'description' => '虚拟节点污点信息。', + 'description' => '虚拟节点绑定的标签列表。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '污点的Key。', - 'type' => 'string', - 'required' => false, - 'example' => 'testKey', - ], - 'Value' => [ - 'description' => '污点的Value。', - 'type' => 'string', - 'required' => false, - 'example' => 'testValue', - ], - 'Effect' => [ - 'description' => '污点的Effect。取值范围:'."\n" - ."\n" - .'- NoSchedule:不将Pod调度到具有该污点的节点上。'."\n" - .'- NoExecute:不将Pod调度到具有该污点的节点上的同时,驱逐节点上已经存在的Pod。'."\n" - .'- PreferNoSchedule:尽量不将Pod调度到具有该污点的节点上。', - 'type' => 'string', - 'required' => false, - 'example' => 'NoSchedule', - ], + 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'name'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => 'test'], ], 'required' => false, ], @@ -11081,37 +6024,70 @@ 'maxItems' => 21, ], ], - [ - 'name' => 'TlsBootstrapEnabled', - 'in' => 'query', - 'schema' => [ - 'description' => '是否启用TLS启动引导。启用后,请使用TLS启动引导的KubeConfig证书。取值范围:'."\n" - ."\n" - .'- true:启用'."\n" - .'- false:不启用'."\n" - ."\n" - .'默认为false。'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - ], ], 'responses' => [ 200 => [ 'schema' => [ - 'description' => '返回信息。', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '89164E78-FC82-4684-BE97-DCDD85D26546', - ], - 'VirtualNodeId' => [ - 'description' => '虚拟节点ID。', - 'type' => 'string', - 'example' => 'vnd-2ze960zkdqrldeaw****', + 'TotalCount' => ['description' => '查询到的虚拟节点数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'NextToken' => ['description' => '下一个查询开始的Token。', 'type' => 'string', 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '9C9B9917-ED22-50D5-ADE6-9FA9D58AD05F'], + 'VirtualNodes' => [ + 'description' => '虚拟节点信息集合。', + 'type' => 'array', + 'items' => [ + 'description' => '虚拟节点信息集合。', + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => '虚拟节点状态。可能值:'."\n" + .'- Pending'."\n" + .'- Ready'."\n" + .'- Failed', 'type' => 'string', 'example' => 'Ready'], + 'CreationTime' => ['description' => '虚拟节点创建时间。UTC时间,RFC 3339标准。', 'type' => 'string', 'example' => '2021-09-08T15:00:00Z'], + 'VpcId' => ['description' => '虚拟节点所属的VPC ID。', 'type' => 'string', 'example' => 'vpc-1vzjjflab6wvjox****'], + 'InternetIp' => ['description' => '虚拟节点的公网IP。', 'type' => 'string', 'example' => '192.0.XX.XX'], + 'Tags' => [ + 'description' => '虚拟节点绑定的标签信息。', + 'type' => 'array', + 'items' => [ + 'description' => '标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '标签键。', 'type' => 'string', 'example' => 'name'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + 'Events' => [ + 'description' => '事件信息。', + 'type' => 'array', + 'items' => [ + 'description' => '事件信息。', + 'type' => 'object', + 'properties' => [ + 'Type' => ['description' => '事件类型。可能值:'."\n" + ."\n" + .'- Normal'."\n" + .'- Warning', 'type' => 'string', 'example' => 'Normal'], + 'LastTimestamp' => ['description' => '事件结束时间。', 'type' => 'string', 'example' => '2021-09-08T02:24:52Z'], + 'Message' => ['description' => '事件消息。', 'type' => 'string', 'example' => 'Successfully'], + 'Name' => ['description' => '事件的归属对象名。', 'type' => 'string', 'example' => 'test'], + 'Reason' => ['description' => '事件名。', 'type' => 'string', 'example' => 'Created'], + 'Count' => ['description' => '事件数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'FirstTimestamp' => ['description' => '事件开始时间。', 'type' => 'string', 'example' => '2021-09-08T02:24:48Z'], + ], + ], + ], + 'VirtualNodeId' => ['description' => '虚拟节点ID。', 'type' => 'string', 'example' => 'vnd-2ze960zkdqrldeaw****'], + 'IntranetIp' => ['description' => '虚拟节点的内网IP。', 'type' => 'string', 'example' => '10.19.XX.XX'], + 'RegionId' => ['description' => '虚拟节点所属的地域ID。', 'type' => 'string', 'example' => 'cn-hangzhou'], + 'VirtualNodeVSwitchId' => ['description' => '虚拟节点所属的交换机ID。', 'type' => 'string', 'example' => 'vsw-2ze23nqzig8inprou****'], + 'VirtualNodeSecurityGroupId' => ['description' => '虚拟节点所属的安全组ID。', 'type' => 'string', 'example' => 'sg-2zeeyaaxlkq9sppl****'], + 'ResourceGroupId' => ['description' => '虚拟节点所属的资源组ID。', 'type' => 'string', 'example' => 'rg-uf66jeqopgqa9hdn****'], + 'VirtualNodeName' => ['description' => '虚拟节点的名称。', 'type' => 'string', 'example' => 'testNode'], + ], + ], ], ], ], @@ -11119,621 +6095,148 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedName', - 'errorMessage' => 'The container group include containers with duplicate names.', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedVolumeName', - 'errorMessage' => 'The container group includes volumes with duplicate names.', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.NotSupport', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'DiskNumber.LimitExceed', - 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', - ], - [ - 'errorCode' => 'InvalidPaymentMethod.InsufficientBalance', - 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', - ], - [ - 'errorCode' => 'DiskVolume.NotInSameZone', - 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', - ], - [ - 'errorCode' => 'HighCpuMemConfigRequired', - 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', - ], - [ - 'errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', - 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', - ], - [ - 'errorCode' => 'LocalDiskAmountNotMatch', - 'errorMessage' => 'The number of local volumes does not match the instance type.', - ], - [ - 'errorCode' => 'Payfor.CreditPayInsufficientBalance', - 'errorMessage' => 'Your payment credit line is insufficient.', - ], - [ - 'errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', - 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', - ], - [ - 'errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', - 'errorMessage' => 'KMS must be enabled for encrypted disks.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', - 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', - ], - [ - 'errorCode' => 'Ipv6AddressNotSupportVsw', - 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', - ], - [ - 'errorCode' => 'EipAddressPoolIpNotEnough', - 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', - ], - [ - 'errorCode' => 'VnodeDedicatedHostIdAlreadyExist', - 'errorMessage' => 'DedicatedHostId:%s of Vnode:%s already exists.', - ], - [ - 'errorCode' => 'DedicatedHostQuotaExceeded', - 'errorMessage' => 'The quota of DedicatedHost is exceeded.', - ], + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'InvalidParameter.DuplicatedName', 'errorMessage' => 'The container group include containers with duplicate names.', 'description' => '容器组内有重复名字的容器。'], + ['errorCode' => 'InvalidParameter.DuplicatedVolumeName', 'errorMessage' => 'The container group includes volumes with duplicate names.', 'description' => '容器组内有重复名字的数据卷。'], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'ImageSnapshot.IncorrectStatus', 'errorMessage' => '%s', 'description' => '用于镜像缓存的快照状态不正确。'], + ['errorCode' => 'ImageSnapshot.NotSupport', 'errorMessage' => '%s', 'description' => '基于数据盘快照的镜像缓存功能暂未全网开放,如有需要请联系我们。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'DiskNumber.LimitExceed', 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', 'description' => '实例下云盘数目超过限制。'], + ['errorCode' => 'InvalidPaymentMethod.InsufficientBalance', 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', 'description' => '您的账户暂无有效支付方式,请添加支付方式或保持预付款余额充足。'], + ['errorCode' => 'DiskVolume.NotInSameZone', 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', 'description' => '即将创建的实例和云盘不在同一可用区。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', 'description' => ''], + ['errorCode' => 'HighCpuMemConfigRequired', 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', 'description' => '您需要申请CPU高配白名单。'], + ['errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', 'description' => '当前可用区没有推荐的规格可使用,请稍后重试或者到其他的可用区创建。'], + ['errorCode' => 'LocalDiskAmountNotMatch', 'errorMessage' => 'The number of local volumes does not match the instance type.', 'description' => '本地盘数量跟实例规格不匹配'], + ['errorCode' => 'Payfor.CreditPayInsufficientBalance', 'errorMessage' => 'Your payment credit line is insufficient.', 'description' => '您的付款信用额度不足。'], + ['errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', 'description' => '指定的实例无效,只有 I/O 优化类型的实例支持设置“KMS Key”。'], + ['errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', 'errorMessage' => 'KMS must be enabled for encrypted disks.', 'description' => '加密磁盘需要启用密钥管理服务。'], + ['errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', 'description' => '设置参数“KmsKeyId”后,您必须开启加密属性。'], + ['errorCode' => 'Ipv6AddressNotSupportVsw', 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', 'description' => '该交换机暂未开通ipv6地址。'], ], 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role does not belong to ECS.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', - 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', - ], - [ - 'errorCode' => 'Forbidden.AccountClosed', - 'errorMessage' => 'The operation is forbidden. Your account has been closed.', - ], - [ - 'errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', - 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', - ], - [ - 'errorCode' => 'Spot.NotMatched', - 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', - ], - ], - [ - [ - 'errorCode' => 'ImageSnapshot.NotFound', - 'errorMessage' => 'The specified snapshot does not exist.', - ], - [ - 'errorCode' => 'InvalidDiskId.NotFound', - 'errorMessage' => 'The specified disk does not exist.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', - 'errorMessage' => 'The specified KMSKeyId does not exist.', - ], + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role does not belong to ECS.', 'description' => ''], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', 'description' => '无权访问指定的 KMSKeyId。'], + ['errorCode' => 'Forbidden.AccountClosed', 'errorMessage' => 'The operation is forbidden. Your account has been closed.', 'description' => '操作被禁止,因为用户账户已注销。'], + ['errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', 'description' => '安全组由其他云产品管理,禁止操作。'], + ['errorCode' => 'Spot.NotMatched', 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ], + [ + ['errorCode' => 'ImageSnapshot.NotFound', 'errorMessage' => 'The specified snapshot does not exist.', 'description' => '镜像缓存,快照不存在。'], + ['errorCode' => 'InvalidDiskId.NotFound', 'errorMessage' => 'The specified disk does not exist.', 'description' => '指定的云盘不存在。'], + ['errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', 'errorMessage' => 'The specified KMSKeyId does not exist.', 'description' => '指定的参数“KMSKeyId”不存在。'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89164E78-FC82-4684-BE97-DCDD85D26546\\",\\n \\"VirtualNodeId\\": \\"vnd-2ze960zkdqrldeaw****\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateVirtualNodeResponse>\\n <RequestId>89164E78-FC82-4684-BE97-DCDD85D26546</RequestId>\\n <VirtualNodeId>vnd-2ze960zkdqrldeaw****</VirtualNodeId>\\n</CreateVirtualNodeResponse>","errorExample":""}]', - 'title' => '创建一个虚拟节点', - 'description' => '- 调用本接口创建虚拟节点时,系统将自动为您创建一个服务关联角色AliyunServiceRoleForECIVnode,用于访问ECI、ECS、VPC等相关云服务。更多信息,请参见[虚拟节点服务关联角色](~~311014~~)。'."\n" - ."\n" - .'- 虚拟节点按个数计费。每个虚拟节点会有一个常驻节点,相当于2 vCPU,8 GiB的ECI实例,收取相关ECI实例费用。', + 'title' => '批量查询虚拟节点信息', + 'summary' => '调用DescribeVirtualNodes批量查询虚拟节点的详细信息。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DeleteVirtualNode' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - ], - 'parameters' => [ - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'VirtualNodeId', - 'in' => 'query', - 'schema' => [ - 'description' => '虚拟节点ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'vnd-2ze960zkdqrldeaw****', - ], - ], - [ - 'name' => 'ClientToken', - 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3', - ], + 'changeSet' => [ + ['createdAt' => '2023-08-30T08:45:52.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2023-07-03T01:56:18.000Z', 'description' => '响应参数发生变更、响应参数发生变更'], + ['createdAt' => '2023-01-11T08:05:33.000Z', 'description' => '请求参数发生变更、响应参数发生变更、响应参数发生变更'], + ['createdAt' => '2021-09-06T04:58:46.000Z', 'description' => 'OpenAPI 下线'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeVirtualNodes', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#virtualnodeId}'], ], ], ], ], - 'errorCodes' => [ - 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedName', - 'errorMessage' => 'The container group include containers with duplicate names.', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedVolumeName', - 'errorMessage' => 'The container group includes volumes with duplicate names.', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.NotSupport', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'DiskNumber.LimitExceed', - 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', - ], - [ - 'errorCode' => 'InvalidPaymentMethod.InsufficientBalance', - 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', - ], - [ - 'errorCode' => 'DiskVolume.NotInSameZone', - 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', - ], - [ - 'errorCode' => 'HighCpuMemConfigRequired', - 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', - ], - [ - 'errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', - 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', - ], - [ - 'errorCode' => 'LocalDiskAmountNotMatch', - 'errorMessage' => 'The number of local volumes does not match the instance type.', - ], - [ - 'errorCode' => 'Payfor.CreditPayInsufficientBalance', - 'errorMessage' => 'Your payment credit line is insufficient.', - ], - [ - 'errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', - 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', - ], - [ - 'errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', - 'errorMessage' => 'KMS must be enabled for encrypted disks.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', - 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', - ], - [ - 'errorCode' => 'Ipv6AddressNotSupportVsw', - 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', - ], - [ - 'errorCode' => 'VirtualNode.DELETE.FAILED', - 'errorMessage' => 'The vnode has eci on it, please delete eci first.', - ], - ], - 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role does not belong to ECS.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', - 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', - ], - [ - 'errorCode' => 'Forbidden.AccountClosed', - 'errorMessage' => 'The operation is forbidden. Your account has been closed.', - ], - [ - 'errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', - 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', - ], - [ - 'errorCode' => 'Spot.NotMatched', - 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', - ], - ], - [ - [ - 'errorCode' => 'ImageSnapshot.NotFound', - 'errorMessage' => 'The specified snapshot does not exist.', - ], - [ - 'errorCode' => 'InvalidDiskId.NotFound', - 'errorMessage' => 'The specified disk does not exist.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', - 'errorMessage' => 'The specified KMSKeyId does not exist.', - ], - ], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteVirtualNodeResponse>\\r\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>\\r\\n</DeleteVirtualNodeResponse>","errorExample":""}]', - 'title' => '删除一个虚拟节点', - 'summary' => '调用DeleteVirtualNode删除一个虚拟节点。', - 'description' => '调用本接口删除虚拟节点前,请确保该节点下已经没有ECI实例。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 1,\\n \\"NextToken\\": \\"d78f2dd8-5979-42fe-****-b16db43be5bc\\",\\n \\"RequestId\\": \\"9C9B9917-ED22-50D5-ADE6-9FA9D58AD05F\\",\\n \\"VirtualNodes\\": [\\n {\\n \\"Status\\": \\"Ready\\",\\n \\"CreationTime\\": \\"2021-09-08T15:00:00Z\\",\\n \\"VpcId\\": \\"vpc-1vzjjflab6wvjox****\\",\\n \\"InternetIp\\": \\"192.0.XX.XX\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"name\\",\\n \\"Value\\": \\"test\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"LastTimestamp\\": \\"2021-09-08T02:24:52Z\\",\\n \\"Message\\": \\"Successfully\\",\\n \\"Name\\": \\"test\\",\\n \\"Reason\\": \\"Created\\",\\n \\"Count\\": 1,\\n \\"FirstTimestamp\\": \\"2021-09-08T02:24:48Z\\"\\n }\\n ],\\n \\"VirtualNodeId\\": \\"vnd-2ze960zkdqrldeaw****\\",\\n \\"IntranetIp\\": \\"10.19.XX.XX\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"VirtualNodeVSwitchId\\": \\"vsw-2ze23nqzig8inprou****\\",\\n \\"VirtualNodeSecurityGroupId\\": \\"sg-2zeeyaaxlkq9sppl****\\",\\n \\"ResourceGroupId\\": \\"rg-uf66jeqopgqa9hdn****\\",\\n \\"VirtualNodeName\\": \\"testNode\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeVirtualNodesResponse>\\n <TotalCount>1</TotalCount>\\n <NextToken>d78f2dd8-5979-42fe-****-b16db43be5bc</NextToken>\\n <RequestId>9C9B9917-ED22-50D5-ADE6-9FA9D58AD05F</RequestId>\\n <VirtualNodes>\\n <Status>Ready</Status>\\n <CreationTime>2021-09-08T15:00:00Z</CreationTime>\\n <ClusterId>c9af4f6c1563c4cd4bda887bfeb72****</ClusterId>\\n <VpcId>vpc-1vzjjflab6wvjox****</VpcId>\\n <InternetIp>192.0.XX.XX</InternetIp>\\n <SecurityGroupId>sg-2ze81zoc3yl7a3we****</SecurityGroupId>\\n <Tags>\\n <Key>name</Key>\\n <Value>test</Value>\\n </Tags>\\n <Events>\\n <Type>Normal</Type>\\n <LastTimestamp>2021-09-08T02:24:52Z</LastTimestamp>\\n <Message>Successfully</Message>\\n <Name>test</Name>\\n <Reason>Created</Reason>\\n <Count>1</Count>\\n <FirstTimestamp>2021-09-08T02:24:48Z</FirstTimestamp>\\n </Events>\\n <Memory>4</Memory>\\n <VirtualNodeId>vnd-2ze960zkdqrldeaw****</VirtualNodeId>\\n <IntranetIp>10.19.XX.XX</IntranetIp>\\n <RegionId>cn-hangzhou</RegionId>\\n <VirtualNodeVSwitchId>vsw-2ze23nqzig8inprou****</VirtualNodeVSwitchId>\\n <VirtualNodeSecurityGroupId>sg-2zeeyaaxlkq9sppl****</VirtualNodeSecurityGroupId>\\n <VSwitchIds>vsw-2ze23nqzig8inprou****</VSwitchIds>\\n <Cpu>2</Cpu>\\n <ResourceGroupId>rg-uf66jeqopgqa9hdn****</ResourceGroupId>\\n <ZoneId>cn-hangzhou-b</ZoneId>\\n <ZoneIds>cn-hangzhou-g</ZoneIds>\\n <VirtualNodeName>testNode</VirtualNodeName>\\n </VirtualNodes>\\n</DescribeVirtualNodesResponse>","errorExample":""}]', ], - 'UpdateVirtualNode' => [ - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ExecContainerCommand' => [ + 'summary' => '调用ExecContainerCommand在容器内部执行命令。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '17739', + 'abilityTreeNodes' => ['FEATUREeciO8VNZM'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '实例所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '实例所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'VirtualNodeId', - 'in' => 'query', - 'schema' => [ - 'description' => '虚拟节点ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'vnd-2ze960zkdqrldeaw****', - ], - ], - [ - 'name' => 'VirtualNodeName', + 'name' => 'ContainerGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '虚拟节点名称。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'testNode', - ], + 'schema' => ['description' => '实例ID,即容器组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'eci-2zebxkiifulhl****'], ], [ - 'name' => 'CustomResources', + 'name' => 'ContainerName', 'in' => 'query', - 'schema' => [ - 'description' => '虚拟节点支持的自定义资源。如果ECI Pod的request中声明了相应的自定义资源,则该Pod会被调度到VNode。'."\n" - .'格式为`资源名称=资源数量`,多个资源之间使用半角逗号间隔。', - 'type' => 'string', - 'required' => false, - 'example' => 'example1.com=100,example2.com=200', - ], + 'schema' => ['description' => '容器名称。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'nginx'], ], [ - 'name' => 'ClusterDomain', + 'name' => 'Command', 'in' => 'query', - 'schema' => [ - 'description' => '集群的域名。配置后,除了主机的搜索域外,Kubelet会配置所有容器来搜索该域名。', - 'type' => 'string', - 'required' => false, - 'example' => 'example.com', - ], + 'schema' => ['description' => '要在容器内执行的命令序列。最多20个命令,单个命令最长256个字符。 '."\n" + .'执行多个命令时,字符串需按照JSON格式传入,例如:`["/bin/sh", "-c", "ls -a"]`。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '["/bin/sh", "-c", "ls -a"]'], ], [ - 'name' => 'ClusterDNS', + 'name' => 'TTY', 'in' => 'query', - 'schema' => [ - 'description' => 'DNS服务器的IP地址。如果ECI Pod中设置了`dnsPolicy=ClusterFirst`,则使用该配置值为容器提供DNS服务。'."\n" - .'支持配置多个IP地址,多个IP地址之间使用半角逗号间隔。', - 'type' => 'string', - 'required' => false, - 'example' => '100.1.XX.XX', - ], + 'schema' => ['description' => '是否开启交互。默认为false。 '."\n" + .'当Command为`/bin/bash`命令时,需要设置为true。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ - 'name' => 'ClientToken', + 'name' => 'Stdin', 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000', - ], + 'schema' => ['description' => '是否标准输入。默认为true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ - 'name' => 'Tag', + 'name' => 'Sync', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '虚拟节点标签信息。', - 'type' => 'array', - 'items' => [ - 'description' => '虚拟节点标签信息。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'name', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => '是否立即执行命令并同步返回结果。默认为false。 '."\n" + .'如果设置为true,TTY只能设置为false(即Command不是`/bin/bash`命令)。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], ], 'responses' => [ @@ -11741,364 +6244,129 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3', - ], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '28B583A8-313D-4383-7817-B5A9F7E0****'], + 'WebSocketUri' => ['description' => 'WebSocket URL。您可以利用WebSocket URL建立与容器的连接。', 'type' => 'string', 'example' => 'wss://eci-cn-shanghai.aliyun.com/exec/?s=ktHPx****'], + 'HttpUrl' => ['description' => 'HTTP URL。在30秒内访问该地址可以进入到容器。更多信息,请参见[使用并集成ECI Terminal](~~202846~~)。', 'type' => 'string', 'example' => 'https://eci.console.aliyun.com/terminal?param=X32a****'], + 'SyncResponse' => ['description' => '命令的返回结果。当Sync设置为true时返回该参数。', 'type' => 'string', 'example' => 'Hello'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedName', - 'errorMessage' => 'The container group include containers with duplicate names.', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedVolumeName', - 'errorMessage' => 'The container group includes volumes with duplicate names.', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.NotSupport', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'DiskNumber.LimitExceed', - 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', - ], - [ - 'errorCode' => 'InvalidPaymentMethod.InsufficientBalance', - 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', - ], - [ - 'errorCode' => 'DiskVolume.NotInSameZone', - 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', - ], - [ - 'errorCode' => 'HighCpuMemConfigRequired', - 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', - ], - [ - 'errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', - 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', - ], - [ - 'errorCode' => 'LocalDiskAmountNotMatch', - 'errorMessage' => 'The number of local volumes does not match the instance type.', - ], - [ - 'errorCode' => 'Payfor.CreditPayInsufficientBalance', - 'errorMessage' => 'Your payment credit line is insufficient.', - ], - [ - 'errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', - 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', - ], - [ - 'errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', - 'errorMessage' => 'KMS must be enabled for encrypted disks.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', - 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', - ], - [ - 'errorCode' => 'Ipv6AddressNotSupportVsw', - 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', - ], - ], - 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserBussinessStatus', - 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role does not belong to ECS.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', - 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', - ], - [ - 'errorCode' => 'Forbidden.AccountClosed', - 'errorMessage' => 'The operation is forbidden. Your account has been closed.', - ], - [ - 'errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', - 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', - ], - [ - 'errorCode' => 'Spot.NotMatched', - 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', - ], - ], - [ - [ - 'errorCode' => 'ImageSnapshot.NotFound', - 'errorMessage' => 'The specified snapshot does not exist.', - ], - [ - 'errorCode' => 'InvalidDiskId.NotFound', - 'errorMessage' => 'The specified disk does not exist.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', - 'errorMessage' => 'The specified KMSKeyId does not exist.', - ], + ['errorCode' => 'InvalidParameter.ValueExceeded', 'errorMessage' => '%s', 'description' => '参数值超过规定范围'], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateVirtualNodeResponse>\\r\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>\\r\\n</UpdateVirtualNodeResponse>","errorExample":""}]', - 'title' => '更新一个虚拟节点', - 'summary' => '调用UpdateVirtualNode更新一个虚拟节点的属性。', - 'description' => '## 接口说明'."\n" - .'仅支持更新状态为Ready的虚拟节点。', + 'title' => '在容器内部执行命令', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeVirtualNodes' => [ - 'methods' => [ - 'post', - 'get', + 'changeSet' => [ + ['createdAt' => '2023-10-12T08:01:02.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2023-10-12T07:55:06.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-08-12T09:09:14.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ExecContainerCommand'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:ExecContainerCommand', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"28B583A8-313D-4383-7817-B5A9F7E0****\\",\\n \\"WebSocketUri\\": \\"wss://eci-cn-shanghai.aliyun.com/exec/?s=ktHPx****\\",\\n \\"HttpUrl\\": \\"https://eci.console.aliyun.com/terminal?param=X32a****\\",\\n \\"SyncResponse\\": \\"Hello\\"\\n}","errorExample":""},{"type":"xml","example":"<ExecContainerCommandResponse>\\n <RequestId>28B583A8-313D-4383-7817-B5A9F7E0****</RequestId>\\n <WebSocketUri>wss://eci-cn-shanghai.aliyun.com/exec/?s=ktHPx****</WebSocketUri>\\n <HttpUrl>https://eci.console.aliyun.com/terminal?param=X32a****</HttpUrl>\\n</ExecContainerCommandResponse>","errorExample":""}]', + ], + 'ListTagResources' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'list', + 'abilityTreeCode' => '163143', + 'abilityTreeNodes' => ['FEATUREeciO8VNZM'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '资源所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'VirtualNodeName', - 'in' => 'query', - 'schema' => [ - 'description' => '虚拟节点名称。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'testNode', - ], + 'schema' => ['description' => '资源所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'VirtualNodeIds', - 'in' => 'query', - 'schema' => [ - 'description' => '虚拟节点ID序列。最多20个,字符串需按照JSON格式传入。', - 'type' => 'string', - 'required' => false, - 'example' => '["vnd-2ze960zkdqrldeaw****","vnd-3ebzcviqbwt25dsz****"]', - ], - ], - [ - 'name' => 'ClientToken', - 'in' => 'query', - 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', - 'type' => 'string', - 'required' => false, - 'example' => '123e4567-e89b-12d3-a456-426655440000', - ], - ], - [ - 'name' => 'Status', + 'name' => 'ResourceId', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '虚拟节点状态。取值范围:'."\n" - ."\n" - .'- Pending'."\n" - .'- Ready'."\n" - .'- Failed', - 'type' => 'string', + 'description' => '资源ID列表。', + 'type' => 'array', + 'items' => ['description' => '资源ID。根据ResourceType取值填写对应资源ID。', 'type' => 'string', 'required' => false, 'example' => 'eci-2zelg8vwnlzdhf8hv***'], 'required' => false, - 'example' => 'Ready', + 'docRequired' => true, + 'maxItems' => 100, ], ], [ - 'name' => 'ResourceGroupId', + 'name' => 'Tag', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '资源组ID。', - 'type' => 'string', + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签列表。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'testkey'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => 'testvalue'], + ], + 'required' => false, + ], 'required' => false, - 'docRequired' => false, - 'example' => 'rg-uf66jeqopgqa9hdn****', + 'maxItems' => 100, ], ], [ - 'name' => 'NextToken', + 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'description' => '下一个查询开始的Token,NextToken为空表示没有下一个。'."\n" - ."\n" - .'首次查询时无需设置该参数,后续查询的Token从返回结果中获取。', - 'type' => 'string', - 'required' => false, - 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc', - ], + 'schema' => ['description' => '资源类型。取值范围:'."\n" + ."\n" + .'- ContainerGroup:ECI实例'."\n" + .'- ImageCache:镜像缓存'."\n" + .'- DataCache:数据缓存'."\n" + .'- VirtualNode:虚拟节点', 'type' => 'string', 'required' => true, 'example' => 'ContainerGroup'], ], [ 'name' => 'Limit', 'in' => 'query', - 'schema' => [ - 'description' => '限制本次查询返回的资源数量。默认返回20个,最大不能超过20个。'."\n" - ."\n" - .'> 返回结果可能小于指定的数量,但不会多于指定的数量。', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => '查询结果条数上限。', 'type' => 'string', 'required' => false, 'example' => '20'], ], [ - 'name' => 'Tag', + 'name' => 'NextToken', 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'description' => '虚拟节点绑定的标签列表。', - 'type' => 'array', - 'items' => [ - 'description' => '虚拟节点绑定的标签列表。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'name', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 21, - ], + 'schema' => ['description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', 'type' => 'string', 'required' => false, 'example' => 'AAAAAdDWBF2****'."\n"], ], ], 'responses' => [ @@ -12106,156 +6374,25 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'description' => '查询到的虚拟节点数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'NextToken' => [ - 'description' => '下一个查询开始的Token。', - 'type' => 'string', - 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '9C9B9917-ED22-50D5-ADE6-9FA9D58AD05F', - ], - 'VirtualNodes' => [ - 'description' => '虚拟节点信息集合。', + 'NextToken' => ['title' => '下一个查询开始Token,NextToken为空说明没有下一个', 'description' => '本次调用返回的查询凭证值。', 'type' => 'string', 'example' => 'AAAAAdDWBF2****'], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '1340C38D-6189-54D1-86F6-7D5ECF3E0088'], + 'TagResources' => [ + 'title' => '资源列表', + 'description' => '资源列表。', 'type' => 'array', 'items' => [ - 'description' => '虚拟节点信息集合。', + 'description' => '资源列表。', 'type' => 'object', 'properties' => [ - 'Status' => [ - 'description' => '虚拟节点状态。可能值:'."\n" - .'- Pending'."\n" - .'- Ready'."\n" - .'- Failed', - 'type' => 'string', - 'example' => 'Ready', - ], - 'CreationTime' => [ - 'description' => '虚拟节点创建时间。UTC时间,RFC 3339标准。', - 'type' => 'string', - 'example' => '2021-09-08T15:00:00Z', - ], - 'VpcId' => [ - 'description' => '虚拟节点所属的VPC ID。', - 'type' => 'string', - 'example' => 'vpc-1vzjjflab6wvjox****', - ], - 'InternetIp' => [ - 'description' => '虚拟节点的公网IP。', - 'type' => 'string', - 'example' => '192.0.XX.XX', - ], - 'Tags' => [ - 'description' => '虚拟节点绑定的标签信息。', - 'type' => 'array', - 'items' => [ - 'description' => '标签信息。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'example' => 'name', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'Events' => [ - 'description' => '事件信息。', - 'type' => 'array', - 'items' => [ - 'description' => '事件信息。', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => '事件类型。可能值:'."\n" - ."\n" - .'- Normal'."\n" - .'- Warning', - 'type' => 'string', - 'example' => 'Normal', - ], - 'LastTimestamp' => [ - 'description' => '事件结束时间。', - 'type' => 'string', - 'example' => '2021-09-08T02:24:52Z', - ], - 'Message' => [ - 'description' => '事件消息。', - 'type' => 'string', - 'example' => 'Successfully', - ], - 'Name' => [ - 'description' => '事件的归属对象名。', - 'type' => 'string', - 'example' => 'test', - ], - 'Reason' => [ - 'description' => '事件名。', - 'type' => 'string', - 'example' => 'Created', - ], - 'Count' => [ - 'description' => '事件数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'FirstTimestamp' => [ - 'description' => '事件开始时间。', - 'type' => 'string', - 'example' => '2021-09-08T02:24:48Z', - ], - ], - ], - ], - 'VirtualNodeId' => [ - 'description' => '虚拟节点ID。', - 'type' => 'string', - 'example' => 'vnd-2ze960zkdqrldeaw****', - ], - 'IntranetIp' => [ - 'description' => '虚拟节点的内网IP。', - 'type' => 'string', - 'example' => '10.19.XX.XX', - ], - 'RegionId' => [ - 'description' => '虚拟节点所属的地域ID。', - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'VirtualNodeVSwitchId' => [ - 'description' => '虚拟节点所属的交换机ID。', - 'type' => 'string', - 'example' => 'vsw-2ze23nqzig8inprou****', - ], - 'VirtualNodeSecurityGroupId' => [ - 'description' => '虚拟节点所属的安全组ID。', - 'type' => 'string', - 'example' => 'sg-2zeeyaaxlkq9sppl****', - ], - 'ResourceGroupId' => [ - 'description' => '虚拟节点所属的资源组ID。', - 'type' => 'string', - 'example' => 'rg-uf66jeqopgqa9hdn****', - ], - 'VirtualNodeName' => [ - 'description' => '虚拟节点的名称。', - 'type' => 'string', - 'example' => 'testNode', - ], + 'ResourceType' => ['title' => '资源类型', 'description' => '资源类型。可能值:'."\n" + ."\n" + .'- ContainerGroup:ECI实例'."\n" + .'- ImageCache:镜像缓存'."\n" + .'- DataCache:数据缓存'."\n" + .'- VirtualNode:虚拟节点', 'type' => 'string', 'example' => 'ContainerGroup'], + 'TagValue' => ['title' => '标签值', 'description' => '资源绑定标签的标签值。', 'type' => 'string', 'example' => 'testvalue'], + 'ResourceId' => ['title' => '资源ID', 'description' => '资源ID。', 'type' => 'string', 'example' => 'eci-2zelg8vwnlzdhf8hv****'."\n"], + 'TagKey' => ['title' => '标签键', 'description' => '资源绑定标签的标签键。', 'type' => 'string', 'example' => 'testkey'], ], ], ], @@ -12265,205 +6402,37 @@ ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Account.Arrearage', - 'errorMessage' => 'Your account has an outstanding payment.', - ], - [ - 'errorCode' => 'DryRunOperation', - 'errorMessage' => 'Request validation has been passed with DryRun flag set.', - ], - [ - 'errorCode' => 'InvalidParameter.CPU.Memory', - 'errorMessage' => 'The specified cpu and memory are not allowed', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedName', - 'errorMessage' => 'The container group include containers with duplicate names.', - ], - [ - 'errorCode' => 'InvalidParameter.DuplicatedVolumeName', - 'errorMessage' => 'The container group includes volumes with duplicate names.', - ], - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ServiceNotEnabled', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'ImageSnapshot.NotSupport', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'DiskVolume.NotSupport', - 'errorMessage' => 'The disk volume is not supported.', - ], - [ - 'errorCode' => 'RamRole.NotSupport', - 'errorMessage' => 'The RAM role is not supported.', - ], - [ - 'errorCode' => 'DiskNumber.LimitExceed', - 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', - ], - [ - 'errorCode' => 'InvalidPaymentMethod.InsufficientBalance', - 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', - ], - [ - 'errorCode' => 'DiskVolume.NotInSameZone', - 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', - ], - [ - 'errorCode' => 'HighCpuMemConfigRequired', - 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', - ], - [ - 'errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', - 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', - ], - [ - 'errorCode' => 'LocalDiskAmountNotMatch', - 'errorMessage' => 'The number of local volumes does not match the instance type.', - ], - [ - 'errorCode' => 'Payfor.CreditPayInsufficientBalance', - 'errorMessage' => 'Your payment credit line is insufficient.', - ], - [ - 'errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', - 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', - ], - [ - 'errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', - 'errorMessage' => 'KMS must be enabled for encrypted disks.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', - 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', - ], - [ - 'errorCode' => 'Ipv6AddressNotSupportVsw', - 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', - ], + ['errorCode' => 'NoPermission.Tag', 'errorMessage' => 'No permissions to operate tags.', 'description' => '您无操作tag的权限。'], + ['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The length of tags exceeded limit: 20.', 'description' => 'tag的数量超过20的限制。'], ], - 403 => [ - [ - 'errorCode' => 'OperationDenied.VswZoneMisMatch', - 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', - ], - [ - 'errorCode' => 'QuotaExceeded', - 'errorMessage' => '%s quota exceeded.', - ], - [ - 'errorCode' => 'Zone.NotOnSale', - 'errorMessage' => 'The specified zone is not available for purchase.', - ], - [ - 'errorCode' => 'Forbidden.RiskControl', - 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', - ], - [ - 'errorCode' => 'Forbidden.SubUser', - 'errorMessage' => 'The specified action is not available for you.', - ], - [ - 'errorCode' => 'Forbidden.OnlyForInvitedTest', - 'errorMessage' => 'Eci create action is only open to invited users during public beta.', - ], - [ - 'errorCode' => 'OperationDenied.SecurityGroupMisMatch', - 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', - ], - [ - 'errorCode' => 'InvalidVSwitchId.IpNotEnough', - 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', - ], - [ - 'errorCode' => 'Forbidden.UserNotRealNameAuthentication', - 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', - ], - [ - 'errorCode' => 'InvalidUser.PassRoleForbidden', - 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', - ], - [ - 'errorCode' => 'NoPermission', - 'errorMessage' => 'The RAM role does not belong to ECS.', - ], - [ - 'errorCode' => 'OperationDenied.NoStock', - 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', - 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', - ], - [ - 'errorCode' => 'Forbidden.AccountClosed', - 'errorMessage' => 'The operation is forbidden. Your account has been closed.', - ], - [ - 'errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', - 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', - ], - [ - 'errorCode' => 'Spot.NotMatched', - 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'SecurityRisk.3DVerification', - 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', - ], - [ - 'errorCode' => 'CreateServiceLinkedRole.Denied', - 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', - ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询ECI资源绑定的标签信息', + 'summary' => '调用ListTagResources查询ECI资源绑定的标签信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListTagResources'], ], + ], + 'ramActions' => [ [ - [ - 'errorCode' => 'ImageSnapshot.NotFound', - 'errorMessage' => 'The specified snapshot does not exist.', - ], - [ - 'errorCode' => 'InvalidDiskId.NotFound', - 'errorMessage' => 'The specified disk does not exist.', - ], - [ - 'errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', - 'errorMessage' => 'The specified KMSKeyId does not exist.', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eci:ListTagResources', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"TotalCount\\": 1,\\n \\"NextToken\\": \\"d78f2dd8-5979-42fe-****-b16db43be5bc\\",\\n \\"RequestId\\": \\"9C9B9917-ED22-50D5-ADE6-9FA9D58AD05F\\",\\n \\"VirtualNodes\\": [\\n {\\n \\"Status\\": \\"Ready\\",\\n \\"CreationTime\\": \\"2021-09-08T15:00:00Z\\",\\n \\"VpcId\\": \\"vpc-1vzjjflab6wvjox****\\",\\n \\"InternetIp\\": \\"192.0.XX.XX\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"name\\",\\n \\"Value\\": \\"test\\"\\n }\\n ],\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"LastTimestamp\\": \\"2021-09-08T02:24:52Z\\",\\n \\"Message\\": \\"Successfully\\",\\n \\"Name\\": \\"test\\",\\n \\"Reason\\": \\"Created\\",\\n \\"Count\\": 1,\\n \\"FirstTimestamp\\": \\"2021-09-08T02:24:48Z\\"\\n }\\n ],\\n \\"VirtualNodeId\\": \\"vnd-2ze960zkdqrldeaw****\\",\\n \\"IntranetIp\\": \\"10.19.XX.XX\\",\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"VirtualNodeVSwitchId\\": \\"vsw-2ze23nqzig8inprou****\\",\\n \\"VirtualNodeSecurityGroupId\\": \\"sg-2zeeyaaxlkq9sppl****\\",\\n \\"ResourceGroupId\\": \\"rg-uf66jeqopgqa9hdn****\\",\\n \\"VirtualNodeName\\": \\"testNode\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeVirtualNodesResponse>\\n <TotalCount>1</TotalCount>\\n <NextToken>d78f2dd8-5979-42fe-****-b16db43be5bc</NextToken>\\n <RequestId>9C9B9917-ED22-50D5-ADE6-9FA9D58AD05F</RequestId>\\n <VirtualNodes>\\n <Status>Ready</Status>\\n <CreationTime>2021-09-08T15:00:00Z</CreationTime>\\n <ClusterId>c9af4f6c1563c4cd4bda887bfeb72****</ClusterId>\\n <VpcId>vpc-1vzjjflab6wvjox****</VpcId>\\n <InternetIp>192.0.XX.XX</InternetIp>\\n <SecurityGroupId>sg-2ze81zoc3yl7a3we****</SecurityGroupId>\\n <Tags>\\n <Key>name</Key>\\n <Value>test</Value>\\n </Tags>\\n <Events>\\n <Type>Normal</Type>\\n <LastTimestamp>2021-09-08T02:24:52Z</LastTimestamp>\\n <Message>Successfully</Message>\\n <Name>test</Name>\\n <Reason>Created</Reason>\\n <Count>1</Count>\\n <FirstTimestamp>2021-09-08T02:24:48Z</FirstTimestamp>\\n </Events>\\n <Memory>4</Memory>\\n <VirtualNodeId>vnd-2ze960zkdqrldeaw****</VirtualNodeId>\\n <IntranetIp>10.19.XX.XX</IntranetIp>\\n <RegionId>cn-hangzhou</RegionId>\\n <VirtualNodeVSwitchId>vsw-2ze23nqzig8inprou****</VirtualNodeVSwitchId>\\n <VirtualNodeSecurityGroupId>sg-2zeeyaaxlkq9sppl****</VirtualNodeSecurityGroupId>\\n <VSwitchIds>vsw-2ze23nqzig8inprou****</VSwitchIds>\\n <Cpu>2</Cpu>\\n <ResourceGroupId>rg-uf66jeqopgqa9hdn****</ResourceGroupId>\\n <ZoneId>cn-hangzhou-b</ZoneId>\\n <ZoneIds>cn-hangzhou-g</ZoneIds>\\n <VirtualNodeName>testNode</VirtualNodeName>\\n </VirtualNodes>\\n</DescribeVirtualNodesResponse>","errorExample":""}]', - 'title' => '批量查询虚拟节点信息', - 'summary' => '调用DescribeVirtualNodes批量查询虚拟节点的详细信息。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"AAAAAdDWBF2****\\",\\n \\"RequestId\\": \\"1340C38D-6189-54D1-86F6-7D5ECF3E0088\\",\\n \\"TagResources\\": [\\n {\\n \\"ResourceType\\": \\"ContainerGroup\\",\\n \\"TagValue\\": \\"testvalue\\",\\n \\"ResourceId\\": \\"eci-2zelg8vwnlzdhf8hv****\\\\n\\",\\n \\"TagKey\\": \\"testkey\\"\\n }\\n ]\\n}","type":"json"}]', ], - 'DescribeContainerGroupMetric' => [ - 'summary' => '调用DescribeContainerGroupMetric查询一个ECI实例的监控数据。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListUsage' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -12473,69 +6442,22 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '17730', - 'abilityTreeNodes' => [ - 'FEATUREeciO8VNZM', - ], + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '17740', + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4', 'FEATUREeci5NN3BU'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ContainerGroupId', - 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例ID,即容器组ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'eci-bp17da5olmkuagfr****', - ], - ], - [ - 'name' => 'StartTime', - 'in' => 'query', - 'schema' => [ - 'description' => '查询某个时间段内的监控数据时,设置的开始时间。取值必须为30天之内,默认为EndTime减去5分钟。'."\n" - ."\n" - .'格式为RFC3339时间格式。例如:北京时间2019年03月12号上午9点整可以表示为2019-03-12T09:00:00.000+08:00或者2019-03-12T01:00:00.000Z', - 'type' => 'string', - 'required' => false, - 'example' => '2019-03-12T01:00:00.000Z', - ], - ], - [ - 'name' => 'EndTime', - 'in' => 'query', - 'schema' => [ - 'description' => '查询某个时间段内的监控数据时,设置的结束时间。默认为当前时间。'."\n" - ."\n" - .'格式为RFC3339时间格式。', - 'type' => 'string', - 'required' => false, - 'example' => '2019-09-12T01:05:00.000Z ', - ], - ], - [ - 'name' => 'Period', + 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '数据聚合周期,单位为秒。目前只支持15、30、60和600秒。默认为60秒。'."\n" - ."\n" - .'> 如果StartTime和EndTime均没有设置,则默认获取最新5分钟的监控数据,默认聚合周期为15S,传入的Period将被忽略。', - 'type' => 'string', - 'required' => false, - 'example' => '15', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], ], 'responses' => [ @@ -12543,748 +6465,61 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => 'D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC', - ], - 'ContainerGroupId' => [ - 'description' => 'ECI实例ID,即容器组ID。', - 'type' => 'string', - 'example' => 'eci-bp1dqpye03ke5s6p****', - ], - 'Records' => [ - 'description' => 'ECI实例的监控数据详情。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Network' => [ - 'description' => '网络数据。', - 'type' => 'object', - 'properties' => [ - 'Interfaces' => [ - 'description' => '网卡数据。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'RxErrors' => [ - 'description' => '累计接收错误数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'TxDrops' => [ - 'description' => '累计发送丢包数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'TxBytes' => [ - 'description' => '累计发送字节数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1381805699', - ], - 'RxPackets' => [ - 'description' => '累计接收包数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4800583', - ], - 'TxPackets' => [ - 'description' => '累计发送包数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '5158427', - ], - 'Name' => [ - 'description' => '网卡名称。', - 'type' => 'string', - 'example' => 'eth0', - ], - 'TxErrors' => [ - 'description' => '累计发送错误数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'RxBytes' => [ - 'description' => '累计接收字节数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '505001954', - ], - 'RxDrops' => [ - 'description' => '累计接收丢包数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - ], - ], - ], - ], - ], - 'CPU' => [ - 'description' => 'CPU数据。', - 'type' => 'object', - 'properties' => [ - 'UsageNanoCores' => [ - 'description' => 'CPU在采样窗口内的使用量(纳秒)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'Limit' => [ - 'description' => 'CPU使用上限(CPU核数*1000)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000', - ], - 'UsageCoreNanoSeconds' => [ - 'description' => 'CPU历史使用总量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '70769883', - ], - 'Load' => [ - 'description' => '最近10秒的平均负载情况。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - ], - ], - 'Disk' => [ - 'description' => '磁盘数据。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'WriteBytes' => [ - 'description' => '磁盘写入的数据量,单位为Byte。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1375109120', - ], - 'WriteIO' => [ - 'description' => '该参数暂未开放使用。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Device' => [ - 'description' => '磁盘名称。', - 'type' => 'string', - 'example' => '/dev/vda', - ], - 'ReadIO' => [ - 'description' => '该参数暂未开放使用。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'ReadBytes' => [ - 'description' => '磁盘读取的数据量,单位为Byte。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '210714112', - ], - ], - ], - ], - 'Timestamp' => [ - 'description' => '每条监控数据对应的统计时间。格式为RFC3339时间格式。', - 'type' => 'string', - 'example' => '2021-08-25T16:22:00.000+08:00', - ], - 'Memory' => [ - 'description' => '内存数据。', - 'type' => 'object', - 'properties' => [ - 'Rss' => [ - 'description' => '常驻内存集,即实际使用的物理内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - 'UsageBytes' => [ - 'description' => '已使用内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - 'WorkingSet' => [ - 'description' => '当前内存工作集使用量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - 'AvailableBytes' => [ - 'description' => '可用内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4285091840', - ], - 'Cache' => [ - 'description' => '缓存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - ], - ], - 'Filesystem' => [ - 'description' => '文件系统分区数据。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Capacity' => [ - 'description' => '空间总量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '41610981376', - ], - 'Available' => [ - 'description' => '可用空间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '35319836672', - ], - 'FsName' => [ - 'description' => '分区名称。', - 'type' => 'string', - 'example' => '/dev/root', - ], - 'Usage' => [ - 'description' => '已使用空间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4368744448', - ], - 'Category' => [ - 'description' => '分区类型。可能值:'."\n" - ."\n" - .'- System'."\n" - .'- Volume'."\n" - .'- Other'."\n", - 'type' => 'string', - 'example' => 'System', - ], - ], - ], - ], - 'Containers' => [ - 'description' => '容器的监控数据详情。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'CPU' => [ - 'description' => '容器的CPU数据。', - 'type' => 'object', - 'properties' => [ - 'UsageNanoCores' => [ - 'description' => 'CPU在采样窗口内的使用量(纳秒)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'Limit' => [ - 'description' => 'CPU使用上限(CPU核数*1000)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1024', - ], - 'UsageCoreNanoSeconds' => [ - 'description' => 'CPU历史使用总量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '40876694', - ], - 'Load' => [ - 'description' => '最近10秒的平均负载情况。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - ], - ], - 'Memory' => [ - 'description' => '容器的内存数据。', - 'type' => 'object', - 'properties' => [ - 'Rss' => [ - 'description' => '常驻内存集,即实际使用的物理内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - 'UsageBytes' => [ - 'description' => '已使用内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - 'WorkingSet' => [ - 'description' => '当前内存工作集使用量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - 'AvailableBytes' => [ - 'description' => '可用内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4285091840', - ], - 'Cache' => [ - 'description' => '缓存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - ], - ], - 'Name' => [ - 'description' => '容器名称。', - 'type' => 'string', - 'example' => 'u1', - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '89164E78-FC82-4684-BE97-DCDD85D26546'], + 'Attributes' => ['description' => '指定地域权益配额的已使用量和使用上限的信息集合。包含以下几项:'."\n" + ."\n" + .'- UsedCpu:已有vCPU数。'."\n" + .'- MaxCpu:vCPU上限。'."\n" + .'- MaxImageCacheCount:手动创建的镜像缓存数量上限。'."\n" + .'- UsedImageCacheCount:已有的手动创建的镜像缓存数量。'."\n" + .'- MaxAutoImageCacheCount:自动创建的镜像缓存数量上限。'."\n" + .'- UsedAutoImageCacheCount:已有的自动创建的镜像缓存数量。'."\n" + .'- MaxDataCacheCount:数据缓存数量上限。'."\n" + .'- UsedDataCacheCount:已有的数据缓存数量。', 'type' => 'object', 'example' => '{'."\n" + .' "UsedAutoImageCacheCount": 4,'."\n" + .' "UsedDataCacheCount": 3,'."\n" + .' "MaxDataCacheCount": 100,'."\n" + .' "UsedCpu": 16.5,'."\n" + .' "MaxCpu": 1000,'."\n" + .' "MaxAutoImageCacheCount": 25,'."\n" + .' "MaxImageCacheCount": 500,'."\n" + .' "UsedImageCacheCount": 0'."\n" + .' }'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC\\",\\n \\"ContainerGroupId\\": \\"eci-bp1dqpye03ke5s6p****\\",\\n \\"Records\\": [\\n {\\n \\"Network\\": {\\n \\"Interfaces\\": [\\n {\\n \\"RxErrors\\": 0,\\n \\"TxDrops\\": 0,\\n \\"TxBytes\\": 1381805699,\\n \\"RxPackets\\": 4800583,\\n \\"TxPackets\\": 5158427,\\n \\"Name\\": \\"eth0\\",\\n \\"TxErrors\\": 0,\\n \\"RxBytes\\": 505001954,\\n \\"RxDrops\\": 0\\n }\\n ]\\n },\\n \\"CPU\\": {\\n \\"UsageNanoCores\\": 0,\\n \\"Limit\\": 2000,\\n \\"UsageCoreNanoSeconds\\": 70769883,\\n \\"Load\\": 0\\n },\\n \\"Disk\\": [\\n {\\n \\"WriteBytes\\": 1375109120,\\n \\"WriteIO\\": 123,\\n \\"Device\\": \\"/dev/vda\\",\\n \\"ReadIO\\": 123,\\n \\"ReadBytes\\": 210714112\\n }\\n ],\\n \\"Timestamp\\": \\"2021-08-25T16:22:00.000+08:00\\",\\n \\"Memory\\": {\\n \\"Rss\\": 9289728,\\n \\"UsageBytes\\": 9289728,\\n \\"WorkingSet\\": 9289728,\\n \\"AvailableBytes\\": 4285091840,\\n \\"Cache\\": 9289728\\n },\\n \\"Filesystem\\": [\\n {\\n \\"Capacity\\": 41610981376,\\n \\"Available\\": 35319836672,\\n \\"FsName\\": \\"/dev/root\\",\\n \\"Usage\\": 4368744448,\\n \\"Category\\": \\"System\\"\\n }\\n ],\\n \\"Containers\\": [\\n {\\n \\"CPU\\": {\\n \\"UsageNanoCores\\": 0,\\n \\"Limit\\": 1024,\\n \\"UsageCoreNanoSeconds\\": 40876694,\\n \\"Load\\": 0\\n },\\n \\"Memory\\": {\\n \\"Rss\\": 9289728,\\n \\"UsageBytes\\": 9289728,\\n \\"WorkingSet\\": 9289728,\\n \\"AvailableBytes\\": 4285091840,\\n \\"Cache\\": 9289728\\n },\\n \\"Name\\": \\"u1\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupMetricResponse>\\n <RequestId>96F7805E-16E6-55B1-817F-EA6CF365E7AE</RequestId>\\n <ContainerGroupId>eci-2zea33h8fdgiw23jfp3f</ContainerGroupId>\\n <Records>\\n <Memory>\\n <UsageBytes>11153408</UsageBytes>\\n <Rss>1593344</Rss>\\n <AvailableBytes>4289445888</AvailableBytes>\\n <WorkingSet>5521408</WorkingSet>\\n <Cache>7028736</Cache>\\n </Memory>\\n <Network>\\n <Interfaces>\\n <RxPackets>0</RxPackets>\\n <TxDrops>0</TxDrops>\\n <RxDrops>0</RxDrops>\\n <RxErrors>0</RxErrors>\\n <TxErrors>0</TxErrors>\\n <TxPackets>0</TxPackets>\\n <RxBytes>505001954</RxBytes>\\n <TxBytes>1381805699</TxBytes>\\n <Name>eth0</Name>\\n </Interfaces>\\n </Network>\\n <Containers>\\n <Memory>\\n <UsageBytes>9850880</UsageBytes>\\n <Rss>1593344</Rss>\\n <AvailableBytes>0</AvailableBytes>\\n <WorkingSet>4841472</WorkingSet>\\n <Cache>7028736</Cache>\\n </Memory>\\n <CPU>\\n <UsageCoreNanoSeconds>38373298</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <UsageNanoCores>0</UsageNanoCores>\\n <Limit>0</Limit>\\n </CPU>\\n <Name>nginx</Name>\\n </Containers>\\n <Containers>\\n <Memory>\\n <UsageBytes>9850880</UsageBytes>\\n <Rss>1593344</Rss>\\n <AvailableBytes>0</AvailableBytes>\\n <WorkingSet>4841472</WorkingSet>\\n <Cache>7028736</Cache>\\n </Memory>\\n <CPU>\\n <UsageCoreNanoSeconds>38373298</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <UsageNanoCores>0</UsageNanoCores>\\n <Limit>0</Limit>\\n </CPU>\\n <Name>nginx</Name>\\n </Containers>\\n <CPU>\\n <UsageCoreNanoSeconds>70769883</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <UsageNanoCores>0</UsageNanoCores>\\n <Limit>2000</Limit>\\n </CPU>\\n <Filesystem>\\n <Usage>612556800</Usage>\\n <Category>System</Category>\\n <FsName>/dev/disk/by-uuid/39d6ac87-caa5-4bdd-b31e-660301e51bab</FsName>\\n <Capacity>52576092160</Capacity>\\n <Available>49262403584</Available>\\n </Filesystem>\\n <Filesystem>\\n <Usage>5022646272</Usage>\\n <Category>Other</Category>\\n <FsName>/dev/root</FsName>\\n <Capacity>41610981376</Capacity>\\n <Available>34665934848</Available>\\n </Filesystem>\\n <Filesystem>\\n <Usage>0</Usage>\\n <Category>Other</Category>\\n <FsName>/dev/shm</FsName>\\n <Capacity>1991725056</Capacity>\\n <Available>1991725056</Available>\\n </Filesystem>\\n <Filesystem>\\n <Usage>37249024</Usage>\\n <Category>Other</Category>\\n <FsName>/dev/vda2</FsName>\\n <Capacity>511647744</Capacity>\\n <Available>436822016</Available>\\n </Filesystem>\\n <Timestamp>2021-08-25T16:22:00.000+08:00</Timestamp>\\n <Disk>\\n <Device>/dev/vda</Device>\\n <ReadBytes>177200640</ReadBytes>\\n <WriteBytes>8542216192</WriteBytes>\\n </Disk>\\n </Records>\\n</DescribeContainerGroupMetricResponse>","errorExample":""}]', - 'title' => '查询一个ECI实例的监控数据', - 'description' => '- 最多支持返回50条监控数据,超出50条将会报错。'."\n" - .'- 仅支持分别查询5分钟以内的实时数据,或者5分钟之前的历史数据。如果查询时间段超出了当前时间点,默认只查询5分钟之前的历史数据。'."\n" - .'- 仅支持查询创建时间晚于北京时间2019年04月03日15点的ECI实例的监控数据。', + 'title' => '查询权益配额', + 'summary' => '调用ListUsage查询指定地域的权益配额,包括已使用量和使用上限。', + 'description' => '本接口不支持资源组鉴权。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeMultiContainerGroupMetric' => [ - 'summary' => '调用DescribeContainerGroupMetric查询一个ECI实例的监控数据。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], + 'changeSet' => [ + ['createdAt' => '2024-02-29T02:17:13.000Z', 'description' => '请求参数发生变更'], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '17736', - 'abilityTreeNodes' => [ - 'FEATUREeciO8VNZM', - ], + 'flowControl' => [ + 'flowControlList' => [], ], - 'parameters' => [ - [ - 'name' => 'RegionId', - 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], - ], - [ - 'name' => 'ContainerGroupIds', - 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例ID,即容器组ID。格式为JSON数组,一次最多支持20个ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => '["eci-2zegym1qhbmdfr1s****","eci-2ze39w5svzj5ic34****"]', - ], - ], + 'ramActions' => [ [ - 'name' => 'ResourceGroupId', - 'in' => 'query', - 'schema' => [ - 'description' => '实例所属的资源组ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'rg-acfmzw2jz2z****', - ], - ], - [ - 'name' => 'MetricType', - 'in' => 'query', - 'schema' => [ - 'description' => '监控信息类型。目前仅支持配置为summary,表示返回Records。', - 'type' => 'string', - 'required' => false, - 'example' => 'summary', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => 'B8756BA0-6452-419C-9727-37A6209C85E0', - ], - 'MonitorDatas' => [ - 'description' => '监控信息集合。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Records' => [ - 'description' => '监控数据详情。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Network' => [ - 'description' => '网络数据。', - 'type' => 'object', - 'properties' => [ - 'Interfaces' => [ - 'description' => '网卡数据。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'RxErrors' => [ - 'description' => '累计接收错误数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'TxDrops' => [ - 'description' => '累计发送丢包数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'TxBytes' => [ - 'description' => '累计发送字节数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1381805699', - ], - 'RxPackets' => [ - 'description' => '累计接收包数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4800583', - ], - 'TxPackets' => [ - 'description' => '累计发送包数量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '5158427', - ], - 'Name' => [ - 'description' => '网卡名称。', - 'type' => 'string', - 'example' => 'eth0', - ], - 'TxErrors' => [ - 'description' => '累计发送错误数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'RxBytes' => [ - 'description' => '累计接收字节数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '505001954', - ], - 'RxDrops' => [ - 'description' => '累计接收丢包数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - ], - ], - ], - ], - ], - 'CPU' => [ - 'description' => 'CPU数据。', - 'type' => 'object', - 'properties' => [ - 'UsageNanoCores' => [ - 'description' => 'CPU在采样窗口内的使用量(纳秒)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'Limit' => [ - 'description' => 'CPU使用上限(CPU核数*1000)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2000', - ], - 'UsageCoreNanoSeconds' => [ - 'description' => 'CPU历史使用总量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '70769883', - ], - 'Load' => [ - 'description' => '最近10秒的平均负载情况。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - ], - ], - 'Disk' => [ - 'description' => '磁盘数据。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'WriteBytes' => [ - 'description' => '磁盘写入的数据量,单位为Byte。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1375109120', - ], - 'Device' => [ - 'description' => '磁盘名称。', - 'type' => 'string', - 'example' => '/dev/vda', - ], - 'WriteIo' => [ - 'description' => '该参数暂未开放使用。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'ReadBytes' => [ - 'description' => '磁盘读取的数据量,单位为Byte。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '210714112', - ], - 'ReadIo' => [ - 'description' => '该参数暂未开放使用。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - ], - ], - ], - 'Timestamp' => [ - 'description' => '监控数据对应的统计时间。格式为RFC3339时间格式。', - 'type' => 'string', - 'example' => '2019-12-19T02:31:54Z', - ], - 'Memory' => [ - 'description' => '内存数据。', - 'type' => 'object', - 'properties' => [ - 'Rss' => [ - 'description' => '常驻内存集,即实际使用的物理内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1593344', - ], - 'UsageBytes' => [ - 'description' => '已使用内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11153408', - ], - 'WorkingSet' => [ - 'description' => '当前内存工作集使用量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '5521408', - ], - 'AvailableBytes' => [ - 'description' => '可用内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4289445888', - ], - 'Cache' => [ - 'description' => '缓存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '7028736', - ], - ], - ], - 'Containers' => [ - 'description' => '容器的监控数据详情。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'CPU' => [ - 'description' => '容器的CPU数据。', - 'type' => 'object', - 'properties' => [ - 'UsageNanoCores' => [ - 'description' => 'CPU在采样窗口内的使用量(纳秒)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'Limit' => [ - 'description' => 'CPU使用上限(CPU核数*1000)。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '321234', - ], - 'UsageCoreNanoSeconds' => [ - 'description' => 'CPU历史使用总量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '40876694', - ], - 'Load' => [ - 'description' => '最近10秒的平均负载情况。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12341', - ], - ], - ], - 'Memory' => [ - 'description' => '容器的内存数据。', - 'type' => 'object', - 'properties' => [ - 'Rss' => [ - 'description' => '常驻内存集,即实际使用的物理内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - 'UsageBytes' => [ - 'description' => ' 已使用内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - 'WorkingSet' => [ - 'description' => '当前内存工作集使用量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - 'AvailableBytes' => [ - 'description' => '可用内存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4285091840', - ], - 'Cache' => [ - 'description' => '缓存。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '9289728', - ], - ], - ], - 'Name' => [ - 'description' => '名称。', - 'type' => 'string', - 'example' => 'test1', - ], - ], - ], - ], - 'Filesystem' => [ - 'description' => '文件系统分区数据。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Capacity' => [ - 'description' => '空间总量。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '41610981376', - ], - 'Available' => [ - 'description' => '可用空间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '35319836672', - ], - 'FsName' => [ - 'description' => '分区名称。', - 'type' => 'string', - 'example' => '/dev/root', - ], - 'Usage' => [ - 'description' => '已使用空间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4368744448', - ], - ], - ], - ], - ], - ], - ], - 'ContainerGroupId' => [ - 'description' => '实例ID,即容器组ID。', - 'type' => 'string', - 'example' => 'eci-bp15oolgorelvhfb****', - ], - ], - ], - ], + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:ListUsage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B8756BA0-6452-419C-9727-37A6209C85E0\\",\\n \\"MonitorDatas\\": [\\n {\\n \\"Records\\": [\\n {\\n \\"Network\\": {\\n \\"Interfaces\\": [\\n {\\n \\"RxErrors\\": 0,\\n \\"TxDrops\\": 0,\\n \\"TxBytes\\": 1381805699,\\n \\"RxPackets\\": 4800583,\\n \\"TxPackets\\": 5158427,\\n \\"Name\\": \\"eth0\\",\\n \\"TxErrors\\": 0,\\n \\"RxBytes\\": 505001954,\\n \\"RxDrops\\": 0\\n }\\n ]\\n },\\n \\"CPU\\": {\\n \\"UsageNanoCores\\": 0,\\n \\"Limit\\": 2000,\\n \\"UsageCoreNanoSeconds\\": 70769883,\\n \\"Load\\": 0\\n },\\n \\"Disk\\": [\\n {\\n \\"WriteBytes\\": 1375109120,\\n \\"Device\\": \\"/dev/vda\\",\\n \\"WriteIo\\": 123,\\n \\"ReadBytes\\": 210714112,\\n \\"ReadIo\\": 123\\n }\\n ],\\n \\"Timestamp\\": \\"2019-12-19T02:31:54Z\\",\\n \\"Memory\\": {\\n \\"Rss\\": 1593344,\\n \\"UsageBytes\\": 11153408,\\n \\"WorkingSet\\": 5521408,\\n \\"AvailableBytes\\": 4289445888,\\n \\"Cache\\": 7028736\\n },\\n \\"Containers\\": [\\n {\\n \\"CPU\\": {\\n \\"UsageNanoCores\\": 0,\\n \\"Limit\\": 321234,\\n \\"UsageCoreNanoSeconds\\": 40876694,\\n \\"Load\\": 12341\\n },\\n \\"Memory\\": {\\n \\"Rss\\": 9289728,\\n \\"UsageBytes\\": 9289728,\\n \\"WorkingSet\\": 9289728,\\n \\"AvailableBytes\\": 4285091840,\\n \\"Cache\\": 9289728\\n },\\n \\"Name\\": \\"test1\\"\\n }\\n ],\\n \\"Filesystem\\": [\\n {\\n \\"Capacity\\": 41610981376,\\n \\"Available\\": 35319836672,\\n \\"FsName\\": \\"/dev/root\\",\\n \\"Usage\\": 4368744448\\n }\\n ]\\n }\\n ],\\n \\"ContainerGroupId\\": \\"eci-bp15oolgorelvhfb****\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeMultiContainerGroupMetricResponse>\\n <RequestId>3BB0E196-5882-4038-BE05-D0765CA13236</RequestId>\\n <MonitorDatas>\\n <ContainerGroupId>eci-2zegym1qhbmdfr1s****</ContainerGroupId>\\n <Records>\\n <Memory>\\n <UsageBytes>4005888</UsageBytes>\\n <Rss>1413120</Rss>\\n <AvailableBytes>4291596288</AvailableBytes>\\n <WorkingSet>3371008</WorkingSet>\\n <Cache>0</Cache>\\n </Memory>\\n <Network>\\n <Interfaces>\\n <RxPackets>1822804</RxPackets>\\n <TxDrops>0</TxDrops>\\n <RxDrops>0</RxDrops>\\n <TxErrors>0</TxErrors>\\n <RxErrors>0</RxErrors>\\n <TxPackets>1694857</TxPackets>\\n <RxBytes>660431995</RxBytes>\\n <TxBytes>410762742</TxBytes>\\n <Name>eth0</Name>\\n </Interfaces>\\n </Network>\\n <Containers>\\n <Memory>\\n <UsageBytes>2854912</UsageBytes>\\n <Rss>1355776</Rss>\\n <AvailableBytes>0</AvailableBytes>\\n <WorkingSet>2842624</WorkingSet>\\n <Cache>0</Cache>\\n </Memory>\\n <CPU>\\n <UsageCoreNanoSeconds>37824896</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <Limit>0</Limit>\\n <UsageNanoCores>0</UsageNanoCores>\\n </CPU>\\n <Name>nginx</Name>\\n </Containers>\\n <CPU>\\n <UsageCoreNanoSeconds>72555191</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <Limit>2000</Limit>\\n <UsageNanoCores>0</UsageNanoCores>\\n </CPU>\\n <Filesystem>\\n <Usage>37130240</Usage>\\n <FsName>/dev/vda2</FsName>\\n <Capacity>511647744</Capacity>\\n <Available>436940800</Available>\\n </Filesystem>\\n <Disk>\\n <WriteIo>0</WriteIo>\\n <Device>/dev/vda</Device>\\n <ReadIo>0</ReadIo>\\n <ReadBytes>273759744</ReadBytes>\\n <WriteBytes>2066857984</WriteBytes>\\n </Disk>\\n <Timestamp/>\\n </Records>\\n </MonitorDatas>\\n <MonitorDatas>\\n <ContainerGroupId>eci-2ze39w5svzj5ic34****</ContainerGroupId>\\n <Records>\\n <Memory>\\n <UsageBytes>6463488</UsageBytes>\\n <Rss>3149824</Rss>\\n <AvailableBytes>4289142784</AvailableBytes>\\n <WorkingSet>5824512</WorkingSet>\\n <Cache>0</Cache>\\n </Memory>\\n <Network>\\n <Interfaces>\\n <RxPackets>1764600</RxPackets>\\n <TxDrops>0</TxDrops>\\n <RxDrops>0</RxDrops>\\n <TxErrors>0</TxErrors>\\n <RxErrors>0</RxErrors>\\n <TxPackets>1641017</TxPackets>\\n <RxBytes>596649892</RxBytes>\\n <TxBytes>406628708</TxBytes>\\n <Name>eth0</Name>\\n </Interfaces>\\n </Network>\\n <Containers>\\n <Memory>\\n <UsageBytes>5242880</UsageBytes>\\n <Rss>3149824</Rss>\\n <AvailableBytes>0</AvailableBytes>\\n <WorkingSet>5230592</WorkingSet>\\n <Cache>0</Cache>\\n </Memory>\\n <CPU>\\n <UsageCoreNanoSeconds>119544335</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <Limit>0</Limit>\\n <UsageNanoCores>0</UsageNanoCores>\\n </CPU>\\n <Name>nginx</Name>\\n </Containers>\\n <CPU>\\n <UsageCoreNanoSeconds>162459172</UsageCoreNanoSeconds>\\n <Load>0</Load>\\n <Limit>2000</Limit>\\n <UsageNanoCores>0</UsageNanoCores>\\n </CPU>\\n <Filesystem>\\n <Usage>37130240</Usage>\\n <FsName>/dev/vda2</FsName>\\n <Capacity>511647744</Capacity>\\n <Available>436940800</Available>\\n </Filesystem>\\n <Disk>\\n <WriteIo>0</WriteIo>\\n <Device>/dev/vda</Device>\\n <ReadIo>0</ReadIo>\\n <ReadBytes>279165440</ReadBytes>\\n <WriteBytes>2090905600</WriteBytes>\\n </Disk>\\n <Timestamp/>\\n </Records>\\n </MonitorDatas>\\n</DescribeMultiContainerGroupMetricResponse>","errorExample":""}]', - 'title' => '查询多个ECI实例的监控数据', - 'description' => '- 仅返回每个ECI实例最新的一条监控信息。'."\n" - .'- 仅支持查询创建时间晚于北京时间2019年04月03日15时的ECI实例的监控数据。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89164E78-FC82-4684-BE97-DCDD85D26546\\",\\n \\"Attributes\\": {\\n \\"UsedAutoImageCacheCount\\": 4,\\n \\"UsedDataCacheCount\\": 3,\\n \\"MaxDataCacheCount\\": 100,\\n \\"UsedCpu\\": 16.5,\\n \\"MaxCpu\\": 1000,\\n \\"MaxAutoImageCacheCount\\": 25,\\n \\"MaxImageCacheCount\\": 500,\\n \\"UsedImageCacheCount\\": 0\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListUsage>\\n <RequestId>89164E78-FC82-4684-BE97-DCDD85D26546</RequestId>\\n <Attributes>\\n <UsedCpu>11</UsedCpu>\\n <MaxCpu>1000</MaxCpu>\\n <MaxImageCacheCount>50</MaxImageCacheCount>\\n <UsedImageCacheCount>0</UsedImageCacheCount>\\n </Attributes>\\n</ListUsage>","errorExample":""}]', ], - 'CreateInstanceOpsTask' => [ - 'summary' => '调用CreateInstanceOpsTask创建一个运维任务。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ResizeContainerGroupVolume' => [ + 'summary' => '调用ResizeContainerGroupVolume扩容指定ECI实例挂载的云盘数据卷。', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -13293,85 +6528,47 @@ 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '92950', - 'abilityTreeNodes' => [ - 'FEATUREeciXQE3ZY', - 'FEATUREeciO9KN4L', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '86142', + 'abilityTreeNodes' => ['FEATUREeci0764O2', 'FEATUREeciJCC6LW'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ContainerGroupId', 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'eci-bp1dvysdafbh00t7****', - ], + 'schema' => ['description' => '要扩容数据卷的ECI实例ID,即容器组ID。', 'type' => 'string', 'required' => true, 'example' => 'eci-2zelg8vwnlzdhf8hv****'], ], [ - 'name' => 'OpsType', + 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '运维任务类型。取值范围:'."\n" - ."\n" - .'- coredump'."\n" - .'- tcpdump', - 'type' => 'string', - 'required' => true, - 'example' => 'coredump', - ], + 'schema' => ['title' => '幂等参数', 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'], ], [ - 'name' => 'OpsValue', + 'name' => 'VolumeName', 'in' => 'query', - 'schema' => [ - 'description' => '运维任务参数。根据OpsType的取值,可设置相应参数。'."\n" - .'- 当OpsType取值为coredump时,OpsValue取值范围如下:'."\n" - .' - enable:开启coredump。'."\n" - .' - disable:关闭coredump。'."\n" - .'- 当OpsType取值为tcpdump时,OpsValue取值为JSON格式的参数字符串,例如`{"Enable":true, "IfDeviceName":"eth0"}`。具体参数如下:'."\n" - .' - Enable:是否开启tcpdump,必填参数,取值为true表示开启,取值为false表示关闭。'."\n" - .' - Protocol:网络协议。取值范围为tcp、udp、icmpv4。'."\n" - .' - SourceIp:源IP地址。'."\n" - .' - SourceCidr:源IP网段。CIDR格式。如果同时设置了IP和IP网段,在IP网段有效时,将忽略IP设置。'."\n" - .' - SourcePort:源端口。取值范围为1~65535。'."\n" - .' - DestIp:目的IP地址。'."\n" - .' - DestCidr:目的IP网段。CIDR格式。如果同时设置了IP和IP网段,在IP网段有效时,将忽略IP设置。'."\n" - .' - DestPort:目的端口。取值范围为1~65535。'."\n" - .' - IfDeviceName:目标网卡。默认为eth0。'."\n" - .' - Snaplen:数据包抓取长度。默认为65535字节。'."\n" - .' - Duration:抓取时间。单位为秒。'."\n" - .' - PacketNum:抓取数据包的目标个数。'."\n" - .' - FileSize:抓取数据包的目标文件大小。单位为字节。最大为1073741824字节(即1 GB)。', - 'type' => 'string', - 'required' => true, - 'example' => 'enable', - ], + 'schema' => ['description' => 'ECI实例挂载的数据卷名称。目前仅支持扩容云盘。', 'type' => 'string', 'required' => true, 'example' => 'default-volume1'], + ], + [ + 'name' => 'NewSize', + 'in' => 'query', + 'schema' => ['description' => '扩容后的云盘容量大小。单位为GiB。取值范围:'."\n" + ."\n" + .'- 高效云盘(cloud_efficiency):20~32768'."\n" + .'- SSD云盘(cloud_ssd):20~32768'."\n" + .'- ESSD云盘(cloud_essd):20~32768'."\n" + .'- 普通云盘(cloud):5~2000'."\n" + ."\n" + .'> 扩容后的云盘容量必须大于原有云盘容量。如果扩容指定的容量与原有云盘容量一致,则仅扩容文件系统。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '100'], ], ], 'responses' => [ @@ -13379,154 +6576,89 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A318-353284CFC7B', - ], - 'Result' => [ - 'description' => '运维任务执行结果。', - 'type' => 'string', - 'example' => 'Enable Success', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'Coredump.RefrshIntervalTooShort', - 'errorMessage' => 'The time interval since last setting too short, please try again later.', - ], - [ - 'errorCode' => 'Ops.TypeNotSupport', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'Coredump.RegionNotSupport', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'CorePattern.UpdateFail', - 'errorMessage' => 'Update coredump settings fail, please try again later', - ], - [ - 'errorCode' => 'Coredump.InvalidCorePatternType', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'InvalidCorePatternValue', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'InvalidInstanceId.NotFound', - 'errorMessage' => 'The specified instanceId does not exist', - ], - [ - 'errorCode' => 'Ops.InstanceNotSupport', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'Ops.IntervalTooShort', - 'errorMessage' => 'The time interval since last setting too short, please try again later.', - ], - [ - 'errorCode' => 'Ops.RegionNotSupport', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'Ops.OpsValueInvalid', - 'errorMessage' => 'Ops value check failed, please confirm by ops type and try again later.', - ], - [ - 'errorCode' => 'Ops.ExecuteTaskFail', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'Tcpdump.InvalidValue', - 'errorMessage' => '%s', - ], + ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s', 'description' => '不合法的参数'], + ], + 403 => [ + ['errorCode' => 'InvalidVolumeType', 'errorMessage' => 'The specified volumeName is invalid, only volume of cloud disk support capacity resize', 'description' => ''], + ['errorCode' => 'IncorrectStatusDetail', 'errorMessage' => '%s', 'description' => ''], + ['errorCode' => 'InvalidAction', 'errorMessage' => 'The specified action is invalid ', 'description' => ''], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B\\",\\n \\"Result\\": \\"Enable Success\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateInstanceOpsTaskResponse>\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B</RequestId>\\n <Result>Coredump settings has been configured successfully.</Result>\\n</CreateInstanceOpsTaskResponse>","errorExample":""}]', - 'title' => '创建运维任务', + 'title' => '扩容容器组的数据卷', 'description' => '## 接口说明'."\n" - .'运维任务支持以下两种:'."\n" ."\n" - .'- coredump:开启coredump后,在容器异常终止时,系统会生成core文件,以便您分析异常,找出问题原因。更多信息,请参见[开启coredump](~~167801~~)。'."\n" - .'- tcpdump:开启tcpdump后,系统将抓取网络数据包,以便您分析报文,定位网络问题。更多信息,请参见[开启tcpdump](~~429749~~)。', - ], - 'DescribeInstanceOpsRecords' => [ - 'summary' => '调用DescribeInstanceOpsRecords查询运维任务信息。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', + .'- 该接口仅支持扩容数据卷,不支持缩容数据卷。'."\n" + .'- 目前仅支持扩容云盘类型的数据卷,暂不支持扩容其他类型的数据卷。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2024-07-31T02:44:30.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2024-07-08T06:45:12.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2024-07-03T16:07:39.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2024-07-03T09:48:50.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-10-11T06:24:02.000Z', 'description' => 'OpenAPI 下线'], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ResizeContainerGroupVolume'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:ResizeContainerGroupVolume', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\"\\n}","errorExample":""},{"type":"xml","example":"<ResizeContainerGroupVolumeResponse>\\r\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>\\r\\n</ResizeContainerGroupVolumeResponse>","errorExample":""}]', + ], + 'RestartContainerGroup' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '105962', - 'abilityTreeNodes' => [ - 'FEATUREeciXQE3ZY', - 'FEATUREeciO9KN4L', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ContainerGroupId', 'in' => 'query', - 'schema' => [ - 'description' => 'ECI实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'eci-bp1dvysdafbh00t7****', - ], + 'schema' => ['description' => 'ECI实例ID,即容器组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'eci-2zelg8vwnlzdhf8hv****'], ], [ - 'name' => 'OpsType', + 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '运维任务类型。取值范围:'."\n" - ."\n" - .'- coredump'."\n" - .'- tcpdump', - 'type' => 'string', - 'required' => true, - 'example' => 'coredump', - ], + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'], ], ], 'responses' => [ @@ -13534,73 +6666,55 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3', - ], - 'Records' => [ - 'description' => '运维任务信息合集。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'CreateTime' => [ - 'description' => '运维任务创建时间。', - 'type' => 'string', - 'example' => '2024-07-22T09:27:43Z', - ], - 'ExpireTime' => [ - 'description' => '运维任务过期时间。', - 'type' => 'string', - 'example' => '2024-07-22T21:27:43Z', - ], - 'OpsType' => [ - 'description' => '运维任务类型。', - 'type' => 'string', - 'example' => 'Coredump', - ], - 'OpsStatus' => [ - 'description' => '运维任务状态。可能值:'."\n" - .'- Ready:开启运维任务。'."\n" - .'- Failed:运维任务执行失败。'."\n" - .'- Expired:配置下发过期,有效期内未触发运维任务。'."\n" - .'- Closed:关闭运维任务。'."\n" - .'- Success:运维任务执行成功。', - 'type' => 'string', - 'example' => 'Ready', - ], - 'ResultType' => [ - 'description' => '运维结果类型。当OpsStatus为Success时返回该参数。 '."\n" - .'目前仅支持返回Oss,表示运维任务生成的文件将保存到OSS中。', - 'type' => 'string', - 'example' => 'Oss', - ], - 'ResultContent' => [ - 'description' => '运维结果内容,即运维任务所生成文件在的下载地址。当OpsStatus为Success时返回该参数。', - 'type' => 'string', - 'example' => 'http://eci-******', - ], - ], - ], - ], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '45D5B0AD-3B00-4A9B-9911-6D5303B06712'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\",\\n \\"Records\\": [\\n {\\n \\"CreateTime\\": \\"2024-07-22T09:27:43Z\\",\\n \\"ExpireTime\\": \\"2024-07-22T21:27:43Z\\",\\n \\"OpsType\\": \\"Coredump\\",\\n \\"OpsStatus\\": \\"Ready\\",\\n \\"ResultType\\": \\"Oss\\",\\n \\"ResultContent\\": \\"http://eci-******\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<DescribeInstanceOpsRecordsResponse>\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>\\n <Records>\\n <CreateTime>2021-12-29T15:00:00Z</CreateTime>\\n <ExpireTime>2099-12-29T15:00:00Z</ExpireTime>\\n <OpsType>coredump</OpsType>\\n <OpsStatus>Ready</OpsStatus>\\n <ResultType>OSS</ResultType>\\n <ResultContent>https://******</ResultContent>\\n </Records>\\n</DescribeInstanceOpsRecordsResponse>","errorExample":""}]', - 'title' => '查询运维任务信息', + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s', 'description' => '不合法的参数'], + ], + 403 => [ + ['errorCode' => 'InvalidAction', 'errorMessage' => 'The specified action is invalid', 'description' => '不合法的操作'], + ], + ], + 'title' => '重启一个容器组', + 'summary' => '调用RestartContainerGroup重启一个ECI实例。', + 'description' => '- 仅状态为启动中(Pending)或者运行中(Running)的ECI实例支持重启,已经运行完成的ECI实例不支持重启。'."\n" + .'- 创建时间早于2019-03-07 15:00:00的ECI实例不支持重启。'."\n" + .'- 重启中的ECI实例状态将变更为Restarting。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RestartContainerGroup'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:RestartContainerGroup', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"45D5B0AD-3B00-4A9B-9911-6D5303B06712\\"\\n}","errorExample":""},{"type":"xml","example":"<RestartContainerGroupResponse>\\r\\n <RequestId>45D5B0AD-3B00-4A9B-9911-6D5303B06712</RequestId>\\r\\n<RestartContainerGroupResponse>","errorExample":""}]', ], 'TagResources' => [ 'summary' => '调用TagResources为指定的ECI资源绑定标签。', - 'methods' => [ - 'post', - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -13613,24 +6727,12 @@ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '资源所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '资源所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '资源所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '资源所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ResourceId', @@ -13639,12 +6741,7 @@ 'schema' => [ 'description' => '资源ID列表。', 'type' => 'array', - 'items' => [ - 'description' => '资源ID。根据ResourceType取值填写对应资源ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'eci-2zelg8vwnlzdhf8hv****', - ], + 'items' => ['description' => '资源ID。根据ResourceType取值填写对应资源ID。', 'type' => 'string', 'required' => false, 'example' => 'eci-2zelg8vwnlzdhf8hv****'], 'required' => true, 'docRequired' => true, 'maxItems' => 100, @@ -13661,18 +6758,8 @@ 'description' => '标签列表。一个资源最多可以绑定20个标签。', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'description' => '标签键。一旦传入该值,则不允许为空字符串。最多支持 128 个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', - 'type' => 'string', - 'required' => false, - 'example' => 'testkey', - ], - 'Value' => [ - 'description' => '标签键。一旦传入该值,可以为空字符串。最多支持 128 个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', - 'type' => 'string', - 'required' => false, - 'example' => 'testvalue', - ], + 'Key' => ['description' => '标签键。一旦传入该值,则不允许为空字符串。最多支持 128 个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => 'testkey'], + 'Value' => ['description' => '标签键。一旦传入该值,可以为空字符串。最多支持 128 个字符,不能以`aliyun`和`acs:`开头,不能包含`http://`或者`https://`。', 'type' => 'string', 'required' => false, 'example' => 'testvalue'], ], 'required' => false, ], @@ -13702,51 +6789,50 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '0E234675-3465-4CC3-9D0F-9A864BC391DD', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC391DD'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'OperationConflict', - 'errorMessage' => 'Request was denied due to conflict with a previous request.', - ], - [ - 'errorCode' => 'NoPermission.Tag', - 'errorMessage' => 'No permissions to operate tags.', - ], - [ - 'errorCode' => 'NumberExceed.Tags', - 'errorMessage' => 'The length of tags exceeded limit: 20.', - ], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'OperationConflict', 'errorMessage' => 'Request was denied due to conflict with a previous request.', 'description' => '该请求被禁止,因为与之前的请求冲突'], + ['errorCode' => 'NoPermission.Tag', 'errorMessage' => 'No permissions to operate tags.', 'description' => '您无操作tag的权限。'], + ['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The length of tags exceeded limit: 20.', 'description' => 'tag的数量超过20的限制。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC391DD\\"\\n}","type":"json"}]', + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '为ECI资源绑定标签', - ], - 'ListTagResources' => [ - 'summary' => '调用ListTagResources查询ECI资源绑定的标签信息。', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'TagResources'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eci:TagResources', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#ContainerGroupId}'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#VirtualNodeId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC391DD\\"\\n}","type":"json"}]', + ], + 'UntagResources' => [ + 'summary' => '调用UntagResources为指定的ECI资源解绑标签。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -13754,35 +6840,17 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '163143', - 'abilityTreeNodes' => [ - 'FEATUREeciO8VNZM', - ], - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '资源所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '资源所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '资源所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '资源所属的地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ 'name' => 'ResourceId', @@ -13791,43 +6859,20 @@ 'schema' => [ 'description' => '资源ID列表。', 'type' => 'array', - 'items' => [ - 'description' => '资源ID。根据ResourceType取值填写对应资源ID。', - 'type' => 'string', - 'required' => false, - 'example' => 'eci-2zelg8vwnlzdhf8hv***', - ], - 'required' => false, + 'items' => ['description' => '资源ID。根据ResourceType取值填写对应资源ID。', 'type' => 'string', 'required' => false, 'example' => 'eci-2zelg8vwnlzdhf8hv****'], + 'required' => true, 'docRequired' => true, 'maxItems' => 100, ], ], [ - 'name' => 'Tag', + 'name' => 'TagKey', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '标签列表。', + 'description' => '要解绑的标签键列表。最多可输入20个标签键。', 'type' => 'array', - 'items' => [ - 'description' => '标签列表。', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '标签键。', - 'type' => 'string', - 'required' => false, - 'example' => 'testkey', - ], - 'Value' => [ - 'description' => '标签值。', - 'type' => 'string', - 'required' => false, - 'example' => 'testvalue', - ], - ], - 'required' => false, - ], + 'items' => ['description' => '要解绑的标签键。', 'type' => 'string', 'required' => false, 'example' => 'testkey'], 'required' => false, 'maxItems' => 100, ], @@ -13835,37 +6880,27 @@ [ 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'description' => '资源类型。取值范围:'."\n" - ."\n" - .'- ContainerGroup:ECI实例'."\n" - .'- ImageCache:镜像缓存'."\n" - .'- DataCache:数据缓存'."\n" - .'- VirtualNode:虚拟节点', - 'type' => 'string', - 'required' => true, - 'example' => 'ContainerGroup', - ], + 'schema' => ['description' => '资源类型。取值范围:'."\n" + ."\n" + .'- ContainerGroup:ECI实例'."\n" + .'- ImageCache:镜像缓存'."\n" + .'- DataCache:数据缓存'."\n" + .'- VirtualNode:虚拟节点', 'type' => 'string', 'required' => true, 'example' => 'ContainerGroup'], ], [ - 'name' => 'Limit', + 'name' => 'All', 'in' => 'query', - 'schema' => [ - 'description' => '查询结果条数上限。', - 'type' => 'string', - 'required' => false, - 'example' => '20', - ], + 'schema' => ['description' => '是否解绑资源上全部的标签。当请求中未设置 `TagKey`时,该参数才有效。取值范围:'."\n" + ."\n" + .'- true'."\n" + .'- false'."\n" + ."\n" + .'默认值:false', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], [ - 'name' => 'NextToken', + 'name' => 'ClientToken', 'in' => 'query', - 'schema' => [ - 'description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。', - 'type' => 'string', - 'required' => false, - 'example' => 'AAAAAdDWBF2****'."\n", - ], + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-xxx-xxx-xxxx-42665544xxxx'], ], ], 'responses' => [ @@ -13873,89 +6908,49 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'NextToken' => [ - 'title' => '下一个查询开始Token,NextToken为空说明没有下一个', - 'description' => '本次调用返回的查询凭证值。', - 'type' => 'string', - 'example' => 'AAAAAdDWBF2****', - ], - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '1340C38D-6189-54D1-86F6-7D5ECF3E0088', - ], - 'TagResources' => [ - 'title' => '资源列表', - 'description' => '资源列表。', - 'type' => 'array', - 'items' => [ - 'description' => '资源列表。', - 'type' => 'object', - 'properties' => [ - 'ResourceType' => [ - 'title' => '资源类型', - 'description' => '资源类型。可能值:'."\n" - ."\n" - .'- ContainerGroup:ECI实例'."\n" - .'- ImageCache:镜像缓存'."\n" - .'- DataCache:数据缓存'."\n" - .'- VirtualNode:虚拟节点', - 'type' => 'string', - 'example' => 'ContainerGroup', - ], - 'TagValue' => [ - 'title' => '标签值', - 'description' => '资源绑定标签的标签值。', - 'type' => 'string', - 'example' => 'testvalue', - ], - 'ResourceId' => [ - 'title' => '资源ID', - 'description' => '资源ID。', - 'type' => 'string', - 'example' => 'eci-2zelg8vwnlzdhf8hv****'."\n", - ], - 'TagKey' => [ - 'title' => '标签键', - 'description' => '资源绑定标签的标签键。', - 'type' => 'string', - 'example' => 'testkey', - ], - ], - ], - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A318-353284CFC7B'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'NoPermission.Tag', - 'errorMessage' => 'No permissions to operate tags.', - ], - [ - 'errorCode' => 'NumberExceed.Tags', - 'errorMessage' => 'The length of tags exceeded limit: 20.', - ], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'OperationConflict', 'errorMessage' => 'Request was denied due to conflict with a previous request.', 'description' => '该请求被禁止,因为与之前的请求冲突'], + ['errorCode' => 'NoPermission.Tag', 'errorMessage' => 'No permissions to operate tags.', 'description' => '您无操作tag的权限。'], + ['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The length of tags exceeded limit: 20.', 'description' => 'tag的数量超过20的限制。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"AAAAAdDWBF2****\\",\\n \\"RequestId\\": \\"1340C38D-6189-54D1-86F6-7D5ECF3E0088\\",\\n \\"TagResources\\": [\\n {\\n \\"ResourceType\\": \\"ContainerGroup\\",\\n \\"TagValue\\": \\"testvalue\\",\\n \\"ResourceId\\": \\"eci-2zelg8vwnlzdhf8hv****\\\\n\\",\\n \\"TagKey\\": \\"testkey\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查询ECI资源绑定的标签信息', - ], - 'UntagResources' => [ - 'summary' => '调用UntagResources为指定的ECI资源解绑标签。', - 'methods' => [ - 'post', - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '为ECI资源解绑标签', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UntagResources'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eci:UntagResources', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#ContainerGroupId}'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#VirtualNodeId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B\\"\\n}","type":"json"}]', + ], + 'UpdateContainerGroup' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -13963,195 +6958,808 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], + ], + [ + 'name' => 'ContainerGroupId', + 'in' => 'query', + 'schema' => ['description' => '指定需要更新的ECI实例ID,即容器组ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'eci-2zelg8vwnlzdhf8hv****'], + ], + [ + 'name' => 'RestartPolicy', + 'in' => 'query', + 'schema' => ['description' => '实例重启策略。取值范围:'."\n" + ."\n" + .'- Always:总是重启'."\n" + .'- Never:从不重启'."\n" + .'- OnFailure:失败时重启', 'type' => 'string', 'required' => false, 'example' => 'Always'], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000 '], + ], + [ + 'name' => 'Cpu', + 'in' => 'query', + 'schema' => ['description' => '实例级别(容器组)的vCPU数。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '2.0'], + ], + [ + 'name' => 'Memory', + 'in' => 'query', + 'schema' => ['description' => '实例级别的(容器组)的内存数。单位为GiB。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '4.0'], + ], + [ + 'name' => 'ResourceGroupId', + 'in' => 'query', + 'schema' => ['description' => '所属资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-2df3isufhi38**** '], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '资源所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', + 'description' => '实例绑定的标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '实例绑定的标签列表。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'name'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => 'hxh'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 21, ], ], [ - 'name' => 'RegionId', + 'name' => 'Volume', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '资源所属的地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', + 'description' => '数据卷列表。', + 'type' => 'array', + 'items' => [ + 'description' => '数据卷列表。', + 'type' => 'object', + 'properties' => [ + 'Name' => ['description' => '数据卷名称。', 'type' => 'string', 'required' => false, 'example' => 'test-empty'], + 'Type' => ['description' => '数据卷类型。取值范围:'."\n" + ."\n" + .'- EmptyDirVolume:EmptyDir类型的数据卷,表示临时目录。'."\n" + .'- ConfigFileVolume:ConfigFile类型的数据卷,表示配置文件。'."\n" + .'- NFSVolume:NFS类型的数据卷,表示网络文件系统,例如NAS。'."\n" + .'- FlexVolume:使用FlexVolume插件扩展存储类型,支持挂载云盘、NAS和OSS。'."\n" + .'- HostPathVolume:HostPath类型的数据卷,表示宿主机上的文件或目录。该取值暂未开放使用。', 'type' => 'string', 'required' => false, 'example' => 'EmptyDirVolume'], + 'NFSVolume.Path' => ['description' => 'NFS数据卷要挂载的路径。', 'type' => 'string', 'required' => false, 'example' => '/'], + 'NFSVolume.Server' => ['description' => 'NFS数据卷的挂载点地址。', 'type' => 'string', 'required' => false, 'example' => '071e349b04-bsd39.cn-hangzhou.nas.aliyuncs.com'], + 'NFSVolume.ReadOnly' => ['description' => 'NFS数据卷的读取权限。取值范围:'."\n" + ."\n" + .'- true:NFS Volume具有只读权限。'."\n" + .'- false:NFS Volume具有可读可写权限。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'ConfigFileVolume.ConfigFileToPath' => [ + 'description' => 'ConfigFile数据卷对应的配置文件信息。', + 'type' => 'array', + 'items' => [ + 'description' => 'ConfigFile数据卷对应的配置文件信息。', + 'type' => 'object', + 'properties' => [ + 'Path' => ['description' => '配置文件的相对文件路径。', 'type' => 'string', 'required' => false, 'example' => 'jin/test'], + 'Content' => ['description' => '配置文件的内容。采用Base64编码。', 'type' => 'string', 'required' => false, 'example' => 'bGl1bWk='], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 16, + ], + 'EmptyDirVolume.Medium' => ['description' => 'EmptyDir数据卷的存储媒介,默认为空,使用node文件系统;支持配置为Memory,表示使用内存。', 'type' => 'string', 'required' => false, 'example' => 'Memory'], + 'EmptyDirVolume.SizeLimit' => ['description' => 'EmptyDir数据卷的大小。取值请带上单位,建议使用Gi或Mi。', 'type' => 'string', 'required' => false, 'example' => '256Mi'], + 'FlexVolume.FsType' => ['description' => '使用FlexVolume插件挂载云盘时,云盘的文件系统类型。支持的类型包括ext4、ext3、xfs、vfat。默认为ext4。', 'type' => 'string', 'required' => false, 'example' => 'ext4'], + 'FlexVolume.Driver' => ['description' => '使用FlexVolume插件挂载数据卷时的驱动类型。取值范围如下:'."\n" + ."\n" + .'- alicloud/disk:挂载云盘。'."\n" + .'- alicloud/nas:挂载NAS。'."\n" + .'- alicloud/oss:挂载OSS。', 'type' => 'string', 'required' => false, 'example' => 'alicloud/disk'], + 'FlexVolume.Options' => ['description' => 'FlexVolume对象选项列表。为KV形式,采用JSON传递。例如通过FlexVolume挂载云盘时,Options表示云盘的配置参数。更多信息,请参见[数据卷概述](~~90672~~)。', 'type' => 'string', 'required' => false, 'example' => '{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}'], + 'HostPathVolume.Path' => ['description' => 'HostPath数据卷在宿主机上的路径。'."\n" + ."\n" + .'> 该参数暂未开放使用。', 'type' => 'string', 'required' => false, 'example' => '/tmp'], + 'HostPathVolume.Type' => ['description' => 'HostPath数据卷的类型。取值范围:'."\n" + ."\n" + .' - Directory:目录。'."\n" + .'- File:文件。'."\n" + ."\n" + .'> 该参数暂未开放使用。', 'type' => 'string', 'required' => false, 'example' => 'Directory'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 61, ], ], [ - 'name' => 'ResourceId', + 'name' => 'DnsConfig.Search', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '资源ID列表。', + 'description' => 'DNS搜索域列表。', + 'type' => 'array', + 'items' => ['description' => 'DNS搜索域列表。', 'type' => 'string', 'required' => false, 'example' => 'my.dns.search.suffix'], + 'required' => false, + 'example' => 'my.dns.search.suffix', + 'maxItems' => 21, + ], + ], + [ + 'name' => 'DnsConfig.NameServer', + 'in' => 'query', + 'style' => 'repeatList', + 'schema' => [ + 'description' => 'DNS服务器的IP地址列表。', + 'type' => 'array', + 'items' => ['description' => 'DNS服务器的IP地址列表。', 'type' => 'string', 'required' => false, 'example' => '1.2.3.4'], + 'required' => false, + 'example' => '1.2.3.4', + 'maxItems' => 21, + ], + ], + [ + 'name' => 'DnsConfig.Option', + 'in' => 'query', + 'style' => 'repeatList', + 'schema' => [ + 'description' => 'DNS配置信息。', 'type' => 'array', 'items' => [ - 'description' => '资源ID。根据ResourceType取值填写对应资源ID。', - 'type' => 'string', + 'description' => 'DNS配置信息。', + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => 'DNS配置的选项变量值。', 'type' => 'string', 'required' => false, 'example' => '2'], + 'Name' => ['description' => 'DNS配置的选项变量名。', 'type' => 'string', 'required' => false, 'example' => 'ndots'], + ], 'required' => false, - 'example' => 'eci-2zelg8vwnlzdhf8hv****', ], - 'required' => true, - 'docRequired' => true, - 'maxItems' => 100, + 'required' => false, + 'maxItems' => 21, ], ], [ - 'name' => 'TagKey', + 'name' => 'Container', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => '要解绑的标签键列表。最多可输入20个标签键。', + 'description' => '指定新的容器组配置信息。', 'type' => 'array', 'items' => [ - 'description' => '要解绑的标签键。', - 'type' => 'string', + 'description' => '指定新的容器组配置信息。', + 'type' => 'object', + 'properties' => [ + 'ReadinessProbe.TimeoutSeconds' => ['description' => '检查超时的时间。默认为1秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'], + 'ReadinessProbe.SuccessThreshold' => ['description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功),默认为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'SecurityContext.Capability.Add' => [ + 'description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" + ."\n" + .'> NET_RAW默认不支持,需提交工单申请。', + 'type' => 'array', + 'items' => ['description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" + ."\n" + .'> NET_RAW默认不支持,需提交工单申请。', 'type' => 'string', 'required' => false, 'example' => 'NET_ADMIN'], + 'required' => false, + 'maxItems' => 101, + ], + 'ReadinessProbe.TcpSocket.Port' => ['description' => 'TcpSocket检测的端口。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5000'], + 'ReadinessProbe.HttpGet.Scheme' => ['description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求对应的协议类型,取值范围:'."\n" + ."\n" + .'- HTTP'."\n" + .'- HTTPS', 'type' => 'string', 'required' => false, 'example' => 'HTTP'], + 'LivenessProbe.PeriodSeconds' => ['description' => '检查执行的周期。默认为10秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + 'SecurityContext.ReadOnlyRootFilesystem' => ['description' => '是否只读根文件系统。取值目前仅支持:true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'EnvironmentVar' => [ + 'description' => '容器的环境变量信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '容器的环境变量信息列表。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '容器的环境变量名。', 'type' => 'string', 'required' => false, 'example' => 'PATH'], + 'Value' => ['description' => '容器的环境变量值。', 'type' => 'string', 'required' => false, 'example' => '/usr/bin/local/'], + 'FieldRef.FieldPath' => ['description' => '使用Pod字段作为环境变量。目前仅支持status.podIP。', 'type' => 'string', 'required' => false, 'example' => 'status.podIP'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 101, + ], + 'LivenessProbe.TcpSocket.Port' => ['description' => 'TcpSocket检测的端口。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'], + 'Tty' => ['description' => '是否开启交互。默认为false,如果Command为/bin/bash类型,需要设置为true。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'WorkingDir' => ['description' => '容器工作目录。', 'type' => 'string', 'required' => false, 'example' => '/usr/share/'], + 'Arg' => [ + 'description' => '容器启动参数。最多10个。', + 'type' => 'array', + 'items' => ['description' => '容器启动参数。', 'type' => 'string', 'required' => false, 'example' => 'hello'], + 'required' => false, + 'example' => 'hello', + 'maxItems' => 101, + ], + 'Stdin' => ['description' => '此容器是否应在容器运行时为标准输入分配缓冲区。如果未设置,则容器中标准输入的读取值将导致EOF。默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'LivenessProbe.InitialDelaySeconds' => ['description' => '检查开始执行的时间。以容器启动完成为起点开始计算。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + 'VolumeMount' => [ + 'description' => '容器的数据卷信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '容器的数据卷信息列表。', + 'type' => 'object', + 'properties' => [ + 'MountPropagation' => ['description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。取值范围:'."\n" + ."\n" + .'- None:该卷不感知任何后续在此卷或其子目录上执行的挂载操作。'."\n" + .'- HostToContainer:该卷将会感知到后续在此卷或其子目录上的挂载操作。'."\n" + .'- Bidirectional:和HostToContainerr类似,能感知挂载操作。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。'."\n" + ."\n" + .'默认值:None', 'type' => 'string', 'required' => false, 'example' => 'None'], + 'MountPath' => ['description' => '容器挂载的目录。容器挂载目录下的内容会被volume的内容直接覆盖,请谨慎使用。', 'type' => 'string', 'required' => false, 'example' => '/usr/share/'], + 'ReadOnly' => ['description' => '是否只读。默认值:false', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'SubPath' => ['description' => '数据卷的子目录,方便Pod将同一个Volume下不同目录挂载到容器不同目录。', 'type' => 'string', 'required' => false, 'example' => '/usr/share/sub/'], + 'Name' => ['description' => '容器挂载的数据卷名称。从ECI实例(容器组)挂载的数据卷中选择,即取值范围为配置的Volume.N.Name参数。', 'type' => 'string', 'required' => false, 'example' => 'test-empty'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 101, + ], + 'ImagePullPolicy' => ['description' => '镜像拉取策略。取值范围:'."\n" + ."\n" + .'- Always:总是拉取。每次都拉取镜像。'."\n" + .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" + .'- Never:从不拉取。使用本地镜像,不拉取镜像。', 'type' => 'string', 'required' => false, 'example' => 'Never'], + 'StdinOnce' => ['description' => '当标准输入为true时,标准输入流将在多个附加会话中保持开启状态。如果StdinOnce设为true,标准输入在容器开启时被打开,在首个客户端附加到标准输入之前都为空,然后会一直保持开启状态,接收数据,直到客户端连接断开,此时标准输入被关闭,在容器重启前一直保持关闭状态。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'LifecyclePreStopHandlerTcpSocketPort' => ['description' => '使用TCPSocket方式设置preStop回调函数时,TCP Socket检测的端口。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '80'], + 'LifecyclePostStartHandlerHttpGetScheme' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检测的路径。', 'type' => 'string', 'required' => false, 'example' => '/healthyz'], + 'ReadinessProbe.PeriodSeconds' => ['description' => '检查执行的周期,默认为10秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'], + 'LivenessProbe.SuccessThreshold' => ['description' => '从上次检查失败后重新认定检查成功的检查次数阈值(必须是连续成功)。默认为1次,当前必须为1次。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'Command' => [ + 'description' => '容器启动命令。最多20个,单个命令支持256个字符。', + 'type' => 'array', + 'items' => ['description' => '容器启动命令。单个命令支持256个字符。', 'type' => 'string', 'required' => false, 'example' => 'echo'], + 'required' => false, + 'example' => 'echo', + 'maxItems' => 101, + ], + 'LifecyclePostStartHandlerHttpGetHost' => ['description' => '使用HTTP请求方式设置postStart回调函数时,接收HTTP Get请求的主机地址。', 'type' => 'string', 'required' => false, 'example' => 'hide'], + 'ReadinessProbe.HttpGet.Path' => ['description' => 'HttpGet检测的路径。', 'type' => 'string', 'required' => false, 'example' => '/usr/'], + 'LivenessProbe.Exec.Command' => [ + 'description' => '容器内检测命令。', + 'type' => 'array', + 'items' => ['description' => '容器内检测命令。', 'type' => 'string', 'required' => false, 'example' => 'echo'], + 'required' => false, + 'maxItems' => 101, + ], + 'LifecyclePostStartHandlerTcpSocketPort' => ['description' => '使用TCPSocket方式设置postStart回调函数时,TCP Socket检测的端口。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'LifecyclePostStartHandlerHttpGetPath' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检测的路径。', 'type' => 'string', 'required' => false, 'example' => '/healthyz'], + 'LifecyclePostStartHandlerExec' => [ + 'description' => '使用命令行方式设置postStart回调函数时,在容器内执行的命令。', + 'type' => 'array', + 'items' => ['description' => '使用命令行方式设置postStart回调函数时,在容器内执行的命令。', 'type' => 'string', 'required' => false, 'example' => '["/bin/sh", "-c", "echo Hello from the postStart handler > /usr/share/message"]'], + 'required' => false, + 'example' => 'hide', + 'maxItems' => 101, + ], + 'LifecyclePreStopHandlerHttpGetPath' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求检测的路径。', 'type' => 'string', 'required' => false, 'example' => '/healthyz'], + 'Port' => [ + 'description' => '容器端口号。取值范围:1~65535', + 'type' => 'array', + 'items' => [ + 'description' => '容器端口号。取值范围:1~65535', + 'type' => 'object', + 'properties' => [ + 'Protocol' => ['description' => 'TCP/UDP。', 'type' => 'string', 'required' => false, 'example' => 'TCP'], + 'Port' => ['description' => '端口号。取值范围:1~65535', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8080'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 101, + ], + 'LifecyclePreStopHandlerHttpGetScheme' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求对应的协议类型,取值范围:'."\n" + ."\n" + .'- HTTP'."\n" + .'- HTTPS', 'type' => 'string', 'required' => false, 'example' => 'HTTP'], + 'LivenessProbe.HttpGet.Scheme' => ['description' => '使用HTTP请求方式进行健康检查时,HTTP Get请求对应的协议类型,取值范围:'."\n" + ."\n" + .'- HTTP'."\n" + .'- HTTPS', 'type' => 'string', 'required' => false, 'example' => 'HTTP'], + 'LifecyclePostStartHandlerHttpGetHttpHeaders' => [ + 'description' => '生成的http请求头中,有效的http请求头信息集合。', + 'type' => 'array', + 'items' => [ + 'description' => '生成的http请求头中,有效的http请求头信息集合。', + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求的请求参数值。', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Name' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求的请求参数。', 'type' => 'string', 'required' => false, 'example' => 'testValue'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 101, + ], + 'ReadinessProbe.HttpGet.Port' => ['description' => 'HttpGet检测的端口号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8080'], + 'LifecyclePostStartHandlerTcpSocketHost' => ['description' => '使用TCP Socket方式设置postStart回调函数时,TCP Socket检测的主机地址。', 'type' => 'string', 'required' => false, 'example' => '10.0.XX.XX'], + 'Gpu' => ['description' => '指定容器使用的GPU个数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'ReadinessProbe.InitialDelaySeconds' => ['description' => '检查开始执行的时间,以容器启动完成为起点计算。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + 'LifecyclePreStopHandlerExec' => [ + 'description' => '使用命令行方式设置preStop回调函数时,在容器内执行的命令。', + 'type' => 'array', + 'items' => ['description' => '使用命令行方式设置preStop回调函数时,在容器内执行的命令。', 'type' => 'string', 'required' => false, 'example' => '["/bin/sh", "-c","echo Hello from the preStop handler > /usr/share/message"]'], + 'required' => false, + 'example' => 'hide', + 'maxItems' => 101, + ], + 'Memory' => ['description' => '容器内存大小。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '2.0'], + 'Name' => ['description' => '容器名称。', 'type' => 'string', 'required' => false, 'example' => 'jenkins'], + 'LifecyclePreStopHandlerHttpGetHost' => ['description' => '使用HTTP请求方式设置preStop回调函数时,接收HTTP Get请求的主机地址。', 'type' => 'string', 'required' => false, 'example' => '10.0.XX.XX'], + 'LifecyclePreStopHandlerTcpSocketHost' => ['description' => '使用TCP Socket方式设置preStop回调函数时,TCP Socket检测的主机地址。', 'type' => 'string', 'required' => false, 'example' => '10.0.XX.XX'], + 'Image' => ['description' => '容器镜像。', 'type' => 'string', 'required' => false, 'example' => 'jenkins'], + 'LifecyclePreStopHandlerHttpGetPort' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求检测的端口号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'LivenessProbe.FailureThreshold' => ['description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败)。默认为3次。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'], + 'ReadinessProbe.Exec.Command' => [ + 'description' => '容器内检测的命令。', + 'type' => 'array', + 'items' => ['description' => '容器内检测的命令。', 'type' => 'string', 'required' => false, 'example' => 'echo'], + 'required' => false, + 'maxItems' => 101, + ], + 'LifecyclePreStopHandlerHttpGetHttpHeader' => [ + 'description' => '生成的http请求头信息。', + 'type' => 'array', + 'items' => [ + 'description' => '生成的http请求头信息。', + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求的请求参数值。', 'type' => 'string', 'required' => false, 'example' => 'testValue'], + 'Name' => ['description' => '使用HTTP请求方式设置preStop回调函数时,HTTP Get请求的请求参数。', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 101, + ], + 'ReadinessProbe.FailureThreshold' => ['description' => '从上次检查成功后认定检查失败的检查次数阈值(必须是连续失败)。默认为3次。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '3'], + 'Cpu' => ['description' => '容器vCPU大小。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '1.0'], + 'LivenessProbe.HttpGet.Port' => ['description' => 'HttpGet检测的端口号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '8080'], + 'LivenessProbe.HttpGet.Path' => ['description' => 'HttpGet检测的路径。', 'type' => 'string', 'required' => false, 'example' => '/usr/local/bin'], + 'LivenessProbe.TimeoutSeconds' => ['description' => '检查超时的时间。默认为1秒,最小为1秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'SecurityContext.RunAsUser' => ['description' => '用于运行容器进程入口点的UID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1377'], + 'LifecyclePostStartHandlerHttpGetPort' => ['description' => '使用HTTP请求方式设置postStart回调函数时,HTTP Get请求检查的端口号。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], 'required' => false, - 'example' => 'testkey', ], 'required' => false, - 'maxItems' => 100, + 'maxItems' => 21, ], ], [ - 'name' => 'ResourceType', + 'name' => 'InitContainer', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '资源类型。取值范围:'."\n" - ."\n" - .'- ContainerGroup:ECI实例'."\n" - .'- ImageCache:镜像缓存'."\n" - .'- DataCache:数据缓存'."\n" - .'- VirtualNode:虚拟节点', - 'type' => 'string', - 'required' => true, - 'example' => 'ContainerGroup', + 'description' => '指定新的Init容器信息。', + 'type' => 'array', + 'items' => [ + 'description' => '指定新的Init容器信息。', + 'type' => 'object', + 'properties' => [ + 'SecurityContext.Capability.Add' => [ + 'description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" + ."\n" + .'> NET_RAW默认不支持,需提交工单申请。', + 'type' => 'array', + 'items' => ['description' => '为容器内的进程授予某些特定的权限。目前仅支持配置为NET\\_ADMIN和NET\\_RAW。'."\n" + ."\n" + .'> NET_RAW默认不支持,需提交工单申请。', 'type' => 'string', 'required' => false, 'example' => 'NET_ADMIN'], + 'required' => false, + 'maxItems' => 101, + ], + 'Image' => ['description' => 'Init容器镜像。', 'type' => 'string', 'required' => false, 'example' => 'nginx'], + 'VolumeMount' => [ + 'description' => '挂载数据卷信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '挂载数据卷信息列表。'."\n" + ."\n", + 'type' => 'object', + 'properties' => [ + 'MountPropagation' => ['description' => '数据卷的挂载传播设置。挂载传播允许将Container挂载的卷共享到同一Pod中的其他Container,甚至可以共享到同一节点上的其他Pod。取值范围:'."\n" + ."\n" + .'- None:该卷不感知到任何后续在此卷或其任何子目录上执行的挂载变化。'."\n" + .'- HostToContainer:该卷将会感知到主机后续针对此卷或其任何子目录的挂载操作。'."\n" + .'- Bidirectional:和HostToContainer类似。另外,该卷将被传播回主机和使用同一卷的所有Pod的所有容器。'."\n" + ."\n" + .'默认值:None', 'type' => 'string', 'required' => false, 'example' => 'None'], + 'MountPath' => ['description' => 'Init容器挂载目录。容器挂载目录下的内容将被volume的内容直接覆盖,请谨慎使用。', 'type' => 'string', 'required' => false, 'example' => '/pod/data'], + 'ReadOnly' => ['description' => '是否只读。默认值:false', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'SubPath' => ['description' => '数据卷的子目录,方便Pod将同一个Volume下不同目录挂载到容器不同目录。', 'type' => 'string', 'required' => false, 'example' => 'data2/'], + 'Name' => ['description' => 'Init容器挂载的数据卷名称。从ECI实例(容器组)挂载的数据卷中选择,即取值范围为配置的Volume.N.Name参数。', 'type' => 'string', 'required' => false, 'example' => 'default-volume1'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 101, + ], + 'Port' => [ + 'description' => '端口号。取值范围:1~65535。', + 'type' => 'array', + 'items' => [ + 'description' => '端口号。取值范围:1~65535。', + 'type' => 'object', + 'properties' => [ + 'Protocol' => ['description' => 'TCP/UDP。', 'type' => 'string', 'required' => false, 'example' => 'TCP'], + 'Port' => ['description' => 'Init容器端口号 。取值范围:1~65535。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '9000'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 101, + ], + 'SecurityContext.ReadOnlyRootFilesystem' => ['description' => '容器运行的根文件系统是否为只读。目前仅支持配置为true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'EnvironmentVar' => [ + 'description' => '容器的环境变量信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '容器的环境变量信息列表。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'Init容器的环境变量名。', 'type' => 'string', 'required' => false, 'example' => 'PATH'], + 'Value' => ['description' => 'Init容器的环境变量值。', 'type' => 'string', 'required' => false, 'example' => '/usr/local/bin'], + 'FieldRef.FieldPath' => ['description' => '环境变量值引用。目前只支持配置为status.podIP。', 'type' => 'string', 'required' => false, 'example' => 'status.podIP'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 101, + ], + 'ImagePullPolicy' => ['description' => '镜像拉取策略。取值范围:'."\n" + ."\n" + .'- Always:总是拉取。每次都拉取镜像。'."\n" + .'- IfNotPresent:按需拉取。优先使用本地镜像,本地没有镜像时则拉取镜像。'."\n" + .'- Never:从不拉取。使用本地镜像,不拉取镜像。', 'type' => 'string', 'required' => false, 'example' => 'IfNotPresent'], + 'StdinOnce' => ['description' => '当标准输入为true时,标准输入流将在多个附加会话中保持开启状态。如果StdinOnce设为true,标准输入在容器开启时被打开,在首个客户端附加到标准输入之前都为空,然后会一直保持开启状态,接收数据,直到客户端连接断开,此时标准输入被关闭,在容器重启前一直保持关闭状态。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'Cpu' => ['description' => 'Init容器vCPU大小。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '2.0'], + 'Tty' => ['description' => '是否开启交互。默认为false,如果Command为/bin/bash类型时,需要设置为true。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'WorkingDir' => ['description' => 'Init容器工作目录。', 'type' => 'string', 'required' => false, 'example' => '/bin/local/'], + 'Command' => [ + 'description' => 'Init容器指令。', + 'type' => 'array', + 'items' => ['description' => 'Init容器指令。', 'type' => 'string', 'required' => false, 'example' => '/bin/sh sleep'], + 'required' => false, + 'example' => '/bin/sh sleep', + 'maxItems' => 101, + ], + 'Arg' => [ + 'description' => 'Init容器启动参数。', + 'type' => 'array', + 'items' => ['description' => 'Init容器启动参数。', 'type' => 'string', 'required' => false, 'example' => '10'], + 'required' => false, + 'example' => '10', + 'maxItems' => 101, + ], + 'SecurityContext.RunAsUser' => ['description' => '设置运行容器的用户ID。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000'], + 'Gpu' => ['description' => '指定Init容器使用的GPU个数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'Memory' => ['description' => 'Init容器内存大小。', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '4.0'], + 'Stdin' => ['description' => '此容器是否应在容器运行时为标准输入分配缓冲区。如果未设置,则容器中标准输入的读取值将导致EOF。默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'Name' => ['description' => 'Init容器名称。', 'type' => 'string', 'required' => false, 'example' => 'init-nginx'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 21, ], ], [ - 'name' => 'All', + 'name' => 'ImageRegistryCredential', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '是否解绑资源上全部的标签。当请求中未设置 `TagKey`时,该参数才有效。取值范围:'."\n" - ."\n" - .'- true'."\n" - .'- false'."\n" - ."\n" - .'默认值:false', - 'type' => 'boolean', + 'description' => '镜像仓库凭证信息列表。', + 'type' => 'array', + 'items' => [ + 'description' => '镜像仓库凭证信息列表。', + 'type' => 'object', + 'properties' => [ + 'Password' => ['description' => '镜像仓库密码。', 'type' => 'string', 'required' => false, 'example' => 'yourpassword'], + 'Server' => ['description' => '不带`http://`或`https://`前缀的镜像仓库地址。', 'type' => 'string', 'required' => false, 'example' => 'registry.cn-shanghai.aliyuncs.com/ecitest/nginx:alpine'], + 'UserName' => ['description' => '镜像仓库用户名。', 'type' => 'string', 'required' => false, 'example' => 'yourname'], + ], + 'required' => false, + ], 'required' => false, - 'example' => 'false', + 'maxItems' => 21, ], ], [ - 'name' => 'ClientToken', + 'name' => 'AcrRegistryInfo', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', - 'type' => 'string', + 'description' => 'ACR企业版实例信息。', + 'type' => 'array', + 'items' => [ + 'description' => 'ACR企业版实例信息。', + 'type' => 'object', + 'properties' => [ + 'InstanceId' => ['description' => 'ACR企业版实例ID。', 'type' => 'string', 'required' => false, 'example' => 'cri-nwj395hgf6f3****'], + 'InstanceName' => ['description' => 'ACR企业版实例的名称。', 'type' => 'string', 'required' => false, 'example' => 'acr-test'], + 'RegionId' => ['description' => 'ACR企业版实例所属地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], + 'Domain' => [ + 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', + 'type' => 'array', + 'items' => ['description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', 'type' => 'string', 'required' => false, 'example' => 'cn-beijing'], + 'required' => false, + 'maxItems' => 21, + ], + ], + 'required' => false, + ], 'required' => false, - 'example' => '123e4567-xxx-xxx-xxxx-42665544xxxx', + 'maxItems' => 21, ], ], + [ + 'name' => 'UpdateType', + 'in' => 'query', + 'schema' => ['description' => '更新类型。取值范围:'."\n" + ."\n" + .'- RenewUpdate:全量更新,更新时需填写相关的所有参数。如果参数是一个List,不支持单独更新某个item,如果参数是一个结构体,不支持单独更新某个内部成员。'."\n" + .'- IncrementalUpdate:增量更新,更新时可以只填某一需要更新的参数,其它相关参数保持原有不变。'."\n" + ."\n" + .'默认为RenewUpdate。', 'type' => 'string', 'required' => false, 'example' => 'RenewUpdate'], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '89945DD3-9072-47D0-A318-353284CFC7B', - ], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => 'CB8D2B22-D636-4182-****-1FC9DBDAD66F'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'IncorrectStatus', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'OperationConflict', - 'errorMessage' => 'Request was denied due to conflict with a previous request.', - ], - [ - 'errorCode' => 'NoPermission.Tag', - 'errorMessage' => 'No permissions to operate tags.', - ], - [ - 'errorCode' => 'NumberExceed.Tags', - 'errorMessage' => 'The length of tags exceeded limit: 20.', - ], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'InvalidParameter.DuplicatedName', 'errorMessage' => 'The container group include containers with duplicate names.', 'description' => '容器组内有重复名字的容器。'], + ['errorCode' => 'InvalidParameter.DuplicatedVolumeName', 'errorMessage' => 'The container group includes volumes with duplicate names.', 'description' => '容器组内有重复名字的数据卷。'], + ['errorCode' => 'InvalidParameter.LengthExceeded', 'errorMessage' => '%s', 'description' => 'List型参数的长度超过规定值'], + ['errorCode' => 'InvalidParameter.ValueExceeded', 'errorMessage' => '%s', 'description' => '参数值超过规定范围'], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'InvalidParam.CpuOrMemorySpec', 'errorMessage' => 'The specified specification is invalid.', 'description' => '指定的规格还未开放售卖,不提供价格查询。'], + ['errorCode' => 'InvalidParameter', 'errorMessage' => '%s', 'description' => '不合法的参数'], + ['errorCode' => 'MissingParameter', 'errorMessage' => '%s', 'description' => '必填参数缺失'], + ['errorCode' => 'NoNeedUpdate', 'errorMessage' => 'There are no changes to be updated for current resource.', 'description' => '本次操作没有需要更新的参数'], + ], + 403 => [ + ['errorCode' => 'InvalidAction', 'errorMessage' => 'The specified action is invalid', 'description' => '不合法的操作'], + ], + [ + ['errorCode' => 'InvalidParameter.NotFound', 'errorMessage' => '%s', 'description' => '参数未找到'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => '更新一个容器组', + 'summary' => '更新实例。', + 'description' => '- 仅支持处于启动中(Pending)或运行中(Running)状态的ECI实例进行更新。更新操作后,ECI实例状态将变更为更新中(Updating)。'."\n" + .'- 更新RestartPolicy配置为Never的ECI实例可能会有容器Failed的风险,请慎重更新。', + 'requestParamsDescription' => '### 参数说明'."\n" + .'**Container和InitContainer**'."\n" + .'InitContainer和Container均仅支持全量更新。更新InitContainer需要重启实例。'."\n" + .'更新包括以下几种情况:'."\n" + .'- 原ECI实例同时有InitContainer和Container,但只更新InitContainer。'."\n" + .'- 原ECI实例同时有InitContainer和Container,但只更新Container。'."\n" + .'- 原ECI实例同时有InitContainer和Container,InitContainer和Container全部更新。'."\n" + .'- 原ECI实例只有Container,更新Container。'."\n" + .'- 原ECI实例只有Container,增加InitContainer。'."\n" + .'- 原ECI实例只有Container,增加InitContainer,同时更新Container。'."\n" + ."\n\n" + .'**ImageRegistryCredentials**'."\n" + .'- 仅支持全量更新。'."\n" + .'- 如果单独更新ImageRegistryCredentials,且更新后的ImageRegistryCredentials的数量不超过之前原ImageRegistryCredentials,则无需重启ECI实例,其他情况需要重启ECI实例。'."\n" + ."\n" + .'> 全量更新:如果参数是一个List,不支持单独更新某个item,如果参数是一个结构体,不支持单独更新某个内部成员。', + 'responseParamsDescription' => "\n" + ."\n\n" + ."\n\n" + ."\n", + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2022-09-15T08:42:40.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-09-15T08:42:40.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-02-28T16:20:17.000Z', 'description' => '请求参数发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B\\"\\n}","type":"json"}]', - 'title' => '为ECI资源解绑标签', - ], - 'ListUsage' => [ - 'summary' => '调用ListUsage查询指定地域的权益配额,包括已使用量和使用上限。', - 'methods' => [ - 'post', - 'get', + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateContainerGroup'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:UpdateContainerGroup', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CB8D2B22-D636-4182-****-1FC9DBDAD66F\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateContainerGroup>\\r\\n <RequestId>CB8D2B22-D636-4182-****-1FC9DBDAD66F</RequestId>\\r\\n</UpdateContainerGroup>","errorExample":""}]', + ], + 'UpdateDataCache' => [ + 'summary' => '更新一个数据缓存。', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'update', 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '17740', - 'abilityTreeNodes' => [ - 'FEATUREeciIGQQJ4', - 'FEATUREeci5NN3BU', - ], - 'tenantRelevance' => 'publicInformation', + 'chargeType' => 'paid', + 'abilityTreeCode' => '180519', + 'abilityTreeNodes' => ['FEATUREeciIGQQJ4'], ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], + ], + [ + 'name' => 'RegionId', + 'in' => 'query', + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], + ], + [ + 'name' => 'DataCacheId', + 'in' => 'query', + 'schema' => ['description' => '数据缓存ID。', 'type' => 'string', 'required' => false, 'example' => 'edc-bp1a7n7uawwwol******'], + ], + [ + 'name' => 'SecurityGroupId', + 'in' => 'query', + 'schema' => ['description' => '安全组ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'sg-2ze81zoc3yl7a3we****'], + ], + [ + 'name' => 'VSwitchId', + 'in' => 'query', + 'schema' => ['description' => '交换机ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'vsw-2ze23nqzig8inprou****'], + ], + [ + 'name' => 'Bucket', + 'in' => 'query', + 'schema' => ['description' => '数据缓存Bucket。默认为default。', 'type' => 'string', 'required' => false, 'example' => 'default'], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['description' => '数据缓存名称。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'test'], + ], + [ + 'name' => 'Size', + 'in' => 'query', + 'schema' => ['description' => '数据缓存大小。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + [ + 'name' => 'DataSource', + 'in' => 'query', + 'style' => 'flat', 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', + 'description' => '数据源信息。', + 'type' => 'object', + 'properties' => [ + 'Type' => ['description' => '数据源类型。取值范围:'."\n" + ."\n" + .'- URL'."\n" + .'- NAS'."\n" + .'- OSS'."\n" + .'- SNAPSHOT', 'type' => 'string', 'required' => false, 'example' => 'URL'], + 'Options' => [ + 'description' => '数据源的配置参数。', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n" + .' "#10#repoSource": "HuggingFace/Model",'."\n" + .' "#6#repoId": "stabilityai/stable-diffusion-2-1"'."\n" + .'}', 'description' => '数据源的配置参数。不同类型数据源要传入的参数不同。各类型数据源及其配置参数说明,请参见[创建数据缓存](~~2391456~~)。'], + ], + ], 'required' => false, - 'docRequired' => true, - 'example' => 'cn-hangzhou', + 'docRequired' => false, ], ], [ - 'name' => 'RegionId', + 'name' => 'RetentionDays', 'in' => 'query', + 'schema' => ['description' => '保留天数。过期会被清理。默认不过期。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7'], + ], + [ + 'name' => 'ResourceGroupId', + 'in' => 'query', + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-acfmzw2jz2z****'], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', + 'description' => '标签列表。', + 'type' => 'array', + 'items' => [ + 'description' => '标签列表。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'testkey'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => 'testvalue'], + ], + 'required' => false, + ], + 'required' => false, + 'maxItems' => 21, + ], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '2f22dc16-cad0-4d3f-87e5-91e604756547'], + ], + [ + 'name' => 'EipInstanceId', + 'in' => 'query', + 'schema' => ['description' => '弹性公网IP。如果VPC没有配置NAT网关,可以绑定弹性公网IP,以便拉取公网数据。', 'type' => 'string', 'required' => false, 'example' => 'eip-2zedsm5mfl3uhdj2d****'], + ], + [ + 'name' => 'EipCreateParam', + 'in' => 'query', + 'style' => 'flat', + 'schema' => [ + 'description' => '创建一个弹性公网IP(EIP)并绑定。'."\n" + .'如果VPC没有配置NAT网关,可以绑定EIP,以便拉取公网数据。', + 'type' => 'object', + 'properties' => [ + 'Bandwidth' => ['description' => 'EIP带宽。单位为Mbps。默认为5 Mbps。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + 'CommonBandwidthPackage' => ['description' => '绑定已有的共享带宽包。', 'type' => 'string', 'required' => false, 'example' => 'cbwp-2zeukbj916scmj51m****'], + 'InternetChargeType' => ['description' => 'EIP的计量方式。取值范围:'."\n" + ."\n" + .'- PayByBandwidth:按带宽计费'."\n" + .'- PayByTraffic:按流量计费', 'type' => 'string', 'required' => false, 'example' => 'PayByTraffic'], + 'PublicIpAddressPoolId' => ['description' => 'IP地址池ID。'."\n" + .'EIP将从该IP地址池中分配。'."\n" + .'IP地址池功能默认不开放。如需使用,请在配额中心申请IP地址池功能权益配额。', 'type' => 'string', 'required' => false, 'example' => 'pippool-bp187arfugi543y1s****'], + 'ISP' => ['description' => 'EIP的线路类型。取值范围:'."\n" + ."\n" + .'- BGP(默认值):BGP(多线)线路'."\n" + .'- BGP_PRO:BGP(多线)精品线路', 'type' => 'string', 'required' => false, 'example' => 'BGP'], + ], + 'required' => false, ], ], ], @@ -14160,202 +7768,261 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '89164E78-FC82-4684-BE97-DCDD85D26546', - ], - 'Attributes' => [ - 'description' => '指定地域权益配额的已使用量和使用上限的信息集合。包含以下几项:'."\n" - ."\n" - .'- UsedCpu:已有vCPU数。'."\n" - .'- MaxCpu:vCPU上限。'."\n" - .'- MaxImageCacheCount:手动创建的镜像缓存数量上限。'."\n" - .'- UsedImageCacheCount:已有的手动创建的镜像缓存数量。'."\n" - .'- MaxAutoImageCacheCount:自动创建的镜像缓存数量上限。'."\n" - .'- UsedAutoImageCacheCount:已有的自动创建的镜像缓存数量。'."\n" - .'- MaxDataCacheCount:数据缓存数量上限。'."\n" - .'- UsedDataCacheCount:已有的数据缓存数量。', - 'type' => 'object', - 'example' => '{'."\n" - .' "UsedAutoImageCacheCount": 4,'."\n" - .' "UsedDataCacheCount": 3,'."\n" - .' "MaxDataCacheCount": 100,'."\n" - .' "UsedCpu": 16.5,'."\n" - .' "MaxCpu": 1000,'."\n" - .' "MaxAutoImageCacheCount": 25,'."\n" - .' "MaxImageCacheCount": 500,'."\n" - .' "UsedImageCacheCount": 0'."\n" - .' }', - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => 'BD8BBB43-8E05-5F46-89A9-2512D8A324A2'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89164E78-FC82-4684-BE97-DCDD85D26546\\",\\n \\"Attributes\\": {\\n \\"UsedAutoImageCacheCount\\": 4,\\n \\"UsedDataCacheCount\\": 3,\\n \\"MaxDataCacheCount\\": 100,\\n \\"UsedCpu\\": 16.5,\\n \\"MaxCpu\\": 1000,\\n \\"MaxAutoImageCacheCount\\": 25,\\n \\"MaxImageCacheCount\\": 500,\\n \\"UsedImageCacheCount\\": 0\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListUsage>\\n <RequestId>89164E78-FC82-4684-BE97-DCDD85D26546</RequestId>\\n <Attributes>\\n <UsedCpu>11</UsedCpu>\\n <MaxCpu>1000</MaxCpu>\\n <MaxImageCacheCount>50</MaxImageCacheCount>\\n <UsedImageCacheCount>0</UsedImageCacheCount>\\n </Attributes>\\n</ListUsage>","errorExample":""}]', - 'title' => '查询权益配额', - 'description' => '本接口不支持资源组鉴权。', - 'requestParamsDescription' => ' ', - 'responseParamsDescription' => ' ', - 'extraInfo' => ' ', - ], - 'DescribeContainerGroupPrice' => [ - 'summary' => '查询ECI实例的价格。', - 'methods' => [ - 'post', - 'get', + 'errorCodes' => [ + 400 => [ + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'ImageCache.IncorrectStatus', 'errorMessage' => '%s', 'description' => '镜像缓存当前的状态不对。'], + ['errorCode' => 'ImageCacheNotSupport', 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', 'description' => '镜像缓存功能还未全网开放,如果有需要请联系我们。'], + ['errorCode' => 'EipAddressPoolIpNotEnough', 'errorMessage' => 'The ip address of specified PublicIpAddressPool is not enough.', 'description' => '指定的eip公网地址池地址资源不足。'], + ], + 403 => [ + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新数据缓存', + 'changeSet' => [ + ['createdAt' => '2023-09-01T08:45:58.000Z', 'description' => '请求参数发生变更'], ], - 'schemes' => [ - 'http', - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:UpdateDataCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/{#datacacheId}'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BD8BBB43-8E05-5F46-89A9-2512D8A324A2\\"\\n}","type":"json"}]', + ], + 'UpdateImageCache' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '17731', - 'abilityTreeNodes' => [ - 'FEATUREeciY9GS39', - 'FEATUREeci5NN3BU', - 'FEATUREeciIT94P2', - 'FEATUREeciCZBDK8', - ], - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。您可以调用[DescribeRegions](~~146965~~)查询最新的地域可用区信息。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou '], ], [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。您可以调用[DescribeRegions](~~146965~~)查询最新的地域可用区信息。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou '], ], [ - 'name' => 'Cpu', + 'name' => 'ImageCacheId', 'in' => 'query', - 'schema' => [ - 'description' => 'vCPU大小。ECI支持的vCPU和内存规格请参见[vCPU和内存规格说明](~~114662~~)。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'docRequired' => true, - 'example' => '2.0', - ], + 'schema' => ['description' => '镜像缓存ID。', 'type' => 'string', 'required' => true, 'example' => 'imc-bp195erqe9o2pb09**** '], ], [ - 'name' => 'Memory', + 'name' => 'SecurityGroupId', 'in' => 'query', - 'schema' => [ - 'description' => '内存大小。单位为GiB。ECI支持的vCPU和内存规格请参见[vCPU和内存规格说明](~~114662~~)。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'docRequired' => true, - 'example' => '4.0', - ], + 'schema' => ['description' => '安全组ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'sg-uf66jeqopgqa9hdn**** '], ], [ - 'name' => 'InstanceType', + 'name' => 'VSwitchId', + 'in' => 'query', + 'schema' => ['description' => '交换机ID。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'vsw-uf6h3rbwbm90urjwa**** '], + ], + [ + 'name' => 'ImageCacheName', 'in' => 'query', + 'schema' => ['description' => '镜像缓存名称。', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'testcache'], + ], + [ + 'name' => 'EipInstanceId', + 'in' => 'query', + 'schema' => ['description' => '弹性公网IP。如果需要拉取公网镜像,需要确保ECI实例能够访问公网,您可以配置EIP或者NAT网关实现公网访问。', 'type' => 'string', 'required' => false, 'example' => 'eip-2zedsm5mfl3uhdj2d****'], + ], + [ + 'name' => 'ResourceGroupId', + 'in' => 'query', + 'schema' => ['description' => '资源组ID。', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzh43v***** '], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-xxx-xxx-xxxx-42665544xxxx'], + ], + [ + 'name' => 'ImageCacheSize', + 'in' => 'query', + 'schema' => ['description' => '镜像缓存的大小。默认为20 GiB。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + [ + 'name' => 'RetentionDays', + 'in' => 'query', + 'schema' => ['description' => '镜像缓存保留时间,过期将会被清理,默认永不过期。'."\n" + ."\n" + .'> 创建失败的镜像缓存仅保留一天。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7'], + ], + [ + 'name' => 'AutoMatchImageCache', + 'in' => 'query', + 'schema' => ['description' => '是否开启镜像缓存复用。开启后,新创建的镜像缓存可以复用已有镜像缓存的镜像层,加快镜像缓存的制作速度。取值范围:'."\n" + ."\n" + .'- true:开启'."\n" + .'- false:不开启'."\n" + ."\n" + .'默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + ], + [ + 'name' => 'ImageRegistryCredential', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '指定的ECS实例规格。ECI支持指定的ECS规格请参见[ECI支持的ECS规格说明](~~114664~~)。'."\n" - ."\n" - .'> 设置该参数后,将自动忽略传入的vCPU和内存值,仅返回ECS规格的价格信息。', - 'type' => 'string', + 'description' => '镜像仓库信息。', + 'type' => 'array', + 'items' => [ + 'description' => '镜像仓库信息。', + 'type' => 'object', + 'properties' => [ + 'Password' => ['description' => '镜像仓库密码。', 'type' => 'string', 'required' => false, 'example' => 'password'], + 'Server' => ['description' => '不带 `http://` 或 `https://` 前缀的镜像仓库地址。', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com'], + 'UserName' => ['description' => '镜像仓库用户名。', 'type' => 'string', 'required' => false, 'example' => 'username'], + ], + 'required' => false, + ], 'required' => false, - 'example' => 'ecs.c5.large', + 'maxItems' => 11, ], ], [ - 'name' => 'SpotStrategy', + 'name' => 'Image', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '实例的抢占策略。取值范围:'."\n" - ."\n" - .'- NoSpot:正常按量付费实例。'."\n" - .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" - .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。'."\n" + 'description' => '用于制作镜像缓存的容器镜像列表。'."\n" ."\n" - .'默认为:NoSpot。', - 'type' => 'string', + .'> 如果您希望触发一次镜像缓存的原地升级,而不需要更新缓存镜像列表,仍然需要传入缓存镜像列表,否则镜像数据不会更新到最新版本,只会刷新meta数据。', + 'type' => 'array', + 'items' => ['description' => '用于制作镜像缓存的容器镜像。', 'type' => 'string', 'required' => false, 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl'], 'required' => false, - 'example' => 'SpotWithPriceLimit', + 'example' => 'registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl', + 'maxItems' => 101, ], ], [ - 'name' => 'ZoneId', + 'name' => 'Tag', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '可用区。您可以调用[DescribeRegions](~~146965~~)查询最新的地域可用区信息。', - 'type' => 'string', + 'description' => '镜像缓存绑定的标签信息,最多20个。', + 'type' => 'array', + 'items' => [ + 'description' => '镜像缓存绑定的标签信息,最多20个。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '镜像缓存标签键。', 'type' => 'string', 'required' => false, 'example' => 'imc'], + 'Value' => ['description' => '镜像缓存标签值。', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + ], 'required' => false, - 'example' => 'cn-hangzhou-g', + 'maxItems' => 21, ], ], [ - 'name' => 'SpotPriceLimit', + 'name' => 'Flash', 'in' => 'query', - 'schema' => [ - 'description' => '设置抢占式实例的每小时最高价格,最多精确到小数点后3位。当SpotStrategy取值为SpotWithPriceLimit时,必须设置SpotPriceLimit。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '0.2', - ], + 'schema' => ['description' => '是否开启极速镜像缓存功能,开启后,可以加速镜像缓存创建。取值范围:'."\n" + ."\n" + .'- true:开启'."\n" + .'- false:不开启'."\n" + ."\n" + .'默认为false。', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], [ - 'name' => 'EphemeralStorage', + 'name' => 'AcrRegistryInfo', 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '临时存储空间大小。单位为GiB.。', - 'type' => 'integer', - 'format' => 'int32', + 'description' => 'ACR企业版实例信息。', + 'type' => 'array', + 'items' => [ + 'description' => 'ACR企业版实例信息。', + 'type' => 'object', + 'properties' => [ + 'Domain' => [ + 'description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', + 'type' => 'array', + 'items' => ['description' => 'ACR企业版实例的域名。默认为相应实例的所有域名。支持指定个别域名,多个以半角逗号分隔。', 'type' => 'string', 'required' => false, 'example' => 'test****-registry.cn-hangzhou.cr.aliyuncs.com'], + 'required' => false, + 'example' => 'test****-registry.cn-hangzhou.cr.aliyuncs.com', + 'maxItems' => 100, + ], + 'InstanceName' => ['description' => 'ACR企业版实例的名称。', 'type' => 'string', 'required' => false, 'example' => 'test****'], + 'InstanceId' => ['description' => 'ACR企业版实例ID。', 'type' => 'string', 'required' => false, 'example' => 'cri-nwj395hgf6f3**** '], + 'RegionId' => ['description' => 'ACR企业版实例所属地域。', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'], + ], + 'required' => false, + ], 'required' => false, - 'example' => '20', + 'maxItems' => 21, ], ], [ - 'name' => 'SpotDuration', + 'name' => 'StandardCopyCount', 'in' => 'query', - 'schema' => [ - 'description' => '抢占式实例的保护期。单位为小时。默认为1。可设置为0,表示无保护期。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => '标准快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n" + ."\n" + .'> 未开启极速镜像缓存功能(Flash取值为false)时,创镜像缓存的过程中仅生成标准快照。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7'], ], [ - 'name' => 'ComputeCategory', + 'name' => 'FlashCopyCount', 'in' => 'query', - 'schema' => [ - 'description' => '算力类别。取值为economy时,表示查询经济型规格的价格。', - 'type' => 'string', - 'required' => false, - 'example' => 'economy', - ], + 'schema' => ['description' => '本地快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n" + ."\n" + .'> 开启极速镜像缓存功能(Flash取值为true)时,创建镜像缓存的过程中将先创建本地快照,在本地快照创建完成后开始创建标准快照,待标准快照创建完成后会自动删除本地快照。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7'], + ], + [ + 'name' => 'EliminationStrategy', + 'in' => 'query', + 'schema' => ['description' => '镜像缓存的淘汰策略。默认为空,表示一直保留。'."\n" + ."\n" + .'支持配置为LRU,表示可以被自动删除。当镜像缓存数量达到配额限制时,系统将自动删除最不常用的EliminationStrategy为LRU的镜像缓存。', 'type' => 'string', 'required' => false, 'example' => 'LRU'], ], ], 'responses' => [ @@ -14363,640 +8030,2005 @@ 'schema' => [ 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID,唯一标识。', - 'type' => 'string', - 'example' => '7A872585-33C7-4D69-AB8E-412E81EBA387', - ], - 'PriceInfo' => [ - 'description' => '价格信息类型(Price),包括价格和优惠规则。', - 'type' => 'object', - 'properties' => [ - 'SpotPrices' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'SpotPrice' => [ - 'description' => '抢占式实例价格信息。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ZoneId' => [ - 'description' => '可用区。', - 'type' => 'string', - 'example' => 'cn-hangzhou-i', - ], - 'SpotPrice' => [ - 'description' => '抢占式实例的价格。', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.056', - ], - 'InstanceType' => [ - 'description' => '实例规格。', - 'type' => 'string', - 'example' => 'ecs.c5.large', - ], - 'OriginPrice' => [ - 'description' => '原价。', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.622', - ], - ], - ], - ], - ], - ], - 'Price' => [ - 'description' => '价格。', - 'type' => 'object', - 'properties' => [ - 'DiscountPrice' => [ - 'description' => '折扣价。', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'TradePrice' => [ - 'description' => '最终价,为原价减去折扣。', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.00012252', - ], - 'OriginalPrice' => [ - 'description' => '原价。', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.00012252', - ], - 'DetailInfos' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'DetailInfo' => [ - 'description' => '价格的详细信息。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Resource' => [ - 'description' => '资源名称。', - 'type' => 'string', - 'example' => 'cpu', - ], - 'DiscountPrice' => [ - 'description' => '折扣价。', - 'type' => 'number', - 'format' => 'float', - 'example' => '0', - ], - 'TradePrice' => [ - 'description' => '成交价。', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.000098', - ], - 'OriginalPrice' => [ - 'description' => '原价。', - 'type' => 'number', - 'format' => 'float', - 'example' => '0.000098', - ], - 'Rules' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Rule' => [ - 'description' => '定价规则子集。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Description' => [ - 'description' => '规则描述。', - 'type' => 'string', - 'example' => '*****', - ], - 'RuleId' => [ - 'description' => '规则ID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123456', - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - 'Currency' => [ - 'description' => '货币单位。可能值:'."\n" - ."\n" - .'- CNY:该值仅适用于中国站。'."\n" - .'- USD:该值仅适用于国际站。', - 'type' => 'string', - 'example' => 'CNY', - ], - ], - ], - 'Rules' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'Rule' => [ - 'description' => '活动规则。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Description' => [ - 'description' => '活动规则描述。', - 'type' => 'string', - 'example' => '*****', - ], - 'RuleId' => [ - 'description' => '活动ID。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123456', - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['description' => '请求ID,唯一标识。', 'type' => 'string', 'example' => '0E234675-3465-4CC3-9D0F-9A864BC391DD'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'InvalidParam.CpuOrMemorySpec', - 'errorMessage' => 'The specified specification is invalid.', - ], - [ - 'errorCode' => 'TradeBidCommodityNotMatch', - 'errorMessage' => 'The trade ID and the commodity do not match.', - ], - [ - 'errorCode' => 'InvalidSpotCpuMemorySpec', - 'errorMessage' => 'The specified CPU and memory are not allowed. You must create spot ECI using standard ECS specifications for CPU and memory.', - ], - [ - 'errorCode' => 'FeatureBasedConstraintConflict', - 'errorMessage' => 'A conflict occurs in specified feature constraints: [%s].', - ], + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'ImageCache.IncorrectStatus', 'errorMessage' => '%s', 'description' => '镜像缓存当前的状态不对。'], + ['errorCode' => 'ImageCacheNotSupport', 'errorMessage' => 'Image cache is not available for all users. If you want to enable this function, contact us.', 'description' => '镜像缓存功能还未全网开放,如果有需要请联系我们。'], + ['errorCode' => 'OperationConflict', 'errorMessage' => 'Request was denied due to conflict with a previous request.', 'description' => '该请求被禁止,因为与之前的请求冲突'], + ['errorCode' => 'NoNeedUpdate', 'errorMessage' => 'There are no changes to be updated for current resource.', 'description' => '本次操作没有需要更新的参数'], ], 403 => [ - [ - 'errorCode' => 'Spot.NotMatched', - 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', - ], - [ - 'errorCode' => 'FeatureAccessRestricted', - 'errorMessage' => 'Access to this feature:[%s] is restricted. Please contact Alibaba Cloud ECI support to request access.', - ], + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role AliyunECIContainerGroupRole does not belong to eci.aliyuncs.com. Please check and try again.', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7A872585-33C7-4D69-AB8E-412E81EBA387\\",\\n \\"PriceInfo\\": {\\n \\"SpotPrices\\": {\\n \\"SpotPrice\\": [\\n {\\n \\"ZoneId\\": \\"cn-hangzhou-i\\",\\n \\"SpotPrice\\": 0.056,\\n \\"InstanceType\\": \\"ecs.c5.large\\",\\n \\"OriginPrice\\": 0.622\\n }\\n ]\\n },\\n \\"Price\\": {\\n \\"DiscountPrice\\": 0,\\n \\"TradePrice\\": 0.00012252,\\n \\"OriginalPrice\\": 0.00012252,\\n \\"DetailInfos\\": {\\n \\"DetailInfo\\": [\\n {\\n \\"Resource\\": \\"cpu\\",\\n \\"DiscountPrice\\": 0,\\n \\"TradePrice\\": 0.000098,\\n \\"OriginalPrice\\": 0.000098,\\n \\"Rules\\": {\\n \\"Rule\\": [\\n {\\n \\"Description\\": \\"*****\\",\\n \\"RuleId\\": 123456\\n }\\n ]\\n }\\n }\\n ]\\n },\\n \\"Currency\\": \\"CNY\\"\\n },\\n \\"Rules\\": {\\n \\"Rule\\": [\\n {\\n \\"Description\\": \\"*****\\",\\n \\"RuleId\\": 123456\\n }\\n ]\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeContainerGroupPriceResponse>\\n <RequestId>49BF254A-F5A6-5B71-9F2B-5DB61B4FE12B</RequestId>\\n <PriceInfo>\\n <Price>\\n <OriginalPrice>0.00017222</OriginalPrice>\\n <Currency>CNY</Currency>\\n <DiscountPrice>0.00016949</DiscountPrice>\\n <DetailInfos>\\n <DetailInfo>\\n <OriginalPrice>0.00017222</OriginalPrice>\\n <DiscountPrice>0.00016949</DiscountPrice>\\n <Resource>instance_type</Resource>\\n <TradePrice>0.00000273</TradePrice>\\n <Rules>\\n </Rules>\\n </DetailInfo>\\n </DetailInfos>\\n <TradePrice>0.00000273</TradePrice>\\n </Price>\\n <Rules>\\n <Rule>\\n <Description>买满1年,立享官网价格8.5折优惠</Description>\\n <RuleId>123456</RuleId>\\n </Rule>\\n </Rules>\\n </PriceInfo>\\n</DescribeContainerGroupPriceResponse>","errorExample":""}]', - 'title' => '查询实例价格', - 'description' => '- 本接口不支持资源组鉴权。'."\n" - .'- ECI实例支持指定vCPU和内存,或者指定ECS规格创建。调用本接口查询价格时,请传入ECI支持指定的规格。'."\n" - .' - [vCPU和内存规格说明](~~114662~~)。'."\n" - .' - [ECI支持的ECS规格说明](~~114664~~)。', + 'title' => '更新一个镜像缓存', + 'summary' => '调用UpdateImageCache更新一个镜像缓存。', + 'description' => '仅支持更新状态为Ready(创建完成)或者UpdateFailed(更新失败)的镜像缓存。', 'requestParamsDescription' => ' ', 'responseParamsDescription' => ' ', 'extraInfo' => ' ', - ], - 'DescribeAvailableResource' => [ - 'summary' => '调用DescribeAvailableResource查询指定地域和可用区下可售ECS实例规格族。', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'changeSet' => [ + ['createdAt' => '2023-09-18T05:57:14.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2022-02-28T16:20:17.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-02-28T16:20:17.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-09-10T07:37:05.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-08-20T02:58:22.000Z', 'description' => 'OpenAPI 下线'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:UpdateImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC391DD\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateImageCacheResponse>\\r\\n <RequestId>0E234675-3465-4CC3-9D0F-9A864BC391DD</RequestId>\\r\\n</UpdateImageCacheResponse>","errorExample":""}]', + ], + 'UpdateVirtualNode' => [ + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '103990', - 'abilityTreeNodes' => [ - 'FEATUREeciY9GS39', - 'FEATUREeci5NN3BU', - 'FEATUREeciIT94P2', - 'FEATUREeciCZBDK8', - ], - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。'."\n" - ."\n" - .'您可以调用[DescribeRegions](~~146965~~)查看最新的阿里云地域列表。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '地域ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou'], ], [ - 'name' => 'ZoneId', + 'name' => 'VirtualNodeId', 'in' => 'query', - 'schema' => [ - 'description' => '可用区ID。'."\n" - ."\n" - .'默认值为空,此时查询指定地域下的所有可用区。', - 'type' => 'string', - 'required' => false, - 'docRequired' => false, - 'example' => 'cn-hangzhou-e', - ], + 'schema' => ['description' => '虚拟节点ID。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'vnd-2ze960zkdqrldeaw****'], ], [ - 'name' => 'DestinationResource', + 'name' => 'VirtualNodeName', 'in' => 'query', - 'style' => 'flat', - 'schema' => [ - 'description' => '要查询的资源信息。', - 'type' => 'object', - 'properties' => [ - 'Category' => [ - 'description' => '资源类型。取值范围:'."\n" - ."\n" - .'- InstanceTypeFamily:表示查询实例规格族,配合Value使用。'."\n" - .'- InstanceType:表示查询实例规格,配合Value,以及Cores和Memory使用。', - 'type' => 'string', - 'required' => true, - 'example' => 'InstanceTypeFamily', - ], - 'Value' => [ - 'description' => '实例规格族或者具体实例规格。'."\n" - ."\n" - .'- 当Category取值为InstanceTypeFamily时,取值为实例规格族,如ecs.c5。'."\n" - .'- 当Category取值为InstanceType时,取值为具体实例规格。如ecs.c5.large。', - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.c6', - ], - 'Cores' => [ - 'description' => 'vCPU核数。当Category取值为InstanceType时,可以设置。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '2', - ], - 'Memory' => [ - 'description' => '内存大小。单位为GiB。当Category取值为InstanceType时,可以设置。', - 'type' => 'number', - 'format' => 'float', - 'required' => false, - 'example' => '4', - ], - ], - 'required' => true, - ], + 'schema' => ['description' => '虚拟节点名称。', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'testNode'], ], [ - 'name' => 'RegionId', + 'name' => 'CustomResources', 'in' => 'query', - 'schema' => [ - 'description' => '地域ID。'."\n" - ."\n" - .'您可以调用[DescribeRegions](~~146965~~)查看最新的阿里云地域列表。', - 'type' => 'string', - 'required' => true, - 'docRequired' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => '虚拟节点支持的自定义资源。如果ECI Pod的request中声明了相应的自定义资源,则该Pod会被调度到VNode。'."\n" + .'格式为`资源名称=资源数量`,多个资源之间使用半角逗号间隔。', 'type' => 'string', 'required' => false, 'example' => 'example1.com=100,example2.com=200'], ], [ - 'name' => 'SpotResource', + 'name' => 'ClusterDomain', 'in' => 'query', - 'style' => 'flat', + 'schema' => ['description' => '集群的域名。配置后,除了主机的搜索域外,Kubelet会配置所有容器来搜索该域名。', 'type' => 'string', 'required' => false, 'example' => 'example.com'], + ], + [ + 'name' => 'ClusterDNS', + 'in' => 'query', + 'schema' => ['description' => 'DNS服务器的IP地址。如果ECI Pod中设置了`dnsPolicy=ClusterFirst`,则使用该配置值为容器提供DNS服务。'."\n" + .'支持配置多个IP地址,多个IP地址之间使用半角逗号间隔。', 'type' => 'string', 'required' => false, 'example' => '100.1.XX.XX'], + ], + [ + 'name' => 'ClientToken', + 'in' => 'query', + 'schema' => ['description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多详情,请参阅[如何保证幂等性](~~25693~~)。', 'type' => 'string', 'required' => false, 'example' => '123e4567-e89b-12d3-a456-426655440000'], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'description' => '要查询的抢占式实例的资源信息。', - 'type' => 'object', - 'properties' => [ - 'SpotStrategy' => [ - 'description' => '实例的抢占策略。取值范围:'."\n" - ."\n" - .'- NoSpot:正常按量付费实例。'."\n" - .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n" - .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。'."\n" - ."\n" - .'默认为:NoSpot。'."\n" - ."\n" - .'> 查询抢占式实例资源信息时,即取值为SpotWithPriceLimit或SpotAsPriceGo时,Category取值必须为InstanceType,同时需指定具体实例规格(Value),或者指定vCPU和内存(Cores和Memory)。', - 'type' => 'string', - 'required' => false, - 'example' => 'SpotAsPriceGo', - ], - 'SpotPriceLimit' => [ - 'description' => '抢占式实例的每小时最高价格,最多精确到小数点后3位。当SpotStrategy取值为SpotWithPriceLimit时,必须设置SpotPriceLimit。', - 'type' => 'number', - 'format' => 'double', - 'required' => false, - 'example' => '0.2', - ], - 'SpotDuration' => [ - 'description' => '抢占式实例的保护期。单位为小时。默认为1。可设置为0,表示无保护期。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', + 'description' => '虚拟节点标签信息。', + 'type' => 'array', + 'items' => [ + 'description' => '虚拟节点标签信息。', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'name'], + 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => 'test'], ], + 'required' => false, ], 'required' => false, + 'maxItems' => 21, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '6829735A-FF76-58C6-AECB-27CBF135A7AA', - ], - 'AvailableZones' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'AvailableZone' => [ - 'description' => '可用区级别的资源信息集合。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'RegionId' => [ - 'description' => '地域ID。', - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'ZoneId' => [ - 'description' => '可用区ID。', - 'type' => 'string', - 'example' => 'cn-hangzhou-e', - ], - 'AvailableResources' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'AvailableResource' => [ - 'description' => '该可用区支持的资源信息集合。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'description' => '资源类型。可能值:'."\n" - .'- InstanceTypeFamily:表示实例规格族。'."\n" - .'- InstanceType:表示实例规格。', - 'type' => 'string', - 'example' => 'InstanceTypeFamily', - ], - 'SupportedResources' => [ - 'type' => 'object', - 'itemNode' => true, - 'properties' => [ - 'SupportedResource' => [ - 'description' => '资源信息组成的数组。', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'description' => '支持的ECS实例规格信息。'."\n" - ."\n" - .'- 当Type为InstanceTypeFamily时,Value值为实例规格族。'."\n" - .'- 当Type为InstanceType时,Value值为实例规格。', - 'type' => 'string', - 'example' => 'ecs.c6', - ], - 'StatusCategory' => [ - 'description' => '根据库存详细分类资源类别。可能值:'."\n" - ."\n" - .'- WithStock:库存充足。'."\n" - .'- ClosedWithStock:库存供应保障能力低,建议选用WithStock状态的实例规格。'."\n" - .'- WithoutStock:库存售罄,将会补充资源,建议选用WithStock状态的实例规格。'."\n" - .'- ClosedWithoutStock:库存售罄,且不补充资源,请选用WithStock状态的实例规格。', - 'type' => 'string', - 'example' => 'WithStock', - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['description' => '请求ID。', 'type' => 'string', 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3'], ], ], ], ], 'errorCodes' => [ 400 => [ - [ - 'errorCode' => 'MissingParameter', - 'errorMessage' => '%s', - ], - [ - 'errorCode' => 'InvalidParameter', - 'errorMessage' => '%s', - ], + ['errorCode' => 'Account.Arrearage', 'errorMessage' => 'Your account has an outstanding payment.', 'description' => '账号已经欠费。'], + ['errorCode' => 'DryRunOperation', 'errorMessage' => 'Request validation has been passed with DryRun flag set.', 'description' => '此次DryRun预检请求合格。'], + ['errorCode' => 'InvalidParameter.CPU.Memory', 'errorMessage' => 'The specified cpu and memory are not allowed', 'description' => ''], + ['errorCode' => 'InvalidParameter.DuplicatedName', 'errorMessage' => 'The container group include containers with duplicate names.', 'description' => '容器组内有重复名字的容器。'], + ['errorCode' => 'InvalidParameter.DuplicatedVolumeName', 'errorMessage' => 'The container group includes volumes with duplicate names.', 'description' => '容器组内有重复名字的数据卷。'], + ['errorCode' => 'IncorrectStatus', 'errorMessage' => '%s', 'description' => '指定的实例状态不正确。'], + ['errorCode' => 'ServiceNotEnabled', 'errorMessage' => '%s', 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['errorCode' => 'ImageSnapshot.IncorrectStatus', 'errorMessage' => '%s', 'description' => '用于镜像缓存的快照状态不正确。'], + ['errorCode' => 'ImageSnapshot.NotSupport', 'errorMessage' => '%s', 'description' => '基于数据盘快照的镜像缓存功能暂未全网开放,如有需要请联系我们。'], + ['errorCode' => 'DiskVolume.NotSupport', 'errorMessage' => 'The disk volume is not supported.', 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['errorCode' => 'RamRole.NotSupport', 'errorMessage' => 'The RAM role is not supported.', 'description' => 'ram实例角色不支持。'], + ['errorCode' => 'DiskNumber.LimitExceed', 'errorMessage' => 'The maximum number of disks in an instance is exceeded.', 'description' => '实例下云盘数目超过限制。'], + ['errorCode' => 'InvalidPaymentMethod.InsufficientBalance', 'errorMessage' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', 'description' => '您的账户暂无有效支付方式,请添加支付方式或保持预付款余额充足。'], + ['errorCode' => 'DiskVolume.NotInSameZone', 'errorMessage' => 'The instance to be created and the disk are not in the same zone.', 'description' => '即将创建的实例和云盘不在同一可用区。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to use the "Product on ECI" feature.', 'description' => ''], + ['errorCode' => 'HighCpuMemConfigRequired', 'errorMessage' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', 'description' => '您需要申请CPU高配白名单。'], + ['errorCode' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', 'errorMessage' => 'The recommended instance type is unavailable in the current zone. Try again later.', 'description' => '当前可用区没有推荐的规格可使用,请稍后重试或者到其他的可用区创建。'], + ['errorCode' => 'LocalDiskAmountNotMatch', 'errorMessage' => 'The number of local volumes does not match the instance type.', 'description' => '本地盘数量跟实例规格不匹配'], + ['errorCode' => 'Payfor.CreditPayInsufficientBalance', 'errorMessage' => 'Your payment credit line is insufficient.', 'description' => '您的付款信用额度不足。'], + ['errorCode' => 'InvalidOperation.KMS.InstanceTypeNotSupport', 'errorMessage' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', 'description' => '指定的实例无效,只有 I/O 优化类型的实例支持设置“KMS Key”。'], + ['errorCode' => 'InvalidParameter.Encrypted.KmsNotEnabled', 'errorMessage' => 'KMS must be enabled for encrypted disks.', 'description' => '加密磁盘需要启用密钥管理服务。'], + ['errorCode' => 'InvalidParameter.KMS.EncryptedIllegal', 'errorMessage' => 'After configuring the parameter KmsKeyId, you must enable encryption.', 'description' => '设置参数“KmsKeyId”后,您必须开启加密属性。'], + ['errorCode' => 'Ipv6AddressNotSupportVsw', 'errorMessage' => 'IPv6 is not supported in the specified vSwitch.', 'description' => '该交换机暂未开通ipv6地址。'], ], 403 => [ - [ - 'errorCode' => 'Spot.NotMatched', - 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory.', - ], + ['errorCode' => 'OperationDenied.VswZoneMisMatch', 'errorMessage' => 'The specified VSwitchId is not in the specified Zone.', 'description' => ''], + ['errorCode' => 'QuotaExceeded', 'errorMessage' => '%s quota exceeded.', 'description' => ''], + ['errorCode' => 'Zone.NotOnSale', 'errorMessage' => 'The specified zone is not available for purchase.', 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['errorCode' => 'Forbidden.RiskControl', 'errorMessage' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['errorCode' => 'Forbidden.SubUser', 'errorMessage' => 'The specified action is not available for you.', 'description' => ''], + ['errorCode' => 'Forbidden.OnlyForInvitedTest', 'errorMessage' => 'Eci create action is only open to invited users during public beta.', 'description' => ''], + ['errorCode' => 'OperationDenied.SecurityGroupMisMatch', 'errorMessage' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'description' => ''], + ['errorCode' => 'InvalidVSwitchId.IpNotEnough', 'errorMessage' => 'The specified VSwitch does not have enough IP addresses.', 'description' => ''], + ['errorCode' => 'Forbidden.UserBussinessStatus', 'errorMessage' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['errorCode' => 'Forbidden.UserNotRealNameAuthentication', 'errorMessage' => 'This operation is not allowed, because you have not passed the real-name verification.', 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['errorCode' => 'InvalidUser.PassRoleForbidden', 'errorMessage' => 'The RAM user is not authorized to assume a RAM role.', 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['errorCode' => 'NoPermission', 'errorMessage' => 'The RAM role does not belong to ECS.', 'description' => ''], + ['errorCode' => 'OperationDenied.NoStock', 'errorMessage' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'InvalidParameter.KMS.KeyId.Forbidden', 'errorMessage' => 'You are not authorized to access the specified KMSKeyId.', 'description' => '无权访问指定的 KMSKeyId。'], + ['errorCode' => 'Forbidden.AccountClosed', 'errorMessage' => 'The operation is forbidden. Your account has been closed.', 'description' => '操作被禁止,因为用户账户已注销。'], + ['errorCode' => 'InvalidOperation.ResourceManagedByCloudProduct', 'errorMessage' => 'The operation is forbidden. The security group has been managed by another cloud product.', 'description' => '安全组由其他云产品管理,禁止操作。'], + ['errorCode' => 'Spot.NotMatched', 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory. For more information, see https://help.aliyun.com/document_detail/157290.html', 'description' => ''], + ['errorCode' => 'SecurityRisk.3DVerification', 'errorMessage' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['errorCode' => 'CreateServiceLinkedRole.Denied', 'errorMessage' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ], + [ + ['errorCode' => 'ImageSnapshot.NotFound', 'errorMessage' => 'The specified snapshot does not exist.', 'description' => '镜像缓存,快照不存在。'], + ['errorCode' => 'InvalidDiskId.NotFound', 'errorMessage' => 'The specified disk does not exist.', 'description' => '指定的云盘不存在。'], + ['errorCode' => 'InvalidParameter.KMS.KeyId.NotFound', 'errorMessage' => 'The specified KMSKeyId does not exist.', 'description' => '指定的参数“KMSKeyId”不存在。'], ], - [ - [ - 'errorCode' => 'InvalidParameter.NotFound', - 'errorMessage' => '%s', + ], + 'title' => '更新一个虚拟节点', + 'summary' => '调用UpdateVirtualNode更新一个虚拟节点的属性。', + 'description' => '## 接口说明'."\n" + .'仅支持更新状态为Ready的虚拟节点。', + 'requestParamsDescription' => ' ', + 'responseParamsDescription' => ' ', + 'extraInfo' => ' ', + 'changeSet' => [ + ['createdAt' => '2023-07-03T01:56:18.000Z', 'description' => '请求参数发生变更、响应参数发生变更'], + ['createdAt' => '2022-09-23T06:24:55.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-09-16T02:01:29.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2022-09-16T02:01:29.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2021-09-06T04:58:46.000Z', 'description' => 'OpenAPI 下线'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:UpdateVirtualNode', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#VirtualNodeId}'], + ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"6829735A-FF76-58C6-AECB-27CBF135A7AA\\",\\n \\"AvailableZones\\": {\\n \\"AvailableZone\\": [\\n {\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ZoneId\\": \\"cn-hangzhou-e\\",\\n \\"AvailableResources\\": {\\n \\"AvailableResource\\": [\\n {\\n \\"Type\\": \\"InstanceTypeFamily\\",\\n \\"SupportedResources\\": {\\n \\"SupportedResource\\": [\\n {\\n \\"Value\\": \\"ecs.c6\\",\\n \\"StatusCategory\\": \\"WithStock\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<DescribeAvailableResourceResponse>\\n <RequestId>6829735A-FF76-58C6-AECB-27CBF135A7AA</RequestId>\\n <AvailableZones>\\n <RegionId>cn-hangzhou</RegionId>\\n <ZoneId>cn-hangzhou-e</ZoneId>\\n <AvailableResources>\\n <Type>InstanceTypeFamily</Type>\\n <SupportedResources>\\n <Value>ecs.c6</Value>\\n <StatusCategory>WithStock</StatusCategory>\\n </SupportedResources>\\n </AvailableResources>\\n </AvailableZones>\\n</DescribeAvailableResourceResponse>","errorExample":""}]', - 'title' => '查询可用ECS实例规格', - 'description' => '调用CreateContainerGroup创建ECI实例时支持通过InstanceType参数来指定ECS规格,以满足特定的规格需求。为保证ECI实例能够创建成功,在创建ECI实例前,您可以先调用本接口查询指定地域和可用区下支持哪些ECS实例规格或实例规格族。', + 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateVirtualNodeResponse>\\r\\n <RequestId>89945DD3-9072-47D0-A318-353284CFC7B3</RequestId>\\r\\n</UpdateVirtualNodeResponse>","errorExample":""}]', ], ], 'endpoints' => [ + ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'eci.cn-wulanchabu.aliyuncs.com', 'vpc' => 'eci-vpc.cn-wulanchabu.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-beijing.aliyuncs.com', 'endpoint' => 'eci.cn-beijing.aliyuncs.com', 'vpc' => 'eci-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-zhengzhou-jva', 'regionName' => '郑州(联通合营)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-zhengzhou-jva.aliyuncs.com', 'endpoint' => 'eci.cn-zhengzhou-jva.aliyuncs.com', 'vpc' => 'eci-vpc.cn-zhengzhou-jva.aliyuncs.com'], + ['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-qingdao.aliyuncs.com', 'endpoint' => 'eci.cn-qingdao.aliyuncs.com', 'vpc' => 'eci-vpc.cn-qingdao.aliyuncs.com'], + ['regionId' => 'cn-wuhan-lr', 'regionName' => '华中1(武汉-本地地域)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-wuhan-lr.aliyuncs.com', 'endpoint' => 'eci.cn-wuhan-lr.aliyuncs.com', 'vpc' => 'eci-vpc.cn-wuhan-lr.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-shanghai.aliyuncs.com', 'endpoint' => 'eci.cn-shanghai.aliyuncs.com', 'vpc' => 'eci-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-hongkong.aliyuncs.com', 'endpoint' => 'eci.cn-hongkong.aliyuncs.com', 'vpc' => 'eci-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'cn-heyuan', 'regionName' => '华南2(河源)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-heyuan.aliyuncs.com', 'endpoint' => 'eci.cn-heyuan.aliyuncs.com', 'vpc' => 'eci-vpc.cn-heyuan.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'eci.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'eci-vpc.cn-zhangjiakou.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-shenzhen.aliyuncs.com', 'endpoint' => 'eci.cn-shenzhen.aliyuncs.com', 'vpc' => 'eci-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'cn-nanjing', 'regionName' => '华东5(南京-本地地域)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-nanjing.aliyuncs.com', 'endpoint' => 'eci.cn-nanjing.aliyuncs.com', 'vpc' => 'eci-vpc.cn-nanjing.aliyuncs.com'], + ['regionId' => 'ap-northeast-2', 'regionName' => '韩国(首尔)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.ap-northeast-2.aliyuncs.com', 'endpoint' => 'eci.ap-northeast-2.aliyuncs.com', 'vpc' => 'eci-vpc.ap-northeast-2.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.ap-northeast-1.aliyuncs.com', 'endpoint' => 'eci.ap-northeast-1.aliyuncs.com', 'vpc' => 'eci-vpc.ap-northeast-1.aliyuncs.com'], + ['regionId' => 'cn-fuzhou', 'regionName' => '华东6(福州-本地地域)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-fuzhou.aliyuncs.com', 'endpoint' => 'eci.cn-fuzhou.aliyuncs.com', 'vpc' => 'eci-vpc.cn-fuzhou.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-chengdu.aliyuncs.com', 'endpoint' => 'eci.cn-chengdu.aliyuncs.com', 'vpc' => 'eci-vpc.cn-chengdu.aliyuncs.com'], + ['regionId' => 'cn-guangzhou', 'regionName' => '华南3(广州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-guangzhou.aliyuncs.com', 'endpoint' => 'eci.cn-guangzhou.aliyuncs.com', 'vpc' => 'eci-vpc.cn-guangzhou.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.ap-southeast-1.aliyuncs.com', 'endpoint' => 'eci.ap-southeast-1.aliyuncs.com', 'vpc' => 'eci-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-2', 'regionName' => '澳大利亚(悉尼)已关停', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.ap-southeast-2.aliyuncs.com', 'endpoint' => 'eci.ap-southeast-2.aliyuncs.com', 'vpc' => 'eci-vpc.ap-southeast-2.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.ap-southeast-3.aliyuncs.com', 'endpoint' => 'eci.ap-southeast-3.aliyuncs.com', 'vpc' => 'eci-vpc.ap-southeast-3.aliyuncs.com'], + ['regionId' => 'cn-huhehaote', 'regionName' => '华北5(呼和浩特)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-huhehaote.aliyuncs.com', 'endpoint' => 'eci.cn-huhehaote.aliyuncs.com', 'vpc' => 'eci-vpc.cn-huhehaote.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.ap-southeast-5.aliyuncs.com', 'endpoint' => 'eci.ap-southeast-5.aliyuncs.com', 'vpc' => 'eci-vpc.ap-southeast-5.aliyuncs.com'], + ['regionId' => 'ap-southeast-6', 'regionName' => '菲律宾(马尼拉)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.ap-southeast-6.aliyuncs.com', 'endpoint' => 'eci.ap-southeast-6.aliyuncs.com', 'vpc' => 'eci-vpc.ap-southeast-6.aliyuncs.com'], + ['regionId' => 'ap-southeast-7', 'regionName' => '泰国(曼谷)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.ap-southeast-7.aliyuncs.com', 'endpoint' => 'eci.ap-southeast-7.aliyuncs.com', 'vpc' => 'eci-vpc.ap-southeast-7.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eci.cn-hangzhou.aliyuncs.com', 'endpoint' => 'eci.cn-hangzhou.aliyuncs.com', 'vpc' => 'eci-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'eci.us-east-1.aliyuncs.com', 'endpoint' => 'eci.us-east-1.aliyuncs.com', 'vpc' => 'eci-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'eci.eu-west-1.aliyuncs.com', 'endpoint' => 'eci.eu-west-1.aliyuncs.com', 'vpc' => 'eci-vpc.eu-west-1.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'eci.us-west-1.aliyuncs.com', 'endpoint' => 'eci.us-west-1.aliyuncs.com', 'vpc' => 'eci-vpc.us-west-1.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'eci.eu-central-1.aliyuncs.com', 'endpoint' => 'eci.eu-central-1.aliyuncs.com', 'vpc' => 'eci-vpc.eu-central-1.aliyuncs.com'], + ['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'eci.me-east-1.aliyuncs.com', 'endpoint' => 'eci.me-east-1.aliyuncs.com', 'vpc' => 'eci-vpc.me-east-1.aliyuncs.com'], + ['regionId' => 'me-central-1', 'regionName' => '沙特(利雅得)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'eci.me-central-1.aliyuncs.com', 'endpoint' => 'eci.me-central-1.aliyuncs.com', 'vpc' => 'eci-vpc.me-central-1.aliyuncs.com'], + ['regionId' => 'ap-south-1', 'regionName' => '印度(孟买)已关停', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'eci.ap-south-1.aliyuncs.com', 'endpoint' => 'eci.ap-south-1.aliyuncs.com', 'vpc' => 'eci-vpc.ap-south-1.aliyuncs.com'], + ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => '华南1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'eci.cn-shenzhen-finance.aliyuncs.com', 'endpoint' => 'eci.cn-shenzhen-finance.aliyuncs.com', 'vpc' => 'eci-vpc.cn-shenzhen-finance-1.aliyuncs.com'], + ['regionId' => 'cn-beijing-finance-1', 'regionName' => '华北2 金融云(邀测)', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'eci.cn-beijing-finance-1.aliyuncs.com', 'endpoint' => 'eci.cn-beijing-finance-1.aliyuncs.com', 'vpc' => 'eci-vpc.cn-beijing-finance-1.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'eci.cn-shanghai-finance.aliyuncs.com', 'endpoint' => 'eci.cn-shanghai-finance.aliyuncs.com', 'vpc' => 'eci-vpc.cn-shanghai-finance-1.aliyuncs.com'], + ['regionId' => 'cn-hangzhou-finance', 'regionName' => '华东1 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'eci.cn-hangzhou-finance.aliyuncs.com', 'endpoint' => 'eci.cn-hangzhou-finance.aliyuncs.com', 'vpc' => ''], + ], + 'errorCodes' => [ + ['code' => 'Account.Arrearage', 'message' => 'Your account has an outstanding payment.', 'http_code' => 400, 'description' => '账号已经欠费。'], + ['code' => 'BatchCreateNotSupportExistingCloudDisk', 'message' => 'The batch create API does not support the mounting of existing disks.', 'http_code' => 403, 'description' => '批量创建不支持挂载已有云盘。'], + ['code' => 'CloudDisk.NotInSameZone', 'message' => '%s.', 'http_code' => 400, 'description' => '请求中声明的云盘没有在同一可用区内。'], + ['code' => 'containerRepositoryAuthorizationFailed', 'message' => 'An error occurred while authenticating the container image repository. Make sure that you have activated ACR, and try again later.', 'http_code' => 503, 'description' => '容器镜像仓库认证失败,请确认是否开通了阿里云容器镜像服务(ACR)。'], + ['code' => 'CorePattern.UpdateFail', 'message' => 'Update coredump settings fail, please try again later.', 'http_code' => 400, 'description' => '更新Coredump设置失败,请重试。'], + ['code' => 'CreateServiceLinkedRole.Denied', 'message' => 'Please make sure the account has ram:CreateServiceLinkedRole permission.', 'http_code' => 403, 'description' => '请确保账号拥有ram:CreateServiceLinkedRole权限。'], + ['code' => 'DedicatedHostQuotaExceeded', 'message' => 'The quota of DedicatedHost is exceeded.', 'http_code' => 400, 'description' => '专有宿主机的quota超过限制'], + ['code' => 'Degrade.Api', 'message' => 'The request was denied due to API flow control. The system has been downgraded.', 'http_code' => 400, 'description' => '您这个时段的流量已经超限。如果不能满足现有业务要求可以提工单进行申请。系统降级。'], + ['code' => 'DiskNumber.LimitExceed', 'message' => 'The maximum number of disks in an instance is exceeded.', 'http_code' => 400, 'description' => '实例下云盘数目超过限制。'], + ['code' => 'DiskVolume.NotInSameZone', 'message' => 'The instance to be created and the disk are not in the same zone.', 'http_code' => 400, 'description' => '即将创建的实例和云盘不在同一可用区。'], + ['code' => 'DiskVolume.NotSupport', 'message' => 'The disk volume is not supported.', 'http_code' => 400, 'description' => '云盘卷暂不支持,如有需要请联系我们。'], + ['code' => 'DryRun.Success', 'message' => 'This request is a dryrun request with successful result.', 'http_code' => 400, 'description' => '该dryrun请求校验已经通过。'], + ['code' => 'DryRunOperation', 'message' => 'Request validation has been passed with DryRun flag set.', 'http_code' => 400, 'description' => '此次DryRun预检请求合格。'], + ['code' => 'EipAddressPoolIpNotEnough', 'message' => 'The ip address of specified PublicIpAddressPool is not enough.', 'http_code' => 400, 'description' => '指定的eip公网地址池地址资源不足。'], + ['code' => 'EipPayInsufficientBalance', 'message' => 'Your account does not have enough balance to purchase eip.', 'http_code' => 400, 'description' => '当前账户余额不足以购买eip。'], + ['code' => 'EipPurchaseFlowControl', 'message' => 'Request was denied due to eip frequent purchase.', 'http_code' => 400, 'description' => '当前购买eip过于频繁,请稍后重试。'], + ['code' => 'FeatureAccessRestricted', 'message' => 'Access to this feature:[%s] is restricted. Please contact Alibaba Cloud ECI support to request access.', 'http_code' => 403, 'description' => '使用该特性需要申请白名单,请联系阿里云ECI团队申请加白。'], + ['code' => 'FeatureBasedConstraintConflict', 'message' => 'A conflict occurs in specified feature constraints: [%s].', 'http_code' => 400, 'description' => '指定的规格特性约束发生冲突'], + ['code' => 'Forbidden.AccessKeyDisabled', 'message' => 'The Access Key is disabled.', 'http_code' => 403, 'description' => 'Access Key无效'], + ['code' => 'Forbidden.AccountClosed', 'message' => 'The operation is forbidden. Your account has been closed.', 'http_code' => 403, 'description' => '操作被禁止,因为用户账户已注销。'], + ['code' => 'Forbidden.NotSupportRAM', 'message' => 'This action does not support access in RAM mode.', 'http_code' => 403, 'description' => 'RAM模式不支持的操作'], + ['code' => 'Forbidden.OnlyForInvitedTest', 'message' => 'Eci create action is only open to invited users during public beta.', 'http_code' => 400, 'description' => 'Eci公测阶段只对受邀的用户开放。'], + ['code' => 'Forbidden.RAM', 'message' => 'You are not authorized to operate on the specified resource, or this API does not support RAM mode.', 'http_code' => 403, 'description' => '你没有被授权操作该资源,或者当前API不支持RAM'], + ['code' => 'Forbidden.RamRoleNotExist', 'message' => 'The specified RAM role does not exist.', 'http_code' => 403, 'description' => '该RAM角色不存在。'], + ['code' => 'Forbidden.RiskControl', 'message' => 'This operation has been identified as an abnormal operation and cannot be processed.', 'http_code' => 403, 'description' => '此操作已被确定为一个操作异常,无法处理。'], + ['code' => 'Forbidden.SubUser', 'message' => 'The specified action is not available for you.', 'http_code' => 400, 'description' => '当前用户无法执行该操作。'], + ['code' => 'Forbidden.Unauthorized', 'message' => 'You are not authorized to operate on the specified resource.', 'http_code' => 403, 'description' => '您在在未认证的情况下操作该资源'], + ['code' => 'Forbidden.UserBussinessStatus', 'message' => 'This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again.', 'http_code' => 403, 'description' => '用户处于欠费状态不允许创建,请充值后再尝试。'], + ['code' => 'Forbidden.UserNotRealNameAuthentication', 'message' => 'This operation is not allowed, because you have not passed the real-name verification.', 'http_code' => 403, 'description' => '操作被禁止,因为用户还未进行实名认证。'], + ['code' => 'HighCpuMemConfigRequired', 'message' => 'You need to apply to be added to the whitelist of the specified CPU and memory.', 'http_code' => 400, 'description' => '您需要申请CPU高配白名单。'], + ['code' => 'Idempotence.Failed', 'message' => 'An error occurred while processing your request. Use the new Token and try again.', 'http_code' => 400, 'description' => '请求失败,请使用新的Token重试。'], + ['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' => 'IdempotentParameterMismatch', 'message' => 'Request uses a client token in a previous request but is not identical to that request.', 'http_code' => 400, 'description' => 'client token和请求参数不匹配'], + ['code' => 'ImageCache.IncorrectStatus', 'message' => '%s', 'http_code' => 400, 'description' => '镜像缓存当前的状态不对。'], + ['code' => 'ImageCacheNotSupport', 'message' => 'Image cache is not available for all users. If you want to enable this function, contact us.', 'http_code' => 400, 'description' => '镜像缓存功能还未全网开放,如果有需要请联系我们。'], + ['code' => 'ImageSnapshot.IncorrectStatus', 'message' => '%s', 'http_code' => 400, 'description' => '用于镜像缓存的快照状态不正确。'], + ['code' => 'ImageSnapshot.NotFound', 'message' => 'The specified snapshot does not exist.', 'http_code' => 404, 'description' => '镜像缓存,快照不存在。'], + ['code' => 'ImageSnapshot.NotSupport', 'message' => '%s', 'http_code' => 400, 'description' => '基于数据盘快照的镜像缓存功能暂未全网开放,如有需要请联系我们。'], + ['code' => 'IncorrectOperation', 'message' => '%s', 'http_code' => 400, 'description' => '当前的资源不支持该操作。'], + ['code' => 'IncorrectStatus', 'message' => 'The current status of %s does not support this operation.', 'http_code' => 400, 'description' => '指定的实例状态不正确。'], + ['code' => 'IncorrectStatus', 'message' => '%s', 'http_code' => 400, 'description' => '指定的实例状态不正确。'], + ['code' => 'IncorrectUserTemplateFormat', 'message' => '%s', 'http_code' => 400, 'description' => '用户传入的模板格式不正确。'], + ['code' => 'InstanceTypeNotMatchCpuArch', 'message' => '%s.', 'http_code' => 400, 'description' => '您指定的ECS规格的CPU架构与您指定的CPU架构不匹配。'], + ['code' => 'InternalError', 'message' => 'An unknown error occurred while processing your request.', 'http_code' => 500, 'description' => '处理请求时出现未知错误。'], + ['code' => 'InvalidAction', 'message' => 'The specified action is invalid', 'http_code' => 403, 'description' => '不合法的操作'], + ['code' => 'InvalidCpuMemorySpec', 'message' => 'The specified CPU and memory specifications are invalid.', 'http_code' => 400, 'description' => '当前设置的规格不合法'], + ['code' => 'InvalidDiskId.NotFound', 'message' => 'The specified disk does not exist.', 'http_code' => 404, 'description' => '指定的云盘不存在。'], + ['code' => 'InvalidInstanceType.NotSupported', 'message' => 'The specified InstanceType is invalid.', 'http_code' => 400, 'description' => '当前可用区抢占式实例还不支持该规格。'], + ['code' => 'InvalidInstanceTypeForEciBuy', 'message' => 'Sales of this current instance type is not supported in eci.', 'http_code' => 400, 'description' => '当前规格不在eci售卖规格范围内。'], + ['code' => 'InvalidInstanceTypeForEciSpotDurationBuy', 'message' => 'Current instance type does not support spot duration instance.', 'http_code' => 400, 'description' => '当前规格不支持eci自定义时长类型的spot实例。'], + ['code' => 'InvalidInstanceTypeForRaid', 'message' => '%s.', 'http_code' => 400, 'description' => '当前规格不支持Raid'], + ['code' => 'InvalidOperation.KMS.InstanceTypeNotSupport', 'message' => 'The specified instance is invalid. Only I/O optimized instances support KMS key.', 'http_code' => 400, 'description' => '指定的实例无效,只有 I/O 优化类型的实例支持设置“KMS Key”。'], + ['code' => 'InvalidOperation.ResourceManagedByCloudProduct', 'message' => 'The operation is forbidden. The security group has been managed by another cloud product.', 'http_code' => 403, 'description' => '安全组由其他云产品管理,禁止操作。'], + ['code' => 'InvalidParam.CpuOrMemorySpec', 'message' => 'The specified specification is invalid.', 'http_code' => 400, 'description' => '指定的规格还未开放售卖,不提供价格查询。'], + ['code' => 'InvalidParameter', 'message' => '%s', 'http_code' => 400, 'description' => '不合法的参数'], + ['code' => 'InvalidParameter.CPU.Memory', 'message' => 'The specified CPU and memory are not allowed.', 'http_code' => 400, 'description' => 'cpu,mem不符合规格。'], + ['code' => 'InvalidParameter.DuplicatedName', 'message' => 'The container group include containers with duplicate names.', 'http_code' => 400, 'description' => '容器组内有重复名字的容器。'], + ['code' => 'InvalidParameter.DuplicatedName', 'message' => 'The container group includes volumes with duplicate names.', 'http_code' => 400, 'description' => '容器组内有重复名字的数据卷。'], + ['code' => 'InvalidParameter.DuplicatedVolumeName', 'message' => 'The container group includes volumes with duplicate names.', 'http_code' => 400, 'description' => '容器组内有重复名字的数据卷。'], + ['code' => 'InvalidParameter.Encrypted.KmsNotEnabled', 'message' => 'KMS must be enabled for encrypted disks.', 'http_code' => 400, 'description' => '加密磁盘需要启用密钥管理服务。'], + ['code' => 'InvalidParameter.KMS.EncryptedIllegal', 'message' => 'After configuring the parameter KmsKeyId, you must enable encryption.', 'http_code' => 400, 'description' => '设置参数“KmsKeyId”后,您必须开启加密属性。'], + ['code' => 'InvalidParameter.KMS.KeyId.Forbidden', 'message' => 'You are not authorized to access the specified KMSKeyId.', 'http_code' => 403, 'description' => '无权访问指定的 KMSKeyId。'], + ['code' => 'InvalidParameter.KMS.KeyId.NotFound', 'message' => 'The specified KMSKeyId does not exist.', 'http_code' => 404, 'description' => '指定的参数“KMSKeyId”不存在。'], + ['code' => 'InvalidParameter.LengthExceeded', 'message' => '%s', 'http_code' => 400, 'description' => 'List型参数的长度超过规定值'], + ['code' => 'InvalidParameter.LengthExceeded', 'message' => '%s.', 'http_code' => 400, 'description' => 'List型参数的长度超过规定值'], + ['code' => 'InvalidParameter.MismatchInstanceType', 'message' => 'The instanceId mismatch instance type.', 'http_code' => 400, 'description' => '实例类型错误'], + ['code' => 'InvalidParameter.NotFound', 'message' => '%s', 'http_code' => 404, 'description' => '参数未找到'], + ['code' => 'InvalidParameter.ValueExceeded', 'message' => '%s', 'http_code' => 400, 'description' => '参数值超过规定范围'], + ['code' => 'InvalidParameter.ValueExceeded', 'message' => 'ecs instance type or vcpu quota exceeded.', 'http_code' => 400, 'description' => '规格参数超过规定quota范围'], + ['code' => 'InvalidPaymentMethod.InsufficientBalance', 'message' => 'No payment method is specified for your account. We recommend that you add a payment method or add funds to the prepayment balance.', 'http_code' => 400, 'description' => '您的账户暂无有效支付方式,请添加支付方式或保持预付款余额充足。'], + ['code' => 'InvalidSpotCpuMemorySpec', 'message' => 'The specified CPU and memory are not allowed. You must create spot ECI using standard ECS specifications for CPU and memory.', 'http_code' => 400, 'description' => '必须采用标准的ECS规格来创建ECI spot。'], + ['code' => 'InvalidUser.PassRoleForbidden', 'message' => 'The RAM user is not authorized to assume a RAM role.', 'http_code' => 403, 'description' => '子账号用户没有权限使用RAM实例角色。'], + ['code' => 'InvalidVSwitchId.IpNotEnough', 'message' => 'The specified VSwitch %s does not have enough IP addresses.', 'http_code' => 403, 'description' => '交换机没有足够IP地址。'], + ['code' => 'Ipv6AddressNotSupport', 'message' => 'Ipv6 is not supported in specified region.', 'http_code' => 400, 'description' => '当前地域还不支持IPV6地址。'], + ['code' => 'Ipv6AddressNotSupportInstanceType', 'message' => 'IPv6 is not supported for the specified instance type.', 'http_code' => 400, 'description' => '当前创建的规格不支持IPv6。'], + ['code' => 'Ipv6AddressNotSupportVsw', 'message' => 'IPv6 is not supported in the specified vSwitch.', 'http_code' => 400, 'description' => '该交换机暂未开通ipv6地址。'], + ['code' => 'JobInstanceBatchCreateNotSupport', 'message' => 'You cannot create multiple job-optimized elastic container instances at a time.', 'http_code' => 400, 'description' => 'ECI Job型实例不支持批量创建'], + ['code' => 'JobInstanceEcsInstanceTypeNotSupport', 'message' => 'Job-optimized elastic container instances cannot be created by specifying ECS instance types.', 'http_code' => 400, 'description' => 'ECI Job优化型实例不支持指定ECS规格创建'], + ['code' => 'JobInstanceSpotNotSupport', 'message' => 'Job-optimized elastic container instances cannot be created as preemptible instances.', 'http_code' => 400, 'description' => 'Job型实例不支持Spot付费模式。'], + ['code' => 'LastTokenProcessing', 'message' => 'The previous token request is being processed.', 'http_code' => 403, 'description' => '之前的token请求正在处理中'], + ['code' => 'LocalDiskAmountNotMatch', 'message' => 'The number of local volumes does not match the instance type.', 'http_code' => 400, 'description' => '本地盘数量跟实例规格不匹配'], + ['code' => 'LocalDiskAmountNotMatch', 'message' => 'The amount of local volume is not matched with instance type.', 'http_code' => 400, 'description' => '指定的规格与定义的本地盘存储卷数据不匹配,请确保指定的规格有足够的本地盘数量。'], + ['code' => 'MissingParameter', 'message' => '%s', 'http_code' => 400, 'description' => '必填参数缺失'], + ['code' => 'MissingParameter', 'message' => '%s.', 'http_code' => 400, 'description' => '必填参数缺失'], + ['code' => 'MissingParameter.Template', 'message' => 'The input parameter template for processing this request is not supplied.', 'http_code' => 400, 'description' => '缺失关键信息:模版'], + ['code' => 'NoNeedUpdate', 'message' => 'There are no changes to be updated for current resource.', 'http_code' => 400, 'description' => '本次操作没有需要更新的参数'], + ['code' => 'NoPermission', 'message' => 'You are not authorized to use the Product-on-ECI feature.', 'http_code' => 400, 'description' => '您没有云产品on ECI的权限'], + ['code' => 'NoPermission.Tag', 'message' => 'No permissions to operate tags.', 'http_code' => 400, 'description' => '您无操作tag的权限。'], + ['code' => 'NoPermissionForPorductOnEci', 'message' => 'You have no permission to use [product on eci] feature.', 'http_code' => 400, 'description' => '当前没有云产品onECI的权限,请申请后再重试。'], + ['code' => 'NumberExceed.Tags', 'message' => 'The length of tags exceeded limit: 20.', 'http_code' => 400, 'description' => 'tag的数量超过20的限制。'], + ['code' => 'OperationConflict', 'message' => 'The request was denied. It conflicts with a previous request.', 'http_code' => 409, 'description' => '该请求被禁止,因为与之前的请求冲突'], + ['code' => 'OperationConflict', 'message' => 'Request was denied due to conflict with a previous request.', 'http_code' => 400, 'description' => '该请求被禁止,因为与之前的请求冲突'], + ['code' => 'OperationDenied.NoStock', 'message' => 'Sales of this resource are temporarily suspended in the specified zone. We recommend that you use the multi-zone creation function to avoid the risk of insufficient resource.', 'http_code' => 403, 'description' => '库存不足,请尝试其它系列或者其它可用区/地域的实例,推荐使用多可用区多规格配置来避免库存不足'], + ['code' => 'OperationDenied.NoStock', 'message' => 'Sales of this resource with specified features are temporarily suspended in the specified region; please check the instance type features and try again later.', 'http_code' => 403, 'description' => '具有指定特征的资源在指定区域暂时停止销售;请检查与实例类型特征有关的参数,并稍后再试。'], + ['code' => 'OperationDenied.NoStockWithFeatures', 'message' => 'Sales of this resource with specific features are temporarily suspended in the specified region; please check the instance type features and try again later.', 'http_code' => 403, 'description' => '具有指定特征的资源在指定区域暂时停止销售;请检查与实例类型特征有关的参数,并稍后再试。'], + ['code' => 'OperationDenied.SecurityGroupMisMatch', 'message' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'http_code' => 403, 'description' => '指定的交换机和安全组不在同一个VPC下'], + ['code' => 'OperationDenied.SecurityGroupMisMatch', 'message' => 'The specified VSwitchId and SecurityGroupId are not in the same VPC.', 'http_code' => 400, 'description' => '指定的交换机和安全组不在同一个VPC下。'], + ['code' => 'OperationDenied.VswZoneMisMatch', 'message' => 'The specified vSwitch is not in the zone.', 'http_code' => 400, 'description' => '指定的交换机不在可用区。'], + ['code' => 'OperationFailed.RiskControl', 'message' => '%s.', 'http_code' => 400, 'description' => '我们检测到您的账号存在安全风险,详情请联系客服人员。'], + ['code' => 'Ops.ExecuteTaskFail', 'message' => '%s.', 'http_code' => 400, 'description' => '运维任务执行失败,请稍后重试。'], + ['code' => 'Payfor.CreditPayInsufficientBalance', 'message' => 'Your payment credit line is insufficient.', 'http_code' => 400, 'description' => '您的付款信用额度不足。'], + ['code' => 'PricingPlanNotFound', 'message' => 'There is no pricing plan for current specification in current region.', 'http_code' => 400, 'description' => '当前地域暂未配置该规格的价格。'], + ['code' => 'PrivateIpAddress.Already.InUse', 'message' => 'The specific PrivateIpAddress already in use.', 'http_code' => 400, 'description' => '私网ip地址已经被占用'], + ['code' => 'QuotaExceeded', 'message' => '%s quota exceeded.', 'http_code' => 400, 'description' => '用户允许创建的实例已经超过限制。'], + ['code' => 'RamRole.NotSupport', 'message' => 'The RAM role is not supported.', 'http_code' => 400, 'description' => 'ram实例角色不支持。'], + ['code' => 'RealNameAuthenticationError', 'message' => 'Your account has not passed the real-name authentication yet.', 'http_code' => 403, 'description' => '你的账户还未通过实名认证'], + ['code' => 'RecommendEmpty.InstanceTypeFamilyNotMatched', 'message' => 'The recommended instance type is unavailable in the current zone. Try again later.', 'http_code' => 400, 'description' => '当前可用区没有推荐的规格可使用,请稍后重试或者到其他的可用区创建。'], + ['code' => 'RecommendEmpty.InstanceTypeSoldOut', 'message' => 'The instance type recommended in the current zone is unavailable..', 'http_code' => 400, 'description' => '当前可用区内推荐的规格暂时没有库存。'], + ['code' => 'RecommendEmpty.InstanceTypeSoldOut', 'message' => 'The recommended instance type is unavailable.', 'http_code' => 400, 'description' => '该规格在当前可用区没有库存。'], + ['code' => 'RecommendEmpty.PriceNotSatisfied', 'message' => '%s', 'http_code' => 400, 'description' => '当前能推荐的规格的市场价都高于用户设置的最高价。'], + ['code' => 'RegionNotSupport', 'message' => 'The specified Region is not supported.', 'http_code' => 403, 'description' => '该地域还未开放,暂不支持'], + ['code' => 'RISK.RISK_CONTROL_REJECTION', 'message' => 'To protect the security of your account, your request has been denied by the risk control system. Please contact Alibaba Cloud Customer Service for details.', 'http_code' => 400, 'description' => '为保护您的账户安全,您的请求被风控系统拒绝,详情请联系客服。'], + ['code' => 'SecurityGroupInstanceLimitExceeded', 'message' => 'The maximum number of IP addresses in the specified security group is exceeded.', 'http_code' => 400, 'description' => '指定的安全组内的ip数已经达到上限'], + ['code' => 'SecurityGroupIpQuotaExceeded', 'message' => 'The maximum number of IP addresses in the same security group is exceeded.', 'http_code' => 400, 'description' => '同一安全组下ip数量超过限制'], + ['code' => 'SecurityRisk.3DVerification', 'message' => 'We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email.', 'http_code' => 403, 'description' => '我们检测到您的默认信用卡或借记卡存在安全风险。请通过电子邮件中的链接进行验证。'], + ['code' => 'ServiceNotEnabled', 'message' => '%s', 'http_code' => 400, 'description' => '该次请求所依赖的服务没有开通,请开通后再试。'], + ['code' => 'ServiceUnavailable', 'message' => 'A server error occurred while processing your request.', 'http_code' => 503, 'description' => '处理请求时出现服务器异常'], + ['code' => 'ServiceUnavailable.RegionMaintaining', 'message' => 'System maintenance is in progress on the selected region, please wait a few minutes before trying again.', 'http_code' => 503, 'description' => '在该选定区域,系统正在进行维护中,请稍候再尝试'], + ['code' => 'SignatureNonceUsed', 'message' => 'The request signature nonce has been used.', 'http_code' => 400, 'description' => '请求的签名已经被使用'], + ['code' => 'Spot.NotMatched', 'message' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory.', 'http_code' => 403, 'description' => '推荐使用多可用区多规格配置来避免库存不足'], + ['code' => 'Throttling', 'message' => 'You have made too many requests within a short time; your request is denied due to request throttling.', 'http_code' => 400, 'description' => '短时间内请求过多。'], + ['code' => 'Throttling.Api', 'message' => 'The request was denied due to API flow control.', 'http_code' => 400, 'description' => '您这个时段的流量已经超限。如果不能满足现有业务要求可以提工单进行申请。'], + ['code' => 'Throttling.Vcpu.PerDay', 'message' => 'The maximum number of request for the day has been exceeded.', 'http_code' => 403, 'description' => '当天的请求配额已经超出。'], + ['code' => 'TradeBidCommodityNotMatch', 'message' => 'The trade ID and the commodity do not match.', 'http_code' => 400, 'description' => '交易的业务ID和商品不匹配。'], + ['code' => 'UnknownError', 'message' => 'An unknown error occurred while processing your request', 'http_code' => 400, 'description' => '处理请求时出现未知错误'], + ['code' => 'UnsupportedHTTPMethod', 'message' => 'This http method is not supported.', 'http_code' => 403, 'description' => '不支持的http方法'], + ['code' => 'VnodeDedicatedHostIdAlreadyExist', 'message' => 'DedicatedHostId:%s of Vnode:%s already exists.', 'http_code' => 400, 'description' => 'DedicatedHostId已经存在'], + ['code' => 'Zone.NotOnSale', 'message' => 'The specified zone is not available for purchase.', 'http_code' => 403, 'description' => '创建实例的可用区已经关闭售卖,请更换其他可用区。或者无法在该可用区使用指定 VPC 的虚拟交换机。'], + ['code' => 'ResponseLengthExceeded', 'message' => 'The length of response data exceeded limit.', 'http_code' => 400, 'description' => '接口响应数据长度超限。'], + ['code' => 'MultiAttachedCloudDiskNotSupport', 'message' => '%s.', 'http_code' => 400, 'description' => '不支持挂载开启多重挂载功能的云盘(即NVMe共享盘)。'], + ], + 'changeSet' => [ + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupEvents'], + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupMetric'], + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupStatus'], + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerLog'], + ['description' => '响应参数发生变更', 'api' => 'DescribeMultiContainerGroupMetric'], + ], + 'createdAt' => '2025-03-28T05:43:44.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupEvents'], + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupMetric'], + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupStatus'], + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerLog'], + ['description' => '响应参数发生变更', 'api' => 'DescribeMultiContainerGroupMetric'], + ], + 'createdAt' => '2025-03-28T03:48:54.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2025-01-06T06:30:26.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2024-12-24T11:43:08.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2024-12-16T03:48:20.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeRegions'], + ], + 'createdAt' => '2024-10-15T11:17:58.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateImageCache'], + ], + 'createdAt' => '2024-09-26T09:30:59.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroups'], + ], + 'createdAt' => '2024-09-26T06:29:08.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'DescribeContainerGroupEvents'], + ['description' => '错误码发生变更', 'api' => 'DescribeContainerGroups'], + ['description' => '错误码发生变更', 'api' => 'DescribeContainerGroupStatus'], + ], + 'createdAt' => '2024-09-04T07:12:43.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'ResizeContainerGroupVolume'], + ], + 'createdAt' => '2024-07-31T02:46:13.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'ResizeContainerGroupVolume'], + ], + 'createdAt' => '2024-07-08T06:45:22.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'ResizeContainerGroupVolume'], + ], + 'createdAt' => '2024-07-03T16:07:49.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'ResizeContainerGroupVolume'], + ], + 'createdAt' => '2024-07-03T09:49:06.000Z', + 'description' => '', + ], [ - 'regionId' => 'cn-qingdao', - 'endpoint' => 'eci.cn-qingdao.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DeleteContainerGroup'], + ], + 'createdAt' => '2024-06-28T06:11:27.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'eci.cn-beijing.aliyuncs.com', + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'DescribeAvailableResource'], + ], + 'createdAt' => '2024-06-21T05:33:47.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'eci.cn-zhangjiakou.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2024-06-19T09:27:34.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-zhengzhou-jva', - 'endpoint' => 'eci.cn-zhengzhou-jva.aliyuncs.com', + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2024-04-12T08:37:41.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-huhehaote', - 'endpoint' => 'eci.cn-huhehaote.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2024-04-12T08:25:41.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-wulanchabu', - 'endpoint' => 'eci.cn-wulanchabu.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'ListUsage'], + ], + 'createdAt' => '2024-02-29T02:17:27.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'eci.cn-hangzhou.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerGroupPrice'], + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerGroups'], + ], + 'createdAt' => '2023-12-27T06:43:08.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'eci.cn-shanghai.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-12-25T08:49:57.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更、请求参数发生变更', 'api' => 'CreateContainerGroup'], + ['description' => '错误码发生变更、响应参数发生变更', 'api' => 'DescribeContainerGroupPrice'], + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'DescribeContainerGroups'], + ], + 'createdAt' => '2023-12-25T06:03:53.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-nanjing', - 'endpoint' => 'eci.cn-nanjing.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-12-13T06:45:31.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更、请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-12-06T02:21:32.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'ExecContainerCommand'], + ], + 'createdAt' => '2023-10-12T08:01:05.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'ExecContainerCommand'], + ], + 'createdAt' => '2023-10-12T07:55:15.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-09-19T02:40:14.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'UpdateImageCache'], + ], + 'createdAt' => '2023-09-18T05:57:26.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-09-12T08:25:03.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeDataCaches'], + ['description' => '响应参数发生变更', 'api' => 'DescribeImageCaches'], + ], + 'createdAt' => '2023-09-05T06:04:33.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeRegions'], + ], + 'createdAt' => '2023-09-01T08:53:50.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateDataCache'], + ['description' => '请求参数发生变更', 'api' => 'UpdateDataCache'], + ], + 'createdAt' => '2023-09-01T08:46:01.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeVirtualNodes'], + ], + 'createdAt' => '2023-08-30T08:46:03.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-08-07T08:02:49.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更、请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-08-04T08:48:35.000Z', + 'description' => '', ], [ - 'regionId' => 'cn-fuzhou', - 'endpoint' => 'eci.cn-fuzhou.aliyuncs.com', + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateImageCache'], + ], + 'createdAt' => '2023-08-02T06:28:59.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeCommitContainerTask'], + ], + 'createdAt' => '2023-08-01T02:38:59.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CommitContainer'], + ['description' => '响应参数发生变更', 'api' => 'DescribeCommitContainerTask'], + ], + 'createdAt' => '2023-08-01T02:29:56.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateDataCache'], + ], + 'createdAt' => '2023-07-24T09:23:26.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更、请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-07-21T07:49:45.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateVirtualNode'], + ['description' => '响应参数发生变更、响应参数发生变更', 'api' => 'DescribeVirtualNodes'], + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'UpdateVirtualNode'], + ], + 'createdAt' => '2023-07-03T01:56:35.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CommitContainer'], + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ['description' => '请求参数发生变更', 'api' => 'CreateImageCache'], + ], + 'createdAt' => '2023-06-27T03:46:29.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更、响应参数发生变更', 'api' => 'CreateVirtualNode'], + ], + 'createdAt' => '2023-06-13T12:09:52.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-06-12T06:44:49.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-06-08T02:56:48.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-06-07T12:52:00.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupEvents'], + ], + 'createdAt' => '2023-06-02T08:20:32.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupStatus'], + ], + 'createdAt' => '2023-05-08T07:38:56.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroups'], + ], + 'createdAt' => '2023-04-17T06:30:27.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeImageCaches'], + ], + 'createdAt' => '2023-04-17T06:16:13.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroups'], + ], + 'createdAt' => '2023-04-04T08:02:35.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-04-03T02:40:47.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-03-30T07:49:47.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CommitContainer'], + ], + 'createdAt' => '2023-03-30T06:19:30.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'CommitContainer'], + ], + 'createdAt' => '2023-03-24T08:24:35.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerLog'], + ], + 'createdAt' => '2023-03-24T08:20:35.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2023-03-24T08:19:39.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'DescribeRegions'], + ], + 'createdAt' => '2023-01-11T08:13:57.000Z', + 'description' => '隐藏eci describeRegions参数osType/cpuArchitecture', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更、响应参数发生变更、响应参数发生变更', 'api' => 'DescribeVirtualNodes'], + ], + 'createdAt' => '2023-01-11T08:09:05.000Z', + 'description' => 'describe 接口参数优化。', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeRegions'], + ], + 'createdAt' => '2023-01-11T07:34:11.000Z', + 'description' => 'eci DescribeRegions 允许添加os/cpuArch作为过滤条件', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2022-10-24T07:23:01.000Z', + 'description' => '新增一个OperationDenied.NoStock错误码,但拥有和OperationDenied.NoStockWithFeatures一样的错误信息,并且代替OperationDenied.NoStockWithFeatures。精简了错误码,同时错误信息保证了语义清晰。', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateImageCache'], + ['description' => '错误码发生变更', 'api' => 'CreateVirtualNode'], + ], + 'createdAt' => '2022-10-17T02:12:10.000Z', + 'description' => '增加 eip地址池的错误码', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2022-10-14T09:13:18.000Z', + 'description' => '支持ContainerResourceView', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'DescribeImageCaches'], + ], + 'createdAt' => '2022-10-09T04:06:49.000Z', + 'description' => '支持分页', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'UpdateVirtualNode'], + ], + 'createdAt' => '2022-09-23T06:25:14.000Z', + 'description' => '修改部分参数的docRequire参数', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeMultiContainerGroupMetric'], + ], + 'createdAt' => '2022-09-19T07:30:17.000Z', + 'description' => 'DescribeMultiContainerGroupMetric接口新增RegionID必填校验', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'UpdateVirtualNode'], + ['description' => '请求参数发生变更', 'api' => 'UpdateVirtualNode'], + ], + 'createdAt' => '2022-09-16T02:02:05.000Z', + 'description' => 'updateVirtualNode将vnodeId修改为必填', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'UpdateContainerGroup'], + ['description' => '请求参数发生变更', 'api' => 'UpdateContainerGroup'], + ], + 'createdAt' => '2022-09-15T08:43:03.000Z', + 'description' => '支持acr ee', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeMultiContainerGroupMetric'], + ['description' => '请求参数发生变更', 'api' => 'DescribeMultiContainerGroupMetric'], + ], + 'createdAt' => '2022-09-15T08:17:27.000Z', + 'description' => 'MetricAPI Region必须填写', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DeleteVirtualNode'], + ], + 'createdAt' => '2022-09-08T09:26:22.000Z', + 'description' => 'DeleteVirtualNode将virtualNodeId设置为必填', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerGroupEvents'], + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerGroupStatus'], + ], + 'createdAt' => '2022-09-06T07:28:24.000Z', + 'description' => '对外屏蔽condition', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerLog'], + ], + 'createdAt' => '2022-09-05T09:48:07.000Z', + 'description' => 'regionId 文档必填', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2022-07-27T08:15:43.000Z', + 'description' => '支持host security context sysctl', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerGroupEvents'], + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerGroupStatus'], + ], + 'createdAt' => '2022-07-19T02:36:14.000Z', + 'description' => '增加condition查询', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2022-07-13T09:16:18.000Z', + 'description' => '支持开通ECI的IPv6公网通信能力', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeMultiContainerGroupMetric'], + ], + 'createdAt' => '2022-07-11T03:53:06.000Z', + 'description' => '内部接口协议变更,对用户是透明的,不需要通知客户', + ], + [ + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeAvailableResource'], + ], + 'createdAt' => '2022-07-11T02:00:52.000Z', + 'description' => '查询规格时,返回值增加StatusCategory,表示库存是否充足。', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateContainerGroup'], + ], + 'createdAt' => '2022-07-07T07:11:44.000Z', + 'description' => '增加售卖错误码', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateInstanceOpsTask'], + ], + 'createdAt' => '2022-06-20T09:28:23.000Z', + 'description' => '修复错误码显示错误', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateImageCache'], + ['description' => '响应参数发生变更', 'api' => 'DescribeImageCaches'], + ['description' => '请求参数发生变更', 'api' => 'UpdateImageCache'], + ], + 'createdAt' => '2022-05-18T06:06:16.000Z', + 'description' => '支持淘汰策略', ], [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'eci.cn-shenzhen.aliyuncs.com', + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateInstanceOpsTask'], + ], + 'createdAt' => '2022-05-05T05:18:15.000Z', + 'description' => '新增错误码', ], [ - 'regionId' => 'cn-heyuan', - 'endpoint' => 'eci.cn-heyuan.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeAvailableResource'], + ], + 'createdAt' => '2022-04-18T03:04:28.000Z', + 'description' => 'DescribeAvailableResource增加spot支持', ], [ - 'regionId' => 'cn-guangzhou', - 'endpoint' => 'eci.cn-guangzhou.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'UpdateContainerGroup'], + ], + 'createdAt' => '2022-04-12T05:03:15.000Z', + 'description' => '增量更新', ], [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'eci.cn-chengdu.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateImageCache'], + ['description' => '请求参数发生变更', 'api' => 'UpdateImageCache'], + ], + 'createdAt' => '2022-03-18T10:35:48.000Z', + 'description' => '新增副本支持', ], [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'eci.cn-hongkong.aliyuncs.com', + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeMultiContainerGroupMetric'], + ], + 'createdAt' => '2022-02-23T06:08:31.000Z', + 'description' => 'MuiltiMetric接口内部云产品调用相关返回不开放', ], [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'eci.ap-northeast-1.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateVirtualNode'], + ], + 'createdAt' => '2022-01-20T05:16:13.000Z', + 'description' => '创建vnode增加tlsBootstrapEnabled参数', ], [ - 'regionId' => 'ap-northeast-2', - 'endpoint' => 'eci.ap-northeast-2.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateVirtualNode'], + ], + 'createdAt' => '2022-01-14T03:50:51.000Z', + 'description' => '新增RotateCertificateEnabled参数', ], [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'eci.ap-southeast-1.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateVirtualNode'], + ], + 'createdAt' => '2022-01-13T08:38:58.000Z', + 'description' => 'vnode创建增加RotateCertificateEnabled', ], [ - 'regionId' => 'ap-southeast-2', - 'endpoint' => 'eci.ap-southeast-2.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI 下线', 'api' => 'CreateInstanceOpsTask'], + ['description' => 'OpenAPI 下线', 'api' => 'DescribeInstanceOpsRecords'], + ], + 'createdAt' => '2021-12-17T02:13:04.000Z', + 'description' => '新增运维相关接口', ], [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'eci.ap-southeast-3.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerLog'], + ], + 'createdAt' => '2021-12-07T15:37:43.000Z', + 'description' => '内部优化,用户使用方式无变化', ], [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'eci.ap-southeast-5.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI 下线', 'api' => 'DescribeAvailableResource'], + ], + 'createdAt' => '2021-11-18T05:36:48.000Z', + 'description' => '新增DescribeAvailableResource接口', ], [ - 'regionId' => 'ap-southeast-6', - 'endpoint' => 'eci.ap-southeast-6.aliyuncs.com', + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'DescribeContainerGroupPrice'], + ], + 'createdAt' => '2021-10-25T02:27:43.000Z', + 'description' => '新增spot相关错误码', ], [ - 'regionId' => 'us-east-1', - 'endpoint' => 'eci.us-east-1.aliyuncs.com', + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupEvents'], + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupStatus'], + ], + 'createdAt' => '2021-10-13T09:54:19.000Z', + 'description' => '新增加错误码', ], [ - 'regionId' => 'us-west-1', - 'endpoint' => 'eci.us-west-1.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI 下线', 'api' => 'ResizeContainerGroupVolume'], + ], + 'createdAt' => '2021-10-13T09:51:29.000Z', + 'description' => '新增OpenAPI:扩容Eci挂载卷的容量', ], [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'eci.eu-west-1.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerGroupEvents'], + ['description' => '请求参数发生变更', 'api' => 'DescribeContainerGroupStatus'], + ], + 'createdAt' => '2021-10-13T09:51:12.000Z', + 'description' => '新增DescribeContainerGroupEvents接口', ], [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'eci.eu-central-1.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'DescribeImageCaches'], + ], + 'createdAt' => '2021-09-22T10:09:33.000Z', + 'description' => '支持匹配查询', ], [ - 'regionId' => 'ap-south-1', - 'endpoint' => 'eci.ap-south-1.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateImageCache'], + ['description' => '请求参数发生变更', 'api' => 'UpdateImageCache'], + ], + 'createdAt' => '2021-09-10T07:37:49.000Z', + 'description' => '支持annotation', ], [ - 'regionId' => 'me-east-1', - 'endpoint' => 'eci.me-east-1.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI 下线', 'api' => 'CreateVirtualNode'], + ['description' => 'OpenAPI 下线', 'api' => 'DeleteVirtualNode'], + ['description' => 'OpenAPI 下线', 'api' => 'DescribeVirtualNodes'], + ['description' => 'OpenAPI 下线', 'api' => 'UpdateVirtualNode'], + ], + 'createdAt' => '2021-09-06T08:10:52.000Z', + 'description' => '支持vnode', ], [ - 'regionId' => 'cn-hangzhou-finance', - 'endpoint' => 'eci.cn-hangzhou-finance.aliyuncs.com', + 'apis' => [ + ['description' => 'OpenAPI 下线', 'api' => 'UpdateImageCache'], + ], + 'createdAt' => '2021-08-20T02:58:50.000Z', + 'description' => '支持imc更新', ], [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'eci.cn-shanghai-finance.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'ExecContainerCommand'], + ], + 'createdAt' => '2021-08-13T04:08:46.000Z', + 'description' => 'exec接口增加Sync参数和SyncResponse返回', ], [ - 'regionId' => 'cn-shenzhen-finance-1', - 'endpoint' => 'eci.cn-shenzhen-finance.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateImageCache'], + ], + 'createdAt' => '2021-08-13T04:07:54.000Z', + 'description' => 'imc这次企业级acr免密', ], [ - 'regionId' => 'ap-southeast-7', - 'endpoint' => 'eci.ap-southeast-7.aliyuncs.com', + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeImageCaches'], + ], + 'createdAt' => '2021-08-10T06:19:43.000Z', + 'description' => 'imc增加匹配时间', ], [ - 'regionId' => 'cn-beijing-finance-1', - 'endpoint' => 'eci.cn-beijing-finance-1.aliyuncs.com', + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateImageCache'], + ['description' => '请求参数发生变更', 'api' => 'CreateImageCache'], + ['description' => '响应参数发生变更', 'api' => 'DescribeImageCaches'], + ['description' => '响应参数发生变更', 'api' => 'DescribeImageCaches'], + ], + 'createdAt' => '2021-06-10T01:41:18.000Z', + 'description' => '支持极速缓存', ], [ - 'regionId' => 'me-central-1', - 'endpoint' => 'eci.me-central-1.aliyuncs.com', + 'apis' => [ + ['description' => '响应参数发生变更', 'api' => 'DescribeContainerGroupMetric'], + ], + 'createdAt' => '2021-05-24T03:56:46.000Z', + 'description' => 'ECI磁盘监控新增分类信息', ], [ - 'regionId' => 'cn-wuhan-lr', - 'endpoint' => 'eci.cn-wuhan-lr.aliyuncs.com', + 'apis' => [ + ['description' => '错误码发生变更、请求参数发生变更', 'api' => 'CreateContainerGroup'], + ['description' => '错误码发生变更', 'api' => 'CreateImageCache'], + ], + 'createdAt' => '2021-04-27T03:50:41.000Z', + 'description' => '新增错误码CreateServiceLinkedRole.Denied', + ], + ], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroupEvents'], + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ListTagResources'], + ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'], + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UntagResources'], + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DeleteContainerGroup'], + ['threshold' => '10000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroupStatus'], + ['threshold' => '2000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroupMetric'], + ['threshold' => '10000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeRegions'], + ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'ExecContainerCommand'], + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroupPrice'], + ['threshold' => '2000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeMultiContainerGroupMetric'], + ['threshold' => '2000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerGroups'], + ['threshold' => '200', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateImageCache'], + ['threshold' => '500', 'countWindow' => 60, 'regionId' => '*', 'api' => 'DescribeContainerLog'], + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'RestartContainerGroup'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CommitContainer'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ResizeContainerGroupVolume'], + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'TagResources'], + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'CreateContainerGroup'], + ['threshold' => '1000', 'countWindow' => 60, 'regionId' => '*', 'api' => 'UpdateContainerGroup'], + ], + ], + 'ram' => [ + 'productCode' => 'ECI', + 'productName' => '弹性容器实例', + 'ramCodes' => ['eci'], + 'ramLevel' => '资源级', + 'ramConditions' => [ + [ + 'name' => 'eci:tag', + 'schema' => ['type' => 'String', 'description' => 'ECI 标签信息,自2023年01月01日起不再维护,推荐使用全局条件键acs:RequestTag、acs:ResourceTag'], + ], + ], + 'ramActions' => [ + [ + 'apiName' => 'DescribeCommitContainerTask', + 'description' => '查询CommitContainer任务详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeCommitContainerTask', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'CommitContainerTask', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ], + ], + ], + [ + 'apiName' => 'UpdateImageCache', + 'description' => '更新一个镜像缓存', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:UpdateImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ], + ], + ], + [ + 'apiName' => 'CommitContainer', + 'description' => '创建CommitContainer任务', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CommitContainer', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'CommitContainerTask', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ], + ], + ], + [ + 'apiName' => 'DescribeContainerGroupStatus', + 'description' => '批量查询容器组状态', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroupStatus', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'CreateContainerGroupFromTemplate', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateContainerGroupFromTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ], + ], + ], + [ + 'apiName' => 'ExportContainerGroupTemplate', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:ExportContainerGroupTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListTagResources', + 'description' => '查询ECI资源绑定的标签信息', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eci:ListTagResources', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateConfigMap', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eci:UpdateConfigMap', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'RestartContainer', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:RestartContainer', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'CreateLaunchTemplate', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eci:CreateLaunchTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'LaunchTemplate', 'arn' => 'acs:eci:{#regionId}:{#accountId}:launchtemplate/*'], + ], + ], + ], + [ + 'apiName' => 'ResizeContainerGroupVolume', + 'description' => '扩容容器组的数据卷', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:ResizeContainerGroupVolume', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteContainerGroups', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eci:DeleteContainerGroups', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#ContainerGroupId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeDataCaches', + 'description' => '查询数据缓存', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eci:DescribeDataCaches', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/{#datacacheId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteDataCache', + 'description' => '删除数据缓存', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eci:DeleteDataCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/{#datacacheId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateVirtualNode', + 'description' => '更新一个虚拟节点', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:UpdateVirtualNode', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#VirtualNodeId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeUpdateConfigMapTask', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'eci:DescribeUpdateConfigMapTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeVirtualNodes', + 'description' => '批量查询虚拟节点信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeVirtualNodes', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#virtualnodeId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeImageCacheMetrics', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'eci:DescribeImageCacheMetrics', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteContainerGroup', + 'description' => '删除一个容器组', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eci:DeleteContainerGroup', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeMultiContainerGroupMetric', + 'description' => '查询多个ECI实例的监控数据', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeMultiContainerGroupMetric', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeContainerLog', + 'description' => '获取容器日志信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerLog', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'CreateImageCache', + 'description' => '创建一个镜像缓存', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/*'], + ], + ], + ], + [ + 'apiName' => 'UpdateDataCache', + 'description' => '更新数据缓存', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:UpdateDataCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/{#datacacheId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateContainerGroupByTemplate', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eci:UpdateContainerGroupByTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeContainerGroups', + 'description' => '批量查询容器组信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroups', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'TagResources', + 'description' => '为ECI资源绑定标签', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eci:TagResources', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#ContainerGroupId}'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#VirtualNodeId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateSecret', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eci:UpdateSecret', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ExecContainerCommand', + 'description' => '在容器内部执行命令', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:ExecContainerCommand', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'CopyDataCache', + 'description' => '拷贝数据缓存', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CopyDataCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/{#datacacheId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeUpdateSecretTask', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'eci:DescribeUpdateSecretTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateContainerGroup', + 'description' => '更新一个容器组', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:UpdateContainerGroup', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteVirtualNode', + 'description' => '删除一个虚拟节点', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eci:DeleteVirtualNode', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#VirtualNodeId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeContainerGroupPrice', + 'description' => '查询实例价格', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroupPrice', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateDataCache', + 'description' => '创建数据缓存', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateDataCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/*'], + ], + ], + ], + [ + 'apiName' => 'DescribeContainerGroupMetaInfos', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:describeContainerGroupMetaInfos', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'RestartContainerGroup', + 'description' => '重启一个容器组', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:RestartContainerGroup', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeContainerGroupEvents', + 'description' => '查询容器组事件列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroupEvents', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeLaunchTemplates', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eci:DescribeLaunchTemplates', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'LaunchTemplate', 'arn' => 'acs:eci:{#regionId}:{#accountId}:launchtemplate/{#LaunchTemplateId}'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'LaunchTemplate', 'arn' => 'acs:eci:{#regionId}:{#accountId}:launchtemplate/*'], + ], + ], + ], + [ + 'apiName' => 'UntagResources', + 'description' => '为ECI资源解绑标签', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'eci:UntagResources', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag'], + ], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#ContainerGroupId}'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#VirtualNodeId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteLaunchTemplate', + 'description' => '', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'eci:DeleteLaunchTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'LaunchTemplate', 'arn' => 'acs:eci:{#regionId}:{#accountId}:launchtemplate/{#LaunchTemplateId}'], + ], + ], + ], + [ + 'apiName' => 'CreateVirtualNode', + 'description' => '创建一个虚拟节点', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateVirtualNode', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/*'], + ], + ], + ], + [ + 'apiName' => 'DescribeContainerGroupEphemeralStorage', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroupEphemeralStorage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#ContainerGroupId}'], + ], + ], + ], + [ + 'apiName' => 'ResizeContainerGroupEphemeralStorage', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'eci:ResizeContainerGroupEphemeralStorage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#ContainerGroupId}'], + ], + ], + ], + [ + 'apiName' => 'BatchCreateContainerGroups', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:BatchCreateContainerGroups', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DescribeContainerGroupMetric', + 'description' => '查询一个ECI实例的监控数据', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeContainerGroupMetric', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteImageCache', + 'description' => '删除一个镜像缓存', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'eci:DeleteImageCache', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ], + ], + ], + [ + 'apiName' => 'CreateContainerGroup', + 'description' => '创建一个容器组', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateContainerGroup', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ], + ], + ], + [ + 'apiName' => 'DescribeImageCaches', + 'description' => '批量查询镜像缓存信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeImageCaches', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/*'], + ['validationType' => 'conditional', 'product' => 'ECI', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#imagecacheId}'], + ], + ], + ], + [ + 'apiName' => 'DescribeInstanceOpsRecords', + 'description' => '查询运维任务信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:DescribeInstanceOpsRecords', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateInstanceOpsTask', + 'description' => '创建运维任务', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'eci:CreateInstanceOpsTask', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'eci:tag', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListUsage', + 'description' => '查询权益配额', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'eci:ListUsage', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'RecommendVirtualPool', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'eci:CreateContainerGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ECI', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'CommitContainerTask', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ['validationType' => 'always', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/{#ImageCacheId}'], + ['validationType' => 'always', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#containergroupId}'], + ['validationType' => 'always', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ['validationType' => 'conditional', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/*'], + ['validationType' => 'always', 'resourceType' => 'ContainerGroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:containergroup/{#ContainerGroupId}'], + ['validationType' => 'always', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/{#DataCacheId}'], + ['validationType' => 'always', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/{#VirtualNodeId}'], + ['validationType' => 'always', 'resourceType' => 'LaunchTemplate', 'arn' => 'acs:eci:{#regionId}:{#accountId}:launchtemplate/*'], + ['validationType' => 'always', 'resourceType' => 'containergroup', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/*'], + ['validationType' => 'always', 'resourceType' => 'ImageCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:imagecache/*'], + ['validationType' => 'always', 'resourceType' => 'DataCache', 'arn' => 'acs:eci:{#regionId}:{#accountId}:datacache/*'], + ['validationType' => 'conditional', 'resourceType' => 'LaunchTemplate', 'arn' => 'acs:eci:{#regionId}:{#accountId}:launchtemplate/{#LaunchTemplateId}'], + ['validationType' => 'always', 'resourceType' => 'VirtualNode', 'arn' => 'acs:eci:{#regionId}:{#accountId}:virtualnode/*'], ], ], ]; |
