bucket_instances
Creates, updates, deletes, gets or lists a bucket_instances resource.
Overview​
| Name | bucket_instances |
| Type | Resource |
| Id | railway.storage.bucket_instances |
Fields​
The following fields are returned by SELECT queries:
- get
One BucketInstanceDetails row.
| Name | Datatype | Description |
|---|---|---|
object_count | string | |
size_bytes | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | bucket_id, environment_id | Get the S3-compatible credentials for a bucket. Backed by the Railway GraphQL query bucketInstanceDetails. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
bucket_id | string | |
environment_id | string |
SELECT examples​
- get
Get the S3-compatible credentials for a bucket. Backed by the Railway GraphQL query bucketInstanceDetails.
SELECT
object_count,
size_bytes
FROM railway.storage.bucket_instances
WHERE bucket_id = '{{ bucket_id }}' -- required
AND environment_id = '{{ environment_id }}' -- required
;