Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::POLARDB::Application

Última atualização: Jun 27, 2026

Cria um endereço de endpoint público para um cluster PolarDB.

Sintaxe

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

Propriedades

Nome da propriedade

Tipo

Obrigatório

Atualizável

Descrição

Restrição

ApplicationId

String

Sim

Não

ID da aplicação.

Nenhuma

EndpointId

String

Sim

Não

ID do endpoint.

Nenhuma

NetType

String

Sim

Não

Tipo de rede do endereço de conexão.

Valores:

  • Public: rede pública.

Valores de retorno

Fn::GetAtt

  • PrivateEndpoint: endpoint da VPC.

  • PublicEndpoint: endpoint público.

Exemplos

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