POST Bucket
POST {{baseUrl}}/n/:namespaceName/b/:bucketName/
Performs a partial or full update of a bucket's user-defined metadata.
Use UpdateBucket to move a bucket from one compartment to another within the same tenancy. Supply the compartmentID of the compartment that you want to move the bucket to. For more information about moving resources between compartments, see Moving Resources to a Different Compartment.
Request Body
{"autoTiering"=>"in", "compartmentId"=>"{{compartment_ocid}}", "freeformTags"=>{"enim_d"=>"ullamco in", "ex_168"=>"reprehenderit irure", "ipsumb"=>"do est proident"}, "kmsKeyId"=>"dolor", "metadata"=>{"labore__"=>"aliquip conse"}, "name"=>"aliqua amet", "namespace"=>"tempor elit cillum i", "objectEventsEnabled"=>true, "publicAccessType"=>"NoPublicAccess", "versioning"=>"Enabled"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
if-match | string | The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of | |
the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload | |||
the resource. | |||
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"}