createInstanceBackupSchedule
Set Instance Backup Schedule
Details
- Method:
POST - Path:
/instances/{instance-id}/backup-schedule - Operation ID:
create-instance-backup-schedule
Parameters
{
"type": {
"description": "Type of backup schedule:\n\n| | Value | Description |\n| - | ------ | ------------- |\n| | daily | Back up once per day at `hour`. |\n| | weekly | Back up once per week on `dow` at `hour`. |\n| | monthly | Back up each month at `dom` at `hour`. |\n| | daily\\_alt\\_even | Back up on even dates at `hour`. |\n| | daily\\_alt\\_odd | Back up on odd dates at `hour`. |",
"required": true,
"location": "body",
"type": "string"
},
"hour": {
"description": "Hour of day to run in UTC.",
"required": false,
"location": "body",
"type": "integer"
},
"dow": {
"description": "Day of week to run.\n\n| | Value | Description |\n| - | ------ | ------------- |\n| | 1 | Sunday |\n| | 2 | Monday |\n| | 3 | Tuesday |\n| | 4 | Wednesday |\n| | 5 | Thursday |\n| | 6 | Friday |\n| | 7 | Saturday |",
"required": false,
"location": "body",
"type": "integer"
},
"dom": {
"description": "Day of month to run. Use values between 1 and 28.",
"required": false,
"location": "body",
"type": "integer"
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('vultr')
# Call this tool
result = await agent.call_tool('createInstanceBackupSchedule', {
# Add required parameters here
})