Cria uma instância do Tablestore.
Sintaxe
{
"Type": "ALIYUN::OTS::InstanceV2",
"Properties": {
"ClusterType": String,
"InstanceName": String,
"InstanceDescription": String,
"NetworkSourceACL": List,
"NetworkTypeACL": List,
"ResourceGroupId": String,
"Tags": List
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
ClusterType |
String |
Sim |
Não |
Tipo de cluster da instância. |
Valores válidos:
|
|
InstanceName |
String |
Sim |
Não |
Nome da instância. |
Convenções de nomenclatura:
|
|
InstanceDescription |
String |
Não |
Sim |
Descrição da instância. |
Deve ter entre 3 e 256 caracteres. |
|
NetworkSourceACL |
List |
Não |
Sim |
Origens de rede autorizadas a acessar a instância. |
Especifique até 1 source de rede. Valores válidos:
|
|
NetworkTypeACL |
List |
Não |
Sim |
Tipos de rede com acesso permitido. |
Especifique até 3 tipos de rede. Valores válidos:
|
|
ResourceGroupId |
String |
Não |
Sim |
ID do grupo de recursos. |
Nenhuma |
|
Tags |
List |
Não |
Sim |
Tags para associar à instância. |
Adicione até 20 tags. Para mais informações, consulte Propriedades de Tags. |
Sintaxe de Tags
"Tags": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tags
|
Nome da propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
Key |
String |
Sim |
Não |
Chave da tag. |
Nenhuma |
|
Value |
String |
Sim |
Não |
Valor da tag. |
Nenhuma |
Valores de retorno
Fn::GetAtt
InstanceName: nome da instância do Tablestore.
Exemplo
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceName:
Type: String
Description:
en: |
Instance name.The naming specifications for instances are as follows:
Must consist of English letters, numbers or dash lines (-).
The first character must be in English letters.
The end character cannot be a dash (-).
Insensitive case.
The length is between 3 and 16 characters.
Required: true
AllowedPattern: '[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9]$'
MinLength: 3
MaxLength: 16
ClusterType:
Type: String
Description:
en: |-
Cluster type (i.e. instance specification).
Enumeration values:
SSD: High performance.
HYBRID: Capacity type.
AllowedValues:
- SSD
- HYBRID
Required: true
Resources:
InstanceV2:
Type: ALIYUN::OTS::InstanceV2
Properties:
InstanceName:
Ref: InstanceName
ClusterType:
Ref: ClusterType
Outputs:
InstanceName:
Description: Name of the tablestore instance.
Value:
Fn::GetAtt:
- InstanceV2
- InstanceName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceName": {
"Type": "String",
"Description": {
"en": "Instance name.The naming specifications for instances are as follows:\nMust consist of English letters, numbers or dash lines (-).\nThe first character must be in English letters.\nThe end character cannot be a dash (-).\nInsensitive case.\nThe length is between 3 and 16 characters.\n"
},
"Required": true,
"AllowedPattern": "[A-Za-z][A-Za-z0-9\\-]*[A-Za-z0-9]$",
"MinLength": 3,
"MaxLength": 16
},
"ClusterType": {
"Type": "String",
"Description": {
"en": "Cluster type (i.e. instance specification).\nEnumeration values:\nSSD: High performance.\nHYBRID: Capacity type."
},
"AllowedValues": [
"SSD",
"HYBRID"
],
"Required": true
}
},
"Resources": {
"InstanceV2": {
"Type": "ALIYUN::OTS::InstanceV2",
"Properties": {
"InstanceName": {
"Ref": "InstanceName"
},
"ClusterType": {
"Ref": "ClusterType"
}
}
}
},
"Outputs": {
"InstanceName": {
"Description": "Name of the tablestore instance.",
"Value": {
"Fn::GetAtt": [
"InstanceV2",
"InstanceName"
]
}
}
}
}