Membuat customer gateway.
Syntax
{
"Type": "ALIYUN::VPC::CustomerGateway",
"Properties": {
"IpAddress": String,
"Description": String,
"Name": String,
"Asn": Integer,
"ResourceGroupId": String
}
}Properties
Parameter | Type | Required | Editable | Description | Constraint |
IpAddress | String | Yes | No | Alamat IP dari customer gateway. | None. |
Description | String | No | Yes | Deskripsi dari customer gateway. | Deskripsi harus terdiri dari 2 hingga 256 karakter, dimulai dengan huruf atau karakter Tionghoa, dan tidak boleh diawali dengan |
Name | String | No | Yes | Nama dari customer gateway. | Nama harus terdiri dari 2 hingga 128 karakter. Nama harus dimulai dengan huruf atau karakter Tionghoa dan dapat berisi angka, titik (.), garis bawah (_), serta tanda hubung (-). Nama tidak boleh diawali dengan |
Asn | Integer | No | No | Nomor sistem otonom (ASN) untuk perangkat gateway di data center Anda. | Asn adalah angka 4-byte yang dapat dimasukkan dalam format desimal dua segmen. Dalam format ini, titik (.) memisahkan 16 bit pertama dari 16 bit terakhir. Sebagai contoh, jika Anda memasukkan 123.456, nomor sistem otonomnya adalah 8061384. Perhitungannya: 123 * 65536 + 456 = 8061384. |
ResourceGroupId | String | No | No | ID kelompok sumber daya. | None. |
Return values
Fn::GetAtt
CustomerGatewayId: ID customer gateway.
Examples
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"
]
}
}
}
}