Update a custom domain name.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
PUT /2023-03-30/custom-domains/{domainName}
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
domainName | string | Yes | The domain name. | foo.bar.com |
body | UpdateCustomDomainInput | Yes | The information about the custom domain name. |
Response parameters
Examples
Sample success responses
JSON
format
{
"accountId": "",
"apiVersion": "2023-03-30",
"authConfig": {
"authInfo": "{}",
"authType": "anonymous, function, jwt"
},
"certConfig": {
"certName": "my-cert",
"certificate": "PEM format",
"privateKey": "PEM format"
},
"createdTime": "2023-03-30T08:02:19Z",
"domainName": "example.com",
"lastModifiedTime": "2023-03-30T08:02:19Z",
"protocol": "HTTP",
"routeConfig": {
"routes": [
{
"functionName": "myFunction",
"methods": [
"GET"
],
"path": "/api/*",
"qualifier": "myAlias",
"rewriteConfig": {
"equalRules": [
{
"match": "/old",
"replacement": "/new"
}
],
"regexRules": [
{
"match": "^/api/.+?/(.*)",
"replacement": "/api/v2/$1"
}
],
"wildcardRules": [
{
"match": "/api/*",
"replacement": "/$1"
}
]
}
}
]
},
"subdomainCount": "1",
"tlsConfig": {
"cipherSuites": [
"TLS_RSA_WITH_RC4_128_SHA"
],
"maxVersion": "TLSv1.3",
"minVersion": "TLSv1.0"
},
"wafConfig": {
"enableWAF": true
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-02-22 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-08-30 | API Description Update | View Change Details |
2023-08-30 | API Description Update. The response structure of the API has changed | View Change Details |
2023-07-05 | The request parameters of the API has changed | View Change Details |
2023-06-28 | Add Operation | View Change Details |