Todos los productos
Search
Centro de documentos

Resource Orchestration Service:ALIYUN::PolarDBX::DBInstance

Última actualización: Sep 21, 2026

Cree una instancia de PolarDB for Xscale (PolarDB-X).

Sintaxis

{
  "Type": "ALIYUN::PolarDBX::DBInstance",
  "Properties": {
    "TopologyType": String,
    "EngineVersion": String,
    "ResourceGroupId": String,
    "VPCId": String,
    "AutoRenew": Boolean,
    "VSwitchId": String,
    "Period": String,
    "PayType": String,
    "DBNodeClass": String,
    "SecondaryZone": String,
    "TertiaryZone": String,
    "DBNodeCount": Integer,
    "PrimaryZone": String,
    "UsedTime": Integer,
    "DBInstanceDescription": String,
    "SecurityIpConfig": Map
  }
}

Propiedades

Propiedad

Tipo

Obligatorio

Editable

Descripción

Restricción

TopologyType

String

Sí

No

Tipo de topología.

Valores válidos:

  • 3azones: tres zonas

  • 1azone: zona única

EngineVersion

String

Sí

No

Versión del motor de base de datos.

  • Valores válidos para la facturación pay-as-you-go: 2.0 y 5.7.

  • Valor válido para la facturación por suscripción: 5.7.

ResourceGroupId

String

No

No

ID del resource group.

Ninguna.

VPCId

String

Sí

No

ID de la VPC.

Ninguna.

AutoRenew

Boolean

No

No

Indica si se habilite la renovación automática.

Valores válidos:

  • true

  • false

VSwitchId

String

Sí

No

ID del vSwitch.

Ninguna.

Period

String

No

No

Unidad del ciclo de facturación.

  • Valores válidos para la facturación por suscripción: Year y Month.

  • Valor válido para la facturación pay-as-you-go: Hour.

PayType

String

No

No

Método de facturación de la instancia.

  • Suscripción:

    Subscription, PrePaid, Prepaid, PrePay, PREPAY y PRE.

  • Pay-as-you-go:

    PayOnDemand, PayAsYouGo, PostPaid, PayOnDemand, Postpaid, PostPay, POSTPAY y POST.

DBNodeClass

String

Sí

No

Tipo de instancia del nodo.

Valores válidos:

  • polarx.x4.medium.2e: 2 vCPU y 8 GB de memoria.

  • polarx.x4.large.2e: 4 vCPU y 16 GB de memoria.

  • polarx.x8.large.2e: 4 vCPU y 32 GB de memoria.

  • polarx.x4.xlarge.2e: 8 vCPU y 32 GB de memoria.

  • polarx.x8.xlarge.2e: 8 vCPU y 64 GB de memoria.

  • polarx.x4.2xlarge.2e: 16 vCPU y 64 GB de memoria.

  • polarx.x8.2xlarge.2e: 16 vCPU y 128 GB de memoria.

  • polarx.x4.4xlarge.2e: 32 vCPU y 128 GB de memoria.

  • polarx.x8.4xlarge.2e: 32 vCPU y 256 GB de memoria.

  • polarx.st.8xlarge.2e: 60 vCPU y 470 GB de memoria.

  • polarx.st.12xlarge.2e: 90 vCPU y 720 GB de memoria.

SecondaryZone

String

No

No

Zona secundaria.

Ninguna.

TertiaryZone

String

No

No

Zona terciaria.

Ninguna.

DBNodeCount

Integer

Sí

No

Número de nodos de la instancia.

La instancia debe contener como mínimo dos nodos.

PrimaryZone

String

Sí

No

Zona principal.

Ninguna.

UsedTime

Integer

No

No

Duración de la suscripción.

Nota

Valores válidos cuando Period se establece en Year: 1, 2 y 3.

DBInstanceDescription

String

No

Sí

Descripción de la instancia.

Ninguna.

SecurityIpConfig

Map

No

No

Configuración de la lista blanca de direcciones IP de la instancia.

Para obtener más información, consulte SecurityIpConfig properties.

Sintaxis de SecurityIpConfig

"SecurityIpConfig": {
  "SecurityIPList": String,
  "ModifyMode": String,
  "GroupName": String
}

Propiedades de SecurityIpConfig

Propiedad

Tipo

Obligatorio

Editable

Descripción

Restricción

SecurityIPList

String

No

No

Direcciones IP de la lista blanca.

Separe varias direcciones IP con comas (,).

ModifyMode

String

No

No

Método para modificar la lista blanca de direcciones IP.

Valores válidos:

  • 0: sobrescribe y modifica la lista blanca de direcciones IP.

  • 1: agrega direcciones IP a la lista blanca.

  • 2: elimina direcciones IP de la lista blanca.

GroupName

String

No

No

Nombre de la lista blanca de direcciones IP.

Ninguna.

Valores de retorno

Fn::GetAtt

  • OrderId: ID del pedido.

  • DBInstanceName: nombre de la instancia.

  • Port: puerto interno de la instancia.

  • InnerConnectionString: cadena de conexión interna de la instancia.

Ejemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  TopologyType:
    Type: String
    Description: 'The topology type of the instance. Valid values: 3azones: The instance is deployed in three zones. 1azone: The instance is deployed in only one zone.'
    AllowedValues:
      - 1azone
      - 3azones
  EngineVersion:
    Type: String
    Description: The version of the database engine.
  VPCId:
    Type: String
    Description: The ID of the VPC to which the instance belongs.
  VSwitchId:
    Type: String
    Description: The ID of the vSwitch.
  DBNodeClass:
    Type: String
    Description: The specification of the nodes in the instance you want to create.
  DBNodeCount:
    Type: Number
    Description: The number of nodes in the instance you want to create.
    MinValue: 2
  PrimaryZone:
    Type: String
    Description: The primary zone.
Resources:
  DBInstance:
    Type: ALIYUN::PolarDBX::DBInstance
    Properties:
      TopologyType:
        Ref: TopologyType
      EngineVersion:
        Ref: EngineVersion
      VPCId:
        Ref: VPCId
      VSwitchId:
        Ref: VSwitchId
      DBNodeClass:
        Ref: DBNodeClass
      DBNodeCount:
        Ref: DBNodeCount
      PrimaryZone:
        Ref: PrimaryZone
Outputs:
  OrderId:
    Description: The ID of the order.
    Value:
      Fn::GetAtt:
        - DBInstance
        - OrderId
  DBInstanceName:
    Description: The name of the instance that you create.
    Value:
      Fn::GetAtt:
        - DBInstance
        - DBInstanceName
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "TopologyType": {
      "Type": "String",
      "Description": "The topology type of the instance. Valid values: 3azones: The instance is deployed in three zones. 1azone: The instance is deployed in only one zone.",
      "AllowedValues": [
        "1azone",
        "3azones"
      ]
    },
    "EngineVersion": {
      "Type": "String",
      "Description": "The version of the database engine."
    },
    "VPCId": {
      "Type": "String",
      "Description": "The ID of the VPC to which the instance belongs."
    },
    "VSwitchId": {
      "Type": "String",
      "Description": "The ID of the vSwitch."
    },
    "DBNodeClass": {
      "Type": "String",
      "Description": "The specification of the nodes in the instance you want to create."
    },
    "DBNodeCount": {
      "Type": "Number",
      "Description": "The number of nodes in the instance you want to create.",
      "MinValue": 2
    },
    "PrimaryZone": {
      "Type": "String",
      "Description": "The primary zone."
    }
  },
  "Resources": {
    "DBInstance": {
      "Type": "ALIYUN::PolarDBX::DBInstance",
      "Properties": {
        "TopologyType": {
          "Ref": "TopologyType"
        },
        "EngineVersion": {
          "Ref": "EngineVersion"
        },
        "VPCId": {
          "Ref": "VPCId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "DBNodeClass": {
          "Ref": "DBNodeClass"
        },
        "DBNodeCount": {
          "Ref": "DBNodeCount"
        },
        "PrimaryZone": {
          "Ref": "PrimaryZone"
        }
      }
    }
  },
  "Outputs": {
    "OrderId": {
      "Description": "The ID of the order.",
      "Value": {
        "Fn::GetAtt": [
          "DBInstance",
          "OrderId"
        ]
      }
    },
    "DBInstanceName": {
      "Description": "The name of the instance that you create.",
      "Value": {
        "Fn::GetAtt": [
          "DBInstance",
          "DBInstanceName"
        ]
      }
    }
  }
}