Unbinding a Public Gateway
Function
This API is used to unbind a public gateway from a node in a DB instance.
Constraints
- This operation cannot be performed on frozen or abnormal instances.
- Only the mongos node of a cluster instance is supported.
- Only the primary or secondary node of a replica set instance is supported.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
dds:instance:unbindPublicGateway
write
instance
-
- nat:dnatRules:delete
- nat:dnatRules:get
- nat:dnatRules:list
- nat:natGateways:get
- nat:natGateways:list
- nat:natGateways:listTags
- nat:snatRules:list
- eip:publicIps:associateInstance
- eip:publicIps:disassociateInstance
URI
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID. Constraints N/A Range N/A Default Value N/A |
|
instance_id |
Yes |
String |
Definition Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one. Constraints N/A Range N/A Default Value N/A |
|
node_id |
Yes |
String |
Definition ID of the node from which the public gateway rule is to be unbound. Constraints Select the mongos node for a cluster instance and the primary or secondary node for a replica set instance. Range N/A Default Value N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition User token obtained from IAM. For details, see Authentication. Constraints N/A Range N/A Default Value N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
instance_id |
String |
Definition Instance ID. Range N/A |
|
instance_name |
String |
Definition Instance name. Range N/A |
|
node_id |
String |
Definition Node ID. Range N/A |
|
node_name |
String |
Definition Node name. Range N/A |
Status code: default
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Definition Error code. Range N/A |
|
error_msg |
String |
Definition Error message. Range N/A |
Example Requests
DELETE https://{endpoint}/v3/619d3e78f61b4be68bc5aa0b59edcf7b/instances/9136fd2a9fcd405ea4674276ce36dae8in02/nodes/52a4c096bb1f455d8d866956a959519eno02/public-gateway
Example Responses
{
"instance_id" : "9136fd2a9fcd405ea4674276ce36dae8in02",
"instance_name" : "dds-4352",
"node_id" : "52a4c096bb1f455d8d866956a959519eno02",
"node_name" : "dds-4352_replica_node_1"
}
SDK
Click Document Database Service DDS SDK to download the SDK or view the SDK document. To learn how to install and authenticate an SDK, read the Usage section.
Status Code
For more information, see Status Code.
Error Code
For more information, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot