文档

ALIYUN::GA::BasicEndpoint

更新时间:

ALIYUN::GA::BasicEndpoint类型用于为基础型全球加速实例创建终端节点。

语法

{
  "Type": "ALIYUN::GA::BasicEndpoint",
  "Properties": {
    "AcceleratorId": String,
    "EndpointGroupId": String,
    "EndpointAddress": String,
    "EndpointZoneId": String,
    "EndpointType": String,
    "EndpointSubAddressType": String,
    "EndpointSubAddress": String,
    "Name": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AcceleratorId

String

基础型全球加速实例ID。

EndpointGroupId

String

基础型全球加速实例的终端节点组ID。

EndpointAddress

String

终端节点的地址。

EndpointZoneId

String

终端节点所在可用区ID。

EndpointType

String

终端节点类型。

取值:

  • ENI:阿里云弹性网卡。

  • SLB:阿里云CLB实例。

  • ECS:阿里云ECS实例。

  • NLB:阿里云NLB实例。

EndpointSubAddressType

String

终端节点辅助地址的类型。

取值:

  • primary:终端节点辅助地址的类型为主私网IP。

  • secondary:终端节点辅助地址的类型为辅助私网IP。

当终端节点类型为ECSENINLB时,需配置该参数。其中,终端节点类型为NLB时,仅支持primary类型。

EndpointSubAddress

String

终端节点辅助地址。

当终端节点类型为ECSENINLB时,需配置该参数。

  • 当终端节点类型为ECS时,EndpointSubAddress可以为主网卡的辅助私网IP,为空表示主网卡的主私网IP。

  • 当终端节点类型为ENI时,EndpointSubAddress可以为辅助网卡的辅助私网IP,为空表示辅助网卡的主私网IP。

  • 当终端节点类型为NLB时,该参数必填,EndpointSubAddress为NLB后端服务器的主私网IP。

Name

String

基础型全球加速实例终端节点的名称。

名称长度为 1~128 个字符,以大小写字母或中文开头,可包含数字、半角句号(.)、下划线(_)和短划线(-)。

返回值

Fn::GetAtt

EndpointId:基础型全球加速实例的终端节点ID。

示例

说明

请您根据实际情况更改脱敏的参数取值,例如EndpointGroupId、AcceleratorId、EndpointAddress。

YAML格式

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格式

{
  "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"
        ]
      }
    }
  }
}