Applies for an internal endpoint for a shard or Configserver node of an ApsaraDB for MongoDB sharded cluster instance.
This operation applies only to sharded cluster instances. For more information, see Apply for an endpoint for a shard or Configserver node.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | AllocateNodePrivateNetworkAddress |
The operation that you want to perform. Set the value to AllocateNodePrivateNetworkAddress. |
RegionId | String | No | cn-hangzhou |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
ZoneId | String | No | cn-hangzhou-b |
The zone ID of the instance. Note You can call the DescribeDBInstanceAttribute operation to query the zone ID of the instance.
|
DBInstanceId | String | Yes | dds-bp1fa5efaa93**** |
The ID of the sharded cluster instance. |
NodeId | String | Yes | d-bp124beeb0ac**** |
The ID of the shard or Configserver node. Note You can call the DescribeDBInstanceAttribute operation to query the ID of the shard or Configserver node.
|
AccountName | String | No | shardcsaccount |
The name of the account. Note
|
AccountPassword | String | No | Test123456 |
The password of the account.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 60EEBD77-227C-5B39-86EA-D89163C5**** |
The ID of the request. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/?Action=AllocateNodePrivateNetworkAddress
&DBInstanceId=dds-bp1fa5efaa93****
&NodeId=d-bp124beeb0ac****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<AllocateNodePrivateNetworkAddressResponse>
<RequestId>60EEBD77-227C-5B39-86EA-D89163C5****</RequestId>
</AllocateNodePrivateNetworkAddressResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "60EEBD77-227C-5B39-86EA-D89163C5****"
}
Error codes
For a list of error codes, visit the API Error Center.