Search Oauth App
Search Oauth apps in the context of a tenant based on provided search criteria.
ID of the tenant.
Offset of page start. The number of items to skip before starting to collect the result set.
The maximum number of items to return in the response. Use this parameter to limit the size of the result set.
Content type accepted by api (application/json).
{
"filters": [
{
"key": "TYPE",
"operator": "EQUALS",
"value": "OAUTH_CLIENT"
},
{
"key": "CLIENT_TYPE",
"operator": "EQUALS",
"value": "GENERAL"
},
{
"key": "FREE_TEXT",
"operator": "LIKE",
"value": "CLM Oauth App"
},
{
"key": "ROLE_NAME",
"operator": "IN",
"value": [
"Tenant Admin",
"License Manager"
]
}
],
"sorter": {
"key": "UPDATED_AT",
"operator": "DESC"
}
}
A list of conditional criteria used to refine and narrow down the search results. Multiple filters are applied using logical 'AND' conditions (i.e., a record must satisfy all provided filters to be returned).
Defines the ordering criteria for the result set. Specifies the target property and the direction (ascending or descending) to arrange the returned records.
OK
{
"next": 1,
"current": 1,
"totalResults": 1,
"results": [
{
"principal_name": "general-app-1",
"client_type": "GENERAL",
"type": "OAUTH_CLIENT",
"principal_id": "253937ac-95e7-4e84-8eb8-ba197a55f9a6",
"roles": [
{
"scope": "VCF",
"id": "vcf:tenant-admin",
"name": "Tenant Administrator",
"description": "Tenant Administrator",
"derived": false
},
{
"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."
}
parameter_list
message
major_error_code
minor_error_code
Unauthorized
{
"major_error_code": "UNAUTHORIZED",
"minor_error_code": "UNAUTHORIZED",
"message": "Authentication failed"
}
parameter_list
message
major_error_code
minor_error_code
Forbidden
{
"major_error_code": "FORBIDDEN",
"minor_error_code": "FORBIDDEN",
"message": "Authorization check failed"
}
parameter_list
message
major_error_code
minor_error_code
Not Found
{
"major_error_code": "NOT_FOUND",
"minor_error_code": "NOT_FOUND",
"message": "Principal 253937ac-95e7-4e84-8eb8-ba197a55f9a6 not found"
}
parameter_list
message
major_error_code
minor_error_code
Internal Server Error
{
"major_error_code": "INTERNAL_SERVER_ERROR",
"minor_error_code": "INTERNAL_SERVER_ERROR",
"message": "Error while searching for principals;"
}
parameter_list
message
major_error_code
minor_error_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