具体的 API 描述,参见查询集群实例。
API请求响应 请求格式
aliyun cs GET /clusters/<cluster_id> 响应结果
{ "name": "sian-devk8s", "cluster_id": "cdde1f21ae22e483ebcb068a6eb7f358d", "size": 1, "region_id": "cn-beijing", "state": "running", "cluster_type": "ManagedKubernetes", "created": "2019-11-25T15:50:20+08:00", "updated": "2020-01-13T23:01:03+08:00", "init_version": "1.14.8-aliyun.1", "current_version": "1.14.8-aliyun.1", "meta_data": "{"Addons":[{"name":"flannel","version":"","disabled":false,"required":"","config":""},{"name":"flexvolume","version":"","disabled":false,"required":"","config":""},{"name":"alicloud-disk-controller","version":"","disabled":false,"required":"","config":""},{"name":"logtail-ds","version":"","disabled":false,"required":"","config":"{\"IngressDashboardEnabled\":\"true\"}"},{"name":"nginx-ingress-controller","version":"","disabled":false,"required":"","config":"{\"IngressSlbNetworkType\":\"internet\"}"},{"name":"kube-flannel-ds","version":"","disabled":false,"required":"","config":""}],"Capabilities":{"AnyAZ":true,"CSI":true,"CpuPolicy":true,"DeploymentSet":true,"HpcCluster":true,"Network":"Flannel","NodeCIDRMask":"25","NodeNameMode":true,"ProxyMode":"ipvs","PublicSLB":true,"SLSProjectName":true,"SandboxRuntime":false,"Taint":true,"TerwayEniip":true,"UserData":true},"ClusterDomain":"","DockerVersion":"18.09.2","EtcdVersion":"v3.3.8","HasSandboxRuntime":false,"KubernetesVersion":"1.14.8-aliyun.1","MultiAZ":false,"NameMode":"","OSType":"Linux","Platform":"CentOS","PodVswitchId":"","Provider":"","ResourceGroupId":"rg-acfmyvw3wjmb3uq","SubClass":"default","SupportPlatforms":null,"VersionSpec":null,"VpcCidr":"192.168.0.0/16"}", "resource_group_id": "rg-acfmyvw3wjmb3uq", "instance_type": "", "vpc_id": "vpc-2zecuu62b9zw7a7qnn2tv", "vswitch_id": "vsw-2zete8s4qocqg0mf6xd76", "vswitch_cidr": "", "data_disk_size": 0, "data_disk_category": "cloud", "security_group_id": "sg-2zedf74ifulatvx0z2ag", "tags": [ { "key": "ack.aliyun.com", "value": "cdde1f21ae22e483ebcb068a6eb7f358d" } ], "zone_id": "cn-beijing-a", "-": "PayByTraffic", "network_mode": "vpc", "subnet_cidr": "172.20.0.0/16", "master_url": "{"api_server_endpoint":"https://47.93.195.255:6443https://mirana.cs-cn-beijing.aliyuncs.com:4243https://192.168.0.79:6443"}", "external_loadbalancer_id": "lb-2ze3buguz3gx9920zwf24", "port": 0, "node_status": "", "cluster_healthy": "", "docker_version": "18.09.2", "swarm_mode": false, "gw_bridge": "", "upgrade_components": { "Kubernetes": { "component_name": "Kubernetes", "version": "1.14.8-aliyun.1", "next_version": "", "changed": "", "can_upgrade": false, "force": false, "policy": "", "ExtraVars": null, "ready_to_upgrade": "", "message": "", "exist": false, "required": false } }, "private_zone": false, "profile": "", "deletion_protection": true, "capabilities": null, "enabled_migration": false, "need_update_agent": false, "outputs": [ { "Description": "Log Info Output", "OutputKey": "LastKnownError", "OutputValue": null }, { "Description": "Error msg of ess scaling instance", "OutputKey": "NodesScalingErrorInfo", "OutputValue": null }, { "Description": "The mode we use in kube-proxy.", "OutputKey": "ProxyMode", "OutputValue": "ipvs" }, { "Description": "ScalingGroup ID", "OutputKey": "ScalingGroupID", "OutputValue": "asg-2zebrr08gt5uluh7u5ar" }, { "Description": "Ids of worker node", "OutputKey": "NodeInstanceIDs", "OutputValue": [ "i-2ze4ymrjuocpbc0cftdj", "i-2ze4ymrjuocpbc0cftdk", "i-2ze4ymrjuocpbc0cftdl" ] }, { "Description": "Count of ess scaling instance", "OutputKey": "NodesScalingAddedInstances", "OutputValue": 3 } ]
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。