Skip to main content
POST
/
s3
/
list_buckets
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
response = client.data_source.list_s3_buckets(
    aws_access_key_id="aws_access_key_id",
    aws_secret_access_key="aws_secret_access_key",
)
print(response.buckets)
{
  "buckets": [
    {
      "name": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.deasylabs.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request model for listing S3 buckets.

aws_access_key_id
string
required
aws_secret_access_key
string
required
region
string | null

Response

Successful Response

Response model for listing S3 buckets.

buckets
S3BucketInfo · object[]
required