Updated on 2023-12-13 GMT+08:00

CDN.Domain

Element Description

The CDN.Domain element indicates the acceleration domain name.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

sources

Yes

Domain name or IP address of the source server

Type: CDN.Source Array

businessType

Yes

Domain name service type

Type: string

Value Description: web: indicates static acceleration. download: indicates download acceleration. video: indicates media stream acceleration.

domainName

Yes

Acceleration domain name

Type: string

Value Description: Indicates the international English domain name. The domain name supports a maximum of 50 characters. It consists of letters (A-Z; a-z; case-insensitive), digits (0-9), and hyphens (-), but cannot start or end with a hyphen (-). Domain names at different levels are connected by periods (.).

Relationships Between Elements

None.

Return Value

Property

Type

Description

refName

string

Acceleration domain name

refID

string

Acceleration domain name ID

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0 
node_templates: 
  cdnd4u36: 
    type: HuaweiCloud.CDN.Domain 
    properties: 
      sources: 
        - activeStandby: 
            get_input: cdnd4u36_sources_0_activeStandby 
          originType: 
            get_input: cdnd4u36_sources_0_originType 
          ipOrDomain: 
            get_input: cdnd4u36_sources_0_ipOrDomain 
      businessType: 
        get_input: cdnd4u36_businessType 
      domainName: 
        get_input: cdnd4u36_domainName 
  cdnhm6xf: 
    type: HuaweiCloud.CDN.Host 
    properties: 
      originHostType: 
        get_input: cdnhm6xf_originHostType 
      domainId: 
        get_reference: cdnd4u36 
    requirements: 
      - domainId: 
          node: cdnd4u36 
inputs: 
  cdnd4u36_sources_0_activeStandby: 
    description: Active/standby status 
    default: master 
    label: '' 
  cdnd4u36_sources_0_originType: 
    description: Source site type 
    label: '' 
  cdnd4u36_sources_0_ipOrDomain: 
    description: Source IP address or domain name 
    label: '' 
  cdnd4u36_businessType: 
    description: Domain name service type 
    label: '' 
  cdnd4u36_domainName: 
    description: Acceleration domain name. 
    label: '' 
  cdnhm6xf_originHostType: 
    description: Retrieval host type 
    label: ''