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.
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
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.