Create or update a certificate
Changed onIdempotent create-or-update. Uses the key field in the body to identify the certificate within the domain. Re-applying an unchanged definition is a no-op. The system flag is immutable; changing it requires deleting and recreating the certificate. When dryRun is true, the endpoint validates the payload without persisting; the returned certificate carries a dryRunErrors list (empty on success, populated with validation errors otherwise).
Request
- Base URLhttp://localhost:8093/automation
- URLhttp://localhost:8093/automation/organizations/{orgId}/environments/{envId}/domains/{domainKey}/certificates
- AuthHTTP bearer
Path parameters
Identifier of the organization that owns the environment.
Identifier of the environment the resource belongs to.
Key of the domain: its stable, immutable Automation identifier within the environment.
Query parameters
When true, validates the payload without persisting. The returned certificate includes a dryRunErrors field.
Request body
Example request
{
"configuration": "{\"jks\":{\"content\":\"...\",\"name\":\"keystore.jks\"},\"storepass\":\"secret\",\"alias\":\"mykey\",\"keypass\":\"secret\"}",
"key": "signing-cert",
"name": "Signing certificate",
"type": "javakeystore-am-certificate"
}Response
The created or updated certificate. When dryRun is true the certificate includes a dryRunErrors field with any validation errors.
Example response
{
"configuration": "{\"jks\":{\"content\":\"...\",\"name\":\"keystore.jks\"},\"storepass\":\"secret\",\"alias\":\"mykey\",\"keypass\":\"secret\"}",
"key": "signing-cert",
"name": "Signing certificate",
"type": "javakeystore-am-certificate"
}Changes
- info
added the new optional
queryrequest parameterdryRun - info
added the optional property
to the response with the status
- info