It is time to say goodbye: This version of Elastic Cloud Enterprise has reached end-of-life (EOL) and is no longer supported.
The documentation for this version is no longer being maintained. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Set TLS certificate
editSet TLS certificate
editCreates or updates the TLS certificate chain.
Request
editPOST /api/v1/platform/configuration/security/tls/{service_name}
Path parameters
editName | Type | Required | Description |
---|---|---|---|
|
|
Y |
The service certificate chain to read. |
Request body
edit(string
) (required) New certificate chain: the PEM encoded RSA private key, followed by the server certificate, followed by the CA certificate
Responses
edit-
202
-
(
EmptyResponse
) The TLS update is accepted for the service. -
449
-
(
BasicFailedReply
) Elevated permissions are required. (code: '"root.needs_elevated_permissions"')
To perform this operation, you must be authenticated by means of one of the following methods: apiKey, basicAuth.
Request example
editcurl -XPOST {{hostname}}/api/v1/platform/configuration/security/tls/{service_name} \ -u $CLOUD_USER:$CLOUD_KEY