Domain name for API request: mongodb.intl.tencentcloudapi.com.
This API is used to enable the public network access address of the current instance.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: EnableWanService. |
| Version | Yes | String | Common Params. The value used for this API: 2019-07-25. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| InstanceId | Yes | String | Instance ID. |
| LoadBalancerId | Yes | String | CLB ID. |
| NodeList.N | Yes | Array of WanServiceNodeList | Node and listening port information. |
| Parameter Name | Type | Description |
|---|---|---|
| FlowId | Integer | Asynchronous task ID. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
The instance does not have public network access enabled. Request this API to enable public network access.
POST / HTTP/1.1
Host: mongodb.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: EnableWanService
<Common request parameters>
{
"InstanceId": "cmgo-qwla****",
"LoadBalancerId": "lb-94d6****",
"NodeList": [
{
"VipVport": "10.0.30.*:27017",
"ListenerPort": "10001"
},
{
"VipVport": "10.0.30.*:27017",
"ListenerPort": "10002"
},
{
"VipVport": "10.0.30.1*:27017",
"ListenerPort": "10003"
}
]
}
{
"Response": {
"FlowId": 174548484400,
"RequestId": "ce73f291-7ffd-4390-9434-7c****12sa1b0"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError | Internal error |
| InvalidParameterValue.LockFailed | Instance lock failed. |
| InvalidParameterValue.NotFoundInstance | The instance was not found. |
| InvalidParameterValue.SecurityLevelNotAllowOpenWanService | The current instance has enabled Password-free Access or is not bound to a security group, with a low security level that does not allow public network access service. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback