Get user's effective provider details
Returns information about a specific effective provider for the user.
This operation can be invoked on behalf of the current user only.
Example cURL requests
Get user effective provider
curl -u username:password -X GET \
https://$HOST/api/v3/onezone/user/effective_providers/$PROVIDER_ID
{
"providerId":"95b663a6467c72ab1256865efef9e387",
"name": "provider2",
"domain": "provider2.onezone.example.com",
"latitude": 50.0647,
"longitude": 19.9450
}
Path parameters
| Parameter | Type & Description |
|---|---|
| pid required | string Provider Id. |
Request Examples
onezone-rest-cli getUserEffectiveProvider pid=95b663a6467c72ab1256865efef9e387Responses
Returns information about a specific effective provider for the user.
| 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. | |
cluster string The Id of the corresponding Oneprovider cluster. | |
online boolean True if this Oneprovider is online - connected to Onezone. | |
Example
{
"providerId": "6b9bc70630547d925861a27e1f050dfe",
"name": "Example provider",
"domain": "provider1.example.com",
"latitude": 50.0647,
"longitude": 19.945,
"cluster": "16a0e017d184d7d4512f441e72848fff",
"online": true
}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."
}
}