Regenerate Client
Regenerate Oauth client secret. This apis revokes current client and creates new client id and secret. Either asset id or client id should be passed as input. Asset id/client id can be fetched from Oauth App search api.
{
"asset_id": "asset@test",
"tenant_id": "567905de-ef1c-48ce-9e4e-05c28f5caaa6"
}
Id of the owner tenant in which Oauth App is created
Asset id of Oauth App. Asset Id or Client Id is required, if both provided Asset Id will be considered for processing.
Client id of Oauth App. Client Id or Asset Id is required.
OK
{
"name": "um-asset@test",
"client_id": "94faf930-df7e-477d-b6fe-e80c9b049e30",
"client_secret": "c148a783-32dd-4593-a256-0fe4f452091c",
"asset_id": "um-asset@test",
"site_id": 67444,
"tenant_id": "567905de-ef1c-48ce-9e4e-05c28f5caaa6",
"client_type": "GENERAL",
"created_by": "[email protected]",
"roles": [
"vcf:usage-meter-manager"
]
}
Client secret of the Oauth App
Oauth App Name
Oauth App Description
Asset id of the Oauth App
Site id.
Id of the owner tenant in which Oauth App is created
Client id of the Oauth App
Indicates the type of Oauth App client
created by
updated by
created at
updated at
roles
Bad Request
{
"value": {
"major_error_code": "INVALID_ASSET_ID",
"minor_error_code": "INVALID_ASSET_ID",
"message": "Invalid Asset ID In the Request OR Asset is already revoked."
}
}
parameter_list
message
major_error_code
minor_error_code
Unauthorized
{
"value": {
"major_error_code": 401,
"minor_error_code": "UNAUTHORIZED",
"message": "Validation Failed. Reason: Token Expired"
}
}
parameter_list
message
major_error_code
minor_error_code
Forbidden
{
"major_error_code": 403,
"minor_error_code": "ACCESS_DENIED",
"message": "Access Denied"
}
parameter_list
message
major_error_code
minor_error_code
Not Found
{
"value": {
"major_error_code": "NOT_FOUND",
"minor_error_code": "TENANT_NOT_FOUND",
"message": "Tenant 567905de-ef1c-48ce-9e4e-05c28f5caaa6 not found."
}
}
parameter_list
message
major_error_code
minor_error_code
Internal Server Error
{
"failed-to-regenerate": {
"value": {
"major_error_code": "FAILED_TO_REGENERATE_CLIENT",
"minor_error_code": "FAILED_TO_REGENERATE_CLIENT",
"message": "Failed to revoke and recreate client."
}
}
}
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/auth/clients/regenerate