Obtaining API Versions
Function
This API is used to query all API versions supported by the DNS service.
Calling Method
For details, see Calling APIs.
URI
GET /
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
versions |
valuesItem object |
Definition API version list Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
values |
Array of ListApiVersionsItem objects |
Definition List of all versions Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
String |
Definition Version status Range
|
|
id |
String |
Definition Version Range v2 |
|
links |
Array of LinksItem objects |
Definition URL of the current version Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
href |
String |
Definition Shortcut link Range N/A |
|
rel |
String |
Definition Shortcut link marker name Range N/A |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Definition Error code Range N/A |
|
message |
String |
Definition Error description Range N/A |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Definition Error code Range N/A |
|
message |
String |
Definition Error description Range N/A |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
code |
String |
Definition Error code Range N/A |
|
message |
String |
Definition Error description Range N/A |
Example Requests
Querying all API versions supported by the DNS service.
GET https://{endpoint}/
Example Responses
Status code: 200
Response of querying API versions
{
"versions" : {
"values" : [ {
"status" : "CURRENT",
"id" : "v2",
"links" : [ {
"href" : "https://Endpoint/v2",
"rel" : "self"
} ]
} ]
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Response of querying API versions |
|
400 |
Error response |
|
404 |
Error response |
|
500 |
Error response |
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.