文档

ALIYUN::GA::BasicEndpointGroup

更新时间:

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

语法

{
  "Type": "ALIYUN::GA::BasicEndpointGroup",
  "Properties": {
    "AcceleratorId": String,
    "EndpointGroupRegion": String,
    "Description": String,
    "EndpointType": String,
    "EndpointSubAddress": String,
    "EndpointAddress": String,
    "Name": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AcceleratorId

String

基础型全球加速实例ID。

EndpointGroupRegion

String

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

您可以通过调用ListAvailableBusiRegions - 列出可用的业务区域接口获取地域ID。

Description

String

基础型全球加速实例的终端节点组描述信息。

描述长度最大200字符,不能以http://https://开头。

EndpointType

String

终端节点类型。

取值:

  • ENI:阿里云弹性网卡。

  • SLB:阿里云CLB实例。

  • ECS:阿里云ECS实例。

EndpointSubAddress

String

终端节点辅助地址。

当加速IP绑定到ECS辅助私网IP地址或ENI辅助私网IP时,需配置该参数。

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

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

EndpointAddress

String

终端节点的地址。

Name

String

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

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

返回值

Fn::GetAtt

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

示例

说明

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

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  ExtensionResource:
    Type: ALIYUN::GA::BasicEndpointGroup
    Properties:
      EndpointGroupRegion: cn-shanghai
      EndpointType: ENI
      EndpointSubAddress: 192.168.0.8
      AcceleratorId: ga-bp17frjjh0udz4qz****
      EndpointAddress: eni-bp1a05txelswuj8g****
      Name: test_823
Outputs:
  EndpointGroupId:
    Description: The endpoint group ID.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - EndpointGroupId

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::GA::BasicEndpointGroup",
      "Properties": {
        "EndpointGroupRegion": "cn-shanghai",
        "EndpointType": "ENI",
        "EndpointSubAddress": "192.168.0.8",
        "AcceleratorId": "ga-bp17frjjh0udz4qz****",
        "EndpointAddress": "eni-bp1a05txelswuj8g****",
        "Name": "test_823"
      }
    }
  },
  "Outputs": {
    "EndpointGroupId": {
      "Description": "The endpoint group ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "EndpointGroupId"
        ]
      }
    }
  }
}