[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator
Assign Roles To OAuth Client
DescriptionAssigns roles to the specified OAuth client in a given organization.
Request
URLURL
https://console.navigator.vmware.com/cphub/api/auth/v2/orgs/{orgId}/clients
Path Parameters
Path Parameters
string
orgId
Required
Unique identifier (GUID) of the organization.
Query Parameters
Query Parameters
string
context
Optional
context can be PROVIDER or TENANT
Request Body
Request Body
AssignRolesRequest
of mimetype application/json
Optional
Defines the request body to assign roles to the specified OAuth client
This request body class requires all of the following:
BaseOrgRoleDto, InlineAssignRolesRequest1
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
FailureResponse
of type application/json
{
"failures": [
{
"id": "string",
"message": "string"
}
]
}
Errors
400
Bad Request - The request is either incomplete or incorrect
401
Unauthorized - The user is not authorized to use the API
403
Forbidden - User does not have permission for this operation
500
Internal Server Error - An unexpected error has occurred while processing the request
Code Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"ids":["string"],"orgRoleBindingOrgs":["string"],"organizationRoles":[{"name":"string"}],"serviceRoles":[{"serviceDefinitionId":"string","serviceRoles":[{"name":"string"}]}]}' https://console.navigator.vmware.com/cphub/api/auth/v2/orgs/{orgId}/clients
[{"label":"Latest (1.0)","version":"latest"}]
cloud-partner-navigator