Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::REDIS::InstanceClasses

Última atualização: Jun 27, 2026

Consulta os tipos de instância disponíveis do Tair (compatível com Redis OSS).

Sintaxe

{
  "Type": "DATASOURCE::REDIS::InstanceClasses",
  "Properties": {
    "OrderType": String,
    "ZoneId": String,
    "ResourceGroupId": String,
    "InstanceId": String,
    "InstanceChargeType": String,
    "NodeId": String,
    "ProductType": String,
    "AcceptLanguage": String,
    "Engine": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

OrderType

String

Não

Sim

Tipo do pedido.

Valores válidos:

  • BUY: compra de recursos.

  • UPGRADE: atualização das especificações da instância.

  • DOWNGRADE: redução das especificações da instância.

ZoneId

String

Não

Sim

ID da zona.

Chame a operação DescribeZones para consultar as zonas compatíveis.

ResourceGroupId

String

Não

Sim

ID do grupo de recursos.

Nenhuma.

InstanceId

String

Não

Sim

ID da instância.

Especifique esta propriedade quando OrderType estiver definido como UPGRADE ou RENEW.

InstanceChargeType

String

Não

Sim

Método de faturamento.

Valores válidos:

  • PrePaid: assinatura

  • PostPaid (padrão): pagamento conforme o uso

NodeId

String

Não

Sim

ID do nó de dados.

Chame a operação DescribeLogicInstanceTopology para consultar os IDs dos nós de dados.

Nota

Esta propriedade tem efeito apenas se InstanceId for especificado e a instância utilizar arquitetura cluster ou de divisão de leitura/escrita.

ProductType

String

Não

Sim

Tipo do produto.

Valores válidos:

  • Local: instâncias Community Edition com discos locais ou instâncias de desempenho aprimorado do Tair (Enterprise Edition) com discos locais

  • Tair_rdb: instâncias de desempenho aprimorado do Tair (Enterprise Edition) com discos em nuvem

  • Tair_scm: instâncias otimizadas para memória persistente do Tair (Enterprise Edition)

  • Tair_essd: instâncias otimizadas para armazenamento do Tair (Enterprise Edition)

  • OnECS: instâncias Community Edition com arquitetura padrão e discos em nuvem

AcceptLanguage

String

Não

Sim

Idioma de exibição dos valores retornados.

Valores válidos:

  • zh-CN (padrão): chinês

  • en-US: inglês

Engine

String

Não

Sim

Tipo do mecanismo de banco de dados.

Valores válidos:

  • Redis

  • Memcache

RefreshOptions

String

Não

Sim

Política de atualização dos recursos de source durante a atualização da pilha.

Valores válidos:

  • Never (padrão): não atualiza os recursos de source ao atualizar a pilha.

  • Always: atualiza os recursos de source ao atualizar a pilha.

Valores de retorno (Fn::GetAtt)

  • InstanceClassIds: os tipos de instância.

  • InstanceClasses: detalhes dos tipos de instância.

Propriedade

Tipo

Descrição

Restrição

InstanceClassIds

List

Os tipos de instância.

Nenhuma.

InstanceClasses

List

Detalhes dos tipos de instância.

Nenhuma.

ZoneId

String

ID da zona.

Nenhuma.

InstanceClass

String

O tipo de instância.

Nenhuma.

SupportedNodeType

List

Os tipos de nó.

Valores válidos:

  • single: autônomo

  • double: mestre-réplica

ShardNumber

String

Número de shards.

Nenhuma.

Architecture

String

A arquitetura.

Valores válidos:

  • standard: arquitetura padrão

  • cluster: arquitetura cluster

  • rwsplit: arquitetura de divisão de leitura/escrita

Version

String

Versão do mecanismo de banco de dados.

Nenhuma.

SeriesType

String

A série.

Valores válidos:

  • enhanced_performance_type: instância de desempenho aprimorado

  • hybrid_storage: instância de armazenamento híbrido

EditionType

String

Edição da instância.

Valores válidos:

  • Community: Community Edition

  • Enterprise: Tair (Enterprise Edition)

Engine

String

Tipo do mecanismo de banco de dados.

Valores válidos:

  • Redis

  • Memcache

Capacity

Number

Tamanho da memória.

Unidade: MB.

Exemplos

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "OrderType": {
      "Type": "String",
      "Description": "The order type. Valid values:\nBUY: the orders that are used to purchase instances.\nUPGRADE: the orders that are used to upgrade instances.\nDOWNGRADE: the orders that are used to downgrade instances."
    },
    "ZoneId": {
      "Type": "String",
      "Description": "The ID of the zone where PolarDB resources that you want to query reside.\nNote You can call the DescribeRegions operation to query information about zones."
    },
    "ResourceGroupId": {
      "Type": "String",
      "Description": "The ID of the instance.\n Note This parameter is required only if the OrderType parameter is set to UPGRADE or RENEW."
    },
    "InstanceId": {
      "Type": "String",
      "Description": "The ID of the resource group. You can call the ListResourceGroups operation to query the IDs of resource groups.\n Note You can also query the IDs of resource groups in the Resource Management console. For more information, see View basic information about a resource group."
    },
    "InstanceChargeType": {
      "Type": "String",
      "Description": "The billing method. Valid values:\nPrePaid: subscription\nPostPaid: pay-as-you-go\nNote Default value: PrePaid.",
      "Default": "PrePaid"
    },
    "NodeId": {
      "Type": "String",
      "Description": "The ID of the data node for which you want to query available instance types. You can call the DescribeLogicInstanceTopology operation to query the ID of the data node. Remove the number sign (#) and the content that follows the number sign. For example, retain only r-bp10noxlhcoim2****-db-0.\n Note Before you set this parameter, you must set the InstanceId parameter to the ID of an instance in the cluster or read/write splitting architecture."
    },
    "ProductType": {
      "Type": "String",
      "Description": "The edition or series of instances. Valid values:\n Local: ApsaraDB for Redis Community Edition instances or performance-enhanced instances of ApsaraDB for Redis Enhanced Edition (Tair)\n Tair_scm: persistent memory-optimized instances\n Tair_essd: storage-optimized instances"
    },
    "AcceptLanguage": {
      "Type": "String",
      "Description": "The language of the return values. Valid values:\n zh-CN: Chinese. This is the default value.\n en-US: English."
    },
    "Engine": {
      "Type": "String",
      "Description": "The engine type. Valid values:\nRedis\nMemcache"
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::REDIS::InstanceClasses",
      "Properties": {
        "OrderType": {
          "Ref": "OrderType"
        },
        "ZoneId": {
          "Ref": "ZoneId"
        },
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        },
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "InstanceChargeType": {
          "Ref": "InstanceChargeType"
        },
        "NodeId": {
          "Ref": "NodeId"
        },
        "ProductType": {
          "Ref": "ProductType"
        },
        "AcceptLanguage": {
          "Ref": "AcceptLanguage"
        },
        "Engine": {
          "Ref": "Engine"
        }
      }
    }
  },
  "Outputs": {
    "InstanceClasses": {
      "Description": "The list of instance classes.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceClasses"
        ]
      }
    },
    "InstanceClassIds": {
      "Description": "The list of db instance class ids.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "InstanceClassIds"
        ]
      }
    }
  }
}
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AcceptLanguage:
    Description: "The language of the return values. Valid values:\n zh-CN: Chinese.\
      \ This is the default value.\n en-US: English."
    Type: String
  Engine:
    Description: 'The engine type. Valid values:

      Redis

      Memcache'
    Type: String
  InstanceChargeType:
    Default: PrePaid
    Description: 'The billing method. Valid values:

      PrePaid: subscription

      PostPaid: pay-as-you-go

      Note Default value: PrePaid.'
    Type: String
  InstanceId:
    Description: "The ID of the resource group. You can call the ListResourceGroups\
      \ operation to query the IDs of resource groups.\n Note You can also query the\
      \ IDs of resource groups in the Resource Management console. For more information,\
      \ see View basic information about a resource group."
    Type: String
  NodeId:
    Description: "The ID of the data node for which you want to query available instance\
      \ types. You can call the DescribeLogicInstanceTopology operation to query the\
      \ ID of the data node. Remove the number sign (#) and the content that follows\
      \ the number sign. For example, retain only r-bp10noxlhcoim2****-db-0.\n Note\
      \ Before you set this parameter, you must set the InstanceId parameter to the\
      \ ID of an instance in the cluster or read/write splitting architecture."
    Type: String
  OrderType:
    Description: 'The order type. Valid values:

      BUY: the orders that are used to purchase instances.

      UPGRADE: the orders that are used to upgrade instances.

      DOWNGRADE: the orders that are used to downgrade instances.'
    Type: String
  ProductType:
    Description: "The edition or series of instances. Valid values:\n Local: ApsaraDB\
      \ for Redis Community Edition instances or performance-enhanced instances of\
      \ ApsaraDB for Redis Enhanced Edition (Tair)\n Tair_scm: persistent memory-optimized\
      \ instances\n Tair_essd: storage-optimized instances"
    Type: String
  ResourceGroupId:
    Description: "The ID of the instance.\n Note This parameter is required only if\
      \ the OrderType parameter is set to UPGRADE or RENEW."
    Type: String
  ZoneId:
    Description: 'The ID of the zone where PolarDB resources that you want to query
      reside.

      Note You can call the DescribeRegions operation to query information about zones.'
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      AcceptLanguage:
        Ref: AcceptLanguage
      Engine:
        Ref: Engine
      InstanceChargeType:
        Ref: InstanceChargeType
      InstanceId:
        Ref: InstanceId
      NodeId:
        Ref: NodeId
      OrderType:
        Ref: OrderType
      ProductType:
        Ref: ProductType
      ResourceGroupId:
        Ref: ResourceGroupId
      ZoneId:
        Ref: ZoneId
    Type: DATASOURCE::REDIS::InstanceClasses
Outputs:
  InstanceClassIds:
    Description: The list of db instance class ids.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - InstanceClassIds
  InstanceClasses:
    Description: The list of instance classes.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - InstanceClasses