You can call this operation to view a custom domain name.

Request headers

This operation uses only common request headers. For more information, see Common parameters.

Request syntax

GET /custom-domains/{domainName} 

Request parameters

Parameter Type Position Required Example Description
domainName String Path Yes

The domain name.

Response parameters

Parameter Type Example Description
accountId String 1986114****4305

The account ID.

apiVersion String 2016-08-15

The version of the API.

certConfig CertConfig

The configurations of the HTTPS certificate.

createdTime String 2020-07-27T08:02:19Z

The time when the domain name was created.

domainName String

The domain name.

lastModifiedTime String 2020-07-27T08:02:19Z

The last time when the domain name was updated.

protocol String HTTP

The protocol types supported by the domain name. Valid values:

  • HTTP
routeConfig RouteConfig

The route table that maps paths to functions when the functions are invoked by using the custom domain name.


Sample requests

GET  /2016-08-15/custom-domains/ HTTP/1.1
Common request headers 

Sample success responses

JSON format

HTTP/1.1 200 OK
Common response headers
  "domainName": "",
  "accountId": "1986114****4305",
  "protocol": "HTTP",
  "certConfig": {
    "privateKey":-----BEGIN RSA PRIVATE KEY-----xxxxx-----END RSA PRIVATE KEY-----,
    "certificate":-----BEGIN CERTIFICATE-----xxxxx-----END CERTIFICATE-----
  "apiVersion": "2016-08-15",
  "routeConfig": {
    "routes": [
        "path": "/login/*",
        "serviceName": "service_name",
        "functionName": "function_name",
  "createdTime": "2020-07-27T08:02:19Z",
  "lastModifiedTime": "2020-07-27T08:02:19Z"