Todos os produtos
Search
Central de documentação

Auto Scaling:DescribeEciScalingConfigurations

Última atualização: Sep 10, 2026

Consulta as configurações de dimensionamento do tipo ECI.

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.

Testar

Autorização RAM

A tabela abaixo descreve a autorização necessária para chamar esta API. Você pode defini-la em uma política do Resource Access Management (RAM). As colunas da tabela estão detalhadas abaixo:

  • Ação: As ações que podem ser usadas no elemento Action das instruções de política de permissão do RAM para conceder permissões para executar a operação.

  • API: A API que você pode chamar para executar a ação.

  • Nível de acesso: O nível de acesso predefinido concedido para cada API. Valores válidos: create, list, get, update e delete.

  • Tipo de recurso: O tipo de recurso que suporta autorização para executar a ação. Indica se a ação suporta permissão em nível de recurso. O recurso especificado deve ser compatível com a ação. Caso contrário, a política será ineficaz.

    • Para APIs com permissões em nível de recurso, os tipos de recursos obrigatórios são marcados com um asterisco (*). Especifique o Nome de Recurso Alibaba Cloud (ARN) correspondente no elemento Resource da política.

    • Para APIs sem permissões em nível de recurso, é exibido como Todos os Recursos. Use um asterisco (*) no elemento Resource da política.

  • Chave de condição: As chaves de condição definidas pelo serviço. A chave permite controle granular, aplicando-se somente a ações ou a ações associadas a recursos específicos. Além das chaves de condição específicas do serviço, o Alibaba Cloud fornece um conjunto de chaves de condição comuns aplicáveis a todos os serviços compatíveis com RAM.

  • Ação dependente: As ações dependentes necessárias para executar a ação. Para concluir a ação, o usuário RAM ou a função RAM deve ter permissões para executar todas as ações dependentes.

Ação

Nível de acesso

Tipo de recurso

Chave de condição

Ação dependente

ess:DescribeEciScalingConfigurations

get

*ScalingGroup

acs:ess:{#regionId}:{#accountId}:scalinggroup/{#ScalingGroupId}

Nenhuma Nenhuma

Parâmetros da solicitação

Parâmetro

Tipo

Obrigatório

Descrição

Exemplo

RegionId

string

Sim

O ID da região do grupo de dimensionamento ao qual a configuração de dimensionamento pertence.

cn-qingdao

PageNumber

integer

Não

O número da página da lista de configurações de dimensionamento. Valor mínimo: 1.

Valor padrão: 1.

1

PageSize

integer

Não

O número de entradas por página para uma consulta paginada. Valor máximo: 50.

Valor padrão: 10.

50

ScalingGroupId

string

Não

O ID do grupo de dimensionamento. Você pode consultar todas as configurações de dimensionamento no grupo de dimensionamento especificado.

asg-bp17pelvl720x3v7****

ScalingConfigurationId

array

Não

Os IDs das configurações de dimensionamento que você deseja consultar. Você pode especificar de 1 a 10 IDs.

Os resultados da consulta incluem configurações de dimensionamento nos estados Active e Inactive, que são identificados pelo parâmetro de resposta LifecycleState.

string

Não

O ID da configuração de dimensionamento que você deseja consultar.

Os resultados da consulta incluem configurações de dimensionamento nos estados Active e Inactive, que são identificados pelo parâmetro de resposta LifecycleState.

asc-bp17pelvl720x5ub****

ScalingConfigurationName

array

Não

Os nomes das configurações de dimensionamento que você deseja consultar. Você pode especificar de 1 a 10 nomes.

Nomes de configuração de dimensionamento inválidos são ignorados nos resultados da consulta e nenhum erro é retornado.

string

Não

O nome da configuração de dimensionamento que você deseja consultar.

Nomes de configuração de dimensionamento inválidos são ignorados nos resultados da consulta e nenhum erro é retornado.

scalingcon****

Elementos de resposta

Elemento

Tipo

Descrição

Exemplo

object

PageNumber

integer

O número da página atual.

1

PageSize

integer

O número de entradas por página.

50

RequestId

string

O ID da solicitação.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

TotalCount

integer

O número total de configurações de dimensionamento.

1

ScalingConfigurations

array<object>

A coleção de informações de configuração de dimensionamento.

array<object>

A coleção de informações de configuração de dimensionamento.

CreationTime

string

A hora em que a configuração de dimensionamento foi criada.

2014-08-14T10:58Z

ScalingConfigurationName

string

O nome da configuração de dimensionamento.

scalingconfi****

SecurityGroupId

string

O ID do grupo de segurança ao qual a instância ECI pertence. Instâncias ECI dentro do mesmo grupo de segurança podem acessar umas às outras.

sg-bp18kz60mefs****

ActiveDeadlineSeconds

integer

O período de validade. Unidade: segundos.

1000

SpotStrategy

string

A política de lance para a instância. Valores válidos:

  • NoSpot: uma instância pay-as-you-go.

  • SpotWithPriceLimit: uma instância spot com um limite de preço máximo.

  • SpotAsPriceGo: uma instância spot para a qual o sistema dá lances automaticamente com base no preço de mercado atual.

NoSpot

AutoCreateEip

boolean

Indica se a criação automática de um elastic IP (EIP) e sua anexação à instância ECI estão ativadas.

true

ScalingGroupId

string

O ID do grupo de dimensionamento ao qual a configuração de dimensionamento pertence.

asg-bp17pelvl720x3v7****

EphemeralStorage

integer

O tamanho do armazenamento efêmero. Unidade: GiB.

20

Ipv6AddressCount

integer

O número de endereços IPv6.

1

EipBandwidth

integer

A largura de banda do EIP. Valor padrão: 5 Mbit/s.

5

ImageSnapshotId

string

O ID do cache de imagem.

imc-2zebxkiifuyzzlhl****

Memory

number

O tamanho da memória.

Se você especificar tanto CPU quanto Memory, o intervalo de tipos de instância será definido. Por exemplo, CPU=2 e Memory=16 define todos os tipos de instância com 2 vCPUs e 16 GiB de memória. O Auto Scaling determina o conjunto de tipos de instância disponíveis com base em fatores como otimização de I/O e zonas e, em seguida, cria instâncias do tipo de instância de menor preço.

Nota

Esta configuração entra em vigor apenas quando o modo de otimização de custos está ativado e nenhum tipo de instância é especificado na configuração de dimensionamento.

16

RestartPolicy

string

A política de reinicialização para o grupo de contêineres. Valores válidos:

  • Never: nunca reinicia.

  • Always: sempre reinicia.

  • OnFailure: reinicia em caso de falha.

Never

SpotPriceLimit

number

O preço máximo por hora para a instância spot.

Este parâmetro é retornado apenas quando SpotStrategy está definido como SpotWithPriceLimit.

0.025

IngressBandwidth

integer

O limite de largura de banda de entrada. Unidade: bytes.

1024000

CpuOptionsThreadsPerCore

integer

O número de threads por núcleo. Apenas tipos de instância específicos suportam configurações personalizadas. Um valor de 1 desativa o hyper-threading. Para mais informações, consulte Personalizar opções de CPU.

2

TerminationGracePeriodSeconds

integer

O tempo de buffer para o programa lidar com operações antes do desligamento.

60

LoadBalancerWeight

integer

O peso da instância ECI como servidor de back-end. Valores válidos: 1 a 100.

1

DnsPolicy

string

A política de DNS.

Default

HostName

string

O nome do host.

['hehe.com', 'haha.com']

EgressBandwidth

integer

O limite de largura de banda de saída. Unidade: bytes.

1024000

RegionId

string

O ID da região da instância ECI.

cn-hangzhou

RamRoleName

string

O nome da função RAM da instância. ECI e ECS compartilham funções RAM de instância. Para mais informações, consulte Usar uma função RAM de instância chamando operações de API.

ram:PassRole

Cpu

number

O tamanho da vCPU no nível da instância.

2.0

AutoMatchImageCache

boolean

Indica se os caches de imagem são correspondidos automaticamente. Valores válidos:

  • true: correspondidos automaticamente.

  • false: não correspondidos automaticamente.

false

ResourceGroupId

string

O ID do grupo de recursos.

rg-8db03793gfrz****

ContainerGroupName

string

O nome da instância ECI, que é o nome do grupo de contêineres.

test

ScalingConfigurationId

string

O ID da configuração de dimensionamento.

asc-bp1ezrfgoyn5kijl****

CpuOptionsCore

integer

O número de núcleos físicos de CPU. Apenas tipos de instância específicos suportam configurações personalizadas. Para mais informações, consulte Personalizar opções de CPU.

2

Containers

array<object>

A lista de contêineres na instância ECI.

array<object>

As informações sobre um contêiner na instância ECI.

ReadinessProbeHttpGetPath

string

The path for HTTP GET-based health checks.

/usr/local

ReadinessProbeSuccessThreshold

integer

The minimum number of consecutive successes required to transition from a failure status to a success status. Default value: 1. The current value must be 1.

1

LivenessProbePeriodSeconds

integer

The interval at which health checks are performed. Default value: 10 seconds. Minimum value: 1 second.

5

LivenessProbeTcpSocketPort

integer

The port number for TCP Socket-based health checks.

80

LivenessProbeHttpGetScheme

string

The protocol type for HTTP GET-based health checks. Valid values:

  • HTTP.

  • HTTPS.

HTTP

WorkingDir

string

The working directory of the container.

/usr/local/nginx

Tty

boolean

Indicates whether interaction is enabled. Valid values:

  • true: enabled.

  • false: not enabled.

false

LivenessProbeHttpGetPort

integer

The port for HTTP GET-based health checks.

80

Gpu

integer

The number of GPUs.

1

ReadinessProbeInitialDelaySeconds

integer

The time to wait before the first health check starts, calculated from the time the container finishes starting.

5

Stdin

boolean

Specifies whether the container runtime allocates a buffer for standard input. If this parameter is not set, reads from standard input in the container result in EOF.

Default value: false.

true

Memory

number

The memory size of the container.

2.0

Name

string

The custom container name.

nginx

LivenessProbeHttpGetPath

string

The path for HTTP GET-based health checks.

/usr/nginx/

Image

string

The container image.

mysql

ReadinessProbeTcpSocketPort

integer

The port number for TCP Socket-based health checks.

8888

ReadinessProbeHttpGetScheme

string

The protocol type for HTTP GET-based health checks. Valid values:

  • HTTP.

  • HTTPS.

HTTP

ReadinessProbeHttpGetPort

integer

The path for HTTP GET-based health checks.

/usr/nginx/

LivenessProbeSuccessThreshold

integer

The minimum number of consecutive successes required to transition from a failure status to a success status. Default value: 1. The current value must be 1.

1

ReadinessProbeTimeoutSeconds

integer

The timeout period for health checks. Default value: 1 second. Minimum value: 1 second.

5

SecurityContextRunAsUser

integer

The UID used to run the container process entry point.

1000

LivenessProbeInitialDelaySeconds

integer

The time to wait before the first health check starts, calculated from the time the container finishes starting.

10

ReadinessProbePeriodSeconds

integer

The interval at which health checks are performed. Default value: 10 seconds. Minimum value: 1 second.

1

ImagePullPolicy

string

The image pull policy. Valid values:

  • Always: always pulls the image. The image is pulled each time.

  • IfNotPresent: pulls the image only when needed. The local image is used first. If no local image is available, the image is pulled.

  • Never: never pulls the image. Only the local image is used.

Always

StdinOnce

boolean

When standard input is set to true, the standard input stream remains open across multiple attach sessions.

If StdinOnce is set to true, standard input is opened when the container starts and remains empty until the first client attaches to it. It then stays open and accepts data until the client disconnects, at which point standard input enters the shutdown enabling status and remains shutdown until the container restarts.

true

Cpu

number

The vCPU size of the container.

2.0

LivenessProbeTimeoutSeconds

integer

The timeout period for health checks. Default value: 1 second. Minimum value: 1 second.

10

ReadinessProbeFailureThreshold

integer

The minimum number of consecutive failures required to transition from a success status to a failure status.

Default value: 3.

3

LivenessProbeFailureThreshold

integer

The minimum number of consecutive failures required to transition from a success status to a failure status.

Default value: 3.

3

Ports

array<object>

The list of exposed ports and protocols.

object

The exposed port and protocol.

Port

integer

The port number. Valid values: 1 to 65535.

8888

Protocol

string

The protocol type. Valid values:

  • TCP.

  • UDP.

TCP

VolumeMounts

array<object>

The list of volume mounts.

object

The volume mount.

ReadOnly

boolean

Indicates whether the volume is read-only. Valid values:

  • true: read-only.

  • false: not read-only.

false

SubPath

string

The subpath of the volume.

data2/

Name

string

The name of the volume. This value is the same as the Name value in Volume.

default-volume1

MountPropagation

string

The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:

  • None: the volume does not detect any subsequent mounts performed on this volume or its subdirectories.

  • HostToCotainer: the volume detects subsequent mounts performed on this volume or its subdirectories.

  • Bidirectional: similar to HostToCotainer, the volume detects mount operations. In addition, the volume is propagated back to the host and all containers of all pods that use the same volume.

None

MountPath

string

The directory where the container mounts the volume.

Nota

The content in the mount directory of the container is overwritten by the volume content. Use this parameter with caution.

/pod/data

EnvironmentVars

array<object>

The list of environment variables.

object

The environment variable information.

Key

string

The name of the environment variable.

PATH

Value

string

The value of the environment variable.

/usr/bin/

Commands

array

The list of container startup commands. A maximum of 20 commands are supported. Each command can contain up to 256 characters.

string

The container startup command. A maximum of 20 commands are supported. Each command can contain up to 256 characters.

sleep

LivenessProbeExecCommands

array

The list of commands executed in the container for command-based health checks.

string

The command executed in the container for command-based health checks.

cat/tmp/healthy

Args

array

The list of arguments for the container startup command. A maximum of 10 arguments are supported.

string

The argument for the container startup command. A maximum of 10 arguments are supported.

100

ReadinessProbeExecCommands

array

The list of commands executed in the container for command-based health checks.

string

The command executed in the container for command-based health checks.

cat/tmp/healthy

SecurityContextCapabilityAdds

array

The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported.

Nota

NET_RAW is not supported by default. Submit a ticket to apply for this permission.

string

The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported.

Nota

NET_RAW is not supported by default. Submit a ticket to apply for this permission.

NET_ADMIN

LifecyclePostStartHandlerHttpGetHost

string

The host address that receives the HTTP GET request when the PostStart callback function is configured with the HTTP request method.

10.0.XX.XX

LifecyclePostStartHandlerHttpGetPort

integer

The port number for the HTTP GET request when the PostStart callback function is configured with the HTTP request method.

80

LifecyclePostStartHandlerHttpGetPath

string

The path for the HTTP GET request when the PostStart callback function is configured with the HTTP request method.

/healthyz

LifecyclePostStartHandlerHttpGetScheme

string

The protocol type for the HTTP GET request when the PostStart callback function is configured with the HTTP request method.

HTTP

LifecyclePostStartHandlerExecs

array

The commands executed in the container when the PostStart callback function is configured with the command-line method.

string

The commands executed in the container when the PostStart callback function is configured with the command-line method.

[ "/bin/sh", "-c", "echo Hello from the preStop handler /usr/share/message" ]

LifecyclePostStartHandlerTcpSocketHost

string

The host address for TCP Socket-based detection when the PostStart callback function is configured with the TCP Socket method.

10.0.XX.XX

LifecyclePostStartHandlerTcpSocketPort

integer

The port for TCP Socket-based detection when the PostStart callback function is configured with the TCP Socket method.

80

LifecyclePreStopHandlerHttpGetHost

string

The host address that receives the HTTP GET request when the PreStop callback function is configured with the HTTP request method.

10.0.XX.XX

LifecyclePreStopHandlerHttpGetPort

integer

The port number for the HTTP GET request when the PreStop callback function is configured with the HTTP request method.

80

LifecyclePreStopHandlerHttpGetPath

string

The path for the HTTP GET request when the PreStop callback function is configured with the HTTP request method.

/healthyz

LifecyclePreStopHandlerHttpGetScheme

string

The protocol type for the HTTP GET request when the PreStop callback function is configured with the HTTP request method.

HTTP

LifecyclePreStopHandlerExecs

array

The commands executed in the container when the PreStop callback function is configured with the command-line method.

string

The commands executed in the container when the PreStop callback function is configured with the command-line method.

[ "/bin/sh", "-c", "echo Hello from the preStop handler /usr/share/message" ]

LifecyclePreStopHandlerTcpSocketHost

string

The host address for TCP Socket-based detection when the PreStop callback function is configured with the TCP Socket method.

10.0.XX.XX

LifecyclePreStopHandlerTcpSocketPort

integer

The port for TCP Socket-based detection when the PreStop callback function is configured with the TCP Socket method.

80

InitContainers

array<object>

A lista de contêineres de inicialização.

array<object>

A lista de contêineres de inicialização.

SecurityContextReadOnlyRootFilesystem

boolean

Indicates whether the root file system on which the container runs is read-only. Currently, only true is supported.

true

ImagePullPolicy

string

The image pull policy.

Always

WorkingDir

string

The working directory.

/usr/local

Cpu

number

The CPU size.

0.5

Image

string

The image used by the container.

nginx

Gpu

integer

The number of GPUs used by the container.

1

SecurityContextRunAsUser

string

The user ID used to run the container.

587

Memory

number

The memory size.

1.0

Name

string

The container name.

test-init

InitContainerEnvironmentVars

array<object>

The environment variable information.

object

The environment variable information.

Key

string

The name of the environment variable.

PATH

Value

string

The value of the environment variable.

/usr/local/bin

InitContainerVolumeMounts

array<object>

The volume mounts.

object

The volume mounts.

ReadOnly

boolean

Indicates whether the mount path is read-only.

Default value: false.

false

SubPath

string

The subdirectory of the volume. This allows a pod to mount different directories of the same volume to different directories in the container.

/usr/sub/

Name

string

The name of the mounted volume.

test-empty

MountPropagation

string

The mount propagation setting of the volume. Mount propagation allows volumes mounted by a container to be shared with other containers in the same pod, or even with other pods on the same node. Valid values:

  • None: the volume does not detect any subsequent mounts performed on this volume or its subdirectories.

  • HostToCotainer: the volume detects subsequent mounts performed on this volume or its subdirectories.

  • Bidirectional: similar to HostToCotainer, the volume detects mount operations. In addition, the volume is propagated back to the host and all containers of all pods that use the same volume.

None

MountPath

string

The mount directory. The content in the mount directory of the container is overwritten by the volume content. Use this parameter with caution.

/usr/share/

SecurityContextCapabilityAdds

array

The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported.

string

The specific permissions granted to processes in the container. Currently, only NET_ADMIN and NET_RAW are supported.

NET_ADMIN

InitContainerCommands

array

The container startup commands.

string

The container startup commands.

sleep

InitContainerArgs

array

The container startup arguments.

string

The container startup arguments.

10

Tags

array<object>

Os pares chave-valor de tag da instância.

object

Os pares chave-valor de tag da instância.

Key

string

The tag key.

version

Value

string

The tag value.

3

Volumes

array<object>

As informações do volume.

array<object>

As informações do volume.

Type

string

The volume type. Valid values:

  • EmptyDirVolume.

  • NFSVolume.

  • ConfigFileVolume.

  • FlexVolume.

EmptyDirVolume

DiskVolumeDiskId

string

The size of the DiskVolume. Unit: GiB.

15

DiskVolumeFsType

string

The file system type of the DiskVolume.

xfs

EmptyDirVolumeMedium

string

The storage medium of the EmptyDirVolume. By default, this parameter is empty, which indicates that the node file system is used. A value of memory indicates that memory is used.

memory

NFSVolumePath

string

The path of the NFS volume.

/share

DiskVolumeDiskSize

integer

The size of the DiskVolume. Unit: GiB.

15

NFSVolumeReadOnly

boolean

Indicates whether the NFS volume is read-only.

Default value: false.

false

FlexVolumeFsType

string

The file system type to mount. The default value depends on the FlexVolume script.

ext4

ConfigFileVolumeDefaultMode

integer

The default permissions of the ConfigFileVolume.

0644

FlexVolumeDriver

string

The driver name for the FlexVolume.

flexvolume

FlexVolumeOptions

string

The list of FlexVolume object options. The options are in key-value format and passed as JSON.

For example, when you mount a cloud disk by using FlexVolume, the Options format is {"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}.

{"volumeId":"d-2zehdahrwoa7srg****","performanceLevel": "PL2"}

NFSVolumeServer

string

The NFS server address.

3f9cd4****-na***.cn-shanghai.nas.aliyuncs.com

Name

string

The volume name.

default-volume1

ConfigFileVolumeConfigFileToPaths

array<object>

The list of configuration file paths.

object

The list of configuration file paths.

Path

string

The relative file path.

/usr/bin/

Mode

integer

The permissions of the ConfigFileVolume directory.

0644

Content

string

The content of the configuration file (32 KB).

bGl1bWk=

EmptyDirVolumeSizeLimit

string

The size of the EmptyDir volume.

256 Mi

HostPathVolumeType

string

The type of the HostPath volume.

Directory

HostPathVolumePath

string

The directory path of the HostPath volume on the host.

/pod/data

ImageRegistryCredentials

array<object>

As informações do repositório de imagens.

object

As informações do repositório de imagens.

Password

string

The password of the image repository.

yourpaasword

Server

string

The address of the image repository.

registry-vpc.cn-shanghai.aliyuncs.com

UserName

string

The username of the image repository.

yourusername

DnsConfigOptions

array<object>

A lista de opções de objeto. Cada objeto consiste em um Name e um Value opcional.

object

A lista de opções de objeto. Cada objeto consiste em um Name e um Value opcional.

Name

string

The variable name of the object.

name

Value

string

The variable value of the object.

value

HostAliases

array<object>

Os mapeamentos de nome de host personalizados para um contêiner na instância.

object

Os mapeamentos de nome de host personalizados para um contêiner na instância.

Ip

string

The added IP address.

192.0.XX.XX

Hostnames

array

The added hostnames.

string

The added hostnames.

['hehe.com', 'haha.com']

SecurityContextSysCtls

array<object>

As informações do sistema do contexto de segurança no qual a instância é executada.

object

As informações do sistema do contexto de segurança no qual a instância é executada.

Name

string

The system name of the security context in which the instance runs.

kernel.msgmax

Value

string

The variable value of the security context in which the instance runs.

65536

AcrRegistryInfos

array<object>

As informações sobre as instâncias do Container Registry Enterprise Edition.

object

As informações sobre as instâncias do Container Registry Enterprise Edition.

InstanceId

string

The ID of the Container Registry Enterprise Edition instance.

cri-nwj395hgf6f3****

InstanceName

string

The name of the Container Registry Enterprise Edition instance.

acr-test

RegionId

string

The region ID of the Container Registry Enterprise Edition instance.

cn-hangzhou

Domains

array

The domain names of the Container Registry Enterprise Edition instance. By default, all domain names of the instance are returned. You can specify individual domain names. Separate multiple domain names with commas (,).

string

The domain names of the Container Registry Enterprise Edition instance. By default, all domain names of the instance are returned. You can specify individual domain names. Separate multiple domain names with commas (,).

*****-****-registry.cn-beijing.cr.aliyuncs.com

DnsConfigNameServers

array

A lista de endereços IP dos servidores DNS.

string

A lista de endereços IP dos servidores DNS.

172.10.*.**

DnsConfigSearches

array

A lista de domínios de pesquisa DNS.

string

A lista de domínios de pesquisa DNS.

svc.local.kubenetes

NtpServers

array

Os servidores NTP.

string

Os servidores NTP.

ntp.cloud.aliyuncs.com

LifecycleState

string

O status da configuração de dimensionamento no grupo de dimensionamento. Valores válidos:

  • Active: a configuração de dimensionamento está no estado Active. O grupo de dimensionamento usa configurações de dimensionamento no estado Active para criar instâncias ECI automaticamente.

  • Inacitve: a configuração de dimensionamento está no estado Inactive. As configurações de dimensionamento no estado Inactive ainda existem no grupo de dimensionamento, mas o grupo de dimensionamento não usa tais configurações de dimensionamento para criar instâncias ECI automaticamente.

Active

CostOptimization

boolean

Indica se o recurso de otimização de custos está ativado. Valores válidos:

  • true: ativado.

  • false: não ativado.

false

InstanceFamilyLevel

string

O nível da família de instâncias, que é usado para filtrar tipos de instância que atendem aos requisitos. Este parâmetro entra em vigor apenas quando CostOptimization está ativado. Valores válidos:

  • EntryLevel: nível de entrada, que se refere a tipos de instância compartilhados. Esses tipos de instância são mais econômicos, mas não garantem um desempenho de computação estável. Eles são adequados para cenários com baixa utilização de CPU. Para mais informações, consulte Tipos de instância compartilhados.

  • EnterpriseLevel: nível corporativo. Esses tipos de instância fornecem desempenho estável e recursos dedicados. Eles são adequados para cenários que exigem alta estabilidade. Para mais informações, consulte Famílias de instâncias.

  • CreditEntryLevel: nível de entrada baseado em créditos, que se refere a tipos de instância com capacidade de burst. Esses tipos de instância usam créditos de CPU para garantir o desempenho de computação. Eles são adequados para cenários com baixa utilização de CPU e picos ocasionais de uso de CPU. Para mais informações, consulte Visão geral das instâncias com capacidade de burst.

EnterpriseLevel

InstanceTypes

array

Os tipos de instância ECS especificados. Você pode especificar vários tipos de instância (até 5).

string

O tipo de instância ECS especificado. Você pode especificar vários tipos de instância (até 5). Para mais informações, consulte Criar uma instância especificando um tipo de instância ECS.

ecs.g6.large

DataCacheBucket

string

O bucket de cache de dados.

default

DataCachePL

string

O nível de desempenho do disco em nuvem usado para cache de dados. Recomendamos o uso de SSDs aprimorados (ESSDs). Valores válidos para o nível de desempenho de um ESSD:

  • PL0: um único disco pode entregar até 10.000 IOPS de leitura/gravação aleatória.

  • PL1: um único disco pode entregar até 50.000 IOPS de leitura/gravação aleatória.

  • PL2: um único disco pode entregar até 100.000 IOPS de leitura/gravação aleatória.

  • PL3: um único disco pode entregar até 1.000.000 IOPS de leitura/gravação aleatória.

Nota

Para mais informações sobre ESSDs, consulte ESSDs.

PL1

DataCacheProvisionedIops

integer

Os IOPS de leitura/gravação provisionados do disco ESSD AutoPL usado para cache de dados. Valores válidos: 0 a min{50000, 1000 × capacidade - desempenho de linha de base}, onde desempenho de linha de base = min{1800 + 50 × capacidade, 50000}.

Nota

Para mais informações sobre discos ESSD AutoPL, consulte [Discos ESSD AutoPL](~~368 Discos ESSD AutoPL

40000

DataCacheBurstingEnabled

boolean

Indica se o recurso de burst (burst de desempenho) está ativado para o disco ESSD AutoPL usado para cache de dados. Valores válidos:

  • true: ativado.

  • false: não ativado.

Nota

Para mais informações sobre discos ESSD AutoPL, consulte Discos ESSD AutoPL.

false

GpuDriverVersion

string

A versão do driver da GPU.

tesla=470.82.01

Exemplos

Resposta de sucesso

JSON formato

{
  "PageNumber": 1,
  "PageSize": 50,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "TotalCount": 1,
  "ScalingConfigurations": [
    {
      "CreationTime": "2014-08-14T10:58Z",
      "ScalingConfigurationName": "scalingconfi****",
      "SecurityGroupId": "sg-bp18kz60mefs****",
      "ActiveDeadlineSeconds": 1000,
      "SpotStrategy": "NoSpot",
      "AutoCreateEip": true,
      "ScalingGroupId": "asg-bp17pelvl720x3v7****",
      "EphemeralStorage": 20,
      "Ipv6AddressCount": 1,
      "EipBandwidth": 5,
      "ImageSnapshotId": "imc-2zebxkiifuyzzlhl****",
      "Memory": 16,
      "RestartPolicy": "Never",
      "SpotPriceLimit": 0.025,
      "IngressBandwidth": 1024000,
      "CpuOptionsThreadsPerCore": 2,
      "TerminationGracePeriodSeconds": 60,
      "LoadBalancerWeight": 1,
      "DnsPolicy": "Default",
      "HostName": "['hehe.com', 'haha.com']",
      "EgressBandwidth": 1024000,
      "RegionId": "cn-hangzhou",
      "RamRoleName": "ram:PassRole",
      "Cpu": 2,
      "AutoMatchImageCache": false,
      "ResourceGroupId": "rg-8db03793gfrz****",
      "ContainerGroupName": "test",
      "ScalingConfigurationId": "asc-bp1ezrfgoyn5kijl****",
      "CpuOptionsCore": 2,
      "Containers": [
        {
          "ReadinessProbeHttpGetPath": "/usr/local",
          "ReadinessProbeSuccessThreshold": 1,
          "LivenessProbePeriodSeconds": 5,
          "LivenessProbeTcpSocketPort": 80,
          "LivenessProbeHttpGetScheme": "HTTP",
          "WorkingDir": "/usr/local/nginx",
          "Tty": false,
          "LivenessProbeHttpGetPort": 80,
          "Gpu": 1,
          "ReadinessProbeInitialDelaySeconds": 5,
          "Stdin": true,
          "Memory": 2,
          "Name": "nginx",
          "LivenessProbeHttpGetPath": "/usr/nginx/",
          "Image": "mysql",
          "ReadinessProbeTcpSocketPort": 8888,
          "ReadinessProbeHttpGetScheme": "HTTP",
          "ReadinessProbeHttpGetPort": 0,
          "LivenessProbeSuccessThreshold": 1,
          "ReadinessProbeTimeoutSeconds": 5,
          "SecurityContextRunAsUser": 1000,
          "LivenessProbeInitialDelaySeconds": 10,
          "ReadinessProbePeriodSeconds": 1,
          "ImagePullPolicy": "Always",
          "StdinOnce": true,
          "Cpu": 2,
          "LivenessProbeTimeoutSeconds": 10,
          "ReadinessProbeFailureThreshold": 3,
          "LivenessProbeFailureThreshold": 3,
          "Ports": [
            {
              "Port": 8888,
              "Protocol": "TCP"
            }
          ],
          "VolumeMounts": [
            {
              "ReadOnly": false,
              "SubPath": "data2/",
              "Name": "default-volume1",
              "MountPropagation": "None",
              "MountPath": "/pod/data"
            }
          ],
          "EnvironmentVars": [
            {
              "Key": "PATH",
              "Value": "/usr/bin/"
            }
          ],
          "Commands": [
            "sleep"
          ],
          "LivenessProbeExecCommands": [
            "cat/tmp/healthy"
          ],
          "Args": [
            "100"
          ],
          "ReadinessProbeExecCommands": [
            "cat/tmp/healthy"
          ],
          "SecurityContextCapabilityAdds": [
            "NET_ADMIN"
          ],
          "LifecyclePostStartHandlerHttpGetHost": "10.0.XX.XX",
          "LifecyclePostStartHandlerHttpGetPort": 80,
          "LifecyclePostStartHandlerHttpGetPath": "/healthyz",
          "LifecyclePostStartHandlerHttpGetScheme": "HTTP",
          "LifecyclePostStartHandlerExecs": [
            "[     \"/bin/sh\",     \"-c\",     \"echo Hello from the preStop handler  /usr/share/message\" ]"
          ],
          "LifecyclePostStartHandlerTcpSocketHost": "10.0.XX.XX",
          "LifecyclePostStartHandlerTcpSocketPort": 80,
          "LifecyclePreStopHandlerHttpGetHost": "10.0.XX.XX",
          "LifecyclePreStopHandlerHttpGetPort": 80,
          "LifecyclePreStopHandlerHttpGetPath": "/healthyz",
          "LifecyclePreStopHandlerHttpGetScheme": "HTTP",
          "LifecyclePreStopHandlerExecs": [
            "[     \"/bin/sh\",     \"-c\",     \"echo Hello from the preStop handler  /usr/share/message\" ]"
          ],
          "LifecyclePreStopHandlerTcpSocketHost": "10.0.XX.XX",
          "LifecyclePreStopHandlerTcpSocketPort": 80
        }
      ],
      "InitContainers": [
        {
          "SecurityContextReadOnlyRootFilesystem": true,
          "ImagePullPolicy": "Always",
          "WorkingDir": "/usr/local",
          "Cpu": 0.5,
          "Image": "nginx",
          "Gpu": 1,
          "SecurityContextRunAsUser": "587",
          "Memory": 1,
          "Name": "test-init",
          "InitContainerEnvironmentVars": [
            {
              "Key": "PATH",
              "Value": "/usr/local/bin"
            }
          ],
          "InitContainerVolumeMounts": [
            {
              "ReadOnly": false,
              "SubPath": "/usr/sub/",
              "Name": "test-empty",
              "MountPropagation": "None",
              "MountPath": "/usr/share/"
            }
          ],
          "SecurityContextCapabilityAdds": [
            "NET_ADMIN"
          ],
          "InitContainerCommands": [
            "sleep"
          ],
          "InitContainerArgs": [
            "10"
          ]
        }
      ],
      "Tags": [
        {
          "Key": "version",
          "Value": "3"
        }
      ],
      "Volumes": [
        {
          "Type": "EmptyDirVolume",
          "DiskVolumeDiskId": "15",
          "DiskVolumeFsType": "xfs",
          "EmptyDirVolumeMedium": "memory",
          "NFSVolumePath": "/share",
          "DiskVolumeDiskSize": 15,
          "NFSVolumeReadOnly": false,
          "FlexVolumeFsType": "ext4",
          "ConfigFileVolumeDefaultMode": 644,
          "FlexVolumeDriver": "flexvolume",
          "FlexVolumeOptions": "{\"volumeId\":\"d-2zehdahrwoa7srg****\",\"performanceLevel\": \"PL2\"}",
          "NFSVolumeServer": "3f9cd4****-na***.cn-shanghai.nas.aliyuncs.com",
          "Name": "default-volume1",
          "ConfigFileVolumeConfigFileToPaths": [
            {
              "Path": "/usr/bin/",
              "Mode": 644,
              "Content": "bGl1bWk="
            }
          ],
          "EmptyDirVolumeSizeLimit": "256 Mi",
          "HostPathVolumeType": "Directory",
          "HostPathVolumePath": "/pod/data"
        }
      ],
      "ImageRegistryCredentials": [
        {
          "Password": "yourpaasword",
          "Server": "registry-vpc.cn-shanghai.aliyuncs.com",
          "UserName": "yourusername"
        }
      ],
      "DnsConfigOptions": [
        {
          "Name": "name",
          "Value": "value"
        }
      ],
      "HostAliases": [
        {
          "Ip": "192.0.XX.XX",
          "Hostnames": [
            "['hehe.com', 'haha.com']"
          ]
        }
      ],
      "SecurityContextSysCtls": [
        {
          "Name": "kernel.msgmax",
          "Value": "65536"
        }
      ],
      "AcrRegistryInfos": [
        {
          "InstanceId": "cri-nwj395hgf6f3****",
          "InstanceName": "acr-test",
          "RegionId": "cn-hangzhou",
          "Domains": [
            "*****-****-registry.cn-beijing.cr.aliyuncs.com"
          ]
        }
      ],
      "DnsConfigNameServers": [
        "172.10.*.**"
      ],
      "DnsConfigSearches": [
        "svc.local.kubenetes"
      ],
      "NtpServers": [
        "ntp.cloud.aliyuncs.com"
      ],
      "LifecycleState": "Active",
      "CostOptimization": false,
      "InstanceFamilyLevel": "EnterpriseLevel",
      "InstanceTypes": [
        "ecs.g6.large"
      ],
      "DataCacheBucket": "default",
      "DataCachePL": "PL1",
      "DataCacheProvisionedIops": 40000,
      "DataCacheBurstingEnabled": false,
      "GpuDriverVersion": "tesla=470.82.01"
    }
  ]
}

Códigos de erro

Código de status HTTP

Código de erro

Mensagem de erro

Descrição

403 Forbidden.RiskControl Forbidden.RiskControl

Consulte Códigos de Erro para uma lista completa.

Notas de versão

Consulte Notas de Versão para uma lista completa.