All Products
Search
Document Center

Cloud Firewall:AddDomainResolveRealtimeTask

Last Updated:Nov 12, 2025

Creates a real-time domain name resolution task.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RegionNo

string

No

The region ID.

cn-shanghai

FirewallType

string

No

The type of the Cloud Firewall.

Valid values:

  • nat :

    NAT

  • vpc :

    VPC

  • internet :

    Internet

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. Private DNS endpoint already exists for selected firewall boundary
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.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.