Deployments Volumes
Create a new volume
Create a new volume to preload files in deployments
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
Volume configuration
content*
Content specifies the content configuration for this volume
name*string
Name is the unique identifier for the volume within the project
Length
1 <= length <= 100type*"readOnly"
Type is the volume type (currently only "readOnly" is supported)
Value in
- "readOnly"
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/deployments/storage/volumes" \ -H "Content-Type: application/json" \ -d '{ "content": {}, "name": "string", "type": "readOnly" }'{ "content": { "files": [ { "last_modified": "string", "name": "string", "size": 0 } ], "origin": { "s3": { "role_arn": "string", "uri": "string" } }, "source_prefix": "string", "type": "files" }, "created_at": "string", "current_version": 0, "id": "string", "mounted_by": [ "string" ], "name": "string", "object": "string", "status": "ready", "status_message": "string", "type": "readOnly", "updated_at": "string", "version_history": { "property1": { "content": { "origin": { "s3": { "role_arn": "string", "uri": "string" } }, "source_prefix": "string", "type": "files" }, "mounted_by": [ "string" ], "status": "ready", "status_message": "string", "version": 0 }, "property2": { "content": { "origin": { "s3": { "role_arn": "string", "uri": "string" } }, "source_prefix": "string", "type": "files" }, "mounted_by": [ "string" ], "status": "ready", "status_message": "string", "version": 0 } }}