Skip to content
Live $300 credit for new accounts Valid for 60 days from account creation Get started →

S3 API Usage

ZSoftly object storage is S3-compatible. Any tool or SDK that supports S3 works with it.

Endpoints:

RegionEndpoint
YUL (Montreal)https://objects.yul.zcp.zsoftly.ca
YOW (Ottawa)https://objects.yow.zcp.zsoftly.ca

Examples below use the YUL endpoint. Substitute YOW if your bucket is in Ottawa.

Configure your client with the regional endpoint and your access keys, then list your buckets. Pick your language:

# Store your credentials once
aws configure set aws_access_key_id <access-key>
aws configure set aws_secret_access_key <secret-key>
# List buckets
aws s3 ls --endpoint-url https://objects.yul.zcp.zsoftly.ca

Once your client (or the AWS CLI) is configured, all standard S3 operations work. Using the AWS CLI:

# Create a bucket
aws s3 mb s3://my-bucket --endpoint-url https://objects.yul.zcp.zsoftly.ca
# Upload a file
aws s3 cp ./file.txt s3://my-bucket/ --endpoint-url https://objects.yul.zcp.zsoftly.ca
# Download a file
aws s3 cp s3://my-bucket/file.txt ./file.txt --endpoint-url https://objects.yul.zcp.zsoftly.ca
# List objects in a bucket
aws s3 ls s3://my-bucket/ --endpoint-url https://objects.yul.zcp.zsoftly.ca
# Delete an object
aws s3 rm s3://my-bucket/file.txt --endpoint-url https://objects.yul.zcp.zsoftly.ca

See also: Access Keys, Create Bucket