Get user's spaces that are supported by given effective provider
Returns the list of user's spaces that are supported by given effective provider.
This operation can be invoked on behalf of the current user only.
Example cURL requests
Get user's spaces supported by effective provider
curl -u username:password -X GET \
https://$HOST/api/v3/onezone/user/effective_providers/$PROVIDER_ID/spaces
{
"spaces": [
"6825604b0eb6a47b8b7a04b6369eb24d"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| pid required | string Provider Id. |
Request Examples
onezone-rest-cli getUserSpacesInEffectiveProvider pid=95b663a6467c72ab1256865efef9e387Responses
Returns the list of user's spaces that are supported by given effective provider.
| Property | Type & Description |
|---|---|
spaces array of strings The list of space Ids. | |
Example
{
"spaces": [
"1d24c36707d99197c6cd995810a43aca",
"6825604b0eb6a47b8b7a04b6369eb24d"
]
}Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}