Updating backup plans

PATCH /v2/{project_id}/jobs/{job_id}

Update backup settings in a backup plan.

Source: https://docs.openstack.org/api-ref/backup/v2/index.html#updates-jobs-v2

Request

Parameters

Name In Type Description
project_id path string The UUID of the project.
job_id path string The job UUID.
name body string The name of the job.
description body string The description of the job.
job_schedule body dict The schedule information of the job.
job_actions body list A list of actions that carry out the backup/restore job.

Example

# curl -ks -X PATCH -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '\
{
    "job_schedule": {
        "schedule_day_of_week": "0,1,2,3,4,5,6",
        "schedule_month": "1,2,3,4,5,6,7,8,9,10,11,12",
        "schedule_day": "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31",
        "schedule_minute": "00",
        "schedule_hour": "14"
    }
}' https://<node_IP_addr>:8736/v2/3046fb2c2a314a0fbb32607caa1e5277/jobs/e632eb1884e0468c8a41e656942df500

Response

Parameters

Name In Type Description
job_id body string The job UUID.
version body integer The job version.

Status codes

Success

Code Reason
200 - OK Request was successful.

Error

Code Reason
400 - Bad Request

Some content in the request was invalid.

401 - Unauthorized

User must authenticate before making a request.

404 - Not Found

The requested resource could not be found.

Example

{
  "job_id": "e632eb1884e0468c8a41e656942df500",
  "version": 0
}