Abiquo Documentation Cookies Policy

Our Documentation website uses cookies to improve your experience. Please visit our Cookie Policy page for more information about cookies and how we use them.


Abiquo 4.4

Skip to end of metadata
Go to start of metadata

Contents:

Virtual machine action plan schedules

VM action plans can be triggered by schedules that are interval-based or calendar based (using cron).

Main URI of the resource

This class operates mainly over the Resource URI: /cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules

Exposed Methods

List interval based schedules of a virtual machine action plan

Synopsis: GET http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules
Roles required: VM_ACTION_PLAN_VIEW
Request headers: Accept: application/vnd.abiquo.intervalbasedschedules+json;
Request parameters: 

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: Abiquo Data Media Types#IntervalBasedSchedules Media Type
Request Example:

 Click here to show or hide the request example
Retrieve all action plans in a virtual machine
curl 'http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules' \
-H 'Accept: application/vnd.abiquo.intervalbasedschedules+json;version=3.10'

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: ABQSESSIONID=315927049619469305; Expires=Fri, 04-Nov-2016 11:50:17 GMT; Path=/; HttpOnly
Set-Cookie: auth=YWRtaW46MTQ3ODI2MDIxNzU3MDo3ZDBiMWZiMmQyODc5NjNmY2E1NGQ4YmE4YWNhOTBkYTpBQklRVU8; Expires=Fri, 04-Nov-2016 11:50:17 GMT; Path=/; HttpOnly
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Abiquo-OTP
Content-Type: application/vnd.abiquo.intervalbasedschedules+json; version=4.0
Transfer-Encoding: chunked
Date: Fri, 04 Nov 2016 11:20:17 GMT

{
   "links":[
   ],
   "collection":[
      {
         "links":[
            {
               "title":"admin",
               "rel":"user",
               "type":"application/vnd.abiquo.user+json",
               "href":"http://example.com/api/admin/enterprises/1/users/1"
            },
            {
               "title":"action-plan-0",
               "rel":"actionplan",
               "type":"application/vnd.abiquo.virtualmachineactionplan+json",
               "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
            },
            {
               "title":"schedule",
               "rel":"edit",
               "type":"application/vnd.abiquo.intervalbasedschedule+json",
               "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c4a98d19-a41d-4bd4-99cc-9b52e8df4a15"
            }
         ],
         "intervalSeconds":60
      }
   ]
}

List cron based schedules of a virtual machine action plan

Synopsis: GET http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules
Roles required: VM_ACTION_PLAN_VIEW
Request headers: Accept: application/vnd.abiquo.cronbasedschedules+json;
Request parameters: 

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: Abiquo Data Media Types#CronBasedSchedules Media Type
Request Example:

 Click here to show or hide the request example
Retrieve all action plans in a virtual machine
curl 'http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules' \
-H 'Accept: application/vnd.abiquo.cronbasedschedules+json;version=3.10'

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: ABQSESSIONID=315927049619469305; Expires=Fri, 04-Nov-2016 11:50:17 GMT; Path=/; HttpOnly
Set-Cookie: auth=YWRtaW46MTQ3ODI2MDIxNzYwODoxMDM3YzMwM2FmNmYxNjA2M2FmY2U3MzZlYzBjOWEzZjpBQklRVU8; Expires=Fri, 04-Nov-2016 11:50:17 GMT; Path=/; HttpOnly
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Abiquo-OTP
Content-Type: application/vnd.abiquo.cronbasedschedules+json; version=4.0
Transfer-Encoding: chunked
Date: Fri, 04 Nov 2016 11:20:17 GMT

{
   "links":[
   ],
   "collection":[
      {
         "links":[
            {
               "title":"admin",
               "rel":"user",
               "type":"application/vnd.abiquo.user+json",
               "href":"http://example.com/api/admin/enterprises/1/users/1"
            },
            {
               "title":"action-plan-0",
               "rel":"actionplan",
               "type":"application/vnd.abiquo.virtualmachineactionplan+json",
               "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
            },
            {
               "title":"cronschedule",
               "rel":"edit",
               "type":"application/vnd.abiquo.cronbasedschedule+json",
               "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c0ba7f03-7045-4a82-b3a4-ef5482bd3693"
            }
         ],
         "seconds":"0",
         "minutes":"15",
         "hours":"1",
         "dayOfMonth":"?",
         "month":"*",
         "dayOfWeek":"1"
      }
   ]
}

Create an interval based schedule for a virtual machine action plan

Synopsis: POST http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules
Roles required: VM_ACTION_PLAN_MANAGE
Request headers: Accept: application/vnd.abiquo.intervalbasedschedule+json; Content-type: application/vnd.abiquo.intervalbasedschedule+json;
Request parameters: 

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: IntervalBasedSchedule Media Type  
Response Message Body Entity: IntervalBasedSchedule Media Type  
Request Example:

 Click here to show or hide the request example
Create an action plan in a virtual machine
curl 'http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules' \
-H 'Content-Type: application/vnd.abiquo.intervalbasedschedule+json;version=4.0' \
-H 'Accept: application/vnd.abiquo.intervalbasedschedule+json;version=4.0' \
--data-binary '{"intervalSeconds":"60"}'

HTTP/1.1 201 Created
Server: Apache-Coyote/1.1
Set-Cookie: ABQSESSIONID=315927049619469305; Expires=Fri, 04-Nov-2016 11:34:57 GMT; Path=/; HttpOnly
Set-Cookie: auth=YWRtaW46MTQ3ODI1OTI5NzMzMToxNmQ2ZjdjOTIzNWVkNjRkNmFlYzk5ZGVhOWE4Y2E0NTpBQklRVU8; Expires=Fri, 04-Nov-2016 11:34:57 GMT; Path=/; HttpOnly
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Abiquo-OTP
Location: http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c4a98d19-a41d-4bd4-99cc-9b52e8df4a15
Content-Type: application/vnd.abiquo.intervalbasedschedule+json; version=4.0
Transfer-Encoding: chunked
Date: Fri, 04 Nov 2016 11:04:57 GMT

{
   "links":[
      {
         "title":"admin",
         "rel":"user",
         "type":"application/vnd.abiquo.user+json",
         "href":"http://example.com/api/admin/enterprises/1/users/1"
      },
      {
         "title":"action-plan-0",
         "rel":"actionplan",
         "type":"application/vnd.abiquo.virtualmachineactionplan+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
      },
      {
         "title":"schedule",
         "rel":"edit",
         "type":"application/vnd.abiquo.intervalbasedschedule+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c4a98d19-a41d-4bd4-99cc-9b52e8df4a15"
      }
   ],
   "intervalSeconds":60
}

Create a cron based schedule for a virtual machine action plan

Synopsis: POST http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules
Roles required: VM_ACTION_PLAN_MANAGE
Request headers: Accept: application/vnd.abiquo.cronbasedschedule+json; Content-type: application/vnd.abiquo.cronbasedschedule+json;
Request parameters: 

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: CronBasedSchedule Media Type  
Response Message Body Entity: CronBasedSchedule Media Type  
Request Example:

 Click here to show or hide the request example
Create an action plan in a virtual machine
curl 'http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules' \
-H 'Content-Type: application/vnd.abiquo.cronbasedschedule+json;version=4.0' \
-H 'Accept: application/vnd.abiquo.cronbasedschedule+json;version=4.0' \
--data-binary '{"seconds":"0","minutes":"15","hours":"1","dayOfMonth":"?","month":"*","dayOfWeek":"1"}'

HTTP/1.1 201 Created
Server: Apache-Coyote/1.1
Set-Cookie: ABQSESSIONID=315927049619469305; Expires=Fri, 04-Nov-2016 11:44:37 GMT; Path=/; HttpOnly
Set-Cookie: auth=YWRtaW46MTQ3ODI1OTg3NzE2NDo1ZTA5NDEyYmY3MGY3OWViZmQ2MTkyMjMzZjZmMmFmMjpBQklRVU8; Expires=Fri, 04-Nov-2016 11:44:37 GMT; Path=/; HttpOnly
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Abiquo-OTP
Location: http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c0ba7f03-7045-4a82-b3a4-ef5482bd3693
Content-Type: application/vnd.abiquo.cronbasedschedule+json; version=4.0
Transfer-Encoding: chunked
Date: Fri, 04 Nov 2016 11:14:36 GMT

{
   "links":[
      {
         "title":"admin",
         "rel":"user",
         "type":"application/vnd.abiquo.user+json",
         "href":"http://example.com/api/admin/enterprises/1/users/1"
      },
      {
         "title":"action-plan-0",
         "rel":"actionplan",
         "type":"application/vnd.abiquo.virtualmachineactionplan+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
      },
      {
         "title":"cronschedule",
         "rel":"edit",
         "type":"application/vnd.abiquo.cronbasedschedule+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c0ba7f03-7045-4a82-b3a4-ef5482bd3693"
      }
   ],
   "seconds":"0",
   "minutes":"15",
   "hours":"1",
   "dayOfMonth":"?",
   "month":"*",
   "dayOfWeek":"1"
}

Get an interval based schedule of a virtual machine action plan

Synopsis: GET http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules/{schedule}
Roles required: VM_ACTION_PLAN_VIEW
Request headers:  Accept: application/vnd.abiquo.intervalbasedschedule+json;
Request parameters: 

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: IntervalBasedSchedule Media Type 
Request Example:

 Click here to show or hide the request example
Retrieve an action plan in a virtual machine
curl 'http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c4a98d19-a41d-4bd4-99cc-9b52e8df4a15' \
-H 'Accept: application/vnd.abiquo.intervalbasedschedule+json;version=3.10'

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: ABQSESSIONID=315927049619469305; Expires=Fri, 04-Nov-2016 11:50:17 GMT; Path=/; HttpOnly
Set-Cookie: auth=YWRtaW46MTQ3ODI2MDIxNzU3MDo3ZDBiMWZiMmQyODc5NjNmY2E1NGQ4YmE4YWNhOTBkYTpBQklRVU8; Expires=Fri, 04-Nov-2016 11:50:17 GMT; Path=/; HttpOnly
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Abiquo-OTP
Content-Type: application/vnd.abiquo.intervalbasedschedule+json; version=4.0
Transfer-Encoding: chunked
Date: Fri, 04 Nov 2016 11:20:17 GMT
{
   "links":[
      {
         "title":"admin",
         "rel":"user",
         "type":"application/vnd.abiquo.user+json",
         "href":"http://example.com/api/admin/enterprises/1/users/1"
      },
      {
         "title":"action-plan-0",
         "rel":"actionplan",
         "type":"application/vnd.abiquo.virtualmachineactionplan+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
      },
      {
         "title":"schedule",
         "rel":"edit",
         "type":"application/vnd.abiquo.intervalbasedschedule+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c4a98d19-a41d-4bd4-99cc-9b52e8df4a15"
      }
   ],
   "intervalSeconds":60
}

Get a cron based schedule of a virtual machine action plan

Synopsis: GET http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules/{schedule}
Roles required: VM_ACTION_PLAN_VIEW
Request headers:  Accept: application/vnd.abiquo.cronbasedschedule+json;
Request parameters: 

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: CronBasedSchedule Media Type 
Request Example:

 Click here to show or hide the request example
Retrieve an action plan in a virtual machine
curl 'http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c0ba7f03-7045-4a82-b3a4-ef5482bd3693' \
-H 'Accept: application/vnd.abiquo.cronbasedschedule+json;version=3.10'

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: ABQSESSIONID=315927049619469305; Expires=Fri, 04-Nov-2016 11:50:17 GMT; Path=/; HttpOnly
Set-Cookie: auth=YWRtaW46MTQ3ODI2MDIxNzYwODoxMDM3YzMwM2FmNmYxNjA2M2FmY2U3MzZlYzBjOWEzZjpBQklRVU8; Expires=Fri, 04-Nov-2016 11:50:17 GMT; Path=/; HttpOnly
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Abiquo-OTP
Content-Type: application/vnd.abiquo.cronbasedschedule+json; version=4.0
Transfer-Encoding: chunked
Date: Fri, 04 Nov 2016 11:20:17 GMT
 
{
   "links":[
      {
         "title":"admin",
         "rel":"user",
         "type":"application/vnd.abiquo.user+json",
         "href":"http://example.com/api/admin/enterprises/1/users/1"
      },
      {
         "title":"action-plan-0",
         "rel":"actionplan",
         "type":"application/vnd.abiquo.virtualmachineactionplan+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
      },
      {
         "title":"cronschedule",
         "rel":"edit",
         "type":"application/vnd.abiquo.cronbasedschedule+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c0ba7f03-7045-4a82-b3a4-ef5482bd3693"
      }
   ],
   "seconds":"0",
   "minutes":"15",
   "hours":"1",
   "dayOfMonth":"?",
   "month":"*",
   "dayOfWeek":"1"
}

Update an interval based schedule of a virtual machine action plan

Synopsis: PUT http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules/{schedule}
Roles required: VM_ACTION_PLAN_MANAGE
Request headers:  Accept: application/vnd.abiquo.intervalbasedschedule+json; Content-type: application/vnd.abiquo.intervalbasedschedule+json
Request parameters: 

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: IntervalBasedSchedule Media Type 
Response Message Body Entity: IntervalBasedSchedule Media Type 
Request Example:

 Click here to show or hide the request example
Edit a virtual machine action plan
curl 'http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c4a98d19-a41d-4bd4-99cc-9b52e8df4a15' \
-X PUT \
-H 'Content-Type: application/vnd.abiquo.intervalbasedschedule+json;version=4.0' \
-H 'Accept: application/vnd.abiquo.intervalbasedschedule+json;version=4.0' \ 
--data-binary '{
   "links":[
      {
         "title":"admin",
         "rel":"user",
         "type":"application/vnd.abiquo.user+json",
         "href":"http://example.com/api/admin/enterprises/1/users/1"
      },
      {
         "title":"action-plan-0",
         "rel":"actionplan",
         "type":"application/vnd.abiquo.virtualmachineactionplan+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
      },
      {
         "title":"schedule",
         "rel":"edit",
         "type":"application/vnd.abiquo.intervalbasedschedule+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c4a98d19-a41d-4bd4-99cc-9b52e8df4a15"
      }
   ],
   "intervalSeconds":"120"
}
 
 
 
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: ABQSESSIONID=315927049619469305; Expires=Fri, 04-Nov-2016 12:14:44 GMT; Path=/; HttpOnly
Set-Cookie: auth=YWRtaW46MTQ3ODI2MTY4NDgxNDo5NzFiOGJlY2JlNTc4YmFiMDlhZWJkMzNkOWMwZDQ1ZTpBQklRVU8; Expires=Fri, 04-Nov-2016 12:14:44 GMT; Path=/; HttpOnly
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Abiquo-OTP
Content-Type: application/vnd.abiquo.intervalbasedschedule+json; version=4.0
Transfer-Encoding: chunked
Date: Fri, 04 Nov 2016 11:44:44 GMT
{
   "links":[
      {
         "title":"ABQ_2cf23c7c-71f7-45ac-99f7-9c1fe360dae4",
         "rel":"virtualmachine",
         "type":"application/vnd.abiquo.virtualmachine+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1"
      },
      {
         "title":"execute action plan",
         "rel":"execute",
         "type":"application/vnd.abiquo.acceptedrequest+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/action/execute"
      },
      {
         "title":"tasks",
         "rel":"tasks",
         "type":"application/vnd.abiquo.tasks+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/tasks"
      },
      {
         "title":"interval-schedules",
         "rel":"interval-schedules",
         "type":"application/vnd.abiquo.intervalbasedschedules+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules"
      },
      {
         "title":"cron-schedules",
         "rel":"cron-schedules",
         "type":"application/vnd.abiquo.cronbasedschedules+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules"
      },
      {
         "title":"action-plan-example",
         "rel":"edit",
         "type":"application/vnd.abiquo.virtualmachineactionplan+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
      }
   ],
   "name":"action-plan-example",
   "description":"Deploy, power off",
   "createdBy":"Cloud",
   "entries":[
      {
         "sequence":0,
         "type":"DEPLOY",
         "parameterType":"None"
      },
      {
         "sequence":1,
         "type":"POWER_OFF",
         "parameterType":"None"
      }
   ]
}

Update a cron based schedule of a virtual machine action plan

Synopsis: PUT http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules/{schedule}
Roles required: VM_ACTION_PLAN_MANAGE
Request headers:  Accept: application/vnd.abiquo.cronbasedschedule+json; Content-type: application/vnd.abiquo.cronbasedschedule+json
Request parameters: 

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: CronBasedSchedule Media Type 
Response Message Body Entity: CronBasedSchedule Media Type  
Request Example:

 Click here to show or hide the request example
Edit a virtual machine action plan
curl 'http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c0ba7f03-7045-4a82-b3a4-ef5482bd3693' \
-X PUT \
-H 'Content-Type: application/vnd.abiquo.cronbasedschedule+json;version=4.0' \
-H 'Accept: application/vnd.abiquo.cronbasedschedule+json;version=4.0' \
--data-binary '{{
   "links":[
      {
         "title":"admin",
         "rel":"user",
         "type":"application/vnd.abiquo.user+json",
         "href":"http://example.com/api/admin/enterprises/1/users/1"
      },
      {
         "title":"action-plan-0",
         "rel":"actionplan",
         "type":"application/vnd.abiquo.virtualmachineactionplan+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
      },
      {
         "title":"cronschedule",
         "rel":"edit",
         "type":"application/vnd.abiquo.cronbasedschedule+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c0ba7f03-7045-4a82-b3a4-ef5482bd3693"
      }
   ],
   "seconds":"0",
   "minutes":"5",
   "hours":"3",
   "dayOfMonth":"?",
   "month":"*",
   "dayOfWeek":"2"
}
 
 
 
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: ABQSESSIONID=315927049619469305; Expires=Fri, 04-Nov-2016 12:17:37 GMT; Path=/; HttpOnly
Set-Cookie: auth=YWRtaW46MTQ3ODI2MTg1NzE2NDoyNTkxZGE5ZDZiMWUxY2M1ZGNhNWQxODc3YjE0MjU0YzpBQklRVU8; Expires=Fri, 04-Nov-2016 12:17:37 GMT; Path=/; HttpOnly
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Abiquo-OTP
Content-Type: application/vnd.abiquo.cronbasedschedule+json; version=4.0
Transfer-Encoding: chunked
Date: Fri, 04 Nov 2016 11:47:37 GMT
{
   "links":[
      {
         "title":"admin",
         "rel":"user",
         "type":"application/vnd.abiquo.user+json",
         "href":"http://example.com/api/admin/enterprises/1/users/1"
      },
      {
         "title":"action-plan-0",
         "rel":"actionplan",
         "type":"application/vnd.abiquo.virtualmachineactionplan+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1"
      },
      {
         "title":"cronschedule",
         "rel":"edit",
         "type":"application/vnd.abiquo.cronbasedschedule+json",
         "href":"http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c0ba7f03-7045-4a82-b3a4-ef5482bd3693"
      }
   ],
   "seconds":"0",
   "minutes":"5",
   "hours":"3",
   "dayOfMonth":"?",
   "month":"*",
   "dayOfWeek":"2"
}

Delete a schedule of a virtual machine action plan

Synopsis: DELETE http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/virtualappliances/{virtualappliance}/virtualmachines/{virtualmachine}/actionplans/{actionplan}/schedules/{schedule}
Roles required: VM_ACTION_PLAN_MANAGE
Request headers: 
Request parameters: 

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: 
Request Example:

 Click here to show or hide the request example
Delete a virtual machine action plan
curl 'http://example.com/api/cloud/virtualdatacenters/1/virtualappliances/1/virtualmachines/1/actionplans/1/schedules/c4a98d19-a41d-4bd4-99cc-9b52e8df4a15' \
-X DELETE

HTTP/1.1 204 No Content
Server: Apache-Coyote/1.1
Set-Cookie: ABQSESSIONID=315927049619469305; Expires=Fri, 04-Nov-2016 12:19:16 GMT; Path=/; HttpOnly
Set-Cookie: auth=YWRtaW46MTQ3ODI2MTk1NjM0MDpjYjA0MWVmMmVlNzU3NGViNjVmM2MwNTY5MTUxMDZkMDpBQklRVU8; Expires=Fri, 04-Nov-2016 12:19:16 GMT; Path=/; HttpOnly
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, X-Abiquo-OTP
Date: Fri, 04 Nov 2016 11:49:16 GMT
  • No labels