AppStorageResource
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/hosting/apps/{app_id}/storage_resources/{id}/archive |
create |
Storage resource archived |
POST |
/api/v1/hosting/apps/{app_id}/storage_resources/{id}/issue_access_key |
create |
Success |
POST |
/api/v1/hosting/apps/{app_id}/storage_resources/{id}/resume |
create |
Success |
POST |
/api/v1/hosting/apps/{app_id}/storage_resources/{id}/suspend |
create |
Success |
POST |
/api/v1/hosting/apps/{app_id}/storage_resources |
create |
App storage resource created |
GET |
/api/v1/hosting/apps/{app_id}/storage_resources/{id} |
load |
Success |
GET |
/api/v1/hosting/apps/{app_id}/storage_resources |
load |
Success |
PATCH |
/api/v1/hosting/apps/{app_id}/storage_resources/{id} |
patch |
Success |
DELETE |
/api/v1/hosting/apps/{app_id}/storage_resources/{id} |
remove |
Success |
PUT |
/api/v1/hosting/apps/{app_id}/storage_resources/{id} |
update |
Success |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
app_storage_resource, err := client.AppStorageResource(nil).Load(map[string]any{"app_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(app_storage_resource)
created, err := client.AppStorageResource(nil).Create(map[string]any{"app_id": "example", "access_mode": "example", "kind": "example", "name": "example", "provider": "example", "slug": "example", "status": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.AppStorageResource(nil).Update(map[string]any{"id": "example_id", "app_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
patched, err := client.AppStorageResource(nil).Patch(map[string]any{"id": "example_id", "app_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(patched)
removed, err := client.AppStorageResource(nil).Remove(map[string]any{"app_id": "example", "id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local app_storage_resource, err = client:AppStorageResource():load({ app_id = "example" })
local created, err = client:AppStorageResource():create({ app_id = "example", access_mode = "example", kind = "example", name = "example", provider = "example", slug = "example", status = "example" })
local updated, err = client:AppStorageResource():update({ id = "example_id", app_id = "example" })
local patched, err = client:AppStorageResource():patch({ id = "example_id", app_id = "example" })
local removed, err = client:AppStorageResource():remove({ app_id = "example", id = "example_id" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$app_storage_resource = $client->AppStorageResource()->load(["app_id" => "example"]);
$created = $client->AppStorageResource()->create(["app_id" => "example", "access_mode" => "example", "kind" => "example", "name" => "example", "provider" => "example", "slug" => "example", "status" => "example"]);
$updated = $client->AppStorageResource()->update(["id" => "example_id", "app_id" => "example"]);
$patched = $client->AppStorageResource()->patch(["id" => "example_id", "app_id" => "example"]);
$client->AppStorageResource()->remove(["app_id" => "example", "id" => "example_id"]);
Python
Construct client as shown in the Python setup, then call the operations:
app_storage_resource = client.AppStorageResource().load({"app_id": "example"})
created = client.AppStorageResource().create({ "app_id": "example", "access_mode": "example", "kind": "example", "name": "example", "provider": "example", "slug": "example", "status": "example" })
updated = client.AppStorageResource().update({"id": "example_id", "app_id": "example"})
patched = client.AppStorageResource().patch({"id": "example_id", "app_id": "example"})
client.AppStorageResource().remove({"app_id": "example", "id": "example_id"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
app_storage_resource = client.AppStorageResource.load({ "app_id" => "example" })
created = client.AppStorageResource.create({ "app_id" => "example", "access_mode" => "example", "kind" => "example", "name" => "example", "provider" => "example", "slug" => "example", "status" => "example" })
updated = client.AppStorageResource.update({ "id" => "example_id", "app_id" => "example" })
patched = client.AppStorageResource.patch({ "id" => "example_id", "app_id" => "example" })
client.AppStorageResource.remove({ "app_id" => "example", "id" => "example_id" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const app_storage_resource = await client.AppStorageResource().load({ app_id: "example" })
const created = await client.AppStorageResource().create({ app_id: "example", access_mode: "example", kind: "example", name: "example", provider: "example", slug: "example", status: "example" })
const updated = await client.AppStorageResource().update({ id: "example_id", app_id: "example" })
const patched = await client.AppStorageResource().patch({ id: "example_id", app_id: "example" })
await client.AppStorageResource().remove({ app_id: "example", id: "example_id" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
access_mode |
string |
Yes | Object-store semantics only; ignored for volume resources |
app_environment_id |
one,string,null |
Yes | App Environment Id |
attachment |
one,object,null |
Yes | Attachment readback: CSI publish state for nomad_csi, or the nodes carrying the directory for local_nvme. |
capacity_gb |
one,integer,null |
Yes | Enforced for nomad_csi (minimum 10 GB). |
capacity_label |
one,string,null |
Yes | Capacity Label |
created_at |
string |
Yes | Created At |
ephemeral |
boolean |
Yes | True when the contents may be deleted at any time and do not survive the loss of the underlying node. |
external_volume_id |
one,string,null |
Yes | Nomad/CSI volume id assigned at provisioning |
hosted_app_id |
string |
Yes | Hosted App Id |
id |
string |
Yes | Id |
kind |
string |
Yes | Kind |
location_code |
one,string,null |
Yes | Location Code |
location_id |
one,string,null |
Yes | Volume datacenter pin (volume kind only) |
mount_path |
one,string,null |
Yes | Mount Path |
name |
string |
Yes | Name |
provider |
string |
Yes | Storage backend. |
provider_error |
one,string,null |
Yes | Last provisioning/teardown error from the storage provider |
region |
one,string,null |
Yes | Region |
slug |
string |
Yes | Slug |
status |
string |
Yes | Status |
updated_at |
string |
Yes | Updated At |
create
POST /api/v1/hosting/apps/{app_id}/storage_resources/{id}/archive
Operation ID: archive_api_v1_app_storage_resource.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
confirm |
enum: archive |
No |
Responses
200: Storage resource archived
application/json
| Property | Type | Required | Description |
|---|---|---|---|
storage_resource |
object |
Yes | |
storage_resource.access_mode |
enum: private, public, internal |
Yes | Object-store semantics only; ignored for volume resources |
storage_resource.app_environment_id |
string |
Yes | |
storage_resource.attachment |
object |
Yes | Attachment readback: CSI publish state for nomad_csi, or the nodes carrying the directory for local_nvme. Nil until provisioned |
storage_resource.attachment.alloc_ids |
array of string |
No | |
storage_resource.attachment.node_ids |
array of string |
No | |
storage_resource.attachment.state |
enum: attached, detached |
No | |
storage_resource.capacity_gb |
integer |
Yes | |
storage_resource.capacity_label |
string |
Yes | |
storage_resource.created_at |
string (date-time) |
Yes | |
storage_resource.ephemeral |
boolean |
Yes | True when the contents may be deleted at any time and do not survive the loss of the underlying node. Ephemeral storage is a cache and must never hold a system of record. |
storage_resource.external_volume_id |
string |
Yes | Nomad/CSI volume id assigned at provisioning |
storage_resource.hosted_app_id |
string |
Yes | |
storage_resource.id |
string |
Yes | |
storage_resource.kind |
enum: bucket, volume |
Yes | |
storage_resource.location_code |
string |
Yes | |
storage_resource.location_id |
string |
Yes | Volume datacenter pin (volume kind only) |
storage_resource.mount_path |
string |
Yes | |
storage_resource.name |
string |
Yes | |
storage_resource.provider |
enum: s3, tigris, nomad_csi, local_nvme, local_nvme_authority |
Yes | Storage backend. local_nvme is a directory on the node's own NVMe, created as a Nomad dynamic host volume, fast, node-local and EPHEMERAL: the platform may delete it at any time and it does not survive the loss of its node. Use it as a cache, never as a system of record. local_nvme_authority is a single-node, single-writer authority volume that refuses destructive repair. Node loss requires restoration from remote replication into a new volume. |
storage_resource.provider_error |
string |
Yes | Last provisioning/teardown error from the storage provider |
storage_resource.region |
string |
Yes | |
storage_resource.slug |
string |
Yes | |
storage_resource.status |
enum: provisioning, available, updating, failed, archived |
Yes | |
storage_resource.updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Infrastructure request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes |
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/storage_resources/{id}/issue_access_key
Operation ID: issue_access_key_api_v1_app_storage_resource.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/storage_resources/{id}/resume
Operation ID: resume_api_v1_app_storage_resource.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/storage_resources/{id}/suspend
Operation ID: suspend_api_v1_app_storage_resource.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
POST /api/v1/hosting/apps/{app_id}/storage_resources
Operation ID: post_api_v1_hosting_apps_app_id_storage_resources.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
access_mode |
enum: private, public, internal |
Yes | |
app_environment_id |
string |
No | |
capacity_gb |
integer |
No | Enforced for nomad_csi (minimum 10 GB). Advisory only for local_nvme, which claims no reservation |
kind |
enum: bucket, volume |
Yes | |
location_id |
string |
No | Required for volume kind. nomad_csi needs a CSI-plugin-enabled location; local_nvme works in any location and pins the volume to that datacenter |
mount_path |
string |
No | |
name |
string |
Yes | |
provider |
enum: s3, tigris, nomad_csi, local_nvme, local_nvme_authority |
Yes | Storage backend. local_nvme volumes are node-local NVMe caches and are EPHEMERAL by contract, deletable at any time, gone with their node, and safe to lose. They ignore capacity_gb (it is advisory) and are not resizable. local_nvme_authority provisions one pinned single-writer directory and refuses destructive repair or empty replacement after node loss. Remote replication and fenced restoration are required for repository authority durability. |
region |
string |
No | |
slug |
string |
Yes | |
status |
enum: provisioning, available, updating, failed, archived |
Yes |
Responses
200: App storage resource created
application/json
| Property | Type | Required | Description |
|---|---|---|---|
storage_resource |
object |
Yes | |
storage_resource.access_mode |
enum: private, public, internal |
Yes | Object-store semantics only; ignored for volume resources |
storage_resource.app_environment_id |
string |
Yes | |
storage_resource.attachment |
object |
Yes | Attachment readback: CSI publish state for nomad_csi, or the nodes carrying the directory for local_nvme. Nil until provisioned |
storage_resource.attachment.alloc_ids |
array of string |
No | |
storage_resource.attachment.node_ids |
array of string |
No | |
storage_resource.attachment.state |
enum: attached, detached |
No | |
storage_resource.capacity_gb |
integer |
Yes | |
storage_resource.capacity_label |
string |
Yes | |
storage_resource.created_at |
string (date-time) |
Yes | |
storage_resource.ephemeral |
boolean |
Yes | True when the contents may be deleted at any time and do not survive the loss of the underlying node. Ephemeral storage is a cache and must never hold a system of record. |
storage_resource.external_volume_id |
string |
Yes | Nomad/CSI volume id assigned at provisioning |
storage_resource.hosted_app_id |
string |
Yes | |
storage_resource.id |
string |
Yes | |
storage_resource.kind |
enum: bucket, volume |
Yes | |
storage_resource.location_code |
string |
Yes | |
storage_resource.location_id |
string |
Yes | Volume datacenter pin (volume kind only) |
storage_resource.mount_path |
string |
Yes | |
storage_resource.name |
string |
Yes | |
storage_resource.provider |
enum: s3, tigris, nomad_csi, local_nvme, local_nvme_authority |
Yes | Storage backend. local_nvme is a directory on the node's own NVMe, created as a Nomad dynamic host volume, fast, node-local and EPHEMERAL: the platform may delete it at any time and it does not survive the loss of its node. Use it as a cache, never as a system of record. local_nvme_authority is a single-node, single-writer authority volume that refuses destructive repair. Node loss requires restoration from remote replication into a new volume. |
storage_resource.provider_error |
string |
Yes | Last provisioning/teardown error from the storage provider |
storage_resource.region |
string |
Yes | |
storage_resource.slug |
string |
Yes | |
storage_resource.status |
enum: provisioning, available, updating, failed, archived |
Yes | |
storage_resource.updated_at |
string (date-time) |
Yes |
201: App storage resource created
application/json
| Property | Type | Required | Description |
|---|---|---|---|
storage_resource |
object |
Yes | |
storage_resource.access_mode |
enum: private, public, internal |
Yes | Object-store semantics only; ignored for volume resources |
storage_resource.app_environment_id |
string |
Yes | |
storage_resource.attachment |
object |
Yes | Attachment readback: CSI publish state for nomad_csi, or the nodes carrying the directory for local_nvme. Nil until provisioned |
storage_resource.attachment.alloc_ids |
array of string |
No | |
storage_resource.attachment.node_ids |
array of string |
No | |
storage_resource.attachment.state |
enum: attached, detached |
No | |
storage_resource.capacity_gb |
integer |
Yes | |
storage_resource.capacity_label |
string |
Yes | |
storage_resource.created_at |
string (date-time) |
Yes | |
storage_resource.ephemeral |
boolean |
Yes | True when the contents may be deleted at any time and do not survive the loss of the underlying node. Ephemeral storage is a cache and must never hold a system of record. |
storage_resource.external_volume_id |
string |
Yes | Nomad/CSI volume id assigned at provisioning |
storage_resource.hosted_app_id |
string |
Yes | |
storage_resource.id |
string |
Yes | |
storage_resource.kind |
enum: bucket, volume |
Yes | |
storage_resource.location_code |
string |
Yes | |
storage_resource.location_id |
string |
Yes | Volume datacenter pin (volume kind only) |
storage_resource.mount_path |
string |
Yes | |
storage_resource.name |
string |
Yes | |
storage_resource.provider |
enum: s3, tigris, nomad_csi, local_nvme, local_nvme_authority |
Yes | Storage backend. local_nvme is a directory on the node's own NVMe, created as a Nomad dynamic host volume, fast, node-local and EPHEMERAL: the platform may delete it at any time and it does not survive the loss of its node. Use it as a cache, never as a system of record. local_nvme_authority is a single-node, single-writer authority volume that refuses destructive repair. Node loss requires restoration from remote replication into a new volume. |
storage_resource.provider_error |
string |
Yes | Last provisioning/teardown error from the storage provider |
storage_resource.region |
string |
Yes | |
storage_resource.slug |
string |
Yes | |
storage_resource.status |
enum: provisioning, available, updating, failed, archived |
Yes | |
storage_resource.updated_at |
string (date-time) |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
409: Preview is active, archived, expired, or waiting for cleanup
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
422: Infrastructure request failed validation
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes |
502: Bad gateway
load
GET /api/v1/hosting/apps/{app_id}/storage_resources/{id}
Operation ID: api_v1_app_storage_resource.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
GET /api/v1/hosting/apps/{app_id}/storage_resources
Operation ID: api_v1_app_storage_resources.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
patch
PATCH /api/v1/hosting/apps/{app_id}/storage_resources/{id}
Operation ID: patch_api_v1_hosting_apps_app_id_storage_resources_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
remove
DELETE /api/v1/hosting/apps/{app_id}/storage_resources/{id}
Operation ID: delete_api_v1_hosting_apps_app_id_storage_resources_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
update
PUT /api/v1/hosting/apps/{app_id}/storage_resources/{id}
Operation ID: put_api_v1_hosting_apps_app_id_storage_resources_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.