@@ -30,7 +30,7 @@ def create_client() -> dms_enterprise20181101Client:
30
30
31
31
""" )
32
32
async def addInstance (db_user : str , db_password : str , instance_resource_id : Optional [str ] = None ,
33
- host : Optional [str ] = None , port : str = None , region : Optional [str ] = None ) -> Dict [str , Any ]:
33
+ host : Optional [str ] = None , port : Optional [ str ] = None , region : Optional [str ] = None ) -> Dict [str , Any ]:
34
34
if not db_user or not isinstance (db_user , str ):
35
35
logging .error ("Invalid db_user parameter: %s" , db_user )
36
36
return "db_user must be a non-empty string"
@@ -49,7 +49,7 @@ async def addInstance(db_user: str, db_password: str, instance_resource_id: Opti
49
49
if port :
50
50
add_instance_request .port = port
51
51
if instance_resource_id :
52
- add_instance_request .instance_resource_id = instance_resource_id
52
+ add_instance_request .instance_id = instance_resource_id
53
53
if region :
54
54
add_instance_request .region = region
55
55
try :
@@ -181,6 +181,7 @@ async def searchDatabase(search_key: str, page_number: int = 1, page_size: int =
181
181
Retrieve detailed information about a specific database from DMS.
182
182
This tool fetches metadata for a database instance in the DMS
183
183
based on connection parameters and schema name. Supports Oracle-specific SID specification.
184
+ If you don't know host port, please use searchDatabase tool instead.
184
185
Parameters:
185
186
host (str): Hostname or IP address of the database instance.
186
187
port (str): Connection port number (valid range: 1-65535).
0 commit comments