DATASOURCE::SLB::DomainExtension

更新时间:2025-04-07 03:06:52

DATASOURCE::SLB::DomainExtension类型用于查询已添加的扩展域名属性。

语法

{
  "Type": "DATASOURCE::SLB::DomainExtension",
  "Properties": {
    "DomainExtensionId": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

DomainExtensionId

String

扩展域名 ID。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • DomainExtensionId:扩展域名ID。

  • ListenerPort:负载均衡实例HTTPS监听的前端端口。

  • ServerCertificateId:域名使用的服务器证书 ID。

  • LoadBalancerId:负载均衡实例 ID。

  • Domain:域名。

示例

YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DomainExtensionId:
    Type: String
    Description:
      en: The ID of the additional certificate.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::SLB::DomainExtension
    Properties:
      DomainExtensionId:
        Ref: DomainExtensionId
Outputs:
  DomainExtensionId:
    Description: The ID of the additional certificate.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DomainExtensionId
  ListenerPort:
    Description: 'The frontend port of the HTTPS listener that is configured for the SLB instance. Valid values: 1 to 65535.'
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ListenerPort
  ServerCertificateId:
    Description: The ID of the server certificate that is used by the domain name.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ServerCertificateId
  LoadBalancerId:
    Description: The ID of the SLB instance.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - LoadBalancerId
  Domain:
    Description: The domain name.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Domain
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DomainExtensionId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the additional certificate."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::SLB::DomainExtension",
      "Properties": {
        "DomainExtensionId": {
          "Ref": "DomainExtensionId"
        }
      }
    }
  },
  "Outputs": {
    "DomainExtensionId": {
      "Description": "The ID of the additional certificate.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DomainExtensionId"
        ]
      }
    },
    "ListenerPort": {
      "Description": "The frontend port of the HTTPS listener that is configured for the SLB instance. Valid values: 1 to 65535.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ListenerPort"
        ]
      }
    },
    "ServerCertificateId": {
      "Description": "The ID of the server certificate that is used by the domain name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ServerCertificateId"
        ]
      }
    },
    "LoadBalancerId": {
      "Description": "The ID of the SLB instance.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "LoadBalancerId"
        ]
      }
    },
    "Domain": {
      "Description": "The domain name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Domain"
        ]
      }
    }
  }
}
                        
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回值
  • 示例