describe_instance_linked_whitelist_template
Retrieve whitelist templates linked to an Alibaba Cloud RDS instance to manage database access controls and security configurations.
Instructions
describe instance linked whitelist template.
Args:
region_id: The region ID of the RDS instance.
db_instance_id: The ID of the RDS instance.
Returns:
dict[str, Any]: The response.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region_id | Yes | ||
| db_instance_id | Yes |
Implementation Reference
- The main handler function that executes the tool 'describe_instance_linked_whitelist_template'. It uses the RDS OpenAPI client to query the whitelist templates linked to the specified DB instance.async def describe_instance_linked_whitelist_template( region_id: str, db_instance_id: str ): """ describe instance linked whitelist template. Args: region_id: The region ID of the RDS instance. db_instance_id: The ID of the RDS instance. Returns: dict[str, Any]: The response. """ try: client = get_rds_client(region_id) request = rds_20140815_models.DescribeInstanceLinkedWhitelistTemplateRequest( region_id=region_id, ins_name=db_instance_id ) response = await client.describe_instance_linked_whitelist_template_async(request) return response.body.to_map() except Exception as e: raise e