summaryrefslogtreecommitdiff
path: root/data/zh_cn/eci/2018-08-08
diff options
context:
space:
mode:
Diffstat (limited to 'data/zh_cn/eci/2018-08-08')
-rw-r--r--data/zh_cn/eci/2018-08-08/api-docs.php15002
1 files changed, 15002 insertions, 0 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
new file mode 100644
index 0000000..1f10bd6
--- /dev/null
+++ b/data/zh_cn/eci/2018-08-08/api-docs.php
@@ -0,0 +1,15002 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'Eci',
+ 'version' => '2018-08-08',
+ ],
+ 'directories' => [
+ [
+ 'id' => 99743,
+ 'title' => '地域',
+ 'type' => 'directory',
+ 'children' => [
+ 'DescribeRegions',
+ ],
+ ],
+ [
+ 'id' => 99745,
+ 'title' => '容器组',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateContainerGroup',
+ 'UpdateContainerGroup',
+ 'DescribeContainerGroups',
+ 'DescribeContainerGroupStatus',
+ 'DescribeContainerGroupEvents',
+ 'ResizeContainerGroupVolume',
+ 'RestartContainerGroup',
+ 'DeleteContainerGroup',
+ ],
+ ],
+ [
+ 'id' => 178925,
+ 'title' => '容器',
+ 'type' => 'directory',
+ 'children' => [
+ 'ExecContainerCommand',
+ 'DescribeContainerLog',
+ 'CommitContainer',
+ 'DescribeCommitContainerTask',
+ ],
+ ],
+ [
+ 'id' => 99760,
+ 'title' => '镜像缓存',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateImageCache',
+ 'DeleteImageCache',
+ 'UpdateImageCache',
+ 'DescribeImageCaches',
+ ],
+ ],
+ [
+ 'id' => 183905,
+ 'title' => '数据缓存',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateDataCache',
+ 'DescribeDataCaches',
+ 'UpdateDataCache',
+ 'CopyDataCache',
+ 'DeleteDataCache',
+ ],
+ ],
+ [
+ 'id' => 99755,
+ 'title' => '虚拟节点',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateVirtualNode',
+ 'DeleteVirtualNode',
+ 'UpdateVirtualNode',
+ 'DescribeVirtualNodes',
+ ],
+ ],
+ [
+ 'id' => 99765,
+ 'title' => '监控',
+ 'type' => 'directory',
+ 'children' => [
+ 'DescribeContainerGroupMetric',
+ 'DescribeMultiContainerGroupMetric',
+ ],
+ ],
+ [
+ 'id' => 99772,
+ 'title' => '运维操作',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateInstanceOpsTask',
+ 'DescribeInstanceOpsRecords',
+ ],
+ ],
+ [
+ 'id' => 193218,
+ 'title' => '标签',
+ 'type' => 'directory',
+ 'children' => [
+ 'TagResources',
+ 'ListTagResources',
+ 'UntagResources',
+ ],
+ ],
+ [
+ 'id' => 99769,
+ 'title' => '其他接口',
+ 'type' => 'directory',
+ 'children' => [
+ 'ListUsage',
+ 'DescribeContainerGroupPrice',
+ 'DescribeAvailableResource',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'DescribeRegions' => [
+ 'summary' => '查询弹性容器实例支持的地域和可用区信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '17738',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciWX1P2C',
+ 'FEATUREeciO4MP7I',
+ 'FEATUREeciL85GGA',
+ 'FEATUREeciTLPZOI',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ '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' => '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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' => ' ',
+ ],
+ 'CreateContainerGroup' => [
+ 'summary' => '调用CreateContainerGroup创建一个ECI实例(即容器组)。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ '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',
+ ],
+ ],
+ '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' => '实例所属的可用区。如果取值为空,则表示由系统选择。'."\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****',
+ ],
+ ],
+ [
+ '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****',
+ ],
+ ],
+ [
+ 'name' => 'ContainerGroupName',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'EipInstanceId',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'Memory',
+ 'in' => 'query',
+ '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****',
+ ],
+ ],
+ [
+ 'name' => 'DnsPolicy',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'InstanceType',
+ 'in' => 'query',
+ '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****',
+ ],
+ ],
+ [
+ 'name' => 'RamRoleName',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'AutoMatchImageCache',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'ActiveDeadlineSeconds',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'SpotPriceLimit',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'CorePattern',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'AutoCreateEip',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'EipISP',
+ 'in' => 'query',
+ '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****',
+ ],
+ ],
+ [
+ 'name' => 'HostName',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'EgressBandwidth',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'CpuOptionsThreadsPerCore',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'EphemeralStorage',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '增加的临时存储空间大小。单位:GiB。 '."\n"
+ .'更多信息,请参见[自定义临时存储空间大小](~~204066~~)。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '5000',
+ 'minimum' => '0',
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '标签列表。最多可以绑定20个。更多信息,请参见[使用标签管理实例](~~146608~~)。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'ImageRegistryCredential',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '镜像仓库信息。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 11,
+ ],
+ ],
+ [
+ 'name' => 'Container',
+ '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' => '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"
+ ."\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',
+ 'items' => [
+ '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',
+ ],
+ ],
+ '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/',
+ ],
+ 'Arg' => [
+ 'description' => '容器启动命令对应的参数。最多10个。',
+ 'type' => 'array',
+ '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',
+ ],
+ 'VolumeMount' => [
+ 'description' => '数据卷信息。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ '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',
+ ],
+ 'Command' => [
+ 'description' => '容器启动命令。最多20个。每个命令最多包含256个字符。',
+ 'type' => 'array',
+ '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',
+ ],
+ 'LivenessProbe.Exec.Command' => [
+ 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。'."\n"
+ ."\n"
+ .'> 设置LivenessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。',
+ 'type' => 'array',
+ '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',
+ ],
+ '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' => '["/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',
+ ],
+ 'Port' => [
+ 'description' => '端口号。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ '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',
+ ],
+ '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' => '["/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',
+ ],
+ 'ReadinessProbe.Exec.Command' => [
+ 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。'."\n"
+ ."\n"
+ .'> 设置ReadinessProbe相关参数时,HttpGet、Exec和TcpSocket这三种检查方式,只能选择其中一种。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '使用命令行方式进行健康检查时,在容器内执行的命令。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cat /tmp/healthy',
+ ],
+ 'required' => false,
+ 'maxItems' => 20,
+ ],
+ 'LifecyclePreStopHandlerHttpGetHttpHeader' => [
+ 'description' => '生成的HTTP请求头参数。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ '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',
+ ],
+ 'LifecyclePostStartHandlerHttpGetHttpHeader' => [
+ 'description' => '生成的HTTP请求头参数。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ 'maxItems' => 41,
+ ],
+ ],
+ [
+ 'name' => 'Volume',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '数据卷信息。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ 'ConfigFileVolume.ConfigFileToPath' => [
+ 'description' => 'ConfigFile类型的数据卷信息。'."\n"
+ ."\n"
+ .'如果配置多个ConfigFileToPath,对应的多个Content的总长度不能超过60 KB。',
+ 'type' => 'array',
+ 'items' => [
+ '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=',
+ ],
+ ],
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 101,
+ ],
+ ],
+ [
+ 'name' => 'InitContainer',
+ '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' => 100,
+ ],
+ 'Image' => [
+ 'description' => '容器使用的镜像。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'nginx',
+ ],
+ 'VolumeMount' => [
+ 'description' => '挂载数据卷信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 101,
+ ],
+ 'Port' => [
+ 'description' => 'init容器端口号。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ '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',
+ ],
+ 'EnvironmentVar' => [
+ 'description' => '容器的环境变量信息列表。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ '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',
+ ],
+ 'Arg' => [
+ 'description' => '容器启动参数。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '容器启动参数。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ 'required' => false,
+ 'maximum' => '65535',
+ 'example' => '10',
+ 'maxItems' => 101,
+ ],
+ 'Command' => [
+ 'description' => '容器启动指令。',
+ 'type' => 'array',
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 41,
+ ],
+ ],
+ [
+ 'name' => 'DnsConfig.NameServer',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'DNS服务器的IP地址列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'DNS服务器的IP地址列表。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '172.10.*.**',
+ ],
+ 'required' => false,
+ 'example' => '172.10.*.**',
+ 'maxItems' => 20,
+ ],
+ ],
+ [
+ 'name' => 'DnsConfig.Search',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'DNS搜索域列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'DNS搜索域列表。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'svc.local.kubernetes',
+ ],
+ 'required' => false,
+ 'example' => 'svc.local.kubenetes',
+ 'maxItems' => 20,
+ ],
+ ],
+ [
+ 'name' => 'DnsConfig.Option',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '对象的选项列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '对象的选项列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Value' => [
+ 'description' => '对象的Value。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value',
+ ],
+ 'Name' => [
+ 'description' => '对象的Name。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'name',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 20,
+ ],
+ ],
+ [
+ 'name' => 'HostAliase',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '添加一个ECI的别名。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '添加一个ECI的别名。',
+ 'type' => 'object',
+ 'properties' => [
+ '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',
+ ],
+ 'required' => false,
+ 'example' => 'hehe.com',
+ 'maxItems' => 51,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 101,
+ ],
+ ],
+ [
+ 'name' => 'SecurityContext.Sysctl',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '通过安全上下文修改安全sysctl参数。更多信息,请参见[配置Security Context](~~462313~~)。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 101,
+ ],
+ ],
+ [
+ 'name' => 'HostSecurityContext.Sysctl',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '通过安全上下文修改非安全sysctl参数。更多信息,请参见[配置Security Context](~~462313~~)。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 101,
+ ],
+ ],
+ [
+ 'name' => 'NtpServer',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'NTP服务器。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'NTP服务器。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ntp.cloud.aliyuncs.com',
+ ],
+ 'required' => false,
+ 'example' => 'ntp.cloud.aliyuncs.com',
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'AcrRegistryInfo',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ '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' => '*****-****-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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'SpotDuration',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ '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"',
+ ],
+ ],
+ [
+ 'name' => 'InsecureRegistry',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'Ipv6GatewayBandwidthEnable',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'ContainerResourceView',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'FixedIpRetainHour',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'DataCachePL',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'DataCacheBurstingEnabled',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'PrivateIpAddress',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'CpuArchitecture',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '指定ECI实例的CPU架构。取值范围:'."\n"
+ ."\n"
+ .'- AMD64(默认值)'."\n"
+ .'- ARM64',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ARM64',
+ ],
+ ],
+ [
+ 'name' => 'ComputeCategory',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '指定算力类别。更多信息,请参见[指定算力类别创建实例](~~2638061~~)。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '指定算力类别。取值范围:'."\n"
+ ."\n"
+ .'- economy:经济型'."\n"
+ .'- general:通用型'."\n"
+ ."\n"
+ .'支持设置多个算力类别,系统会按照设置顺序创建。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'economy',
+ ],
+ 'required' => false,
+ 'maxItems' => 100,
+ ],
+ ],
+ [
+ 'name' => 'GpuDriverVersion',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ '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,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID,唯一标识。',
+ 'type' => 'string',
+ 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3',
+ ],
+ 'ContainerGroupId' => [
+ 'description' => '实例ID,即容器组ID。',
+ 'type' => 'string',
+ 'example' => 'eci-uf6fonnghi50u374****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ 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.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B3\\",\\n \\"ContainerGroupId\\": \\"eci-uf6fonnghi50u374****\\"\\n}","type":"json"}]',
+ 'title' => '创建一个容器组',
+ 'description' => '调用CreateContainerGroup创建ECI实例时,系统将自动为您创建一个服务关联角色AliyunServiceRoleForECI,用于访问ECS、VPC等相关云服务。更多信息,请参见[弹性容器实例服务关联角色](~~212914~~)。'."\n"
+ ."\n"
+ .'创建ECI实例时,您可以根据需要配置实例、镜像、存储等相关功能。各功能涉及的参数及其说明,请参见以下功能文档:'."\n"
+ ."\n"
+ .'**实例**'."\n"
+ ."\n"
+ .'ECI支持以下两种方式创建实例:'."\n"
+ .'- [指定vCPU和内存创建实例](~~114662~~)'."\n"
+ .'- [指定ECS规格创建实例](~~114664~~)'."\n"
+ ."\n"
+ .'以下功能两种创建方式均支持:'."\n"
+ .'- [创建抢占式实例](~~157759~~)'."\n"
+ .'- [配置多可用区](~~157290~~)'."\n"
+ .'- [配置多规格](~~146468~~)'."\n"
+ .'- [使用标签管理实例](~~146608~~)'."\n"
+ ."\n"
+ .'**镜像**'."\n"
+ .'- [配置容器镜像](~~461311~~)'."\n"
+ .'- [使用镜像缓存加速创建实例](~~141281~~)'."\n"
+ .'- [指定ACR企业版实例](~~194250~~)'."\n"
+ .'- [使用自建镜像仓库](~~378059~~)'."\n"
+ ."\n"
+ .'**网络**'."\n"
+ .'- [绑定EIP](~~99146~~)'."\n"
+ .'- [指定安全组](~~176237~~)'."\n"
+ .'- [配置IPv6地址](~~451282~~)'."\n"
+ .'- [配置带宽限速](~~190635~~)'."\n"
+ ."\n"
+ .'**存储**'."\n"
+ .'- [挂载云盘数据卷](~~144571~~)'."\n"
+ .'- [挂载NAS数据卷](~~464075~~)'."\n"
+ .'- [挂载OSS数据卷](~~464076~~)'."\n"
+ .'- [挂载EmptyDir数据卷](~~464078~~)'."\n"
+ .'- [挂载ConfigFile数据卷](~~464080~~)'."\n"
+ .'- [自定义临时存储空间大小](~~204066~~)'."\n"
+ ."\n"
+ .'**容器配置**'."\n"
+ .'- [设置容器启动命令和参数](~~94593~~)'."\n"
+ .'- [使用探针对容器进行健康检查](~~99053~~)'."\n"
+ .'- [通过环境变量获取元数据](~~141788~~)'."\n"
+ .'- [配置Security Context](~~462313~~)'."\n"
+ .'- [配置NTP服务](~~462768~~)'."\n"
+ ."\n\n"
+ .'**日志与运维**'."\n"
+ .'- [通过环境变量配置日志采集](~~121973~~)'."\n"
+ .'- [设置core文件保存到数据卷](~~167801~~)',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateContainerGroup' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ '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' => '实例绑定的标签列表。',
+ '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' => '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 61,
+ ],
+ ],
+ [
+ 'name' => 'DnsConfig.Search',
+ '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,
+ ],
+ ],
+ [
+ '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' => 'DNS配置信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Value' => [
+ 'description' => 'DNS配置的选项变量值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ 'Name' => [
+ 'description' => 'DNS配置的选项变量名。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ndots',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'Container',
+ '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,
+ ],
+ ],
+ [
+ 'name' => 'InitContainer',
+ '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,
+ ],
+ ],
+ [
+ 'name' => 'ImageRegistryCredential',
+ '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,
+ ],
+ ],
+ [
+ 'name' => 'AcrRegistryInfo',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'ACR企业版实例信息。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'ACR企业版实例信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => 'ACR企业版实例ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-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,
+ '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' => 'CB8D2B22-D636-4182-****-1FC9DBDAD66F',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'InvalidAction',
+ 'errorMessage' => 'The specified action is invalid',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'InvalidParameter.NotFound',
+ 'errorMessage' => '%s',
+ ],
+ ],
+ ],
+ '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' => ' ',
+ ],
+ 'DescribeContainerGroups' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17732',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'ZoneId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例所属的可用区。如果取值为空,则表示由系统选择。'."\n"
+ ."\n"
+ .'默认值为空。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou-h',
+ ],
+ ],
+ [
+ 'name' => 'VSwitchId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例所属的虚拟交换机ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vsw-bp1jrgfqqy54kg5hc****',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '下一个查询开始的Token,NextToken为空表示没有下一个。'."\n"
+ ."\n"
+ .'> 首次查询时无需设置该参数,后续查询的Token从返回结果中获取。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc',
+ ],
+ ],
+ [
+ 'name' => 'Limit',
+ 'in' => 'query',
+ '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-aekzh43v***** ',
+ ],
+ ],
+ [
+ 'name' => 'WithEvent',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否返回事件信息。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ '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' => 10,
+ ],
+ ],
+ [
+ 'name' => 'ComputeCategory',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '指定算力类别。取值范围:'."\n"
+ ."\n"
+ .'- economy:经济型'."\n"
+ .'- general:通用型',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'economy',
+ ],
+ ],
+ [
+ 'name' => 'SecurityGroupId',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => 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' => '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' => '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,
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '下一个查询开始的Token,NextToken为空表示没有下一个。 '."\n"
+ .'首次查询时无需设置该参数,后续查询的Token从返回结果中获取。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd78f2dd8-5979-42fe-xaee-b16db43be5bc',
+ ],
+ ],
+ [
+ 'name' => 'Limit',
+ 'in' => 'query',
+ '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' => [
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter.MismatchInstanceType',
+ 'errorMessage' => 'The instanceId mismatch instance type.',
+ ],
+ ],
+ ],
+ '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' => '批量查询容器组状态',
+ ],
+ 'DescribeContainerGroupEvents' => [
+ 'summary' => '调用DescribeContainerGroupEvents批量查询ECI实例的事件信息。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '48556',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciO8VNZM',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => 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',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '下一个查询开始的Token,NextToken为空表示没有下一个。'."\n"
+ ."\n"
+ .'首次查询时无需设置该参数,后续查询的Token从返回结果中获取。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd78f2dd8-5979-42fe-xaee-b16db43be5bc',
+ ],
+ ],
+ [
+ 'name' => 'EventSource',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '事件源。取值范围:'."\n"
+ ."\n"
+ .'- EciService'."\n"
+ .'- K8sAgent'."\n"
+ ."\n"
+ .'默认为空,查询所有事件。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'K8sAgent',
+ 'enum' => [
+ 'EciService',
+ 'K8sAgent',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'SinceSecond',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '返回最近几秒内新增的事件,用于轮询增量事件。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '3600',
+ 'minimum' => '60',
+ 'example' => '60',
+ ],
+ ],
+ [
+ 'name' => 'Limit',
+ 'in' => 'query',
+ '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' => [
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter.MismatchInstanceType',
+ 'errorMessage' => 'The instanceId mismatch instance type.',
+ ],
+ ],
+ ],
+ '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' => ' ',
+ ],
+ 'ResizeContainerGroupVolume' => [
+ 'summary' => '调用ResizeContainerGroupVolume扩容指定ECI实例挂载的云盘数据卷。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '86142',
+ 'abilityTreeNodes' => [
+ 'FEATUREeci0764O2',
+ 'FEATUREeciJCC6LW',
+ ],
+ ],
+ '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' => '要扩容数据卷的ECI实例ID,即容器组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eci-2zelg8vwnlzdhf8hv****',
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '幂等参数',
+ 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123e4567-e89b-12d3-a456-426655440000',
+ ],
+ ],
+ [
+ 'name' => 'VolumeName',
+ 'in' => 'query',
+ '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' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => '%s',
+ ],
+ ],
+ 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 ',
+ ],
+ ],
+ ],
+ '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' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ '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' => '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' => '45D5B0AD-3B00-4A9B-9911-6D5303B06712',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'IncorrectStatus',
+ 'errorMessage' => '%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => '%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'InvalidAction',
+ 'errorMessage' => 'The specified action is invalid',
+ ],
+ ],
+ ],
+ '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。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteContainerGroup' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '17727',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'ContainerGroupId',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'Force',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '是否强制清理资源。取值范围:'."\n"
+ .'- true:不等待graceful termination超时时间,强制清理资源。'."\n"
+ .'- false(默认值):等待graceful termination超时时间,正常清理资源。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ '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.',
+ ],
+ ],
+ ],
+ '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',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ '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',
+ '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"]',
+ ],
+ ],
+ [
+ 'name' => 'TTY',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否开启交互。默认为false。 '."\n"
+ .'当Command为`/bin/bash`命令时,需要设置为true。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Stdin',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否标准输入。默认为true。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Sync',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否立即执行命令并同步返回结果。默认为false。 '."\n"
+ .'如果设置为true,TTY只能设置为false(即Command不是`/bin/bash`命令)。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter.ValueExceeded',
+ 'errorMessage' => '%s',
+ ],
+ [
+ 'errorCode' => 'IncorrectStatus',
+ 'errorMessage' => '%s',
+ ],
+ ],
+ ],
+ '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' => ' ',
+ ],
+ 'DescribeContainerLog' => [
+ 'summary' => '调用DescribeContainerLog获取容器组内某个容器的日志信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '17733',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciO8VNZM',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ContainerGroupId',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'description' => 'ECI实例ID,即容器组ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'eci-uf6fonnghi50v6nq****',
+ ],
+ ],
+ [
+ 'name' => 'ContainerName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '容器名称。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'nginx',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'UTC时间,RFC3339标准。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2018-08-02T15:00:00Z',
+ ],
+ ],
+ [
+ 'name' => 'Tail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询最新多少行的日志内容。默认500行,最大2000行 。 '."\n"
+ .'日志内容最大返回1 MB数据。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '500',
+ ],
+ ],
+ [
+ 'name' => 'LastTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否查询上一个容器(如果容器退出重启了)。取值范围:'."\n"
+ ."\n"
+ .'- true:查询上一个容器。'."\n"
+ .'- false:不查询。'."\n"
+ ."\n"
+ .'默认为false。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'SinceSeconds',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询最近多少秒内的日志。例如:10s、20s、30s。'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'LimitBytes',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '日志总大小的限制。单位为Byte,取值范围为1~1048576(1 MB)。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => '123798',
+ ],
+ ],
+ [
+ 'name' => 'Timestamps',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否返回日志时间戳。取值范围:'."\n"
+ ."\n"
+ .'- true:返回日志时间戳。'."\n"
+ .'- false:不返回日志时间戳。'."\n"
+ ."\n"
+ .'默认为false。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID,唯一标识。',
+ 'type' => 'string',
+ 'example' => 'CA850ADA-****-4AC8-****-5B5990EAB7D0',
+ ],
+ 'ContainerName' => [
+ 'description' => '容器名称。',
+ 'type' => 'string',
+ 'example' => 'nginx',
+ ],
+ 'Content' => [
+ 'description' => '日志内容。',
+ 'type' => 'string',
+ 'example' => '{}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'Forbidden.Unauthorized',
+ 'errorMessage' => 'You are not authorized to operate on the specified resource.',
+ ],
+ ],
+ 408 => [
+ [
+ 'errorCode' => 'Request Timeout',
+ 'errorMessage' => 'Request timed out, please try again later.',
+ ],
+ ],
+ ],
+ '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' => '获取容器日志信息',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CommitContainer' => [
+ 'summary' => '调用CommitContainer接口创建异步任务,将ECI实例中的指定容器保存为镜像,并推送至阿里云ACR的镜像仓库中。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ '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' => '容器镜像信息。',
+ '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,
+ ],
+ ],
+ [
+ 'name' => 'AcrRegistryInfo',
+ '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,
+ ],
+ ],
+ [
+ '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,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID,唯一标识。',
+ 'type' => 'string',
+ 'example' => 'CB8D2B22-D636-4182-****-1FC9DBDAD66F',
+ ],
+ 'TaskId' => [
+ 'description' => '任务ID。',
+ 'type' => 'string',
+ 'example' => 't-bp18cwvrb3v9tjk0tekz',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => '%s',
+ ],
+ ],
+ 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 ',
+ ],
+ ],
+ ],
+ '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',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '150868',
+ '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' => 'NextToken',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'ContainerGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '执行CommitContainer任务的ECI实例ID。 '."\n"
+ .'查询时按实例ID或者任务ID进行查询,两者至少要填其中一个。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eci-2zelg8vwnlzdhf8hv****',
+ ],
+ ],
+ [
+ 'name' => 'TaskStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '任务状态。取值范围:'."\n"
+ ."\n"
+ .'- Running:运行中'."\n"
+ .'- Succeeded:成功'."\n"
+ .'- Failed:失败',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Succeeded' => 'Succeeded',
+ 'Failed' => 'Failed',
+ 'Running' => 'Running',
+ ],
+ 'example' => 'Running',
+ ],
+ ],
+ [
+ 'name' => 'TaskId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '任务ID。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '任务ID。 '."\n"
+ .'查询时按实例ID或者任务ID进行查询,两者至少要填其中一个。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 't-2zej6nstkg744qc3****',
+ ],
+ 'required' => false,
+ 'maxItems' => 10,
+ 'minItems' => 0,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ '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',
+ ],
+ 'CommitTasks' => [
+ 'description' => '任务详细信息。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ 'CommitPhaseInfos' => [
+ 'description' => '任务阶段信息。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ ],
+ ],
+ 'TaskCreationTime' => [
+ 'description' => '任务开始时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-06T08:22:40Z',
+ ],
+ 'TaskFinishedTime' => [
+ 'description' => '任务完成时间。',
+ 'type' => 'string',
+ 'example' => '2023-03-06T08:23:40Z',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '17725',
+ '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' => '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****',
+ ],
+ ],
+ [
+ '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****',
+ ],
+ ],
+ [
+ '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"
+ ."\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',
+ '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,
+ ],
+ ],
+ [
+ '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~~)。',
+ '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,
+ '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"',
+ ],
+ ],
+ [
+ 'name' => 'InsecureRegistry',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '自建镜像仓库地址。'."\n"
+ ."\n"
+ .'使用自签发证书的自建镜像仓库中的镜像创建镜像缓存时,需配置该参数来跳过证书认证,避免因证书认证失败而导致镜像拉取失败。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '"harbor***.pre.com,192.168.XX.XX:5000,reg***.test.com:80"',
+ ],
+ ],
+ [
+ 'name' => 'StandardCopyCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '标准快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n"
+ ."\n"
+ .'> 未开启极速镜像缓存功能(Flash取值为false)时,创镜像缓存的过程中仅生成标准快照。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '7',
+ ],
+ ],
+ [
+ 'name' => 'FlashCopyCount',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'OsType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '容器镜像的操作系统。取值范围:'."\n"
+ ."\n"
+ .'- Linux(默认值)'."\n"
+ .'- Windows'."\n"
+ ."\n"
+ .'> Windows正在邀测中,如需使用,请提交工单申请。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Linux',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ '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****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ ],
+ '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~~)。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteImageCache' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '17728',
+ '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' => 'ImageCacheId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '镜像缓存ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'imc-2zebxkiifuyzzlhl****',
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。'."\n",
+ '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-A218-354284CFC7A2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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删除一个镜像缓存。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateImageCache' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ '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' => 'ImageCacheId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '镜像缓存ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'imc-bp195erqe9o2pb09**** ',
+ ],
+ ],
+ [
+ 'name' => 'SecurityGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '安全组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'sg-uf66jeqopgqa9hdn**** ',
+ ],
+ ],
+ [
+ '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' => '镜像仓库信息。',
+ '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',
+ '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,
+ ],
+ ],
+ [
+ '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"
+ .'- false:不开启'."\n"
+ ."\n"
+ .'默认为false。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'AcrRegistryInfo',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ '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,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'StandardCopyCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '标准快照副本数。默认情况下,一个镜像缓存对应一个快照。如果该镜像缓存将用于批量创建多个ECI实例,建议您配置该参数实现快照多副本。推荐每1000个ECI实例增加一个快照副本。'."\n"
+ ."\n"
+ .'> 未开启极速镜像缓存功能(Flash取值为false)时,创镜像缓存的过程中仅生成标准快照。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '7',
+ ],
+ ],
+ [
+ 'name' => 'FlashCopyCount',
+ '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',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID,唯一标识。',
+ 'type' => 'string',
+ 'example' => '0E234675-3465-4CC3-9D0F-9A864BC391DD',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ 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.',
+ ],
+ ],
+ ],
+ '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' => ' ',
+ ],
+ 'DescribeImageCaches' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17734',
+ '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' => 'ImageCacheId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '镜像缓存ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'imc-bp195erqe9o2pb09****',
+ ],
+ ],
+ [
+ 'name' => 'ImageCacheName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '镜像缓存名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'testcache',
+ ],
+ ],
+ [
+ 'name' => 'SnapshotId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '镜像缓存对应的快照ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 's-2zec5oj8e1yhxijt****',
+ ],
+ ],
+ [
+ 'name' => 'Image',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '容器镜像。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'nginx',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '所属资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-2df3isufhi38****',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '镜像缓存绑定的标签信息。',
+ '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' => '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****',
+ ],
+ ],
+ [
+ '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' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ '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' => '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.',
+ ],
+ ],
+ ],
+ '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批量查询镜像缓存信息。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateDataCache' => [
+ 'summary' => '创建一个数据缓存。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ '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',
+ ],
+ ],
+ [
+ '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',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据缓存名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Size',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据缓存大小。单位为GiB,默认为20 GiB。请根据实际数据量评估所需大小。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'DataSource',
+ '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,
+ ],
+ ],
+ [
+ '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' => '资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-2df3isufhi38****',
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123e4567-****-12d3-****-426655440000',
+ ],
+ ],
+ [
+ 'name' => 'EipInstanceId',
+ '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,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'D81A4A13-6DCC-4579-AC62-90A6C3EC7BBC',
+ ],
+ 'DataCacheId' => [
+ 'description' => '数据缓存ID。',
+ 'type' => 'string',
+ 'example' => 'edc-bp15l4vvys94oo******',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ '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"
+ .'- 创建数据缓存将生成对应的快照。请勿删除快照,否则数据缓存将会失效。',
+ ],
+ 'DescribeDataCaches' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '179701',
+ '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',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '数据缓存ID。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数据缓存ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'edc-bp1a7n7uawwwol******',
+ ],
+ 'required' => false,
+ 'docRequired' => false,
+ 'maxItems' => 100,
+ ],
+ ],
+ [
+ '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/',
+ ],
+ ],
+ [
+ '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' => '资源组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',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'B8756BA0-6452-419C-9727-37A6209C85E0',
+ ],
+ 'DataCaches' => [
+ 'description' => '数据缓存信息。',
+ 'type' => 'array',
+ 'items' => [
+ '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****',
+ ],
+ 'Tags' => [
+ 'description' => '标签列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签键。',
+ 'type' => 'string',
+ 'example' => 'testkey',
+ ],
+ 'Value' => [
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'example' => 'testvalue',
+ ],
+ ],
+ ],
+ ],
+ '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-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',
+ ],
+ '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"
+ .'}',
+ ],
+ ],
+ ],
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ ],
+ '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',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ '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' => '数据源信息。',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-acfmzw2jz2z****',
+ ],
+ ],
+ [
+ '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' => '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,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'BD8BBB43-8E05-5F46-89A9-2512D8A324A2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"BD8BBB43-8E05-5F46-89A9-2512D8A324A2\\"\\n}","type":"json"}]',
+ 'title' => '更新数据缓存',
+ ],
+ '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',
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ [
+ '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.',
+ ],
+ ],
+ ],
+ '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>',
+ ],
+ 'DeleteDataCache' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '179691',
+ '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,
+ '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/',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'C0F8A012-1426-5EB2-96F5-B4416DEB5B78',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciOZ73BH',
+ 'FEATUREeciESSPHI',
+ ],
+ ],
+ '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****',
+ ],
+ ],
+ [
+ 'name' => 'VirtualNodeName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '虚拟节点的名称。长度为2~128个英文字符,可以包含小写英文字符、数字、半角句号(.)或者短划线(-)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'testNode',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-uf66jeqopgqa9hdn****',
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'query',
+ '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',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '弹性公网IP的ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eip-uf66jeqopgqa9hdn****',
+ ],
+ ],
+ [
+ 'name' => 'KubeConfig',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '虚拟节点要连接的Kubernetes集群的KubeConfig。需进行Base64编码后传入。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'JTVDbmFwaVZlcnNpb24lM0ElMjB2MSU1Q25jbHVzdGVycyUzQSU1Q24tJTIwY2x1c3RlciUzQSU1Q24uLi******',
+ ],
+ ],
+ [
+ 'name' => 'CustomResources',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '虚拟节点支持的自定义资源。如果ECI Pod的request中声明了相应的自定义资源,则该Pod会被调度到VNode。'."\n"
+ .'格式为`资源名称=资源数量`,多个资源之间使用半角逗号间隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example1.com=100,example2.com=200',
+ ],
+ ],
+ [
+ 'name' => 'ClusterDomain',
+ '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',
+ ],
+ ],
+ [
+ '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个。',
+ '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,
+ '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****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ 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.',
+ ],
+ ],
+ ],
+ '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实例费用。',
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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' => ' ',
+ ],
+ 'UpdateVirtualNode' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ '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' => 'VirtualNodeId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '虚拟节点ID。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'vnd-2ze960zkdqrldeaw****',
+ ],
+ ],
+ [
+ 'name' => 'VirtualNodeName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '虚拟节点名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'testNode',
+ ],
+ ],
+ [
+ 'name' => 'CustomResources',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '虚拟节点支持的自定义资源。如果ECI Pod的request中声明了相应的自定义资源,则该Pod会被调度到VNode。'."\n"
+ .'格式为`资源名称=资源数量`,多个资源之间使用半角逗号间隔。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'example1.com=100,example2.com=200',
+ ],
+ ],
+ [
+ 'name' => 'ClusterDomain',
+ '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',
+ ],
+ ],
+ [
+ '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' => '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' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '89945DD3-9072-47D0-A318-353284CFC7B3',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ ],
+ '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的虚拟节点。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DescribeVirtualNodes' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ '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' => 'VirtualNodeName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '虚拟节点名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'testNode',
+ ],
+ ],
+ [
+ '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',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '虚拟节点状态。取值范围:'."\n"
+ ."\n"
+ .'- Pending'."\n"
+ .'- Ready'."\n"
+ .'- Failed',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Ready',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源组ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'rg-uf66jeqopgqa9hdn****',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '下一个查询开始的Token,NextToken为空表示没有下一个。'."\n"
+ ."\n"
+ .'首次查询时无需设置该参数,后续查询的Token从返回结果中获取。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'd78f2dd8-5979-42fe-****-b16db43be5bc',
+ ],
+ ],
+ [
+ 'name' => 'Limit',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '限制本次查询返回的资源数量。默认返回20个,最大不能超过20个。'."\n"
+ ."\n"
+ .'> 返回结果可能小于指定的数量,但不会多于指定的数量。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ '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,
+ ],
+ ],
+ ],
+ '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' => '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.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 \\"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' => ' ',
+ ],
+ 'DescribeContainerGroupMetric' => [
+ 'summary' => '调用DescribeContainerGroupMetric查询一个ECI实例的监控数据。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17730',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciO8VNZM',
+ ],
+ ],
+ 'parameters' => [
+ [
+ '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-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',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '数据聚合周期,单位为秒。目前只支持15、30、60和600秒。默认为60秒。'."\n"
+ ."\n"
+ .'> 如果StartTime和EndTime均没有设置,则默认获取最新5分钟的监控数据,默认聚合周期为15S,传入的Period将被忽略。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '15',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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实例的监控数据。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DescribeMultiContainerGroupMetric' => [
+ 'summary' => '调用DescribeContainerGroupMetric查询一个ECI实例的监控数据。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '17736',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciO8VNZM',
+ ],
+ ],
+ '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****"]',
+ ],
+ ],
+ [
+ '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****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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' => ' ',
+ ],
+ 'CreateInstanceOpsTask' => [
+ 'summary' => '调用CreateInstanceOpsTask创建一个运维任务。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '92950',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciXQE3ZY',
+ 'FEATUREeciO9KN4L',
+ ],
+ ],
+ '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。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eci-bp1dvysdafbh00t7****',
+ ],
+ ],
+ [
+ 'name' => 'OpsType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '运维任务类型。取值范围:'."\n"
+ ."\n"
+ .'- coredump'."\n"
+ .'- tcpdump',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'coredump',
+ ],
+ ],
+ [
+ 'name' => 'OpsValue',
+ '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',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '89945DD3-9072-47D0-A318-353284CFC7B',
+ ],
+ 'Result' => [
+ 'description' => '运维任务执行结果。',
+ 'type' => 'string',
+ 'example' => 'Enable Success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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',
+ ],
+ ],
+ ],
+ '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' => '创建运维任务',
+ 'description' => '## 接口说明'."\n"
+ .'运维任务支持以下两种:'."\n"
+ ."\n"
+ .'- coredump:开启coredump后,在容器异常终止时,系统会生成core文件,以便您分析异常,找出问题原因。更多信息,请参见[开启coredump](~~167801~~)。'."\n"
+ .'- tcpdump:开启tcpdump后,系统将抓取网络数据包,以便您分析报文,定位网络问题。更多信息,请参见[开启tcpdump](~~429749~~)。',
+ ],
+ 'DescribeInstanceOpsRecords' => [
+ 'summary' => '调用DescribeInstanceOpsRecords查询运维任务信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '105962',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciXQE3ZY',
+ 'FEATUREeciO9KN4L',
+ ],
+ ],
+ '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。',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eci-bp1dvysdafbh00t7****',
+ ],
+ ],
+ [
+ 'name' => 'OpsType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '运维任务类型。取值范围:'."\n"
+ ."\n"
+ .'- coredump'."\n"
+ .'- tcpdump',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'coredump',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ '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-******',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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' => '查询运维任务信息',
+ ],
+ 'TagResources' => [
+ 'summary' => '调用TagResources为指定的ECI资源绑定标签。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ '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' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '资源ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源ID。根据ResourceType取值填写对应资源ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eci-2zelg8vwnlzdhf8hv****',
+ ],
+ 'required' => true,
+ 'docRequired' => true,
+ 'maxItems' => 100,
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '标签列表。一个资源最多可以绑定20个标签。',
+ 'type' => 'array',
+ 'items' => [
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ 'maxItems' => 100,
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源类型。取值范围:'."\n"
+ ."\n"
+ .'- ContainerGroup:ECI实例'."\n"
+ .'- ImageCache:镜像缓存'."\n"
+ .'- DataCache:数据缓存'."\n"
+ .'- VirtualNode:虚拟节点',
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [],
+ 'example' => 'ContainerGroup',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ '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.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0E234675-3465-4CC3-9D0F-9A864BC391DD\\"\\n}","type":"json"}]',
+ 'title' => '为ECI资源绑定标签',
+ ],
+ 'ListTagResources' => [
+ 'summary' => '调用ListTagResources查询ECI资源绑定的标签信息。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '163143',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '资源ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源ID。根据ResourceType取值填写对应资源ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eci-2zelg8vwnlzdhf8hv***',
+ ],
+ 'required' => false,
+ 'docRequired' => true,
+ 'maxItems' => 100,
+ ],
+ ],
+ [
+ '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' => 100,
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源类型。取值范围:'."\n"
+ ."\n"
+ .'- ContainerGroup:ECI实例'."\n"
+ .'- ImageCache:镜像缓存'."\n"
+ .'- DataCache:数据缓存'."\n"
+ .'- VirtualNode:虚拟节点',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'ContainerGroup',
+ ],
+ ],
+ [
+ 'name' => 'Limit',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询结果条数上限。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询凭证(Token),取值为上一次API调用返回的NextToken参数值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AAAAAdDWBF2****'."\n",
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'NoPermission.Tag',
+ 'errorMessage' => 'No permissions to operate tags.',
+ ],
+ [
+ 'errorCode' => 'NumberExceed.Tags',
+ 'errorMessage' => 'The length of tags exceeded limit: 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',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [],
+ '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' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '资源ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源ID。根据ResourceType取值填写对应资源ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eci-2zelg8vwnlzdhf8hv****',
+ ],
+ 'required' => true,
+ 'docRequired' => true,
+ 'maxItems' => 100,
+ ],
+ ],
+ [
+ 'name' => 'TagKey',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => '要解绑的标签键列表。最多可输入20个标签键。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '要解绑的标签键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'testkey',
+ ],
+ 'required' => false,
+ 'maxItems' => 100,
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '资源类型。取值范围:'."\n"
+ ."\n"
+ .'- ContainerGroup:ECI实例'."\n"
+ .'- ImageCache:镜像缓存'."\n"
+ .'- DataCache:数据缓存'."\n"
+ .'- VirtualNode:虚拟节点',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'ContainerGroup',
+ ],
+ ],
+ [
+ 'name' => 'All',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '是否解绑资源上全部的标签。当请求中未设置 `TagKey`时,该参数才有效。取值范围:'."\n"
+ ."\n"
+ .'- true'."\n"
+ .'- false'."\n"
+ ."\n"
+ .'默认值:false',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'ClientToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见[如何保证幂等性](~~25693~~)。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123e4567-xxx-xxx-xxxx-42665544xxxx',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '89945DD3-9072-47D0-A318-353284CFC7B',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"89945DD3-9072-47D0-A318-353284CFC7B\\"\\n}","type":"json"}]',
+ 'title' => '为ECI资源解绑标签',
+ ],
+ 'ListUsage' => [
+ 'summary' => '调用ListUsage查询指定地域的权益配额,包括已使用量和使用上限。',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '17740',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciIGQQJ4',
+ 'FEATUREeci5NN3BU',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ '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',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ '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"
+ .' }',
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '17731',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciY9GS39',
+ 'FEATUREeci5NN3BU',
+ 'FEATUREeciIT94P2',
+ 'FEATUREeciCZBDK8',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。您可以调用[DescribeRegions](~~146965~~)查询最新的地域可用区信息。',
+ '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',
+ ],
+ ],
+ [
+ 'name' => 'Cpu',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'vCPU大小。ECI支持的vCPU和内存规格请参见[vCPU和内存规格说明](~~114662~~)。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '2.0',
+ ],
+ ],
+ [
+ 'name' => 'Memory',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '内存大小。单位为GiB。ECI支持的vCPU和内存规格请参见[vCPU和内存规格说明](~~114662~~)。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '4.0',
+ ],
+ ],
+ [
+ 'name' => 'InstanceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '指定的ECS实例规格。ECI支持指定的ECS规格请参见[ECI支持的ECS规格说明](~~114664~~)。'."\n"
+ ."\n"
+ .'> 设置该参数后,将自动忽略传入的vCPU和内存值,仅返回ECS规格的价格信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ecs.c5.large',
+ ],
+ ],
+ [
+ 'name' => 'SpotStrategy',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '实例的抢占策略。取值范围:'."\n"
+ ."\n"
+ .'- NoSpot:正常按量付费实例。'."\n"
+ .'- SpotWithPriceLimit:设置上限价格的抢占式实例。'."\n"
+ .'- SpotAsPriceGo:系统自动出价,跟随当前市场实际价格的抢占式实例。'."\n"
+ ."\n"
+ .'默认为:NoSpot。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'SpotWithPriceLimit',
+ ],
+ ],
+ [
+ 'name' => 'ZoneId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '可用区。您可以调用[DescribeRegions](~~146965~~)查询最新的地域可用区信息。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou-g',
+ ],
+ ],
+ [
+ 'name' => 'SpotPriceLimit',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '设置抢占式实例的每小时最高价格,最多精确到小数点后3位。当SpotStrategy取值为SpotWithPriceLimit时,必须设置SpotPriceLimit。',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'example' => '0.2',
+ ],
+ ],
+ [
+ 'name' => 'EphemeralStorage',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '临时存储空间大小。单位为GiB.。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'SpotDuration',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '抢占式实例的保护期。单位为小时。默认为1。可设置为0,表示无保护期。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'ComputeCategory',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '算力类别。取值为economy时,表示查询经济型规格的价格。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'economy',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ '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].',
+ ],
+ ],
+ 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.',
+ ],
+ ],
+ ],
+ '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~~)。',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DescribeAvailableResource' => [
+ 'summary' => '调用DescribeAvailableResource查询指定地域和可用区下可售ECS实例规格族。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '103990',
+ 'abilityTreeNodes' => [
+ 'FEATUREeciY9GS39',
+ 'FEATUREeci5NN3BU',
+ 'FEATUREeciIT94P2',
+ 'FEATUREeciCZBDK8',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。'."\n"
+ ."\n"
+ .'您可以调用[DescribeRegions](~~146965~~)查看最新的阿里云地域列表。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ZoneId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '可用区ID。'."\n"
+ ."\n"
+ .'默认值为空,此时查询指定地域下的所有可用区。',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'cn-hangzhou-e',
+ ],
+ ],
+ [
+ 'name' => 'DestinationResource',
+ '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,
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '地域ID。'."\n"
+ ."\n"
+ .'您可以调用[DescribeRegions](~~146965~~)查看最新的阿里云地域列表。',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'SpotResource',
+ 'in' => 'query',
+ 'style' => 'flat',
+ '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',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ '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',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'MissingParameter',
+ 'errorMessage' => '%s',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => '%s',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'Spot.NotMatched',
+ 'errorMessage' => '%s. We recommend that you use the create multi-zone function to avoid insufficient inventory.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'InvalidParameter.NotFound',
+ 'errorMessage' => '%s',
+ ],
+ ],
+ ],
+ '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实例规格或实例规格族。',
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'eci.cn-qingdao.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'eci.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'eci.cn-zhangjiakou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-jva',
+ 'endpoint' => 'eci.cn-zhengzhou-jva.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'eci.cn-huhehaote.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'endpoint' => 'eci.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'eci.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'eci.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-nanjing',
+ 'endpoint' => 'eci.cn-nanjing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fuzhou',
+ 'endpoint' => 'eci.cn-fuzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'eci.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan',
+ 'endpoint' => 'eci.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'endpoint' => 'eci.cn-guangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'eci.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'eci.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'eci.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'endpoint' => 'eci.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'eci.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-2',
+ 'endpoint' => 'eci.ap-southeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'eci.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'endpoint' => 'eci.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-6',
+ 'endpoint' => 'eci.ap-southeast-6.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'eci.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'eci.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'eci.eu-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'eci.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-south-1',
+ 'endpoint' => 'eci.ap-south-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'eci.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-finance',
+ 'endpoint' => 'eci.cn-hangzhou-finance.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'eci.cn-shanghai-finance.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-finance-1',
+ 'endpoint' => 'eci.cn-shenzhen-finance.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'endpoint' => 'eci.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-1',
+ 'endpoint' => 'eci.cn-beijing-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-central-1',
+ 'endpoint' => 'eci.me-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wuhan-lr',
+ 'endpoint' => 'eci.cn-wuhan-lr.aliyuncs.com',
+ ],
+ ],
+];