All Products
Search
Document Center

ApsaraDB for MongoDB:DescribeGlobalSecurityIPGroupRelation

Last Updated:Sep 03, 2024

Queries the global IP whitelist templates 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.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dds:DescribeGlobalSecurityIPGroupRelationget
  • Instance
    acs:dds:{#regionId}:{#accountId}:dbinstance/{#dbinstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
DBClusterIdstringYes

The instance ID.

dds-2ze6069764423m0l

Response parameters

ParameterTypeDescriptionExample
object
DBClusterIdstring

The instance ID.

dds-2ze6069764423m0l
RequestIdstring

The unique ID of the request. If the request fails, provide this ID for technical support to troubleshoot the failure.

F8CA8312-530A-413A-9129-F2BB32A8D404
GlobalSecurityIPGroupRelarray<object>

The global IP whitelist templates associated with the instance.

object

The global IP whitelist template associated with the instance.

GlobalSecurityGroupIdstring

The ID of the IP whitelist template.

g-gfurfpsh4ycbrm2avst7
GIpListstring

The IP addresses in the whitelist template.

Note Separate multiple IP addresses with commas (,). You can create up to 1,000 IP addresses or CIDR blocks for all IP whitelists.
27.16.214.10,111.60.117.181
RegionIdstring

The region ID of the instance.

cn-hongkong
GlobalIgNamestring

The name of the IP whitelist template.

dev_baoxian_k8s_bj

Examples

Sample success responses

JSONformat

{
  "DBClusterId": "dds-2ze6069764423m0l",
  "RequestId": "F8CA8312-530A-413A-9129-F2BB32A8D404",
  "GlobalSecurityIPGroupRel": [
    {
      "GlobalSecurityGroupId": "g-gfurfpsh4ycbrm2avst7",
      "GIpList": "27.16.214.10,111.60.117.181",
      "RegionId": "cn-hongkong",
      "GlobalIgName": "dev_baoxian_k8s_bj"
    }
  ]
}

Error codes

HTTP status codeError codeError message
400RequiredParam.NotFoundRequired input param is not found.

For a list of error codes, visit the Service error codes.