全部产品
Search
文档中心

资源编排:DATASOURCE::CDN::Domain

更新时间:Dec 09, 2024

DATASOURCE::CDN::Domain类型用于查询域名详情。

语法

{
  "Type": "DATASOURCE::CDN::Domain",
  "Properties": {
    "DomainName": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DomainName

String

加速域名信息。

RefreshOptions

String

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

有效值:

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

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

返回值

Fn::GetAtt

  • ResourceGroupId:资源组ID。

  • Scope:加速区域。

  • DomainName:加速域名信息。

  • CertificateConfig:证书配置。

  • CdnType:加速域名的业务类型。

  • Sources:源站

  • Cname:CNAME 域名

  • Tags:域名绑定的标签信息。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DomainName:
    Type: String
    Description:
      en: The accelerated domain name.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::CDN::Domain
    Properties:
      DomainName:
        Ref: DomainName
Outputs:
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  Scope:
    Description: The acceleration region.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Scope
  DomainName:
    Description: The accelerated domain name.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DomainName
  CertificateConfig:
    Description: Certificate configuration.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CertificateConfig
  CdnType:
    Description: The workload type of the accelerated domain name.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - CdnType
  Sources:
    Description: The information about the origin server.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Sources
  Cname:
    Description: The CNAME that is assigned to the accelerated domain name.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Cname
  Tags:
    Description: The tags of the resource.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Tags
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DomainName": {
      "Type": "String",
      "Description": {
        "en": "The accelerated domain name."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::CDN::Domain",
      "Properties": {
        "DomainName": {
          "Ref": "DomainName"
        }
      }
    }
  },
  "Outputs": {
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "Scope": {
      "Description": "The acceleration region.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Scope"
        ]
      }
    },
    "DomainName": {
      "Description": "The accelerated domain name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DomainName"
        ]
      }
    },
    "CertificateConfig": {
      "Description": "Certificate configuration.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CertificateConfig"
        ]
      }
    },
    "CdnType": {
      "Description": "The workload type of the accelerated domain name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CdnType"
        ]
      }
    },
    "Sources": {
      "Description": "The information about the origin server.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Sources"
        ]
      }
    },
    "Cname": {
      "Description": "The CNAME that is assigned to the accelerated domain name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Cname"
        ]
      }
    },
    "Tags": {
      "Description": "The tags of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Tags"
        ]
      }
    }
  }
}