Get group's spaces that are supported by given effective provider
Returns the list of group's spaces that are supported by given effective provider.
This operation requires group_view privilege.
Example cURL requests
Get groups's spaces supported by effective provider
curl -u username:password -X GET \
https://$HOST/api/v3/onezone/groups/$GROUP_ID/effective_providers/$PROVIDER_ID/spaces
{
"spaces": [
"6825604b0eb6a47b8b7a04b6369eb24d"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Group Id. |
| pid required | string Effective provider Id. |
Request Examples
onezone-rest-cli getGroupSpacesInEffectiveProvider id=a4d3bc73aada63052310652d421609f1 pid=HUUPOMNGzikwiLXHaFYcE8Responses
Returns the list of group's spaces that are supported by given effective provider.
| Property | Type & Description |
|---|---|
providerId string The Oneprovider Id. | |
name string Oneprovider name. | |
domain string The fully qualified domain name of the Oneprovider or its IP address (only for single-node deployments or clusters with a reverse proxy). | |
latitude number The geographical latitude of the Oneprovider's data center location. | |
longitude number The geographical longitude of the Oneprovider's data center location. | |
clusterId string The Id of the corresponding Oneprovider cluster. | |
online boolean True if this Oneprovider is online - connected to Onezone. | |
creationTime integer (Timestamp) Timestamp in seconds (UNIX epoch), e.g. | |
Example
{
"providerId": "6b9bc70630547d925861a27e1f050dfe",
"name": "Example provider",
"domain": "provider1.example.com",
"latitude": 50.0647,
"longitude": 19.945,
"clusterId": "6b9bc70630547d925861a27e1f050dfe",
"online": true,
"creationTime": 1576152793
}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."
}
}