Create or Update mTLS Configuration for Target
PUT/targets/:id/mtls/
Create or replace the mTLS configuration for a target by uploading a .p12 certificate file and password.
Request
Path Parameters
id stringrequired
- multipart/form-data
Body
required
p12_file urirequired
Possible values: Value must match regular expression (?:p12|pfx)$
The .p12 file containing the client certificate and private key.
password stringrequired
Password to decrypt the .p12 file.
Responses
- 200
- 400
- 403
- 404
- application/json
- Schema
- Example (from schema)
Schema
configured booleanrequired
Indicates if mTLS is configured for the target.
enabled booleanrequired
Indicates if mTLS is currently enabled for the target.
{
"configured": true,
"enabled": true
}
- application/json
- Schema
- Example (from schema)
Schema
<field name> string[]
non_field_errors string[]
{
"<field name>": [
"Errors related to field <field name>."
],
"non_field_errors": [
"Errors not related to any field specific field."
]
}
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "You do not have permission to perform this action."
}
- application/json
- Schema
- Example (from schema)
Schema
detail string
{
"detail": "Not found."
}
Loading...