Crie uma instância do PolarDB for Xscale (PolarDB-X).
Sintaxe
{
"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
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
TopologyType |
String |
Sim |
Não |
Tipo de topologia. |
Valores válidos:
|
|
EngineVersion |
String |
Sim |
Não |
Versão do mecanismo de banco de dados. |
|
|
ResourceGroupId |
String |
Não |
Não |
ID do grupo de recursos. |
Nenhuma. |
|
VPCId |
String |
Sim |
Não |
ID da VPC. |
Nenhuma. |
|
AutoRenew |
Boolean |
Não |
Não |
Defina se a renovação automática está ativada. |
Valores válidos:
|
|
VSwitchId |
String |
Sim |
Não |
ID do vSwitch. |
Nenhuma. |
|
Period |
String |
Não |
Não |
Unidade do ciclo de faturamento. |
|
|
PayType |
String |
Não |
Não |
Método de faturamento da instância. |
|
|
DBNodeClass |
String |
Sim |
Não |
Especificação do nó. |
Valores válidos:
|
|
SecondaryZone |
String |
Não |
Não |
Zona secundária. |
Nenhuma. |
|
TertiaryZone |
String |
Não |
Não |
Zona terciária. |
Nenhuma. |
|
DBNodeCount |
Integer |
Sim |
Não |
Número de nós na instância. |
A instância deve ter pelo menos dois nós. |
|
PrimaryZone |
String |
Sim |
Não |
Zona primária. |
Nenhuma. |
|
UsedTime |
Integer |
Não |
Não |
Duração da assinatura. |
Nota
Valores válidos quando Period é definido como Year: 1, 2 e 3. |
|
DBInstanceDescription |
String |
Não |
Sim |
Descrição da instância. |
Nenhuma. |
|
SecurityIpConfig |
Map |
Não |
Não |
Configuração da lista de permissões de endereços IP da instância. |
Para mais informações, consulte Propriedades de SecurityIpConfig. |
Sintaxe de SecurityIpConfig
"SecurityIpConfig": {
"SecurityIPList": String,
"ModifyMode": String,
"GroupName": String
}
Propriedades de SecurityIpConfig
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
SecurityIPList |
String |
Não |
Não |
Endereços IP na lista de permissões. |
Separe vários endereços IP com vírgulas (,). |
|
ModifyMode |
String |
Não |
Não |
Modo de modificação da lista de permissões de endereços IP. |
Valores válidos:
|
|
GroupName |
String |
Não |
Não |
Nome da lista de permissões de endereços IP. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
OrderId: ID do pedido.
DBInstanceName: nome da instância.
Port: porta interna da instância.
InnerConnectionString: string de conexão interna da instância.
Exemplos
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"
]
}
}
}
}