Queries a specific cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadCluster |
get |
*Cluster
|
None | None |
Request syntax
GET /pop/v5/resource/cluster HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the cluster in Enterprise Distributed Application Service (EDAS). You can call the ListCluster operation to query the cluster ID. For more information, see ListCluster. |
5439271a-015b-433d-****-d76db49**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The HTTP status code that is returned. |
200 |
| Message |
string |
The detailed information that is returned. |
success |
| RequestId |
string |
The ID of the request. |
d76db491 |
| Cluster |
object |
The information about the cluster. |
|
| VpcId |
string |
The ID of the virtual private cloud (VPC). |
vpc-xxxxz1mlwpb**** |
| OversoldFactor |
integer |
The overcommit ratio supported by a Docker cluster. Valid values:
|
2 |
| UpdateTime |
integer |
The time when the cluster was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1570708232145 |
| MemUsed |
integer |
The size of used memory. Unit: MB. |
1024 |
| IaasProvider |
string |
The provider of Infrastructure as a Service (IaaS) resources used in the cluster. |
ALIYUN |
| CreateTime |
integer |
The time when the cluster was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. |
1570708232145 |
| CpuUsed |
integer |
The number of used CPU cores. |
2 |
| Mem |
integer |
The total size of memory. Unit: MB. |
2048 |
| RegionId |
string |
The ID of the region where the cluster resides. |
cn-hangzhou |
| Cpu |
integer |
The total number of CPU cores. |
4 |
| CsClusterId |
string |
The ID of the Container Service for Kubernetes (ACK) cluster. |
c2ce62869f4d4466b920312315f05**** |
| NetworkMode |
integer |
The network type of the cluster. Valid values:
|
2 |
| Description |
string |
The description of the cluster. |
测试 |
| ClusterType |
integer |
The type of the cluster. Valid values:
|
2 |
| ClusterName |
string |
The name of the cluster. |
ClusterTest |
| NodeNum |
integer |
The number of ECS instances. |
4 |
| ClusterImportStatus |
integer |
The import status of the cluster. Valid values:
|
0 |
| ClusterId |
string |
The ID of the cluster. |
5439271a-015b-433d-befb-d76d**** |
| SubClusterType |
string |
The subtype of the Kubernetes cluster. Valid values: ManagedKubernetes, Ask, and ExternalKubernetes. ManagedKubernetes refers to the ACK cluster. Ask refers to the Serverless Kubernetes (ASK) cluster. ExternalKubernetes refers to the external cluster. |
ManagedKubernetes |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "d76db491",
"Cluster": {
"VpcId": "vpc-xxxxz1mlwpb****",
"OversoldFactor": 2,
"UpdateTime": 1570708232145,
"MemUsed": 1024,
"IaasProvider": "ALIYUN",
"CreateTime": 1570708232145,
"CpuUsed": 2,
"Mem": 2048,
"RegionId": "cn-hangzhou",
"Cpu": 4,
"CsClusterId": "c2ce62869f4d4466b920312315f05****",
"NetworkMode": 2,
"Description": "测试",
"ClusterType": 2,
"ClusterName": "ClusterTest",
"NodeNum": 4,
"ClusterImportStatus": 0,
"ClusterId": "5439271a-015b-433d-befb-d76d****",
"SubClusterType": "ManagedKubernetes"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.