CDN.Host
Element Description
The CDN.Host element can be used to modify the retrieval host. The retrieval host information indicates the host information contained in an HTTP request header. A retrieval host is the site domain name accessed by CDN nodes during retrieval.
Element Properties
Property |
Required |
Descripiton |
---|---|---|
originHostType |
Yes |
Retrieval host type Type: string Value Description: accelerate: Select the acceleration domain name as the retrieval address. customize: Use the auto-defined domain name as the retrieval address. |
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. |
customizeDomain |
No |
Customized domain name of the source server Type: string Value Description: Customizes the retrieval domain name. When the value of originHostType is customize, this parameter is needed. |
Relationships Between Elements
Description |
Target |
---|---|
Connected |
Return Value
Property |
Type |
Description |
---|---|---|
refID |
string |
CDN host 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: ''
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.