查看您在容器服务中创建的所有集群(包括 Swarm 和 Kubernetes 集群)。
请求信息
请求行 RequestLineGET
/clusters HTTP/1.1
特有请求头 RequestHead
无,请参考
公共请求头部。
请求体 RequestBody
无
返回信息
返回行 ResponseLineHT TP/1.1
200 OK
特有返回头 ResponseHead
无,请参考
公共返回头部。
返回体 ResponseBody
[
{
"agent_version": "string",
"cluster_id": "string",
"created": "datetime",
"external_loadbalancer_id": "string",
"master_url": "string",
"name": "string",
"network_mode": "string",
"region_id": "string",
"security_group_id": "string",
"size": "numbers",
"state": "string",
"updated": "datetime",
"vpc_id": "string",
"vswitch_id": "string"
}
]
返回体解释
Cluster 的格式
HTTP/1.1 200 OK
<公共响应头>
[
{
"agent_version": "0.5-e56dab3",
"cluster_id": "c978ca3eaacd3409a9437db07598f1f69",
"created": "2015-12-11T03:52:40Z",
"external_loadbalancer_id": "1518f2b7e4c-cn-beijing-btc-a01",
"master_url": "https://182.92.245.56:17589",
"name": "my-python-cluster-039de960",
"network_mode": "vpc",
"region_id": "cn-beijing",
"security_group_id": "sg-25yqjuxhz",
"size": 5,
"state": "running",
"updated": "2015-12-15T15:01:58Z",
"vpc_id": "",
"vswitch_id": ""
},
{
"agent_version": "0.5-e56dab3",
"cluster_id": "c1eb19e0093204cbb86c3a80334d2129e",
"created": "2015-12-15T14:26:58Z",
"external_loadbalancer_id": "151a6099de1-cn-beijing-btc-a01",
"master_url": "https://182.92.245.56:11905",
"name": "my-test-cluster-002b3f3d",
"network_mode": "vpc",
"region_id": "cn-beijing",
"security_group_id": "sg-25rg2ws9f",
"size": 1,
"state": "running",
"updated": "2015-12-15T14:43:55Z",
"vpc_id": "",
"vswitch_id": ""
}
]
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。