Compute Cloud API, REST: SnapshotSchedule.list
Retrieves the list of snapshot schedules in the specified folder.
HTTP request
GET https://compute.api.il.nebius.cloud/compute/v1/snapshotSchedules
Query parameters
Parameter | Description |
---|---|
folderId | Required. ID of the folder to list snapshot schedules in. To get the folder ID, make a list request. The maximum string length in characters is 50. |
pageSize | The maximum number of results per page to return. If the number of available results is larger than The maximum value is 1000. |
pageToken | Page token. To get the next page of results, set The maximum string length in characters is 100. |
filter | A filter expression that filters snapshot schedules listed in the response. The expression must specify:
The maximum string length in characters is 1000. |
orderBy | A sorting expression that sorts snapshot schedules listed in the response. The expression must specify the field name from SnapshotSchedule and Default value: The maximum string length in characters is 100. |
Response
HTTP Code: 200 - OK
{
"snapshotSchedules": [
{
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"status": "string",
"schedulePolicy": {
"startAt": "string",
"expression": "string"
},
"snapshotSpec": {
"description": "string",
"labels": "object"
},
// `snapshotSchedules[]` includes only one of the fields `retentionPeriod`, `snapshotCount`
"retentionPeriod": "string",
"snapshotCount": "string",
// end of the list of possible fields`snapshotSchedules[]`
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
snapshotSchedules[] | object List of snapshot schedules in the specified folder. |
snapshotSchedules[]. id |
string ID of the snapshot schedule. |
snapshotSchedules[]. folderId |
string ID of the folder that the snapshot schedule belongs to. |
snapshotSchedules[]. createdAt |
string (date-time) Creation timestamp. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
snapshotSchedules[]. name |
string Name of the snapshot schedule. The name is unique within the folder. |
snapshotSchedules[]. description |
string Description of the snapshot schedule. |
snapshotSchedules[]. labels |
object Snapshot schedule labels as |
snapshotSchedules[]. status |
string Status of the snapshot schedule.
|
snapshotSchedules[]. schedulePolicy |
object Frequency settings of the snapshot schedule. |
snapshotSchedules[]. schedulePolicy. startAt |
string (date-time) Timestamp for creating the first snapshot. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
snapshotSchedules[]. schedulePolicy. expression |
string Cron expression for the snapshot schedule (UTC+0). The expression must consist of five fields ( |
snapshotSchedules[]. snapshotSpec |
object Attributes of snapshots created by the snapshot schedule. |
snapshotSchedules[]. snapshotSpec. description |
string Description of the created snapshot. |
snapshotSchedules[]. snapshotSpec. labels |
object Snapshot labels as |
snapshotSchedules[]. retentionPeriod |
string snapshotSchedules[] includes only one of the fields retentionPeriod , snapshotCount Retention period of the snapshot schedule. Once a snapshot created by the schedule reaches this age, it is automatically deleted. |
snapshotSchedules[]. snapshotCount |
string (int64) snapshotSchedules[] includes only one of the fields retentionPeriod , snapshotCount Retention count of the snapshot schedule. Once the number of snapshots created by the schedule exceeds this number, the oldest ones are automatically deleted. E.g. if the number is 5, the first snapshot is deleted after the sixth one is created, the second is deleted after the seventh one is created, and so on. |
nextPageToken | string Token for getting the next page of the list. If the number of results is greater than the specified pageSize, use Each subsequent page will have its own |