Cria um customer gateway.
Sintaxe
{
"Type": "ALIYUN::VPC::CustomerGateway",
"Properties": {
"IpAddress": String,
"Description": String,
"Name": String,
"Asn": Integer,
"ResourceGroupId": String
}
}
Propriedades
|
Parâmetro |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
IpAddress |
String |
Sim |
Não |
Endereço IP do customer gateway. |
Nenhuma. |
|
Description |
String |
Não |
Sim |
Descrição do customer gateway. |
De 2 a 256 caracteres. Deve começar com uma letra ou caractere chinês. Não pode começar com |
|
Name |
String |
Não |
Sim |
Nome do customer gateway. |
De 2 a 128 caracteres. Deve começar com uma letra ou caractere chinês. Pode conter dígitos, pontos (.), sublinhados (_) e hifens (-). Não pode começar com |
|
Asn |
Integer |
Não |
Não |
ASN do dispositivo de gateway no seu data center. |
Número de 4 bytes em formato decimal de dois segmentos, em que um ponto (.) separa os primeiros 16 bits dos últimos 16 bits. Exemplo: 123.456 = 123 × 65536 + 456 = 8061384. |
|
ResourceGroupId |
String |
Não |
Não |
ID do grupo de recursos. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
CustomerGatewayId: o ID do customer gateway.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Resources:
CustomerGateway:
Type: ALIYUN::VPC::CustomerGateway
Properties:
IpAddress:
Ref: IpAddress
Description:
Ref: Description
Name:
Ref: Name
Parameters:
IpAddress:
Type: String
Description: The IP address of the customer gateway.
Description:
MinLength: 2
Type: String
Description: The description of the customer gateway. The value must be 2 to 256 characters in length. It must start with a letter or a Chinese character and cannot start with `http://` or `https://`.
MaxLength: 256
Name:
MinLength: 2
Type: String
Description: The name of the customer gateway. The value must be 2 to 128 characters in length. It must start with a letter or a Chinese character and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with `http://` or `https://`.
MaxLength: 128
Outputs:
CustomerGatewayId:
Description: The ID of the customer gateway.
Value:
Fn::GetAtt:
- CustomerGateway
- CustomerGatewayId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"CustomerGateway": {
"Type": "ALIYUN::VPC::CustomerGateway",
"Properties": {
"IpAddress": {
"Ref": "IpAddress"
},
"Description": {
"Ref": "Description"
},
"Name": {
"Ref": "Name"
}
}
}
},
"Parameters": {
"IpAddress": {
"Type": "String",
"Description": "The IP address of the customer gateway."
},
"Description": {
"MinLength": 2,
"Type": "String",
"Description": "The description of the customer gateway. The value must be 2 to 256 characters in length. It must start with a letter or a Chinese character and cannot start with `http://` or `https://`.",
"MaxLength": 256
},
"Name": {
"MinLength": 2,
"Type": "String",
"Description": "The name of the customer gateway. The value must be 2 to 128 characters in length. It must start with a letter or a Chinese character and can contain digits, periods (.), underscores (_), and hyphens (-). It cannot start with `http://` or `https://`.",
"MaxLength": 128
}
},
"Outputs": {
"CustomerGatewayId": {
"Description": "The ID of the customer gateway.",
"Value": {
"Fn::GetAtt": [
"CustomerGateway",
"CustomerGatewayId"
]
}
}
}
}