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>",
"certChallengeType": "http01",
"workloadLink": "<string>",
"acceptAllHosts": true,
"acceptAllSubdomains": true,
"ports": [
{
"number": 123,
"protocol": "http2",
"routes": [
{
"replacePrefix": "<string>",
"regex": "<string>",
"prefix": "<string>",
"workloadLink": "<string>",
"port": 123,
"hostPrefix": "<string>",
"hostRegex": "<string>",
"headers": {
"request": {
"set": {}
}
},
"replica": 123
}
],
"cors": {
"allowOrigins": [
{
"exact": "<string>",
"regex": "<string>"
}
],
"allowMethods": [
"<string>"
],
"allowHeaders": [
"<string>"
],
"exposeHeaders": [
"<string>"
],
"maxAge": "<string>",
"allowCredentials": true
},
"tls": {
"minProtocolVersion": "TLSV1_2",
"cipherSuites": [
[
"ECDHE-ECDSA-AES256-GCM-SHA384",
"ECDHE-ECDSA-CHACHA20-POLY1305",
"ECDHE-ECDSA-AES128-GCM-SHA256",
"ECDHE-RSA-AES256-GCM-SHA384",
"ECDHE-RSA-CHACHA20-POLY1305",
"ECDHE-RSA-AES128-GCM-SHA256",
"AES256-GCM-SHA384",
"AES128-GCM-SHA256"
]
],
"clientCertificate": {
"secretLink": "<string>"
},
"serverCertificate": {
"secretLink": "<string>"
}
}
}
]
}
}'
"<any>"
Service account key can be used as API keys
The body is of type object
.
Domain was created successfully
The response is of type any
.
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>",
"certChallengeType": "http01",
"workloadLink": "<string>",
"acceptAllHosts": true,
"acceptAllSubdomains": true,
"ports": [
{
"number": 123,
"protocol": "http2",
"routes": [
{
"replacePrefix": "<string>",
"regex": "<string>",
"prefix": "<string>",
"workloadLink": "<string>",
"port": 123,
"hostPrefix": "<string>",
"hostRegex": "<string>",
"headers": {
"request": {
"set": {}
}
},
"replica": 123
}
],
"cors": {
"allowOrigins": [
{
"exact": "<string>",
"regex": "<string>"
}
],
"allowMethods": [
"<string>"
],
"allowHeaders": [
"<string>"
],
"exposeHeaders": [
"<string>"
],
"maxAge": "<string>",
"allowCredentials": true
},
"tls": {
"minProtocolVersion": "TLSV1_2",
"cipherSuites": [
[
"ECDHE-ECDSA-AES256-GCM-SHA384",
"ECDHE-ECDSA-CHACHA20-POLY1305",
"ECDHE-ECDSA-AES128-GCM-SHA256",
"ECDHE-RSA-AES256-GCM-SHA384",
"ECDHE-RSA-CHACHA20-POLY1305",
"ECDHE-RSA-AES128-GCM-SHA256",
"AES256-GCM-SHA384",
"AES128-GCM-SHA256"
]
],
"clientCertificate": {
"secretLink": "<string>"
},
"serverCertificate": {
"secretLink": "<string>"
}
}
}
]
}
}'
"<any>"
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>",
"certChallengeType": "http01",
"workloadLink": "<string>",
"acceptAllHosts": true,
"acceptAllSubdomains": true,
"ports": [
{
"number": 123,
"protocol": "http2",
"routes": [
{
"replacePrefix": "<string>",
"regex": "<string>",
"prefix": "<string>",
"workloadLink": "<string>",
"port": 123,
"hostPrefix": "<string>",
"hostRegex": "<string>",
"headers": {
"request": {
"set": {}
}
},
"replica": 123
}
],
"cors": {
"allowOrigins": [
{
"exact": "<string>",
"regex": "<string>"
}
],
"allowMethods": [
"<string>"
],
"allowHeaders": [
"<string>"
],
"exposeHeaders": [
"<string>"
],
"maxAge": "<string>",
"allowCredentials": true
},
"tls": {
"minProtocolVersion": "TLSV1_2",
"cipherSuites": [
[
"ECDHE-ECDSA-AES256-GCM-SHA384",
"ECDHE-ECDSA-CHACHA20-POLY1305",
"ECDHE-ECDSA-AES128-GCM-SHA256",
"ECDHE-RSA-AES256-GCM-SHA384",
"ECDHE-RSA-CHACHA20-POLY1305",
"ECDHE-RSA-AES128-GCM-SHA256",
"AES256-GCM-SHA384",
"AES128-GCM-SHA256"
]
],
"clientCertificate": {
"secretLink": "<string>"
},
"serverCertificate": {
"secretLink": "<string>"
}
}
}
]
}
}'
"<any>"
Service account key can be used as API keys
The body is of type object
.
Domain was created successfully
The response is of type any
.
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>",
"certChallengeType": "http01",
"workloadLink": "<string>",
"acceptAllHosts": true,
"acceptAllSubdomains": true,
"ports": [
{
"number": 123,
"protocol": "http2",
"routes": [
{
"replacePrefix": "<string>",
"regex": "<string>",
"prefix": "<string>",
"workloadLink": "<string>",
"port": 123,
"hostPrefix": "<string>",
"hostRegex": "<string>",
"headers": {
"request": {
"set": {}
}
},
"replica": 123
}
],
"cors": {
"allowOrigins": [
{
"exact": "<string>",
"regex": "<string>"
}
],
"allowMethods": [
"<string>"
],
"allowHeaders": [
"<string>"
],
"exposeHeaders": [
"<string>"
],
"maxAge": "<string>",
"allowCredentials": true
},
"tls": {
"minProtocolVersion": "TLSV1_2",
"cipherSuites": [
[
"ECDHE-ECDSA-AES256-GCM-SHA384",
"ECDHE-ECDSA-CHACHA20-POLY1305",
"ECDHE-ECDSA-AES128-GCM-SHA256",
"ECDHE-RSA-AES256-GCM-SHA384",
"ECDHE-RSA-CHACHA20-POLY1305",
"ECDHE-RSA-AES128-GCM-SHA256",
"AES256-GCM-SHA384",
"AES128-GCM-SHA256"
]
],
"clientCertificate": {
"secretLink": "<string>"
},
"serverCertificate": {
"secretLink": "<string>"
}
}
}
]
}
}'
"<any>"