All Products
Search
Document Center

Edge Security Acceleration:SetClientCaCertificateHostnames

Last Updated:Jun 25, 2026

Binds hostnames to a specified client CA certificate. If you do not specify a certificate, the hostnames are bound to the ESA CA certificate.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

SiteId

integer

Yes

The site ID.

123456****

Hostnames

array

Yes

A list of hostnames.

string

No

A hostname.

www.example.com

Id

string

No

The client CA certificate ID.

babaabcd****

Response elements

Element

Type

Description

Example

object

The response object.

SiteId

integer

The site ID. You can obtain the ID by calling the ListSites API.

123456****

SiteName

string

The site name.

example.com

Id

string

The client CA certificate ID.

babaabcd****

Hostnames

array

A list of bound hostnames.

string

A hostname.

www.example.com

RequestId

string

The request ID.

34DCBC8A-****-****-****-6DAA11D7DDBD

Examples

Success response

JSON format

{
  "SiteId": 0,
  "SiteName": "example.com",
  "Id": "babaabcd****",
  "Hostnames": [
    "www.example.com"
  ],
  "RequestId": "34DCBC8A-****-****-****-6DAA11D7DDBD"
}

Error codes

HTTP status code

Error code

Error message

Description

400 MissingSiteId Required parameter SiteId missing. Specify SiteId and try again. Required parameter SiteId missing. Specify SiteId and try again.
400 InternalException Failed to call the service. Try again later or contact technical support. Failed to call the service. Try again later or contact technical support.
400 InvalidParameter The specified parameter is invalid. The specified parameter is invalid.
400 QuotaCheckFailed.Function The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature. The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature.
403 Unauthorized.InvalidTime The specified authentication time is invalid. The authentication time parameter you entered is invalid. Check the parameter value and try again.
403 Unauthorized.InvalidToken Token authentication failed. The token you entered is invalid. Please check and enter the correct token and try again.
404 Certificate.NotFound The specified certificate does not exist. The specified certificate does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.