Skip to Content
CosmicAC Logo
API referenceApp node API

Storage volume routes

Storage volume lifecycle.

GET
/v1/teams/{id}/storage-volumes

Requires team capability storage.read. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/v1/teams/string/storage-volumes' \  -H 'ttr-token: <session-token>'
Example Response200
Empty
POST
/v1/teams/{id}/storage-volumes

Requires team capability storage.create. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string

Request Body

application/json
  1. body
name*string
Match^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
Length3 <= length <= 63
size_gb*integer
Range100 <= value
rack_id*string
Length1 <= length

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/v1/teams/string/storage-volumes' \  -H 'ttr-token: <session-token>' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "size_gb": 100,  "rack_id": "string"}'
Example Response200
Empty
GET
/v1/teams/{id}/storage-volumes/racks

Requires team capability storage.read. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/v1/teams/string/storage-volumes/racks' \  -H 'ttr-token: <session-token>'
Example Response200
Empty
GET
/v1/teams/{id}/storage-volumes/{volumeId}

Requires team capability storage.read. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string
volumeId*string

Response Body

Default Response

Example Request
curl -X GET 'https://your-app-node-url/v1/teams/string/storage-volumes/string' \  -H 'ttr-token: <session-token>'
Example Response200
Empty
PATCH
/v1/teams/{id}/storage-volumes/{volumeId}

Requires team capability storage.update. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string
volumeId*string

Request Body

application/json
  1. body
name*string
Match^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
Length3 <= length <= 63

Response Body

Default Response

Example Request
curl -X PATCH 'https://your-app-node-url/v1/teams/string/storage-volumes/string' \  -H 'ttr-token: <session-token>' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response200
Empty
DELETE
/v1/teams/{id}/storage-volumes/{volumeId}

Requires team capability storage.delete. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string
volumeId*string

Response Body

Default Response

Example Request
curl -X DELETE 'https://your-app-node-url/v1/teams/string/storage-volumes/string' \  -H 'ttr-token: <session-token>'
Example Response200
Empty
POST
/v1/teams/{id}/storage-volumes/{volumeId}/resize

Requires team capability storage.update. Acts on the team in the id path parameter.

Authorization

ttrToken
headerttr-token<token>

Session token issued by sign-in. Sent as the ttr-token header.

Path Parameters

id*string
volumeId*string

Request Body

application/json
  1. body
size_gb*integer
Range100 <= value

Response Body

Default Response

Example Request
curl -X POST 'https://your-app-node-url/v1/teams/string/storage-volumes/string/resize' \  -H 'ttr-token: <session-token>' \  -H 'Content-Type: application/json' \  -d '{  "size_gb": 100}'
Example Response200
Empty