POST
/
org
/
{org}
/
domain
curl --request POST \
  --url https://api.cpln.io/org/{org}/domain \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "tags": {},
  "name": "<string>",
  "spec": {
    "dnsMode": "cname",
    "gvcLink": "<string>",
    "acceptAllHosts": true,
    "ports": [
      {
        "number": 123,
        "protocol": "http",
        "routes": [
          {
            "replacePrefix": "<string>",
            "regex": "<string>",
            "prefix": "<string>",
            "workloadLink": "<string>",
            "port": 123,
            "hostPrefix": "<string>"
          }
        ],
        "cors": {
          "allowOrigins": [
            {
              "exact": "<string>"
            }
          ],
          "allowMethods": [
            "<string>"
          ],
          "allowHeaders": [
            "<string>"
          ],
          "exposeHeaders": [
            "<string>"
          ],
          "maxAge": "<string>",
          "allowCredentials": true
        },
        "tls": {
          "minProtocolVersion": "TLSV1_2",
          "cipherSuites": [
            "ECDHE-ECDSA-AES256-GCM-SHA384"
          ],
          "clientCertificate": {
            "secretLink": "<string>"
          },
          "serverCertificate": {
            "secretLink": "<string>"
          }
        }
      }
    ]
  }
}'
"<any>"

Authorizations

Authorization
string
headerrequired

Service account key can be used as API keys

Path Parameters

org
string
required

Body

application/json
description
string
tags
object
name
string
spec
object

Response

201 - application/json

The response is of type any.