DATASOURCE::SLB::DomainExtensions is used to query the domain name extensions that are added to a listener of a Server Load Balancer (SLB) instance.

Syntax

{
  "Type": "DATASOURCE::SLB::DomainExtensions",
  "Properties": {
    "ListenerPort": Integer,
    "DomainExtensionId": String,
    "LoadBalancerId": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
ListenerPortIntegerYesYesThe frontend port used by the HTTPS listener of the SLB instance. Valid values: 1 to 65535.
DomainExtensionIdStringNoYesThe ID of the domain name extension. None.
LoadBalancerIdStringYesYesThe ID of the SLB instance. None.

Return values

Fn::GetAtt

  • DomainExtensions: details of the domain name extensions.
  • DomainExtensionIds: the IDs of the domain name extensions.
PropertyTypeDescriptionConstraint
DomainExtensionIdsListThe IDs of the domain name extensions. None.
DomainExtensionsListDetails of the domain name extensions. None.
DomainStringThe domain name. None.
DomainExtensionIdStringThe ID of the domain name extension. None.
ServerCertificateIdStringThe ID of the server certificate that is used by the domain name. None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      LoadBalancerId:
        Type: String
        AssociationProperty: ALIYUN::SLB::Instance::InstanceId
        Description: The ID of the CLB instance.
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::SLB::DomainExtensions
        Properties:
          ListenerPort: 3566
          LoadBalancerId:
            Ref: LoadBalancerId
    Outputs:
      DomainExtensions:
        Description: The list of domain extensions.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - DomainExtensions
      DomainExtensionIds:
        Description: The list of domain extension IDs.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - DomainExtensionIds
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "LoadBalancerId": {
          "Type": "String",
          "AssociationProperty":"ALIYUN::SLB::Instance::InstanceId",
          "Description": "The ID of the CLB instance."
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::SLB::DomainExtensions",
          "Properties": {
            "ListenerPort": 3566,
            "LoadBalancerId": {
              "Ref": "LoadBalancerId"
            }
          }
        }
      },
      "Outputs": {
        "DomainExtensions": {
          "Description": "The list of domain extensions.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "DomainExtensions"
            ]
          }
        },
        "DomainExtensionIds": {
          "Description": "The list of domain extension IDs.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "DomainExtensionIds"
            ]
          }
        }
      }
    }