Volume¶
List all volumes¶
GET /api/volumes
OAuth authorization required: projects_read
Schema
volumes: Arrayid: Integername: Stringlabel: Stringregion_id: Integerto_trash: Booleantrash_after: DateTimesize: Decimalusage: Decimalusage_checked: DateTimetrashed_by_id: Integerdetached_at: DateTimesubscription_id: Integerenable_sftp: Booleanborg_enabled: Booleanborg_freq: Stringborg_strategy:String<file,mysql>borg_keep_hourly: Integerborg_keep_daily: Integerborg_keep_weekly: Integerborg_keep_monthly: Integerborg_keep_annually: Integerborg_pre_backup:Array<String>borg_post_backup:Array<String>borg_pre_restore:Array<String>borg_post_restore:Array<String>borg_rollback:Array<String>updated_at: DateTimecreated_at: DateTimevolume_maps: Arrayid: Integermount_ro: Bool | Mount read onlymount_path: Stringcontainer_service: Objectid: Integercsrn: Stringname: Stringlabel: String
template: Objectid: Integercsrn: Stringcontainer_image: Objectid: Integercsrn: Stringlabel: String
View Volume¶
GET /api/volumes/{id}
OAuth authorization required: projects_read
Schema
volume: Objectid: Integername: Stringlabel: Stringregion_id: Integerto_trash: Booleantrash_after: DateTimesize: Decimalusage: Decimalusage_checked: DateTimetrashed_by_id: Integerdetached_at: DateTimesubscription_id: Integerenable_sftp: Booleanborg_enabled: Booleanborg_freq: Stringborg_strategy:String<file,mysql>borg_keep_hourly: Integerborg_keep_daily: Integerborg_keep_weekly: Integerborg_keep_monthly: Integerborg_keep_annually: Integerborg_pre_backup:Array<String>borg_post_backup:Array<String>borg_pre_restore:Array<String>borg_post_restore:Array<String>borg_rollback:Array<String>updated_at: DateTimecreated_at: DateTimevolume_maps: Arrayid: Integermount_ro: Bool | Mount read onlymount_path: Stringcontainer_service: Objectid: Integercsrn: Stringname: Stringlabel: String
template: Objectid: Integercsrn: Stringcontainer_image: Objectid: Integercsrn: Stringlabel: String
List all backups¶
GET /api/volumes/{volume-id}/backups
OAuth authorization required: projects_read
Schema
name: Stringusage: Integer | Size on disk (deduplicated)size: Integer | Expanded total sizearchives:Array<String>
Create a backup¶
POST /volumes/{volume-id}/backups
OAuth authorization required: projects_write
Schema
name: String | Name of backup. Must be at least 3 characters long, and should not include spaces.
Restore a backup¶
POST /volumes/{volume-id}/restore
OAuth authorization required: projects_write
Schema
name: String | Name of backup to restore