Get a workspace
admin.workspaces.retrieve(strworkspace_id) -> WorkspaceRetrieveResponse
GET/compute/v1/admin/workspaces/{workspace_id}
Get a workspace
Parameters
workspace_id: str
Returns
Get a workspace
import os
from boltz_api import Boltz
client = Boltz(
api_key=os.environ.get("BOLTZ_API_KEY"), # This is the default and can be omitted
)
workspace = client.admin.workspaces.retrieve(
"workspace_id",
)
print(workspace.id){
"id": "id",
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"data_retention": {
"unit": "hours",
"value": 1
},
"is_default": true,
"name": "name",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "id",
"archived_at": "2019-12-27T18:11:19.117Z",
"created_at": "2019-12-27T18:11:19.117Z",
"data_retention": {
"unit": "hours",
"value": 1
},
"is_default": true,
"name": "name",
"updated_at": "2019-12-27T18:11:19.117Z"
}