全部产品
Search
文档中心

资源编排:ALIYUN::POLARDB::Application

更新时间:Feb 26, 2026

ALIYUN::POLARDB::ApplicationEndpointAddress类型用于创建集群公网连接地址。

语法

{
  "Type": "ALIYUN::POLARDB::ApplicationEndpointAddress",
  "Properties": {
    "ApplicationId": String,
    "EndpointId": String,
    "NetType": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ApplicationId

String

应用ID。

EndpointId

String

连接地址 ID。

NetType

String

新增连接地址的网络类型。

取值:

  • Public:公网。

返回值

Fn::GetAtt

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  EndpointId:
    Type: String
    Description:
      en: The id of the endpoint.
    Required: true
  ApplicationId:
    Type: String
    Description:
      en: The id of the application.
    Required: true
  NetType:
    AssociationPropertyMetadata:
      LocaleKey: NetType
    Type: String
    Description:
      en: Network type for adding connection address.
    AllowedValues:
      - Public
    Required: true
Resources:
  ApplicationEndpointAddress:
    Type: ALIYUN::POLARDB::ApplicationEndpointAddress
    Properties:
      EndpointId:
        Ref: EndpointId
      ApplicationId:
        Ref: ApplicationId
      NetType:
        Ref: NetType
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "EndpointId": {
      "Type": "String",
      "Description": {
        "en": "The id of the endpoint."
      },
      "Required": true
    },
    "ApplicationId": {
      "Type": "String",
      "Description": {
        "en": "The id of the application."
      },
      "Required": true
    },
    "NetType": {
      "AssociationPropertyMetadata": {
        "LocaleKey": "NetType"
      },
      "Type": "String",
      "Description": {
        "en": "Network type for adding connection address."
      },
      "AllowedValues": [
        "Public"
      ],
      "Required": true
    }
  },
  "Resources": {
    "ApplicationEndpointAddress": {
      "Type": "ALIYUN::POLARDB::ApplicationEndpointAddress",
      "Properties": {
        "EndpointId": {
          "Ref": "EndpointId"
        },
        "ApplicationId": {
          "Ref": "ApplicationId"
        },
        "NetType": {
          "Ref": "NetType"
        }
      }
    }
  }
}