ALIYUN::CEN::CenRouteService is used to access an Alibaba Cloud service.
For more information about Alibaba Cloud services, see Description.
Syntax
{
"Type": "ALIYUN::CEN::CenRouteService",
"Properties": {
"Description": String,
"HostRegionId": String,
"CenId": String,
"AccessRegionId": String,
"Host": String,
"HostVpcId": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Description | String | No | No | The description of the cloud service. | The description must be 2 to 256 characters in length, and can contain letters, digits,
hyphens (-), periods (.), and underscores (_). It must start with a letter and cannot
start with http:// or https:// .
|
HostRegionId | String | Yes | No | The region ID of the cloud service. | None. |
CenId | String | Yes | No | The ID of the Cloud Enterprise Network (CEN) instance. | You can call the CreateCen operation to query the instance ID. For more information, see CreateCen. |
AccessRegionId | String | Yes | No | The region ID of the cloud service that you want to access. | You can call the DescribeChildInstanceRegions operation to query the most recent region list. For more information, see DescribeChildInstanceRegions. |
Host | String | Yes | No | The IP addresses or CIDR blocks of the cloud service. |
In most cases, multiple IP addresses or CIDR blocks are attached to the cloud service. We recommend that you specify the ALIYUN::CEN::CenRouteService resource type multiple times to add all IP addresses and CIDR blocks of the cloud service. |
HostVpcId | String | Yes | No | The ID of the virtual private cloud (VPC) that is associated with the cloud service. | None. |
Response parameters
Fn::GetAtt
Id: the ID of the cloud service. The ID is in the {the CenId value}/{the HostRegionId value}/{the Host value}/{the AccessRegionId value}
format.
Examples
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"HostRegionId": {
"Type": "String",
"Description": "The region where the cloud service is deployed.\nYou can call the DescribeRegions operation to query region IDs.\nNote The HostRegionId and AccessRegionIds.N must be set to the same value.",
"Default": "cn-hangzhou"
},
"CenId": {
"Type": "String",
"Description": "The ID of the Cloud Enterprise Network (CEN) instance.",
"Default": "cen-2****"
},
"AccessRegionId": {
"Type": "String",
"Description": "The region where the cloud service is deployed.",
"Default": "cn-hangzhou"
},
"Host": {
"Type": "String",
"Description": "The domain or IP address of the cloud service.",
"Default": "100.118.28.0/24"
},
"HostVpcId": {
"Type": "String",
"Description": "The virtual private cloud (VPC) that is associated with the cloud service.",
"Default": "vpc-2****"
}
},
"Resources": {
"CenRouteService": {
"Type": "ALIYUN::CEN::CenRouteService",
"Properties": {
"Description": {
"Ref": "Description"
},
"HostRegionId": {
"Ref": "HostRegionId"
},
"CenId": {
"Ref": "CenId"
},
"AccessRegionId": {
"Ref": "AccessRegionId"
},
"Host": {
"Ref": "Host"
},
"HostVpcId": {
"Ref": "HostVpcId"
}
}
}
},
"Outputs": {
"Id": {
"Description": "The ID of the cloud service. It is formatted to {CenId}/{HostRegionId}/{Host}/{AccessRegionId}",
"Value": {
"Fn::GetAtt": [
"CenRouteService",
"Id"
]
}
}
}
}