Post Agent Oauth App

Post Agent Oauth App

Create OAuth application for the specified Usage Meter agent.

Request
URI
POST
https://eapi.broadcom.com/vcf/ums/api/v2/{tenantId}/agents/{agentId}/oauth-app
COPY
Path Parameters
string
tenantId
Required

The ID of the tenant

string
agentId
Required

The ID of the Usage Meter agent.


Authentication
This operation uses the following authentication methods.
Responses
200

A new OAuth application was successfully created and associated with the specified Usage Meter agent.

Operation doesn't return any data structure

204

There is an already existent OAuth application associated with the specified Usage Meter agent.

Operation doesn't return any data structure

403

The user has no access to perform the requested operation.

Operation doesn't return any data structure

404

There is no registered Usage Meter agent or the user has no access to it.

Operation doesn't return any data structure

406

A request was made to create an oauth app for agent that is in deleted state.

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' https://{api_host}/vcf/ums/api/v2/{tenantId}/agents/{agentId}/oauth-app