Skip to content

Can't override default region for DescribeDBInstancesRequest #486

Open
@juarezjsonar

Description

@juarezjsonar
  • Python Version: 3.11
  • aliyunsdkcore Version: 2.13.36
  • API: aliyunsdkrds.request.v20140815.DescribeDBInstancesRequest

When calling DescribeDBInstancesRequest through the CLI, I can override the default region by using the flag --RegionId. The same behaviour is not observed when using the python sdk.

I have already fixed this problem on my end by implement a get_RegionId and a set_RegionId to the DescribeDBInstancesRequest class, similar to the existing set_ZoneId and get_ZoneId, like so:

def get_RegionId(self): # String
    return self.get_query_params().get('RegionId')

def set_RegionId(self, RegionId):  # String
    self.add_query_param('RegionId', RegionId)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions