Policy > Infra > Certificates > Certificates

Adds or replaces a CA bundle

Adds or replaces a new bundle of trusted CA certificates.
The multipart-uploaded file must be a concatenation of one or more
PEM-encoded certificates.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/infra/cabundles/{cabundle-id}
Request Headers:
n/a
Query Parameters:
UploadFileRequestParameters+
Request Body:
n/a

Example Request:

POST https://<policy-mgr>/policy/api/v1/infra/cabundles/example-cabundle-id Content-Type: multipart/form-data; boundary=243332e4709e58a3bd679ef3c7b1259a --243332e4709e58a3bd679ef3c7b1259a Content-Disposition: form-data; name="file"; filename="example-cabundle.pem" -----BEGIN CERTIFICATE----- [...] -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- [...] -----END CERTIFICATE----- [...] --243332e4709e58a3bd679ef3c7b1259a--

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
CaBundle+

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
CaBundle+

Example Response:

{ "_create_time": 0, "_create_user": "unknown", "_last_modified_time": 0, "_last_modified_user": "unknown", "_protection": "NOT_PROTECTED", "_revision": 0, "_system_owned": false, "display_name": "example-cabundle-id", "earliest_not_after": 1688688782000, "id": "example-cabundle-id", "marked_for_delete": false, "not_after_list": [1688688782000, ...], "overridden": false, "parent_path": "/infra", "path": "/infra/cabundles/example-cabundle-id", "relative_path": "example-cabundle-id", "resource_type": "CaBundle", "unique_id": "b829537a-fcdb-4349-b5e1-53fb40f69a8c" }

Required Permissions:

crud

Feature:

policy_certificate

Additional Errors: