Lista todos os pools de nós em um cluster.
Descrição da operação
Frequência de chamadas por usuário único: 100 chamadas por segundo.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
ens:DescribeClusterNodePools |
list |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ClusterId |
string |
Sim |
O ID do cluster. |
eck-xxxxxxxx |
| PageNumber |
integer |
Sim |
O número da página a ser retornada. As páginas são numeradas a partir de 1. |
1 |
| PageSize |
integer |
Sim |
O número de entradas a serem retornadas por página. |
10 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O esquema da resposta. |
||
| Page |
object |
Os detalhes de paginação. |
|
| PageNumber |
integer |
O número da página. |
1 |
| PageSize |
integer |
O número de entradas retornadas por página. |
10 |
| TotalCount |
integer |
O número total de entradas. |
20 |
| NodePools |
array<object> |
A lista de pools de nós. |
|
|
array<object> |
|||
| NodepoolInfo |
object |
Os detalhes do pool de nós. |
|
| Name |
string |
The name of the node pool. |
eck-node-pool-1 |
| EnsRegionId |
string |
The ID of the ENS node. |
cn-fuzhou-23 |
| NodepoolId |
string |
The ID of the node pool. |
np68mi5y1dd748ky37ojo2kqdrz |
| ScalingGroup |
object |
A configuração do grupo de dimensionamento. |
|
| VswitchIds |
array |
The IDs of the vSwitches. |
|
|
string |
The ID of a vSwitch. |
vsw-58eu2p6v64qw8ihhit1wz7wgv |
|
| InstanceChargeType |
string |
The billing method of the instances. |
PrePaid |
| InstanceTypes |
array |
The list of instance types. |
|
|
string |
The instance type. |
ens.sn1.small |
|
| SystemDiskCategory |
string |
The category of the system disk. Valid values: |
cloud_efficiency |
| SystemDiskSize |
integer |
The size of the system disk, in GB. |
80 |
| ImageId |
string |
The ID of the image. |
m-673f5z4h69ibwtallg6zmcaxr |
| KeyPairName |
string |
The name of the key pair. |
key-pair-name |
| DataDisks |
array<object> |
The list of data disks. The parameter constraints are the same as those for the system disk. |
|
|
object |
A data disk. |
||
| Category |
string |
The category of the data disk. |
cloud_efficiency |
| Size |
integer |
The size of the data disk, in GB. |
80 |
| Password |
string |
The password for the instances. |
************ |
| KubernetesConfig |
object |
A configuração do Kubernetes. |
|
| PreUserData |
string |
The user data script to run on nodes before they are added to the cluster. The script must be Base64-encoded. |
ZWNobyBvawo= |
| UserData |
string |
The user data script to run on nodes after they are added to the cluster. The script must be Base64-encoded. |
ZWNobyBvawo= |
| Status |
object |
O status do pool de nós. |
|
| State |
string |
The state of the node pool. Valid values:
|
active |
| TotalNodes |
integer |
The total number of instances, including those that are being created, in service, or being removed. |
10 |
| DesiredNodes |
integer |
The expected number of instances. |
10 |
| ServingNodes |
integer |
The number of instances in service. |
10 |
| InitialNodes |
integer |
The number of instances that are being created. |
0 |
| RemovingNodes |
integer |
The number of instances that are being removed. |
0 |
| FailedNodes |
integer |
The number of failed instances. |
0 |
| ClusterId |
string |
O ID do cluster. |
eck-xxxxxxxx |
| RequestId |
string |
O ID da solicitação. |
F3B261DD-3858-4D3C-877D-303ADF374600 |
Exemplos
Resposta de sucesso
JSON formato
{
"Page": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 20
},
"NodePools": [
{
"NodepoolInfo": {
"Name": "eck-node-pool-1",
"EnsRegionId": "cn-fuzhou-23",
"NodepoolId": "np68mi5y1dd748ky37ojo2kqdrz"
},
"ScalingGroup": {
"VswitchIds": [
"vsw-58eu2p6v64qw8ihhit1wz7wgv"
],
"InstanceChargeType": "PrePaid",
"InstanceTypes": [
"ens.sn1.small"
],
"SystemDiskCategory": "cloud_efficiency",
"SystemDiskSize": 80,
"ImageId": "m-673f5z4h69ibwtallg6zmcaxr",
"KeyPairName": "key-pair-name",
"DataDisks": [
{
"Category": "cloud_efficiency",
"Size": 80
}
],
"Password": "************"
},
"KubernetesConfig": {
"PreUserData": "ZWNobyBvawo=",
"UserData": "ZWNobyBvawo="
},
"Status": {
"State": "active",
"TotalNodes": 10,
"DesiredNodes": 10,
"ServingNodes": 10,
"InitialNodes": 0,
"RemovingNodes": 0,
"FailedNodes": 0
},
"ClusterId": "eck-xxxxxxxx"
}
],
"RequestId": "F3B261DD-3858-4D3C-877D-303ADF374600"
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.