CreateCustomDomain
Updated at:
Copy as MD
Creates a custom domain.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentrun:CreateCustomDomain |
create |
*All Resource
|
None | None |
Request syntax
POST /2025-09-10/agents/custom-domains HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
CreateCustomDomainInput |
No |
The request body used to create a custom domain. |
Response elements
|
Element |
Type |
Description |
Example |
|
CustomDomainResult |
The response body that contains the custom domain object. |
Examples
Success response
JSON format
{
"code": "SUCCESS",
"requestId": "F8A0F5F3-0C3E-4C82-9D4F-5E4B6A7C8D9E",
"data": {
"domainName": "example.com",
"description": "",
"protocol": "HTTP",
"routeConfig": {
"routes": [
{
"path": "/login",
"resourceName": "",
"resourceType": "runtime",
"agentRuntimeEndpointName": "",
"methods": [
""
],
"removeBasePathOnForward": false
}
]
},
"certConfig": {
"certName": "my-cert",
"certificate": "-----BEGIN CERTIFICATE-----\\nxxxxx\\n-----END CERTIFICATE-----",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\\nxxxxx\\n-----END RSA PRIVATE KEY-----"
},
"tlsConfig": {
"minVersion": "TLSv1.2",
"cipherSuites": [
""
],
"maxVersion": "TLSv1.3"
},
"createdAt": "2025-01-10T10:30:00Z",
"updatedAt": "2025-01-10T11:45:00Z",
"domainType": ""
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.
Is this page helpful?