Hello Dafna,
Do you mean uploading a signed certificate?
You can only upload one certificate for HTTPS and one for DSP.
To figure out what the API call looks like for a corresponding CLI operation, the CLI has a setting that you can enable to display the API call sent to the engine:
setopt trace=true
For example, when you issue a replace command in the CLI, you will see:
my-delphix-engine service tls endEntityCertificate replace *> commit
=== POST /resources/json/delphix/service/tls/endEntityCertificate/replace ===
{
"type": "EndEntityCertificateReplaceChainParameters",
"endEntity": {
"type": "EndEntityHttps"
},
"chain": {
"type": "PemCertificateChain",
"chain": [
{
"type": "PemCertificate",
"contents": "<certificate contents here>"
}
]
}
}
The endEntity.type field determines whether you are uploading the HTTPS or DSP certificate.
All the best,
------------------------------
Raul Santelices
Staff Engineer
Delphix
------------------------------
Original Message:
Sent: 01-07-2020 04:39:30 PM
From: Dafna Myers
Subject: Replacing the HTTPS (HTTP Secure) Certificate
Does anyone have an example of using the following api call:
/resources/json/delphix/service/tls/endEntityCertificate/replace
There is documentation for the CLI usage but I would like an example where you need to upload more than one CSR using this api call.
Thanks
------------------------------
Dafna
------------------------------