Skip to main content

bucket_instances

Creates, updates, deletes, gets or lists a bucket_instances resource.

Overview​

Namebucket_instances
TypeResource
Idrailway.storage.bucket_instances

Fields​

The following fields are returned by SELECT queries:

One BucketInstanceDetails row.

NameDatatypeDescription
object_countstring
size_bytesstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbucket_id, environment_idGet 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.

NameDatatypeDescription
bucket_idstring
environment_idstring

SELECT examples​

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
;