Todos os produtos
Search
Central de documentação

Database Autonomy Service:DescribeAutoScalingConfig

Última atualização: Jun 28, 2026

Consulta as configurações do recurso de auto scaling para uma instância.

Descrição da operação

Antes de chamar esta operação, observe os seguintes itens:

  • Se você usar um SDK da Alibaba Cloud ou um SDK do Database Autonomy Service (DAS) para chamar esta operação, recomendamos que use a versão mais recente do SDK.

  • Se você usar um SDK para chamar operações do DAS, deverá definir o ID da região como cn-shanghai.

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

hdm:DescribeAutoScalingConfig

get

*All Resource

*

Nenhuma Nenhuma

Parâmetros da solicitação

Parâmetro

Tipo

Obrigatório

Descrição

Exemplo

InstanceId

string

Sim

O ID da instância.

pc-2ze1prap1k46r****

Elementos de resposta

Elemento

Tipo

Descrição

Exemplo

object

The response parameters.

Code

string

O código de status HTTP retornado.

200

Message

string

A mensagem retornada.

Nota

Se a solicitação foi bem-sucedida, Successful é retornado. Se a solicitação falhou, uma mensagem de erro, como um código de erro, é retornada.

Successful

RequestId

string

O ID da solicitação.

B6D17591-B48B-4D31-9CD6-9B9796B2****

Success

string

Indica se a solicitação foi bem-sucedida. Valores válidos:

  • true

  • false

true

Data

object

As configurações do recurso de auto scaling para instâncias.

Spec

object

As configurações do recurso de auto scaling para especificações.

Upgrade

boolean

Indicates whether the automatic specification scale-up feature is enabled. Valid values:

  • true

  • false

true

CpuUsageUpperThreshold

integer

The average CPU utilization threshold that triggers automatic specification scale-up. Unit: %.

70

MemUsageUpperThreshold

integer

The average memory usage threshold that triggers automatic specification scale-up. Unit: %.

70

MaxSpec

string

The maximum specifications to which the cluster can be scaled up. For more information about the specifications of each type of supported database instances, see the following topics:

polar.mysql.x8.12xlarge

MaxReadOnlyNodes

integer

The maximum number of read-only nodes of the instance.

10

ObservationWindowSize

string

The observation window. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Nota

A value of 5m indicates 5 minutes.

5m

CoolDownTime

string

The quiescent period. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Nota

A value of 5m indicates 5 minutes.

5m

Downgrade

boolean

Indicates whether the automatic specification scale-down feature is enabled. Valid values:

  • true

  • false

true

Storage

object

As configurações do recurso de expansão automática de armazenamento.

Upgrade

boolean

Indicates whether the automatic storage expansion feature is enabled. Valid values:

  • true

  • false

true

DiskUsageUpperThreshold

integer

The average storage usage threshold that triggers automatic storage expansion. Unit: %.

70

MaxStorage

integer

The maximum storage size. Unit: GB.

32000

Resource

object

As configurações do recurso de auto scaling para recursos locais.

Enable

boolean

Indicates whether the auto scaling feature is enabled for local resources. Valid values:

  • true

  • false

true

CpuUsageUpperThreshold

integer

The average CPU utilization threshold that triggers automatic scale-out of local resources. Unit: %.

70

CpuStep

integer

The scale-out step size of CPU.

2

UpgradeObservationWindowSize

string

The observation window of the automatic scale-out feature for local resources. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Nota

A value of 5m indicates 5 minutes.

5m

DowngradeObservationWindowSize

string

The observation window of the automatic scale-in feature for local resources. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Nota

A value of 5m indicates 5 minutes.

5m

Shard

object

As configurações do recurso de auto scaling para shards.

Upgrade

boolean

Indicates whether the feature of automatically adding shards is enabled. Valid values:

  • true

  • false

true

MemUsageUpperThreshold

integer

The average memory usage threshold that triggers automatic adding of shards. Unit: %.

70

MaxShards

integer

The maximum number of shards in the instance.

16

UpgradeObservationWindowSize

string

The observation window of the feature of automatically adding shards. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Nota

A value of 5m indicates 5 minutes.

5m

Downgrade

boolean

Indicates whether the feature of automatically removing shards is enabled. Valid values:

  • true

  • false

true

MemUsageLowerThreshold

integer

The average memory usage threshold that triggers automatic removal of shards. Unit: %.

30

MinShards

integer

The minimum number of shards in the instance.

4

DowngradeObservationWindowSize

string

The observation window of the feature of automatically removing shards. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Nota

A value of 1d indicates one day.

1d

Bandwidth

object

As configurações do recurso de ajuste automático de largura de banda.

Upgrade

boolean

Indicates whether the automatic bandwidth adjustment feature is enabled. Valid values:

  • true

  • false

true

BandwidthUsageUpperThreshold

integer

The average bandwidth usage threshold that triggers automatic bandwidth adjustment. Unit: %.

70

ObservationWindowSize

string

The observation window of the automatic bandwidth adjustment feature. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Nota

A value of 5m indicates 5 minutes.

5m

Downgrade

boolean

Indicates whether the automatic bandwidth downgrade feature is enabled. Valid values:

  • true

  • false

true

BandwidthUsageLowerThreshold

integer

The average bandwidth usage threshold that triggers automatic bandwidth downgrade. Unit: %.

30

Exemplos

Resposta de sucesso

JSON formato

{
  "Code": "200",
  "Message": "Successful",
  "RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
  "Success": "true",
  "Data": {
    "Spec": {
      "Upgrade": true,
      "CpuUsageUpperThreshold": 70,
      "MemUsageUpperThreshold": 70,
      "MaxSpec": "polar.mysql.x8.12xlarge",
      "MaxReadOnlyNodes": 10,
      "ObservationWindowSize": "5m",
      "CoolDownTime": "5m",
      "Downgrade": true
    },
    "Storage": {
      "Upgrade": true,
      "DiskUsageUpperThreshold": 70,
      "MaxStorage": 32000
    },
    "Resource": {
      "Enable": true,
      "CpuUsageUpperThreshold": 70,
      "CpuStep": 2,
      "UpgradeObservationWindowSize": "5m",
      "DowngradeObservationWindowSize": "5m"
    },
    "Shard": {
      "Upgrade": true,
      "MemUsageUpperThreshold": 70,
      "MaxShards": 16,
      "UpgradeObservationWindowSize": "5m",
      "Downgrade": true,
      "MemUsageLowerThreshold": 30,
      "MinShards": 4,
      "DowngradeObservationWindowSize": "1d"
    },
    "Bandwidth": {
      "Upgrade": true,
      "BandwidthUsageUpperThreshold": 70,
      "ObservationWindowSize": "5m",
      "Downgrade": true,
      "BandwidthUsageLowerThreshold": 30
    }
  }
}

Códigos de erro

Código de status HTTP

Código de erro

Mensagem de erro

Descrição

400 InvalidParams The request parameters are invalid.
403 NoPermission You are not authorized to do this action.

Consulte Códigos de Erro para uma lista completa.

Notas de versão

Consulte Notas de Versão para uma lista completa.