Update AzureCredential
PUT/api/v1/projects/:projectId/azure/credentials/:id
This operation allows to update an AzureCredential
Request
Path Parameters
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
credential Id
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
project Id
- application/json
Body
AzureCredential to update
azure credential name
Possible values: Value must match regular expression \S
azure credential description
subscription id on azure
Possible values: Value must match regular expression \S
tenant id on azure
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
client id on azure
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
client secret on azure
Possible values: Value must match regular expression \S
expiration date of the azure credential
2022-03-10
Responses
- 200
- 400
- 401
- 403
- 404
- 500
ok
- application/json
- Schema
- Example (auto)
Schema
azure credential id
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
id of the project associated to the azure credential
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
azure credential name
csp of the credential
azure credential description
name of the project associated to the azure credential
expiration date of the azure credential
2022-03-10
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"csp": "string",
"description": "string",
"projectName": "string",
"expirationDate": "2022-03-10"
}
bad request
- application/json
- Schema
- Example (auto)
Schema
bad request code
bad request message
bad request description
violations object[]
{
"code": 0,
"message": "string",
"description": "string",
"violations": [
{
"field": "string",
"message": "string"
}
]
}
unauthorized access
- application/json
- Schema
- Example (auto)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}
forbidden access
- application/json
- Schema
- Example (auto)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}
not found
- application/json
- Schema
- Example (auto)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}
internal error
- application/json
- Schema
- Example (auto)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}
Authorization: http
name: SecuritySchemetype: httpdescription: Authenticationscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- php
- java
- CURL
curl -L -X PUT '/api/v1/projects/:projectId/azure/credentials/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"name": "string",
"description": "string",
"subscriptionId": "string",
"tenantId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"clientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"clientSecret": "string",
"expirationDate": "2022-03-10"
}'