Create Bucket
POST {{baseUrl}}/n/:namespaceName/b/
Creates a bucket in the given namespace with a bucket name and optional user-defined metadata. Avoid entering confidential information in bucket names.
Request Body
{"compartmentId"=>"{{compartment_ocid}}", "name"=>"sint", "autoTiering"=>"e", "freeformTags"=>{"dolor_1b1"=>"mollit in"}, "kmsKeyId"=>"velit ex dolor", "metadata"=>{"consequat732"=>"dolor nisi moll"}, "objectEventsEnabled"=>true, "publicAccessType"=>"ObjectReadWithoutList", "storageTier"=>"Archive", "versioning"=>"Enabled"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-client-request-id | string | The client request ID for tracing. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"compartmentId":"nisi id proident","createdBy":"minim Lorem occaecat ea","etag":"proident dolor nisi mollit","metadata":{"est_29e":"deserunt proident tempor ut ad","dolor_13a":"deserunt nostrud in","mollite":"eu ullamco"},"name":"elit velit","namespace":"deserunt ut magna","timeCreated":"1959-02-11T07:22:15.304Z","approximateCount":-38707126,"approximateSize":8468883,"autoTiering":"InfrequentAccess","definedTags":{"deserunt_be":{"cupidatat_e8c":{}}},"freeformTags":{"amet376":"in in","Duis5d7":"aliquip mollit","proident_80":"dolor ex","veniam44c":"consectetur quis","fugiat89d":"incididunt sunt offi"},"id":"consequat in esse","isReadOnly":false,"kmsKeyId":"Lorem fugiat aliquip non","objectEventsEnabled":false,"objectLifecyclePolicyEtag":"voluptate labore exercitation","publicAccessType":"NoPublicAccess","replicationEnabled":false,"storageTier":"Archive","versioning":"Suspended"}