capabilities.work

Create Bucket And Upload Object

A 4-step recipe with Oracle Cloud Infrastructure. We can help you get access.

Recipe · 4 steps

Create Bucket And Upload Object

Resolve namespace, create a bucket, upload an object, and confirm it.

  1. Resolve the Object Storage namespace for the requesting tenancy.
  2. Create a private, versioning-enabled bucket in the namespace.
  3. Upload the supplied content as an object into the new bucket.
  4. List the bucket objects to confirm the uploaded object is present.
What you'll need to have ready
  • compartmentId: The OCID of the compartment to create the bucket in.
  • bucketName: The name of the bucket to create.
  • objectName: The name (key) of the object to upload.
  • objectContent: The body content to upload as the object.
  • contentType: The Content-Type header for the uploaded object.
For your developer

Arazzo workflow oracle-cloud:create-bucket-and-upload-object, 4 operations: getNamespace → createBucket → putObject → listObjects. Specs on APIs.io.