public class RemoveNodeList extends AbstractModel
header, skipSign
Constructor and Description |
---|
RemoveNodeList() |
RemoveNodeList(RemoveNodeList source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getNodeName()
Get IDs of nodes to be deleted.
|
String |
getRole()
Get Roles of nodes to be deleted.
|
String |
getZone()
Get AZ corresponding to the node.
|
void |
setNodeName(String NodeName)
Set IDs of nodes to be deleted.
|
void |
setRole(String Role)
Set Roles of nodes to be deleted.
|
void |
setZone(String Zone)
Set AZ corresponding to the node.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public RemoveNodeList()
public RemoveNodeList(RemoveNodeList source)
public String getRole()
public void setRole(String Role)
Role
- Roles of nodes to be deleted.
- SECONDARY: Mongod secondary node.
- READONLY: read-only node.
- MONGOS: Mongos node.public String getNodeName()
public void setNodeName(String NodeName)
NodeName
- IDs of nodes to be deleted. For a sharded cluster instance, specify the names of nodes to be deleted on one shard. Nodes with the same names on other shards will also be deleted.
- Obtaining method: Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/mongodb), go to the **Node Management** tab, and obtain the **node ID**.
- Note: For a sharded cluster instance, specify the IDs of nodes on shard 0. For example, cmgo-6hfk\*\*\*\*\_0-node-primary.public String getZone()
public void setZone(String Zone)
Zone
- AZ corresponding to the node. For the currently supported AZs, see [Regions and AZs](https://www.tencentcloud.comom/document/product/240/3637?from_cn_redirect=1).
- Single AZ: all nodes are in the same AZ.
- Multiple AZs: The current standard specification involves three AZs. The primary and secondary nodes are not in the same AZ. Note: AZs corresponding to the nodes to be deleted should be specified. After deletion, the number of nodes in any 2 AZs should be larger than that in the third AZ.Copyright © 2025. All rights reserved.