Add AzureCredential
POST/projects/:projectId/azure/credentials
This operation allows to add 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}
project Id
- application/json
Body
AzureCredential to create
Possible values: Value must match regular expression \S
azure credential name
azure credential description
Possible values: Value must match regular expression \S
subscription id on azure
Possible values: Value must match regular expression \S
tenant id on azure
Possible values: Value must match regular expression \S
client id on azure
Possible values: Value must match regular expression \S
client secret on azure
expiration date of the azure credential
Responses
- 201
- 400
- 401
- 403
- 500
created
Response Headers
Content-Location
string
credential id
- application/json
- Schema
- Example (from schema)
Schema
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 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
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
{
"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 (from schema)
Schema
Array [
]
bad request code
bad request message
bad request description
violations
object[]
bad request violations
field
message
{
"code": 0,
"message": "string",
"description": "string",
"violations": [
{
"field": "string",
"message": "string"
}
]
}
unauthorized access
- application/json
- Schema
- Example (from schema)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}
forbidden access
- application/json
- Schema
- Example (from schema)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}
internal error
- application/json
- Schema
- Example (from schema)
Schema
error code
error message
error description
{
"code": 0,
"message": "string",
"description": "string"
}