Search Oauth App
Search Oauth Apps in the context of a tenant.
ID of the tenant
offset of pageStart
number of results to be fetched
Content type accepted by api (application/json).
{
"filters": [
{
"value": "OAUTH_CLIENT",
"operator": "EQUALS",
"key": "TYPE"
},
{
"value": "GENERAL",
"operator": "EQUALS",
"key": "CLIENT_TYPE"
}
]
}
List of filters
sorter
OK
{
"next": 1,
"current": 1,
"totalResults": 2,
"results": [
{
"principal_name": "general-app-1",
"client_type": "GENERAL",
"type": "OAUTH_CLIENT",
"principal_id": "253937ac-95e7-4e84-8eb8-ba197a55f9a6",
"roles": [
{
"scope": "UM",
"id": "vcf:usage-meter-manager",
"name": "Usage Meter Manager",
"description": "Usage meter manager",
"derived": false
}
]
}
]
}
Bad Request
{
"major_error_code": "BAD_REQUEST",
"minor_error_code": "NO_TENANT_ACCESS",
"message": "Missing Tenant access cd7f7da5-763e-46b5-bfb4-f5bda69752fe for principal 253937ac-95e7-4e84-8eb8-ba197a55f9a6."
}
parameters
message
major_error_code
minor_error_code
http_status_code
Unauthorized
{
"major_error_code": "UNAUTHORIZED",
"minor_error_code": "UNAUTHORIZED",
"message": "Authentication failed"
}
parameters
message
major_error_code
minor_error_code
http_status_code
Forbidden
{
"major_error_code": "FORBIDDEN",
"minor_error_code": "FORBIDDEN",
"message": "Authorization check failed"
}
parameters
message
major_error_code
minor_error_code
http_status_code
Not Found
{
"major_error_code": "NOT_FOUND",
"minor_error_code": "NOT_FOUND",
"message": "Principal 253937ac-95e7-4e84-8eb8-ba197a55f9a6 not found"
}
parameters
message
major_error_code
minor_error_code
http_status_code
Internal Server Error
{
"major_error_code": "INTERNAL_SERVER_ERROR",
"minor_error_code": "INTERNAL_SERVER_ERROR",
"message": "Error while searching for principals;"
}
parameters
message
major_error_code
minor_error_code
http_status_code
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/vcf/tenant-mgmt/api/v1/tenants/{tenant_id}/principals/search