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.
Show optional properties
{
"tenant_id": "string"
}
{
"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. Either Asset Id or Client Id must be provided. If both present Asset Id will be used to revoke the client associated with Asset Id.
Client Id of Oauth App. Either Client Id or Asset Id must be provided. If both present Asset Id will be used to revoke the client associated with Asset Id.
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 '{"tenant_id:"string"}' https://{api_host}/vcf/tenant-mgmt/api/v1/auth/clients/regenerate