For ApsaraDB for MongoDB, only instances can be authorized in RAM. The following table describes the Alibaba Cloud Resource Name (ARN) formats in authorization policies.

Resource type ARN format
Instance

acs:dds:$regionid:$accountid:dbinstance/$dbinstanceid

acs:dds:$regionid:$accountid:dbinstance/

acs:dds:::dbinstance/

Parameters in the ARN formats:

  • The $regionid field must be set to a region ID or an asterisk (*).
  • The $instanceid field must be set to an instance ID or an asterisk (*).
  • The $accountid field indicates the numeric ID of your account, which can be replaced by an asterisk (*).