def describe_route_entry(self, route_table_id): """ describe_route_entry: 查询route_entry路由条目 官网API参考链接: https://help.aliyun.com/document_detail/36014.html """ try: request = DescribeRouteTablesRequest.DescribeRouteTablesRequest() request.set_RouteTableId(route_table_id) response = self.client.do_action_with_exception(request) response_json = json.loads(response) return response_json except ServerException as e: ExceptionHandler.server_exception(e) except ClientException as e: ExceptionHandler.client_exception(e)
def describe_route_entry_vrouter(self, params): """ describe_route_entry_vrouter: 查询route_entry路由条目 官网API参考链接: https://help.aliyun.com/document_detail/36014.html """ try: request = DescribeRouteTablesRequest.DescribeRouteTablesRequest() # 路由表所属的VPC路由器或边界路由器的ID request.set_VRouterId(params['vrouter_id']) # 路由表的ID request.set_RouteTableId(params['route_table_id']) response = self.client.do_action_with_exception(request) response_json = json.loads(response) return response_json except ServerException as e: ExceptionHandler.server_exception(e) except ClientException as e: ExceptionHandler.client_exception(e)