Updated on 2023-08-11 GMT+08:00

CDN.Cache

Element Description

The CDN.Cache element is used to set cache policies for resources on CDN nodes.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

rules

No

Cache rule

Type: CDN.CacheRule Array

Value Description: Overwrites the previous rule configurations. If rules are blank, default rules are used.

domainId

Yes

Acceleration domain name ID

Type: HuaweiCloud.CDN.Domain.Id

Value Description: You are advised to use the get_input function to obtain the value, or connect to the CDN.Domain object and use the get_reference function to obtain the value.

ignoreUrlParameter

No

Whether to ignore URL parameters

Type: boolean

Value Description: false: indicates ignored. true: indicates not ignored.

Relationships Between Elements

Table 2 Relationship description

Description

Target

Connected

CDN.Domain

Return Value

Property

Type

Description

refID

string

Acceleration cache 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 
  cdnc3j3e: 
    type: HuaweiCloud.CDN.Cache 
    properties: 
      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: ''