ListSnapshots
Retrieves a list of version snapshots.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListSnapshots |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
Yes |
The namespace (project workspace ID). |
1389623 |
| ObjectId |
string |
Yes |
The unique ID of the object. |
8467231038932407294 |
| Type |
string |
Yes |
The snapshot type. Multiple values are supported. Valid values: Saved, Deployed, and UnDeployed. |
Saved |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The page size. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
0bc14115-1234-5678-ABCD-159376359 |
| PagingInfo |
object |
The paging information. |
|
| TotalCount |
integer |
The total number of entries. |
12 |
| PageSize |
integer |
The page size. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| Snapshots |
array<object> |
The list of snapshots. |
|
|
object |
|||
| Id |
string |
The unique ID of the snapshot. |
8b723a9e8bd443af920b77e39aeb4f63 |
| Namespace |
string |
The namespace. |
1389623 |
| ObjectId |
string |
The unique ID of the object to which the snapshot belongs. |
8467231038932407294 |
| Version |
integer |
The version number. |
2 |
| Type |
string |
The snapshot type. |
Saved |
| Creator |
string |
The employee ID of the submitter. |
209508679263509059 |
| Comment |
string |
The snapshot comment. |
snapshot comment |
| CreateTime |
integer |
The time when the snapshot was generated. The value is a UNIX timestamp in milliseconds. |
1782370983000 |
Examples
Success response
JSON format
{
"RequestId": "0bc14115-1234-5678-ABCD-159376359",
"PagingInfo": {
"TotalCount": 12,
"PageSize": 10,
"PageNumber": 1,
"Snapshots": [
{
"Id": "8b723a9e8bd443af920b77e39aeb4f63",
"Namespace": "1389623",
"ObjectId": "8467231038932407294",
"Version": 2,
"Type": "Saved",
"Creator": "209508679263509059",
"Comment": "snapshot comment",
"CreateTime": 1782370983000
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.