Cloud Enterprise Object Storage REST API

Search (SHIFT+S)




Update Bucket Owner

POST /object/bucket/{bucketName}/owner

Updates the owner for the specified bucket.

bucketNameName of the bucket for which owner will be updated

Required Roles

  • SYSTEM_ADMIN


Prerequisites

The following conditions must be met in order to call this operation.

  • New owner is a valid user.

  • Bucket must exist.


Request Payload

All parameters are required unless otherwise stated.

Field Description Type Notes
object_bucket_update_owner
namespace Namespace that is allowed to access this bucket String
new_owner New owner of the bucket String
reset_previous_owners flag indicating if previous bucket owner list is to be reset Boolean

Response Body

Response indicating Success or Failure of the operation


Examples

Request
POST https://192.168.0.0:4443/object/bucket/standalone-bucket/owner HTTP/1.1

Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>

<object_bucket_update_owner>
   <namespace>s3</namespace>
   <new_owner>testlogin</new_owner>
</object_bucket_update_owner>
Response
HTTP/1.1 200 OK
Content-Type: application/xml