describe_instance_linked_whitelist_template
Retrieve the whitelist template linked to an Alibaba Cloud RDS instance by specifying the region and instance ID. This tool enables secure access management for RDS services through the OpenAPI MCP Server.
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
| Name | Required | Description | Default |
|---|---|---|---|
| db_instance_id | Yes | ||
| region_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"db_instance_id": {
"title": "Db Instance Id",
"type": "string"
},
"region_id": {
"title": "Region Id",
"type": "string"
}
},
"required": [
"region_id",
"db_instance_id"
],
"title": "describe_instance_linked_whitelist_templateArguments",
"type": "object"
}
Implementation Reference
- The main handler function for the 'describe_instance_linked_whitelist_template' MCP tool. It queries the Alibaba Cloud RDS API to describe the whitelist templates linked to a specific DB instance using the DescribeInstanceLinkedWhitelistTemplate API call.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