Querying a Specified Version
Function
This API is used to query a specified API version.
Calling Method
For details, see Calling APIs.
URI
GET /{version_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| version_id | Yes | String | Definition API version Constraints N/A Range N/A Default Value v1.0 |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| version | Object | Definition List of version objects Range N/A |
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition Version ID, for example, v1.0. Range N/A |
| links | Array of ApiLink objects | Definition JSON object. For details, see the data structure of the links field. Range N/A |
| version | String | Definition If the APIs of this version support microversions, the supported maximum microversion is returned. If microversions are not supported, an empty string is returned. Range N/A |
| status | String | Definition Version status Range |
| updated | String | Definition Version release time in UTC. For example, the release time of v1 is 2014-06-28T12:20:21Z. Range N/A |
| min_version | String | Definition If the APIs of this version support microversions, the supported minimum microversion is returned. If microversions are not supported, an empty string is returned. Range N/A |
Example Requests
Query the V1.0 API information of the current site.
/v1.0
Example Responses
Status code: 200
A specified API version is queried.
{
"version" : {
"min_version" : "",
"links" : [ {
"rel" : "self",
"href" : "https://kms.region_id.domain.com/v1.0/"
} ],
"id" : "v1.0",
"version" : "",
"updated" : "2016-10-29T02:00:00Z",
"status" : "CURRENT"
}
} Status Codes
| Status Code | Description |
|---|---|
| 200 | A specified API version is queried. |
Error Codes
See Error Codes.