Batch Querying Resources Related to DNS Query Statistics
Function
This API is used to batch query resources related to DNS query statistics.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
POST /v2.1/batch-query-instances
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
dim_name |
Yes |
Array of strings |
Definition Query dimensions supported by DNS batch query APIs. Constraints N/A Range
Default Value N/A |
|
ids |
Yes |
Array<Array<String>> |
List of resource IDs reported by DNS. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
instances |
Array of ResolutionInstances objects |
Resource details returned by querying resource IDs. |
|
Parameter |
Type |
Description |
|---|---|---|
|
dns_public_zone_id |
ZoneResolutionInstances object |
Resource details of the public zone. |
|
dns_public_recordset_id |
RsetResolutionInstances object |
Details about a public record set. This parameter must be used together with dns_public_zone_id. |
|
dns_private_zone_id |
ZoneResolutionInstances object |
Resource details of the private zone. |
|
vpc_id |
VpcResolutionInstances object |
Details about the VPC. This parameter must be used together with dns_private_zone_id. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Definition Record set ID. Range N/A |
|
name |
String |
Definition Domain name for which the record set is configured. Range N/A |
|
status |
String |
Definition Record set status. Range
|
|
type |
String |
Definition Record set type. Range
|
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Definition Zone ID. Range N/A |
|
name |
String |
Definition Domain name. Range N/A |
|
status |
String |
Definition The zone status. Range
|
|
region |
String |
Definition Region where the zone belongs. Range N/A |
|
enterprise_project_id |
String |
Definition Enterprise project ID. Range N/A |
Example Requests
Querying resources related to DNS query statistics
POST https://{endpoint}/v2.1/batch-query-instances
{
"dim_name" : [ "dns_public_zone_id", "dns_public_recordset_id" ],
"ids" : [ [ "9a175b9787bcc2710187c5ae33ad2670", "9a186e6689ce017c0189cfff487966cb" ], [ "9a175b9785770684018577afafe900dc", "9a175b9784c34a960184c35e4243000b" ] ]
}
Example Responses
Status code: 200
Querying DNS resources
{
"instances" : [ {
"dns_public_zone_id" : [ {
"name" : "example.com.",
"id" : "9a175b9787bcc2710187c5ae33ad2670",
"region" : "global",
"enterprise_project_id" : "0"
} ],
"dns_public_recordset_id" : [ {
"id" : "9a186e6689ce017c0189cfff487966cb",
"name" : "www.example.com."
} ]
}, {
"dns_public_zone_id" : [ {
"name" : "example.cn.",
"id" : "9a175b9785770684018577afafe900dc",
"region" : "global",
"enterprise_project_id" : "50b6a13d-4b22-4122-a100-e9915b9c1cff"
} ],
"dns_public_recordset_id" : [ {
"id" : "9a175b9784c34a960184c35e4243000b",
"name" : "www.example.cn."
} ]
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Querying DNS resources |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot