AddPrivateDnsDomainName
Adds a private DNS domain name.
Operation description
This operation is typically used to retrieve the DNS resolution results of a domain name. Currently, only Alibaba Cloud DNS is supported for retrieving resolution results. The domain name to be queried must use Alibaba Cloud DNS to retrieve its resolution results.
QPS limits
The QPS limit per user for this operation is 10 queries per second. If the limit is exceeded, API calls are throttled, which may affect your services. Call this operation at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:AddPrivateDnsDomainName |
create |
*PrivateDNS
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AccessInstanceId |
string |
Yes |
The ID of the private DNS resolution instance. |
cfw-xxx |
| RegionNo |
string |
Yes |
The region ID of the instance. Note
For more information about the regions supported by Cloud Firewall, see Supported regions. |
cn-shenzhen |
| DomainNameList |
array |
Yes |
The list of private domain names to add. |
|
|
string |
No |
The list of private domain names to add. |
[ "internal.xxx.com", "api.xxx.com" ] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Id of the request |
F0F82705-CFC7-5F83-86C8-A063892F**** |
Examples
Success response
JSON format
{
"RequestId": "F0F82705-CFC7-5F83-86C8-A063892F****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorPrivateDnsNotFound | private dns not found. | The specified private DNS does not exist |
| 400 | ErrorPrivateDnsDomainName | private dns domain name error. | Private DNS domain name error |
| 400 | ErrorPrivateDnsDomainNameMaxLimit | the number of private DNS domain names exceeds the maximum limit. | The number of private DNS domain names exceeds the maximum specification limit |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.