Applies for an internal endpoint for a shard or Configserver node in an ApsaraDB for MongoDB sharded cluster instance.
Operation description
This operation is applicable only to sharded cluster instances. For more information, see Apply for an endpoint for a shard or Configserver node.
The allocated endpoints can be used only for internal access. To gain Internet access, you must call the AllocatePublicNetworkAddress operation to apply for public endpoints.
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 ID of the zone to which the instance belongs. Note
You can call the DescribeDBInstanceAttribute operation to query the zone ID of the instance. |
cn-hangzhou-b |
| DBInstanceId |
string |
Yes |
The ID of the sharded cluster instance. |
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 of the account. Note
|
shardcsaccount |
| AccountPassword |
string |
No |
The password for the account.
|
Test123456 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
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.