Querying the Version of a VPC Endpoint API
Function
This API is used to query the version of a VPC Endpoint API.
Calling Method
For details, see Calling APIs.
URI
GET /{version}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
version |
Yes |
String |
Specifies the version number to be queried. The value starts with v, for example, v1. If this parameter is left blank, versions of all VPCEP APIs are queried. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
No |
String |
Specifies the MIME type of the request body. Default value application/json is recommended. For APIs used to upload objects or images, the MIME type varies depending on the flow type. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
version |
VersionObject object |
Specifies the VPCEP API versions. |
Parameter |
Type |
Description |
---|---|---|
status |
String |
Specifies the version status. - CURRENT: indicates a widely used version. - SUPPORT: indicates an earlier version that is still supported. - DEPRECATED: indicates a deprecated version which may be deleted later. |
id |
String |
Specifies the version ID.
|
updated |
String |
Specifies the time the API version was released. The applied UTC time format is YYYY-MMDDTHH:MM:SSZ. |
version |
String |
Specifies the supported version number. |
min_version |
String |
Specifies the supported microversion number. If the APIs do not support microversions, the parameter is left blank. |
links |
Array of Link objects |
Specifies the API URL. |
Example Requests
This API is used to query the v1 version of a specified VPCEP API.
GET https://{endpoint}/v1
Example Responses
Status code: 200
The server has successfully processed the request.
{ "version":{ { "updated":"2018-09-30T00:00:00Z", "version":"1", "min_version":"", "status":"CURRENT", "id":"v1", "links":[ { "href":"https://{vpcep_uri}/v1", "type":"application/json", "rel":"self" } ] } } }
Status Codes
Status Code |
Description |
---|---|
200 |
The server has successfully processed 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.