AddDomainResolveRealtimeTask
Creates a real-time domain name resolution task.
Operation description
Creates a real-time domain name resolution task for a specified domain name.
Before you begin
Before calling this operation, you must activate Cloud Firewall. You can activate it on the Cloud Firewall buy page (Chinese site: https://common-buy.aliyun.com/?commodityCode=cfw_sub_public_cn; International site: https://common-buy-intl.alibabacloud.com/?commodityCode=cfw_sub_public_intl).
You can call the DescribeUserBuyVersion operation to query the UserStatus parameter. If false is returned, the current account has not purchased or activated Cloud Firewall.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:AddDomainResolveRealtimeTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionNo |
string |
No |
The region ID. |
cn-shanghai |
| FirewallType |
string |
No |
The Cloud Firewall type. Valid values:
|
internet |
| DomainName |
string |
No |
The domain name. |
example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The ID of the request. |
||
| RequestId |
string |
The ID of the request. |
337A4DBA-8A01-5E9C-99CA-84293E13**** |
Examples
Success response
JSON format
{
"RequestId": "337A4DBA-8A01-5E9C-99CA-84293E13****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
| 400 | ErrorFirewallTypeDuplicates | firewallType duplicates. | firewallType duplicates. |
| 400 | ErrorDomainName | The domain name is invalid. | The domain name is invalid. |
| 400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
| 400 | ErrorDomainResolve | An error occurred while resolving the domain. | An error occurred while resolving the domain. |
| 400 | ErrorMarshalJSON | An error occurred while encoding JSON. | An error occurred while encoding JSON. |
| 400 | ErrorRegionNo | regionNo error. | Region selection error, please re-enter. |
| 400 | ErrorNotBuyUser | Not buy user. | Your account has not activated the Cloud Firewall and cannot call the API. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.