Querying the Record Set List
Function
This API is used to query the record set list.
URI
GET /v1/traffic/recordsets
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
No |
String |
Identity authentication information. Requests for calling an API can be authenticated using either a token or AK/SK. If token-based authentication is used, this parameter is mandatory and must be set to a user token. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
links |
Links object |
Resource link |
|
recordsets |
Array of RecordSet objects |
Record information such as the ID, name, and description |
|
metadata |
Metadata object |
Resource metadata |
|
Parameter |
Type |
Description |
|---|---|---|
|
self |
String |
Object information |
|
next |
String |
Next information |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Record set ID |
|
description |
String |
Description |
|
zone_id |
String |
Zone ID |
|
zone_name |
String |
Zone name |
|
type |
String |
Record set type |
|
project_id |
String |
Project ID |
|
name |
String |
Record set name |
|
ttl |
Integer |
Time to live (TTL) |
|
records |
Array of strings |
Record information |
|
weight |
Integer |
Weight |
|
line |
String |
Resolution line ID |
|
create_at |
String |
Creation time |
|
update_at |
String |
Update time |
|
default |
Boolean |
Whether the record set is default |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
- |
String |
- |
Example Requests
None
Example Responses
Status code: 200
Record set list returned
{
"links" : {
"self" : "https://dns.cn-north-5.myhuaweicloud.com/v2.1/recordsets",
"next" : ""
},
"recordsets" : [ {
"id" : "ff80808293ee8d6b01940ceb75492ddc",
"name" : "wokao.abcdef.com.",
"description" : "",
"zone_id" : "ff8080828f71b6ee018f93f9dbb818cf",
"zone_name" : "abcdef.com.",
"type" : "A",
"ttl" : 300,
"records" : [ "100.85.216.156" ],
"create_at" : "",
"update_at" : "",
"default" : false,
"project_id" : "05495693df80d3c92fa1c01795c2be02",
"weight" : 1
}, {
"id" : "8abf68938cd86d00018d1d2acb184c23",
"name" : "gfsdf.xxx42352353442.xxx434234234.com.",
"description" : "",
"zone_id" : "8abf68938c33f127018c37c25cc71f08",
"zone_name" : "xxx42352353442.xxx434234234.com.",
"type" : "A",
"ttl" : 300,
"records" : [ "100.85.115.242" ],
"create_at" : "",
"update_at" : "",
"default" : false,
"project_id" : "05495693df80d3c92fa1c01795c2be02",
"weight" : 1,
"line" : "default_view"
} ],
"metadata" : {
"total_count" : 5
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Record set list returned |
|
400 |
Client request error. The server could not execute the request |
|
403 |
The server refused the request |
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