Obtaining Parameters of a Specified DB Instance

Description

This API is used to obtain information about parameters of a specified DB instance.

Restrictions

This API applies only to DDS Community Edition.

URI

Requests

Parameter description

Table 1 Request parameters

Name

Type

IN

Mandatory

Description

x-auth-token

string

header

Yes

User token.

Content-Type

string

header

Yes

MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type.

project_id

string

path

Yes

Specifies the project ID of a tenant in a region.

instance_id

string

path

Yes

Specifies the instance ID, which can be obtained by calling the API for querying instances. If you do not have an instance, you can call the API used for creating an instance.

Table 2 Query parameters

Parameter

Type

Mandatory

Description

entity_id

String

Yes

  • Instance ID, group ID, or node ID. You can call the API used for querying instances and details to obtain the value. If you do not have an instance, you can call the API used for creating an instance.
  • If the DB instance type is cluster and the shard or config parameter template is obtained, the value is the group ID. If the parameter template of the mongos node is obtained, the value is the node ID.
  • If the DB instance type is a replica set instance or a single node instance, the value is the instance ID.

Responses

Status Code

Status Code:200.

For more information, see Status Code.

Error Code

For more information, see Error Code.