Nacos引擎Python客户端接入文档 注册实例 NacosClient.addnaminginstance(servicename, ip, port, clustername, weight, metadata, enable, healthy,ephemeral,groupname,heartbeatinterval) param servicename required Service name to register to. param ip required IP of the instance. param port required Port of the instance. param clustername Cluster to register to. param weight A float number for load balancing weight. param metadata Extra info in JSON string format or dict format param enable A bool value to determine whether instance is enabled or not. param healthy A bool value to determine whether instance is healthy or not. param ephemeral A bool value to determine whether instance is ephemeral or not. param heartbeatinterval Auto daemon heartbeat interval in seconds. return True if success or an exception will be raised. 注销实例 NacosClient.removenaminginstance(servicename, ip, port, clustername) param servicename required Service name to deregister from. param ip required IP of the instance. param port required Port of the instance. param clustername Cluster to deregister from. param ephemeral A bool value to determine whether instance is ephemeral or not. return True if success or an exception will be raised. 更新实例 NacosClient.modifynaminginstance(servicename, ip, port, clustername, weight, metadata, enable) param servicename required Service name. param ip required IP of the instance. param port required Port of the instance. param clustername Cluster name. param weight A float number for load balancing weight. param metadata Extra info in JSON string format or dict format. param enable A bool value to determine whether instance is enabled or not. param ephemeral A bool value to determine whether instance is ephemeral or not. return True if success or an exception will be raised.