AddDnsCacheDomain
Adds an authoritative DNS proxy domain name based on the specified parameters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:AddDnsCacheDomain |
create |
*CacheDomain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
Specifies the language of the request and response. Valid values:
|
en |
| DomainName |
string |
Yes |
The domain name. You can call DescribeDomains to obtain the domain name. |
example.com |
| InstanceId |
string |
Yes |
The ID of the authoritative DNS proxy domain name instance. You can call ListCloudGtmInstances to obtain the instance ID. |
dns-cn-***** |
| CacheTtlMin |
integer |
Yes |
The minimum time-to-live (TTL) for back-to-origin cached data. Valid values: 30 to 86400. |
30 |
| CacheTtlMax |
integer |
Yes |
The maximum time-to-live (TTL) for back-to-origin cached data. Valid values: 30 to 86400. |
86400 |
| SourceProtocol |
string |
Yes |
The back-to-origin protocol. Valid values: TCP and UDP. Default value: UDP. |
UDP |
| SourceEdns |
string |
Yes |
Specifies whether the origin server supports EDNS. Valid values:
|
SUPPORT |
| Remark |
string |
No |
The remark. |
test |
| SourceDnsServer |
array<object> |
Yes |
The list of origin DNS servers. A maximum of 10 records are supported. |
|
|
object |
No |
The origin DNS server. |
||
| Host |
string |
Yes |
The domain name or IP address of the origin server. |
192.168.0.1 |
| Port |
string |
Yes |
The server port of the origin DNS server. |
53 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique request ID. |
B57C121B-A45F-44D8-A9B2-XXXXXXX |
Examples
Success response
JSON format
{
"RequestId": "B57C121B-A45F-44D8-A9B2-XXXXXXX"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.