- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Overview
- Permissions Management
- Basics of Docker
-
Image Management
- Pushing an Image Through a Container Engine Client
- Obtaining a Long-Term Valid Docker Login Command
- Obtaining a Long-Term Valid containerd Pull/Push Command
- Uploading an Image Through the SWR Console
- Pulling an Image
- Setting Image Attributes
- Sharing Private Images
- Adding a Trigger
- Adding an Image Retention Policy
- Image Center
- Organization Management
- User Permissions
- Auditing
- Best Practices
-
API Reference
- Before You Start
- API Overview
- Calling APIs
-
API
- Organization Management
- Image Repository Management
- Image Tag Management
- Shared Account Management
- API Versions
- Organization Permission Management
- Image Permission Management
- Automatic Image Synchronization Task Management
- Trigger Management
- Image Retention Policy Management
- Temporary Login Command
- Quota Management
- Example Applications
- Appendixes
- Change History
- FAQs
- Videos
- SDK Reference
Querying a Specific API Version
Function
Query a specific API version of SWR.
Response
- Response parameters
Table 2 Response body parameter description Parameter
Type
Description
version
A list of objects related to the version.
Table 3 version parameter description Parameter
Type
Description
id
String
Version ID (version number), for example, v2.
links
API URL.
version
String
If the APIs of this version support microversions, set this parameter to the supported maximum microversion. If the microversion is not supported, leave this parameter blank.
status
String
Version status. The options are as follows:
- CURRENT: The version is the primary version.
- SUPPORTED: The version is an old version, but it is still supported.
- DEPRECATED: The version is a deprecated version, which may be deleted later.
updated
String
Version release time, which must be the UTC time. For example, the release time of v2 is 2018-06-28T12:20:21Z.
min_version
String
If APIs of this version support microversions, set this parameter to the supported minimum microversion. If the microversion is not supported, leave this parameter blank.
- Example response
{ "version": { "id": "v2", "links": { "href": "https://xxx", "rel": "self" } "min_version": "2.0", "status": "CURRENT", "updated": "2017-12-09T00:00:00Z", "version": "2.26" } }
Status Code
Status Code |
Description |
---|---|
200 |
Request successful. |
500 |
Failed to complete the request because of an internal service error. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.