ALIYUN::GA::BasicEndpoint is used to create an endpoint for a basic Global Accelerator (GA) instance.
Syntax
{
"Type": "ALIYUN::GA::BasicEndpoint",
"Properties": {
"AcceleratorId": String,
"EndpointGroupId": String,
"EndpointAddress": String,
"EndpointZoneId": String,
"EndpointType": String,
"EndpointSubAddressType": String,
"EndpointSubAddress": String,
"Name": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
AcceleratorId | String | Yes | No | The ID of the basic GA instance. | None. |
EndpointGroupId | String | Yes | No | The endpoint group ID of the basic GA instance. | None. |
EndpointAddress | String | Yes | No | The address of the endpoint. | None. |
EndpointZoneId | String | No | No | The zone ID of the endpoint. | None. |
EndpointType | String | No | No | The endpoint type. | Valid values:
|
EndpointSubAddressType | String | No | No | The secondary address type of the endpoint. | Valid values:
You must specify this property when EndpointType is set to ECS, ENI, or NLB. If you set EndpointType to NLB, you must set EndpointSubAddressType to primary. |
EndpointSubAddress | String | No | No | The secondary address of the endpoint. | You must specify this property when EndpointType is set to ECS, ENI, or NLB.
|
Name | String | No | No | The name of the endpoint that you want to create for the basic GA instance. | The name must be 1 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. |
Return values
Fn::GetAtt
EndpointId: the endpoint ID of the basic GA instance.
Examples
You must change the masked values of properties, such as the EndpointGroupId, AcceleratorId, and EndpointAddress properties, based on your business requirements.
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
ExtensionResource:
Type: ALIYUN::GA::BasicEndpoint
Properties:
EndpointGroupId: epg-bp1dmlohjjz4kqaun****
EndpointType: ENI
EndpointSubAddressType: primary
EndpointSubAddress: 192.168.0.8
AcceleratorId: ga-bp17frjjh0udz4qz****
Name: demo_28911
EndpointAddress: eni-bp1a05txelswuj8g****
Outputs:
EndpointId:
Description: The ID of the endpoint.
Value:
Fn::GetAtt:
- ExtensionResource
- EndpointId
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::GA::BasicEndpoint",
"Properties": {
"EndpointGroupId": "epg-bp1dmlohjjz4kqaun****",
"EndpointType": "ENI",
"EndpointSubAddressType": "primary",
"EndpointSubAddress": "192.168.0.8",
"AcceleratorId": "ga-bp17frjjh0udz4qz****",
"Name": "demo_28911",
"EndpointAddress": "eni-bp1a05txelswuj8g****"
}
}
},
"Outputs": {
"EndpointId": {
"Description": "The ID of the endpoint.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EndpointId"
]
}
}
}
}