You can call this operation to query the ECS Security groups associated with an apsaradb for MongoDB instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided by Alibaba Cloud for you to access services.

Action String No DescribeSecurityGroupConfiguration

The operation that you want to perform. Set the value to DescribeSecurityGroupConfiguration.

Response parameters

Parameter Type Example Description
Items Array

The ECS Security Group information.

RdsEcsSecurityGroupRel

The ECS Security Group information.

NetType String vpc

The network type of the ECS Security Group. Response:

  • vpc
  • classic
RegionId Boolean cn-hangzhou

The ID of the region to which the ECS Security Group belongs.

SecurityGroupId String sg-bpxxxxxxxx

The ID of the ECS security group.

RequestId String Cost

The ID of the request.

Examples

Sample requests


http(s)://mongodb.aliyuncs.com/? Action=DescribeSecurityGroupConfiguration
&DBInstanceId=dds-bpxxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<Items>
    <RdsEcsSecurityGroupRel>
        <SecurityGroupId>sg-bpxxxxxxxx</SecurityGroupId>
        <RegionId>cn-hangzhou</RegionId>
        <NetType>classic</NetType>
    </RdsEcsSecurityGroupRel>
</Items>
<RequestId>D18F5B88-ACA6-470E-9493-384412EDD902</RequestId>

JSON format

{
	"Items":{
		"RdsEcsSecurityGroupRel":[
			{
				"SecurityGroupId":"sg-bpxxxxxxxx",
				"RegionId":"cn-hangzhou",
				"NetType":"classic"
			}
		]
	},
	"RequestId":"D18F5B88-ACA6-470E-9493-384412EDD902"
}

Error codes.

For a list of error codes, visit the API Error Center.