更新时间:2023-12-13 GMT+08:00

CDN.Domain

模型说明

创建加速域名。

模型属性

表1 模型定义属性说明

属性

是否必选

描述

sources

源站域名或源站IP

参数类型:CDN.Source数组

businessType

域名业务类型

参数类型:string

取值说明:若为web,则表示类型为静态加速;若为download,则表示业务类型为下载加速;若为video,则表示业务类型为流媒体加速。

取值约束:{u'valid_values': [u'web', u'download', u'video']}

domainName

加速域名

参数类型:string

取值说明:国际英文域名:域名用字母(A-Z,a-z,大小写等价)、数字(0-9)和连接符(-)组成,各级域名之间用实点(.)连接,最多50个字符,连接符(-)不能作为域名的开头或结尾字符

关联关系

输出

属性

参数类型

描述

refName

string

加速域名的名称

refID

string

加速域名的ID

blueprint样例

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: 主备状态
    default: master
    label: ''
  cdnd4u36_sources_0_originType:
    description: 源站类型
    label: ''
  cdnd4u36_sources_0_ipOrDomain:
    description: 源站IP或者域名
    label: ''
  cdnd4u36_businessType:
    description: 域名业务类型
    label: ''
  cdnd4u36_domainName:
    description: 加速域名。
    label: ''
  cdnhm6xf_originHostType:
    description: 回源HOST类型
    label: ''