Create Storage Volume
Create a volume for a team
Path Parameters
team_idstring
ID of team
Header Parameters
Authorizationstring
Value: "Bearer <token>"; visit the "User Settings" page in the DevZero dashboard to generate a token
create volume body
created_at?string
creation timestamp
Format
date-time
created_by?User
General user object
idstring
id of volume
namestring
name of the volume
regionRegion
General region object
sizeinteger
size of the volume (in GB)
Format
int64
status?VolumeStatus
status of volume
Value in
"Creating" | "Available" | "Error"
team_idstring
id for team which owns the volume
usage?VolumeUsage
volume_mounts?array<VolumeMount>
Response Body
curl -X POST "https://api.devzero.io/backend/v0/v2/teams/string/storage/volumes" \
-H "Authorization: string" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"name": "string",
"region": {
"id": "string",
"latitude": 0,
"longitude": 0,
"name": "string",
"provided_by": "string"
},
"size": 0,
"team_id": "string"
}'
{
"created_at": "2019-08-24T14:15:22Z",
"created_by": {
"default_region": "string",
"default_region_name": "string",
"dora_connection_ids": [
"string"
],
"dxi_onboarding_checklist": {
"analyze_own_code": "SKIPPED",
"development_process_bottlenecks": "SKIPPED",
"devzero_cli": "SKIPPED",
"github_token": "SKIPPED",
"is_dora_repository_connected": true
},
"email": "user@example.com",
"given_name": "string",
"id": "string",
"is_global_admin": true,
"linked_vcss": [
{
"link_metadata": "string",
"vsc_uri": "string"
}
],
"onboarding_checklist": {
"has_completed_onboarding": true,
"has_completed_onboarding_checklist": true,
"has_completed_recipe_quick_starters": true,
"has_created_recipe": true,
"has_dismissed_quickstart": true,
"has_dismissed_recipe_callout": true,
"has_forked_quickstart": true,
"has_launched_workspace": true,
"has_seen_github_app_modal": true,
"has_seen_onboarding_recipe_modal": true,
"onboarding_path": "undefined"
},
"organization_join_date": 0,
"sub": "string",
"teams": [
{
"authorized_oauth2_repo_manager_integrations": [
"string"
],
"connected_github_user": "string",
"connected_github_user_url": "string",
"gh_user_access_token": "string",
"is_owner": true,
"name": "string",
"permissions": "string",
"role": "string",
"team_id": "string",
"user_id": "string"
}
],
"timezone": "string",
"user_scoped_recipe": "string"
},
"id": "string",
"name": "string",
"region": {
"id": "string",
"latitude": 0,
"longitude": 0,
"name": "string",
"provided_by": "string",
"slug": "string"
},
"size": 0,
"status": "Creating",
"team_id": "string",
"usage": {
"accessed_at": "2019-08-24T14:15:22Z",
"bytes_quota": 0,
"bytes_used": 0,
"created_at": "2019-08-24T14:15:22Z",
"last_refreshed_at": "2019-08-24T14:15:22Z",
"modified_at": "2019-08-24T14:15:22Z",
"used_percentage": "string"
},
"volume_mounts": [
{
"mount_path": "string",
"storage_volume_id": "string",
"volume_sub_path": "string",
"workload_id": "string",
"workload_name": "string"
}
]
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}
{
"message": "string"
}