Adds a private DNS domain name.
Operation description
This operation is used to obtain DNS resolution results for a domain name. Currently, only resolution results from Alibaba Cloud DNS are supported. The domain name that you want to query must use Alibaba Cloud DNS before you can obtain its resolution results.
QPS limit
The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at an appropriate 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.