ListSnapshots
Lists snapshots.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pailangstudio:ListSnapshots |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/langstudio/snapshots HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
No |
The workspace ID. To find the workspace ID, see ListWorkspaces. |
478** |
| NextToken |
string |
No |
The pagination token used to retrieve the next page of results.
|
10 |
| MaxResults |
integer |
No |
The maximum number of items to return for this request. |
20 |
| SortBy |
string |
No |
The field to sort the results by. Defaults to
|
GmtCreateTime |
| Order |
string |
No |
The sort order.
|
DESC |
| SnapshotId |
string |
No |
The snapshot ID. |
snap-asfg******123 |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of items to return per page. Default: 10. |
10 |
| SnapshotResourceType |
string |
No |
The type of the snapshot resource. Valid value:
|
Flow |
| SnapshotResourceId |
string |
No |
The ID of the snapshot resource. |
flow-asfg******1234 |
| Creator |
string |
No |
The creator ID. |
2003******4844 |
| CreationType |
string |
No |
The creation type of the snapshot. To specify multiple types, separate the values with a comma (,). |
ManualCreated,DeploymentAutoCreated |
| SnapshotStatus |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| Snapshots |
array |
The list of snapshots. |
|
| Snapshot |
The snapshot details. |
||
| MaxResults |
integer |
The maximum number of items returned per page. |
10 |
| NextToken |
string |
The pagination token to retrieve the next page of results. This value is empty if there are no more results. |
11 |
| TotalCount |
integer |
The total number of snapshots. |
25 |
| RequestId |
string |
The request ID. |
963BD7F9-0C02-5594-9550-BCC6DD43E3C0 |
Examples
Success response
JSON format
{
"Snapshots": [
{
"WorkspaceId": "478**",
"Accessibility": "PRIVATE",
"Creator": "2680******4103",
"GmtCreateTime": "2025-09-24T07:33:53Z",
"GmtModifiedTime": "2025-09-24T08:58:35Z",
"SnapshotId": "snap-qhn3******b369c0vo",
"SnapshotName": "name01",
"Description": "This is description",
"SnapshotResourceType": "Flow",
"SnapshotResourceId": "flow-6rymo******m7j0z4p",
"CreationType": "ManualCreated",
"SnapshotStoragePath": "oss://mybucket.oss-cn-hangzhou.aliyuncs.com/workdir/snapshot/snap-1234/src",
"WorkDir": "oss://mybucket.oss-cn-hangzhou-internal.aliyuncs.com/workdir/",
"SnapshotUrl": "https://path/to/snapshot/zipfile",
"SnapshotStatus": "",
"ErrorMessage": ""
}
],
"MaxResults": 10,
"NextToken": "11",
"TotalCount": 25,
"RequestId": "963BD7F9-0C02-5594-9550-BCC6DD43E3C0"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.