Operations with Specific BackupFile
This resource lets you access the database backup files. The user account that performs the operation must have Low-level Read Administration permissions.
Resource |
|
---|---|
Returned entity | BackupFile. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
Represents the backup file.
Below you can find the list of resources that let you work with this entity.
This table describes attributes of the BackupFile
entity.
To receive an attribute in the response from the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The ID of the backup file. |
name | String | Name of the backup file. |
size | Long | Size of the file. |
creationDate | Long | The timestamp in milliseconds indicating the moment when the backup file was created. Stored as a unix timestamp at UTC. |
link | String | The link to the backup file. |
Get data on the specific backup file.
Requires permissions: Low-level Admin Read
GET /api/admin/databaseBackup/backups/{fileID}?{fields}
{fileID} | Name of the file. |
---|
Parameter | Type | Description |
---|---|---|
fields | String | A list of BackupFile attributes that should be returned in the response. If no field is specified, only the |
https://example.youtrack.cloud/api/admin/databaseBackup/backups/2019-02-09-19-03-45.tar.gz?fields=creationDate,file,error,link,name,size,id
{
"name": "2019-02-09-19-03-45.tar.gz",
"size": 26696777,
"creationDate": 1549728231000,
"link": "backupFile/2019-02-09-19-03-45.tar.gz",
"error": null,
"id": "2019-02-09-19-03-45.tar.gz",
"$type": "BackupFile"
}