All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::CDN::Domains

Last Updated:May 29, 2023

DATASOURCE::CDN::Domains is used to query information about Content Delivery Network (CDN) domain names.

Syntax

{
  "Type": "DATASOURCE::CDN::Domains",
  "Properties": {
    "DomainName": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

DomainName

String

Yes

Yes

The CDN domain name.

None

Return values

Fn::GetAtt

  • Domains: the details of the CDN domain names.

  • DomainNames: the list of CDN domain names.

Property

Type

Description

Constraint

DomainNames

List

The list of CDN domain names.

None

Domains

List

Details of the CDN domain names.

None

Status

String

The status of the CDN domain name.

None

CdnType

String

The workload type of the CDN domain name.

None

CertificateConfig

List

The configurations of the CDN domain name.

None

Sources

List

The information about the origin servers.

None

DomainName

String

The CDN domain name.

None

ResourceGroupId

String

The ID of the resource group.

None

Cname

String

The CNAME that is assigned to the CDN domain name.

You must add the CNAME record in the system of your DNS service provider to map the CDN domain name to the CNAME.

Scope

String

The acceleration region.

None

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DomainName:
    Description: The accelerated domain name. You can specify only one domain name.
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      DomainName:
        Ref: DomainName
    Type: DATASOURCE::CDN::Domains
Outputs:
  DomainNames:
    Description: The list of domain names.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - DomainNames
  Domains:
    Description: The list of domains.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Domains                       

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DomainName": {
      "Type": "String",
      "Description": "The accelerated domain name. You can specify only one domain name."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CDN::Domains",
      "Properties": {
        "DomainName": {
          "Ref": "DomainName"
        }
      }
    }
  },
  "Outputs": {
    "Domains": {
      "Description": "The list of domains.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Domains"
        ]
      }
    },
    "DomainNames": {
      "Description": "The list of domain names.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DomainNames"
        ]
      }
    }
  }
}