Applies for an internal network endpoint for a shard or ConfigServer node of an ApsaraDB for MongoDB database sharded cluster instance.
Operation description
This operation applies only to sharded cluster instances. For more details, see Apply for an endpoint for a shard or ConfigServer node.
The allocated endpoint supports only internal network access. If you require public network access, invoke the AllocatePublicNetworkAddress operation to apply for a public endpoint.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:AllocateNodePrivateNetworkAddress |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ZoneId |
string |
No |
The zone ID of the instance. Note
You can call the DescribeDBInstanceAttribute operation to query the zone ID of the instance. |
cn-hangzhou-b |
| DBInstanceId |
string |
Yes |
The instance ID of the sharded cluster. |
dds-bp1fa5efaa93**** |
| NodeId |
string |
Yes |
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. |
d-bp124beeb0ac**** |
| AccountName |
string |
No |
The username. Note
|
shardcsaccount |
| AccountPassword |
string |
No |
The password.
|
Test123456 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
60EEBD77-227C-5B39-86EA-D89163C5**** |
Examples
Success response
JSON format
{
"RequestId": "60EEBD77-227C-5B39-86EA-D89163C5****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAccountName.Forbid | Specified account name is a keyword. | The username is invalid. Forbidden keywords cannot be used for a username. Modify the username. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.