@utils.supported_filters(
    ADDED_FIELDS, optional_support_keys=OPTIONAL_ADDED_FIELDS,
    ignore_support_keys=IGNORE_FIELDS
)
@utils.input_validates(subnet=_check_subnet)
@database.run_in_session()
@user_api.check_user_permission(
    permission.PERMISSION_ADD_SUBNET
)
@utils.wrap_to_dict(RESP_FIELDS)
def add_subnet(
    exception_when_existing=True, subnet=None,
    user=None, session=None, **kwargs
):
    return utils.add_db_object(
        session, models.Subnet,
        exception_when_existing, subnet, **kwargs
    )
Get the list of all RDS instances OR the list of RDS instances that are authorized by RAM.
dataset/ETHPy150Open openstack/compass-core/compass/db/api/network.py/add_subnet--crossover with--dataset/ETHPy150Open quixey/python-aliyun/aliyun/rds/connection.py/RdsConnection.describe_all_db_instances