Bad Request
Internal server error
The mTLS endpoint for the account.
curl -i -X GET \ 'https://app.harness.io/ng/api/agent/mtls/endpoint?accountIdentifier=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
The details of the updated mTLS endpoint.
{- "domainPrefix": "string",
- "caCertificates": "string",
- "mode": "LOOSE"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
The details of the newly created mTLS endpoint.
{- "domainPrefix": "string",
- "caCertificates": "string",
- "mode": "LOOSE"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
True if and only if the endpoint existed and got removed.
curl -i -X DELETE \ 'https://app.harness.io/ng/api/agent/mtls/endpoint?accountIdentifier=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
The details of the updated mTLS endpoint.
{- "domainPrefix": "string",
- "caCertificates": "string",
- "mode": "LOOSE"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Bad Request
Internal server error
True if and only if the domain prefix is currently not in use by any existing mTLS endpoint.
curl -i -X GET \ 'https://app.harness.io/ng/api/agent/mtls/check-availability?accountIdentifier=string&domainPrefix=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}