POST /v1/webspaces/{id}/ssl/custom
POST/v1/webspaces/{id}/ssl/custom
Upload a custom SSL certificate
Datamodel
Deze operatie werkt op de entiteit webspace (webspace). Alle 32 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.
Request body
| Naam | Type | Beschrijving |
|---|
commonNamevereist | string | |
san | string[] | |
certificatePemvereist | string | |
privateKeyPemvereist | string | |
Padparameters
| Naam | Type | Beschrijving |
|---|
idvereist | string | |
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/webspaces/{id}/ssl/custom \
-H "X-Tenant-Id: $TENANT" \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"commonName": "string",
"san": [],
"certificatePem": "string",
"privateKeyPem": "string"
}'
const result = await cm.webspaces.post({
"commonName": "string",
"san": [],
"certificatePem": "string",
"privateKeyPem": "string"
});
Antwoordcodes
| HTTP |
Betekenis |
202 |
Default Response |