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
Test
RAM authorization
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.