Obtaining Component Instance Snapshots
Function
This API is used to obtain component instance snapshots.
Instance snapshots refer to the instance information about the source version. They can be used for version rollback.
URI
GET /v2/{project_id}/cas/applications/{application_id}/components/{component_id}/instances/{instance_id}/snapshots
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Tenant's project ID. |
application_id |
String |
Yes |
Application ID. |
component_id |
String |
Yes |
Component ID. |
instance_id |
String |
Yes |
Component instance ID. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
limit |
Integer |
No |
Number of records to be displayed. The value is 1000 or ranges from 0 to 100. If the specified value is not within the range, value 10 is assigned. In the non-pagination scenario, the value is 1000. In the pagination scenario, the value ranges from 0 to 100. |
offset |
Integer |
No |
Offset. |
order_by |
String |
No |
Sorting field. By default, query results are sorted by creation time. |
order |
String |
No |
Descending or ascending order. Default value: desc. |
Request
None
Response
Parameter |
Type |
Description |
---|---|---|
count |
Integer |
Number of snapshots. |
snapshots |
Array of objects |
Snapshot parameters. See Table 4. |
Example
Example request
None
Example response
{ "snapshots": [ { "version": "1.0.0", "description": "{\"action\":\"New Version: 1.0.0\"}", "instance_id": "11eddb33-140b-4e51-b1e2-6ec265373ca3", "create_time": 1610331830841 } ], "count": 1 }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
404 |
Not Found |
500 |
Internal Server Error |
Error Code
Error code must be in the format of SVCSTG.00100.[Error_ID]. Example: SVCSTG.00100400. See Error Codes of Application Management APIs.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot