Before you start
Create and save an access key. Set these environment variables in the process that will run your code:
These are variable names used by the examples, not credentials issued separately by Hivenet. Supply their values through your environment or secrets manager.
For self-service storage, writes require a positive organization credit balance. At a zero or negative balance, your organization’s configuration determines whether storage becomes Read only or Disabled. Object listing and downloads remain available in Read only mode and are blocked in Disabled mode. See When credits run out.
Python with boto3
Install boto3:List all objects in a bucket
ReplaceYOUR_BUCKET:
Upload and download a file
Create a bucket in the console and a small localhello.txt file first:
upload_file manages multipart uploads when needed. Choose an object key and a local download name that do not contain data you need to keep.
For client behavior, see the boto3 configuration guide and file upload guide.
JavaScript with Node.js
Install the client in your Node.js project:hivenet-list.mjs:
List objects with pagination
To list a bucket instead, replace the contents of thetry block above with:
Upload a small object
For a small test upload, replace the contents of the sametry block with:
hello.txt if it already exists.
PutObjectCommand sends one request. It does not automatically turn a large file into a multipart upload. For managed large-file transfers, use a multipart transfer helper or the AWS CLI and rclone guides.
See the AWS SDK for JavaScript S3 examples for request syntax, subject to Hivenet’s supported operation list.
If authentication fails
Check all four settings together: the Hivenet endpoint,Europe signing region, path style, and the matching credential pair.
Do not replace Europe with the display label EU or an AWS region name. See Troubleshooting.