public class DescribeDBInstancesRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
DescribeDBInstancesRequest() |
DescribeDBInstancesRequest(DescribeDBInstancesRequest 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 |
---|---|
Long |
getClusterType()
Get Specifies the cluster type of the queried instance.0: replica set instance.1: sharded cluster instance.-1: replica set and sharded cluster instance.
|
String[] |
getInstanceIds()
Get Instance ID list.
|
Long |
getInstanceType()
Get Specifies the instance type for querying.0: all instances.1: formal instance.3: read-only instance.4: disaster recovery instance.
|
Long |
getLimit()
Get Number of results returned per request.
|
Long |
getOffset()
Get Offset.
|
String |
getOrderBy()
Get Configures the field for sorting returned results.
|
String |
getOrderByType()
Get Configures the method for sorting returned results.
|
Long |
getPayMode()
Get Billing type.
|
Long[] |
getProjectIds()
Get Project ID.
|
String |
getSearchKey()
Get Specifies the keyword for search.
|
Long[] |
getStatus()
Get Specify the current status of the queried instance.0: pending initialization.1: processing, such as modifying specifications or modifying parameters.2: instance running normally.-2: instance expired.
|
String |
getSubnetId()
Get VPC subnet ID.
|
TagInfo[] |
getTags()
Get Tag information, including the tag key and tag value.
|
String |
getVpcId()
Get VPC ID.
|
void |
setClusterType(Long ClusterType)
Set Specifies the cluster type of the queried instance.0: replica set instance.1: sharded cluster instance.-1: replica set and sharded cluster instance.
|
void |
setInstanceIds(String[] InstanceIds)
Set Instance ID list.
|
void |
setInstanceType(Long InstanceType)
Set Specifies the instance type for querying.0: all instances.1: formal instance.3: read-only instance.4: disaster recovery instance.
|
void |
setLimit(Long Limit)
Set Number of results returned per request.
|
void |
setOffset(Long Offset)
Set Offset.
|
void |
setOrderBy(String OrderBy)
Set Configures the field for sorting returned results.
|
void |
setOrderByType(String OrderByType)
Set Configures the method for sorting returned results.
|
void |
setPayMode(Long PayMode)
Set Billing type.
|
void |
setProjectIds(Long[] ProjectIds)
Set Project ID.
|
void |
setSearchKey(String SearchKey)
Set Specifies the keyword for search.
|
void |
setStatus(Long[] Status)
Set Specify the current status of the queried instance.0: pending initialization.1: processing, such as modifying specifications or modifying parameters.2: instance running normally.-2: instance expired.
|
void |
setSubnetId(String SubnetId)
Set VPC subnet ID.
|
void |
setTags(TagInfo[] Tags)
Set Tag information, including the tag key and tag value.
|
void |
setVpcId(String VpcId)
Set VPC ID.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DescribeDBInstancesRequest()
public DescribeDBInstancesRequest(DescribeDBInstancesRequest source)
public String[] getInstanceIds()
public void setInstanceIds(String[] InstanceIds)
InstanceIds
- Instance ID list. For example, cmgo-p8vn****. Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/MongoDB) and copy the instance ID from the instance list.public Long getInstanceType()
public void setInstanceType(Long InstanceType)
InstanceType
- Specifies the instance type for querying.public Long getClusterType()
public void setClusterType(Long ClusterType)
ClusterType
- Specifies the cluster type of the queried instance.public Long[] getStatus()
public void setStatus(Long[] Status)
Status
- Specify the current status of the queried instance.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID.
- You do not need to specify this parameter for basic networks.
- Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/MongoDB), click a VPC name in the instance list, and obtain the ID on the **VPC** page.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- VPC subnet ID.
- You do not need to specify this parameter for basic networks.
- Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/MongoDB), click a VPC name in the instance list, and obtain the subnet ID on the **VPC** page.public Long getPayMode()
public void setPayMode(Long PayMode)
PayMode
- Billing type. Valid value: 0 (pay-as-you-go)public Long getLimit()
public void setLimit(Long Limit)
Limit
- Number of results returned per request. Default value: `20`. Value range: [1,100].public Long getOffset()
public void setOffset(Long Offset)
Offset
- Offset. Default value: `0`.public String getOrderBy()
public void setOrderBy(String OrderBy)
OrderBy
- Configures the field for sorting returned results. Currently, "ProjectId", "InstanceName", and "CreateTime" are supported for sorting.public String getOrderByType()
public void setOrderByType(String OrderByType)
OrderByType
- Configures the method for sorting returned results.
- ASC: ascending order.
- DESC: descending order.public Long[] getProjectIds()
public void setProjectIds(Long[] ProjectIds)
ProjectIds
- Project ID. Log in to the [TencentDB for MongoDB console](https://console.cloud.tencent.com/MongoDB) and select Project Management in the account information drop-down menu at the top right corner to query projects.public String getSearchKey()
public void setSearchKey(String SearchKey)
SearchKey
- Specifies the keyword for search. Specific instance IDs, instance names, or private IP addresses are supported.public TagInfo[] getTags()
public void setTags(TagInfo[] Tags)
Tags
- Tag information, including the tag key and tag value.Copyright © 2025. All rights reserved.