Modified since last release
Get Default Bucket
GET /object/user-cas/bucket/{namespace}/{uid}
Gets default bucket for the specified namespace and user identifier.
namespace | Namespace from which to get bucket |
uid | Valid user identifier from which to get bucket |
Required Roles
Requires one of the following roles:
SYSTEM_ADMIN
NAMESPACE_ADMIN
Response Body
Result with default bucket for the given user identifier and namespace
Field |
Description |
Type |
Notes |
user_cas_bucket |
|
|
|
name |
Default bucket for user |
String |
|
Examples
Request
GET https://192.168.0.0:4443/object/user-cas/bucket/s3/wuser1@sanity.local HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user_cas_bucket>
<name>standalone-bucket</name>
</user_cas_bucket>
Request
GET https://192.168.0.0:4443/object/user-cas/bucket/s3/wuser1@sanity.local.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"name": "standalone-bucket"
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/object/user-cas/bucket/s3/wuser1@sanity.local
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<user_cas_bucket>
<name>standalone-bucket</name>
</user_cas_bucket>