REST APIBackups
List the archives of a team
Needs `team.view`. Restorable archives of every workspace of the team, newest first, including workspaces that were deleted or purged since: this is where a deleted workspace is restored from.
Generated from
openapi/harthelm.yaml at v1.5.0GET
cookie
__Host-harthelm_session<token>Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header
Harthelm-CSRF: 1 and a matching Origin.
team*integerNumeric resource id.
Format
int64Range
1 <= valueworkspace?integerOnly the archives of this workspace id (which may no longer exist).
Format
int64Range
1 <= valuelimit?integerMaximum number of items per page.
Range
1 <= value <= 200Default
50cursor?stringOpaque cursor from next_cursor of the previous page.
Length
length <= 1024A page of archives.
application/json- response
next_cursor?stringAbsent on the last page.
items*array<>curl -X GET 'https://console.example.com/api/v1/teams/1/archives'{ "next_cursor": "string", "items": [ { "id": 1, "team_id": 1, "workspace_id": 1, "workspace_name": "string", "plan": "string", "base_image": "string", "git": { "provider": "string", "repo": "string", "ref": "string" }, "created_at": "2019-08-24T14:15:22Z", "size_bytes": 0, "restorable": true } ]}