Verify the identity of given provider Deprecated
Verifies the identity of given provider based on its identity token.
This operation has public access.
Example cURL requests
Check provider IP
curl -H "X-Auth-Token: $TOKEN" -H "Content-type: application/json" \
-d '{"providerId": "f3a3fbcc6e85e1b7829e4901a8e1809", "token": "JKAxNWxvY2F0aW9uIG9uZXp..."}' \
-X POST https://onezone.example.com/api/v3/onezone/provider/public/verify_provider_identity
Request body
Identity parameters
Provider Id.
Provider identity token.
Request Examples
onezone-rest-cli verifyProviderIdentity providerId=="dqs1ew2afn9q28rnweu8fb23r9jqwtfg" token=="JKAxNWxvY2F0aW9uIG9uZXp..." Responses
The identity token is valid for this provider.
Invalid request.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}