Managed Service for Gitlab API, REST: Instance.ListBackups
Retrieves the list of backups for the specified GitLab instance.
HTTP request
GET https://gitlab.api.cloud.yandex.net/gitlab/v1/instances/{instanceId}/backups
Path parameters
Request message for InstanceService.ListBackups.
|
Field |
Description |
|
instanceId |
string Required field. ID of the GitLab instance to list backups for. The maximum string length in characters is 50. |
Query parameters
Request message for InstanceService.ListBackups.
|
Field |
Description |
|
pageSize |
string (int64) Maximum number of results per page. If unspecified, the service uses its default page size. Acceptable values are 0 to 1000, inclusive. |
|
pageToken |
string Page token returned by a previous ListBackups request for the same instance. The maximum string length in characters is 100. |
Response
HTTP Code: 200 - OK
{
"backups": [
{
"id": "string",
"folderId": "string",
"instanceId": "string",
"createdAt": "string",
"size": "string",
"startedAt": "string",
"status": "string",
"creationType": "string",
"gitlabVersion": "string"
}
],
"nextPageToken": "string"
}
Response message for InstanceService.ListBackups.
|
Field |
Description |
|
backups[] |
Backups of the specified GitLab instance. |
|
nextPageToken |
string Token to retrieve the next page. Empty when there are no more results. |
Backup
A backup of a GitLab instance.
|
Field |
Description |
|
id |
string ID of the backup. |
|
folderId |
string ID of the folder that owns the backup. |
|
instanceId |
string ID of the GitLab instance that owns the backup. |
|
createdAt |
string (date-time) Time when backup creation completed. String in RFC3339 To work with values in this field, use the APIs described in the |
|
size |
string (int64) Size of the backup in bytes. |
|
startedAt |
string (date-time) Time when backup creation started. String in RFC3339 To work with values in this field, use the APIs described in the |
|
status |
enum (Status) Current status of the backup.
|
|
creationType |
enum (CreationType) How the backup was created.
|
|
gitlabVersion |
string GitLab version of the source instance when the backup was created. |