Crie um nó de dados do ZooKeeper no Microservices Engine (MSE).
Sintaxe
{
"Type": "ALIYUN::MSE::Znode",
"Properties": {
"ClusterId": String,
"Path": String,
"Data": String,
"InstanceId": String,
"Type": String
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatório |
Atualização permitida |
Descrição |
Restrições |
|
ClusterId |
String |
Sim |
Não |
ID do cluster. |
Nenhuma |
|
Path |
String |
Sim |
Não |
Caminho do nó. |
Nenhuma |
|
Data |
String |
Não |
Não |
Dados do nó. |
Nenhuma |
|
InstanceId |
String |
Não |
Não |
ID da instância. |
Nenhuma |
|
Type |
String |
Não |
Não |
Tipo do nó. |
Nenhuma |
Valor de retorno
Fn::GetAtt
Nenhum
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Path:
Type: String
Description:
en: The path of the znode.
Required: true
ClusterId:
Type: String
Description:
en: The ID of the cluster.
Required: true
Resources:
Znode:
Type: ALIYUN::MSE::Znode
Properties:
Path:
Ref: Path
ClusterId:
Ref: ClusterId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Path": {
"Type": "String",
"Description": {
"en": "The path of the znode."
},
"Required": true
},
"ClusterId": {
"Type": "String",
"Description": {
"en": "The ID of the cluster."
},
"Required": true
}
},
"Resources": {
"Znode": {
"Type": "ALIYUN::MSE::Znode",
"Properties": {
"Path": {
"Ref": "Path"
},
"ClusterId": {
"Ref": "ClusterId"
}
}
}
}
}