Add/Replace the policy on the specified bucket
bucketName | Name of the bucket for which the policy is to be displayed. |
namespace | namespace of the bucket |
Requires one of the following roles:
SYSTEM_ADMIN
NAMESPACE_ADMIN
The following conditions must be met in order to call this operation.
Bucket must exist.
No Request Payload
Response indicating Success or Failure of the operation
> PUT /bucket1/policy HTTP/1.1 > Host: 192.168.0.0:9021 > User-Agent: curl/7.43.0 > Accept: */* > Date: Wed, 24 May 2017 01:04:30 +0000 > Authorization: AWS usr:trMwEQOoJTuT+G0wGVuFSu3/6tM= > Content-Length: 236 > Expect: 100-continue > < HTTP/1.1 100 Continue * We are completely uploaded and fine
< HTTP/1.1 200 OK < Date: Wed, 24 May 2017 01:04:30 GMT < Server: ViPR/1.0 < x-amz-request-id: 0af9f567:15c37397b93:1098:1 < x-amz-id-2: 79ec477d47e7382e9c95b2860282a2283d5cc504d13d0c372caf03f8fae64697 < ETag: "a491bcbb2a23d666b3e7918177736000" < Last-Modified: Wed, 24 May 2017 01:04:30 GMT < x-emc-mtime: 1495587870656 < x-emc-previous-object-size: 233 < x-amz-server-side-encryption: AES256 < x-amz-copy-source-version-id: < Content-Length: 0 < * Connection #0 to host 10.249.245.103 left intact