Consulta clusters.
Experimente agora
Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
edas:ReadCluster |
list |
*All Resource
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
POST /pop/v5/resource/cluster_list HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| LogicalRegionId |
string |
Não |
O ID do namespace. Você pode chamar a operação ListUserDefineRegion para consultar o ID do namespace. Para mais informações, consulte ListUserDefineRegion.
|
cn-beijing:test |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos. Você pode chamar a operação ListResourceGroup para consultar o ID do grupo de recursos. Para mais informações, consulte ListResourceGroup.
|
461 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| Code |
integer |
O código de status HTTP retornado. |
200 |
| Message |
string |
As informações adicionais retornadas. |
success |
| RequestId |
string |
O ID da solicitação. |
1053-08e4-47a5-b2ab-5c0323de**** |
| ClusterList |
object |
||
| Cluster |
array<object> |
Os clusters. |
|
|
object |
|||
| VpcId |
string |
VPC ID |
vpc-23727**** |
| OversoldFactor |
integer |
The CPU overcommit ratio that is supported by a Docker cluster. Valid values:
|
1 |
| UpdateTime |
integer |
The timestamp 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. |
1533820823203 |
| MemUsed |
integer |
The size of used memory. Unit: MB. |
200 |
| IaasProvider |
string |
The provider of the cluster. |
ALIYUN |
| CreateTime |
integer |
The timestamp 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. |
1502888064561 |
| CpuUsed |
integer |
The number of used CPU cores. |
1 |
| Mem |
integer |
The total size of memory. Unit: MB. |
3072 |
| RegionId |
string |
The ID of the region. |
cn-beijing |
| Cpu |
integer |
The total number of CPU cores. |
2 |
| CsClusterId |
string |
The ID of the cluster in Container Service for Kubernetes (ACK). |
c2ce************b9203a9 |
| NetworkMode |
integer |
The network type of the cluster. Valid values:
|
1 |
| Description |
string |
The description of the cluster. |
Test cluster |
| ClusterType |
integer |
The type of the cluster. Valid values:
|
2 |
| ResourceGroupId |
string |
The ID of the resource group. |
461 |
| ClusterName |
string |
The name of the cluster. |
cluster-test |
| NodeNum |
integer |
The number of instances. |
2 |
| ClusterId |
string |
The ID of the cluster in EDAS. |
b98b5919-c111-4dad-9f74-7233******** |
Exemplos
Resposta de sucesso
JSON formato
{
"Code": 200,
"Message": "success",
"RequestId": "1053-08e4-47a5-b2ab-5c0323de****",
"ClusterList": {
"Cluster": [
{
"VpcId": "vpc-23727****",
"OversoldFactor": 1,
"UpdateTime": 1533820823203,
"MemUsed": 200,
"IaasProvider": "ALIYUN",
"CreateTime": 1502888064561,
"CpuUsed": 1,
"Mem": 3072,
"RegionId": "cn-beijing",
"Cpu": 2,
"CsClusterId": "c2ce************b9203a9",
"NetworkMode": 1,
"Description": "Test cluster",
"ClusterType": 2,
"ResourceGroupId": "461",
"ClusterName": "cluster-test",
"NodeNum": 2,
"ClusterId": "b98b5919-c111-4dad-9f74-7233********"
}
]
}
}
Códigos de erro
Consulte Códigos de ErroCódigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de VersãoNotas de Versão para uma lista completa.