manage_instance_power
Control and manage cloud instance power operations, including power on, power off, reboot, and shutdown, across multiple providers like DigitalOcean, Vultr, and Alibaba, ensuring precise configuration via IP and instance validation.
Instructions
通用的实例电源管理函数(支持所有云平台)
Args:
provider (str): 云服务提供商 ('digitalocean', 'vultr', 'alibaba')
instance_id (str): 实例ID
action (str): 操作类型 ('power_on', 'power_off', 'reboot', 'shutdown')
ip_confirmation (str): 确认IP地址
name_confirmation (str): 确认实例名称
operation_confirmation (str): 确认操作类型
Returns:
Dict: 操作结果
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | ||
instance_id | Yes | ||
ip_confirmation | No | ||
name_confirmation | No | ||
operation_confirmation | No | ||
provider | Yes |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"title": "Action",
"type": "string"
},
"instance_id": {
"title": "Instance Id",
"type": "string"
},
"ip_confirmation": {
"default": "",
"title": "Ip Confirmation",
"type": "string"
},
"name_confirmation": {
"default": "",
"title": "Name Confirmation",
"type": "string"
},
"operation_confirmation": {
"default": "",
"title": "Operation Confirmation",
"type": "string"
},
"provider": {
"title": "Provider",
"type": "string"
}
},
"required": [
"provider",
"instance_id",
"action"
],
"title": "manage_instance_powerArguments",
"type": "object"
}