Generate token from ID
Contributors
Suggest changes
GET /accounts/{accountPublicId}/azure/service-principal/{credentialsId}/generate-token
Generates an Azure token by using existing service principal credentials.
Token usage: Both a Cloud Manager user token and service token. The service token needs to include the following scopes: credentials:internal. Pass the user token or service token in the Authorization request header.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
accountPublicId |
string |
path |
True |
|
credentialsId |
string |
path |
True |
Response
Status: 200, Successful fetched generated token
Name | Type | Required | Description |
---|---|---|---|
token |
string |
True |
Example response
{
"token": "string"
}
Error
Status: 404, Credentials not found