create_site_cname_record
Create a CNAME DNS record for a website to map a domain alias to a target domain. Specify site ID, record name, and target domain, with optional TTL, business scenario, and origin host policy.
Instructions
Creates a DNS record for a specific website. Only supports records with type=CNAME and sourceType=Domain.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bizName | No | The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values: - image_video - api - web | |
comment | No | The comment of the record. The maximum length is 100 characters. | |
data | Yes | The DNS record information. The format of this field varies based on the record type. For more information, see https://www.alibabacloud.com/help/doc-detail/2708761.html | |
hostPolicy | No | The origin host policy. This policy takes effect when the record type is CNAME. Required. You can set the policy in two modes: - follow_hostname - follow_origin_domain | |
recordName | Yes | The record name. | |
siteId | Yes | The website ID, which can be obtained by calling the [ListSites] operation. | |
sourceType | No | The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values: - Domain: domain name If you do not pass this parameter or if you leave its value empty, Domain is used by default. | |
ttl | No | The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system. Default: 1. |