最近更新时间:2023-02-09 16:06:49
本接口适用于查询集群中节点的基本信息。
GET/POST
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
ClusterId | String | 是 | 集群id |
MaxResults | Integer | 否 | 单次调用所返回的最大实例数目,默认10,最大50。 |
Marker | Integer | 否 | 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0。 |
Filter.N | Filter.N数据类型 | 否 | 一个或者多个过滤器,有效值: 节点角色:instance-role 节点id:instance-id 节点类型:type 节点状态:instance-status |
Search | String | 否 | 模糊匹配,可以匹配如下字段: 主网卡私有IP(PrivateIpAddress)。 |
参数 | 类型 | 描述 |
---|---|---|
RequestId | String | 请求id |
MaxResults | Integer | 单词调用返回的最大实例数。 |
Marker | Integer | 分页标识,如果调用未返回全部实例,标记下次调用的返回值的起点,如果已返回全部实例,则其值为0。 |
TotalCount | Integer | 集群内节点实例个数(包括master和worker节点)。 |
InstanceSet | Array of InstanceSet | 节点实例信息 |
查询集群节点列表
http://kce.api.ksyun.com/?Action=DescribeClusterInstance&Version=2019-08-06
&ClusterId=79dac1a8-3387-4769-82a5-xxxxxx
{
"InstanceSet": [
{
"InstanceId": "6f2faec7-057f-455f-a45c-xxxxxx",
"InstanceName": "openapi-worker-1",
"InstanceRole": "Worker",
"InstanceStatus": "normal",
"KecInstancePara": {
"ProjectId": 0,
"InstanceType": "I3.4B",
"InstanceConfigure": {
"VCPU": 4,
"MemoryGb": 8,
"GPU": 0,
"DataDiskGb": 50,
"RootDiskGb": 20,
"DataDiskType": "SSD"
},
"SystemDisk": {
"DiskType": "Local_SSD",
"DiskSize": 20
},
"ImageId": "5bbc21d6-c48c-4c8a-b057-fcbb164bcbf7",
"PrivateIpAddress": "10.0.22.28",
"ChargeType": "Daily",
"CreateTime": "2019-09-10T15:22:43Z",
"AvailabilityZone": "cn-beijing-6b",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"VpcId": "31e21dca-c92e-4b06-a8ce-xxxxxx",
"NetworkInterfaceSet": [
{
"NetworkInterfaceId": "9b80391e-a720-40de-95d2-xxxxxx",
"NetworkInterfaceType": "primary",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"PrivateIpAddress": "10.0.22.28",
"MacAddress": "fa:16:3e:0e:0a:f8",
"SecurityGroupSet": [
{
"SecurityGroupId": "d46c7672-7ca9-4f51-bbd9-xxxxxx"
}
]
}
]
}
},
{
"InstanceId": "7c7c7003-1004-4b1b-a1c5-xxxxxx",
"InstanceName": "openapi-worker-2",
"InstanceRole": "Worker",
"InstanceStatus": "normal",
"KecInstancePara": {
"ProjectId": 0,
"InstanceType": "I3.4B",
"InstanceConfigure": {
"VCPU": 4,
"MemoryGb": 8,
"GPU": 0,
"DataDiskGb": 50,
"RootDiskGb": 20,
"DataDiskType": "SSD"
},
"SystemDisk": {
"DiskType": "Local_SSD",
"DiskSize": 20
},
"ImageId": "5bbc21d6-c48c-4c8a-b057-fcbb164bcbf7",
"PrivateIpAddress": "10.0.22.29",
"ChargeType": "Daily",
"CreateTime": "2019-09-10T15:22:43Z",
"AvailabilityZone": "cn-beijing-6b",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"VpcId": "31e21dca-c92e-4b06-a8ce-xxxxxx",
"NetworkInterfaceSet": [
{
"NetworkInterfaceId": "93ae1d49-3410-4dea-a9ef-xxxxxx",
"NetworkInterfaceType": "primary",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"PrivateIpAddress": "10.0.22.29",
"MacAddress": "fa:16:3e:68:ea:b1",
"SecurityGroupSet": [
{
"SecurityGroupId": "d46c7672-7ca9-4f51-bbd9-xxxxxx"
}
]
}
]
}
},
{
"InstanceId": "7dac9e5d-1325-4b66-83c0-xxxxxx",
"InstanceName": "openapi-master-2",
"InstanceRole": "Master_Etcd",
"InstanceStatus": "normal",
"KecInstancePara": {
"ProjectId": 0,
"InstanceType": "I3.4B",
"InstanceConfigure": {
"VCPU": 4,
"MemoryGb": 8,
"GPU": 0,
"DataDiskGb": 50,
"RootDiskGb": 20,
"DataDiskType": "SSD"
},
"SystemDisk": {
"DiskType": "Local_SSD",
"DiskSize": 20
},
"ImageId": "5bbc21d6-c48c-4c8a-b057-fcbb164bcbf7",
"PrivateIpAddress": "10.0.22.5",
"ChargeType": "Daily",
"CreateTime": "2019-09-10T15:22:41Z",
"AvailabilityZone": "cn-beijing-6b",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"VpcId": "31e21dca-c92e-4b06-a8ce-xxxxxx",
"NetworkInterfaceSet": [
{
"NetworkInterfaceId": "1e76aa20-0372-4eb1-b746-xxxxxx",
"NetworkInterfaceType": "primary",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"PrivateIpAddress": "10.0.22.5",
"MacAddress": "fa:16:3e:54:2d:58",
"SecurityGroupSet": [
{
"SecurityGroupId": "d46c7672-7ca9-4f51-bbd9-xxxxxx"
}
]
}
]
}
},
{
"InstanceId": "a33e44b5-471a-4edf-82e2-xxxxxx",
"InstanceName": "openapi-master-3",
"InstanceRole": "Master_Etcd",
"InstanceStatus": "normal",
"KecInstancePara": {
"ProjectId": 0,
"InstanceType": "I3.4B",
"InstanceConfigure": {
"VCPU": 4,
"MemoryGb": 8,
"GPU": 0,
"DataDiskGb": 50,
"RootDiskGb": 20,
"DataDiskType": "SSD"
},
"SystemDisk": {
"DiskType": "Local_SSD",
"DiskSize": 20
},
"ImageId": "5bbc21d6-c48c-4c8a-b057-fcbb164bcbf7",
"PrivateIpAddress": "10.0.22.3",
"ChargeType": "Daily",
"CreateTime": "2019-09-10T15:22:41Z",
"AvailabilityZone": "cn-beijing-6b",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"VpcId": "31e21dca-c92e-4b06-a8ce-xxxxxx",
"NetworkInterfaceSet": [
{
"NetworkInterfaceId": "4e92322a-4526-4d5d-b74b-xxxxxx",
"NetworkInterfaceType": "primary",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"PrivateIpAddress": "10.0.22.3",
"MacAddress": "fa:16:3e:74:f7:78",
"SecurityGroupSet": [
{
"SecurityGroupId": "d46c7672-7ca9-4f51-bbd9-xxxxxx"
}
]
}
]
}
},
{
"InstanceId": "f399f0d1-8388-427f-b2d7-xxxxxx",
"InstanceName": "openapi-worker-3",
"InstanceRole": "Worker",
"InstanceStatus": "normal",
"KecInstancePara": {
"ProjectId": 0,
"InstanceType": "I3.4B",
"InstanceConfigure": {
"VCPU": 4,
"MemoryGb": 8,
"GPU": 0,
"DataDiskGb": 50,
"RootDiskGb": 20,
"DataDiskType": "SSD"
},
"SystemDisk": {
"DiskType": "Local_SSD",
"DiskSize": 20
},
"ImageId": "5bbc21d6-c48c-4c8a-b057-fcbb164bcbf7",
"PrivateIpAddress": "10.0.22.14",
"ChargeType": "Daily",
"CreateTime": "2019-09-10T15:22:43Z",
"AvailabilityZone": "cn-beijing-6b",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"VpcId": "31e21dca-c92e-4b06-a8ce-xxxxxx",
"NetworkInterfaceSet": [
{
"NetworkInterfaceId": "b5088e71-3514-48b2-aa26-xxxxxx",
"NetworkInterfaceType": "primary",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"PrivateIpAddress": "10.0.22.14",
"MacAddress": "fa:16:3e:68:fa:98",
"SecurityGroupSet": [
{
"SecurityGroupId": "d46c7672-7ca9-4f51-bbd9-xxxxxx"
}
]
}
]
}
},
{
"InstanceId": "feec18d8-9562-446d-9894-xxxxxx",
"InstanceName": "openapi-master-1",
"InstanceRole": "Master_Etcd",
"InstanceStatus": "normal",
"KecInstancePara": {
"ProjectId": 0,
"InstanceType": "I3.4B",
"InstanceConfigure": {
"VCPU": 4,
"MemoryGb": 8,
"GPU": 0,
"DataDiskGb": 50,
"RootDiskGb": 20,
"DataDiskType": "SSD"
},
"SystemDisk": {
"DiskType": "Local_SSD",
"DiskSize": 20
},
"ImageId": "5bbc21d6-c48c-4c8a-b057-fcbb164bcbf7",
"PrivateIpAddress": "10.0.22.27",
"ChargeType": "Daily",
"CreateTime": "2019-09-10T15:22:41Z",
"AvailabilityZone": "cn-beijing-6b",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"VpcId": "31e21dca-c92e-4b06-a8ce-xxxxxx",
"NetworkInterfaceSet": [
{
"NetworkInterfaceId": "fd4c03c6-10ef-42cc-81c5-xxxxxx",
"NetworkInterfaceType": "primary",
"SubnetId": "7e23b980-11c2-4bb0-9388-xxxxxx",
"PrivateIpAddress": "10.0.22.27",
"MacAddress": "fa:16:3e:49:7c:ac",
"SecurityGroupSet": [
{
"SecurityGroupId": "d46c7672-7ca9-4f51-bbd9-xxxxxx"
}
]
}
]
}
}
],
"RequestId": "container-04dd3f00-0ef2-48a4-9edf-8d14b4a19f8d",
"MaxResults": 10,
"Marker": 0,
"TotalCount": 6
}
纯净模式
鼠标选中内容,快速反馈问题