Bucket Explorer Management Endpoints
Note: Utility resources (terminals, bucket explorers, db monitors) share common patterns. See 11-utility-resources.md for a consolidated overview; this file focuses on bucket-explorer specifics.
Bucket explorers are resources that can be connected to storage buckets to browse and explore their contents. Similar to terminals that connect to instances, bucket explorers provide a way to interact with S3 buckets.
Create Bucket Explorer
POST /api/:projectSlug/:environmentSlug/bucket-explorers- Create a new bucket explorer resource and S3 storage bucket
name provided will be used directly as the S3 bucket name. The endpoint will automatically create the S3 bucket and connect it to the bucket explorer.
Important:
- The name must be a valid S3 bucket name (3-63 characters, lowercase, alphanumeric, hyphens, periods)
- Bucket names must be globally unique across all AWS accounts
- The endpoint will automatically create the S3 bucket and connect it to the bucket explorer
- Must be 3 to 63 characters long
- Must begin and end with a letter or number
- Can contain lowercase letters (a-z), numbers (0-9), periods (.), and hyphens (-)
- Cannot contain consecutive periods (..)
- Cannot be formatted as an IP address (e.g., 192.168.1.1)
- Cannot start with “xn—” or end with “-s3alias”
- Must be globally unique across all AWS accounts
List Bucket Explorers
GET /api/:projectSlug/:environmentSlug/bucket-explorers- List all bucket explorers for a project environment
Get Bucket Explorer Details
GET /api/:projectSlug/:environmentSlug/bucket-explorers/:explorerId- Get details of a specific bucket explorer
Update Bucket Explorer
PATCH /api/:projectSlug/:environmentSlug/bucket-explorers/:explorerId- Update a bucket explorer
Delete Bucket Explorer
Bucket explorer deletion is performed only via the unified resources API:DELETE /api/:projectSlug/:environmentSlug/resources/:resourceId
Connecting Bucket Explorers to Storage Buckets
Bucket explorers can be connected to storage buckets using the Resource Connections API. This allows the bucket explorer to browse and interact with the contents of the connected storage bucket. Example: Connect bucket explorer to a storage bucketStatus Values
Bucket explorers have the following status values:inactive- Default status when createdactive- Explorer is active and connectedconnecting- Currently establishing connectionerror- Connection error occurred