Policy > Infra > Certificates > Certificates

Adds or replaces a CA bundle

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

Request:

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

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/cabundles/example-cabundle-id { "pem_encoded": "-----BEGIN CERTIFICATE-----\n[...]\n-----END CERTIFICATE-----", }

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: