Binds a custom domain name to a dedicated gateway.
Operation description
Before binding a custom domain name to a dedicated gateway, enable internal network access (EnableIntranet) or public network access (EnableInternet) by calling UpdateGateway. To enable internal network access, determine the VpcId and VSwitchIds first. Query existing resources by calling ListGateway, DescribeGateway, DescribeVpcs, and DescribeVSwitches in sequence. If necessary, call CreateVSwitch to create a vSwitch, and then call UpdateGateway to complete the network configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:AttachGatewayDomain |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v2/gateways/{ClusterId}/{GatewayId}/domain/attach HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The region where the dedicated gateway resides. |
cn-shanghai |
| GatewayId |
string |
Yes |
The dedicated gateway ID. To obtain the dedicated gateway ID, refer to the GatewayId field in the response of the ListGateway operation. |
gw-1uhcqmsc7x22****** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CustomDomain |
object |
Yes |
The custom domain name information. |
|
| Type |
string |
Yes |
The domain name type. Valid values:
|
intranet |
| CertificateId |
string |
No |
The ID of the SSL certificate bound to the domain name. Obtain the certificate ID after uploading or purchasing a certificate in Certificate Management Service. |
1473**25 |
| Domain |
string |
Yes |
The custom domain name. |
test.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| GatewayId |
string |
The dedicated gateway ID. To obtain the dedicated gateway ID, refer to the GatewayId field in the response of the ListGateway operation. |
gw-1uhcqmsc7x22****** |
| Message |
string |
The response message. |
Successfully update custom endpoint for gateway gw-1uhcqmsc7x22****** |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"GatewayId": "gw-1uhcqmsc7x22******",
"Message": "Successfully update custom endpoint for gateway gw-1uhcqmsc7x22******\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.