Child pages
  • Change Firewall Rule Position
Skip to end of metadata
Go to start of metadata

Ensure that the following permissions are enabled before setting firewall rules for your virtual server:

  • Create own firewall rules
  • Destroy own firewall rules
  • Read own firewall rules
  • Update own firewall rules
  • Update own virtual server
  • Read own virtual server
GET  /virtual_machines/:virtual_machine_id/firewall_rules/:firewall_rule_id/move.xml
GET /virtual_machines/:virtual_machine_id/firewall_rules/:firewall_rule_id/move.json

XML Request example

curl -X GET -u user:userpass http://onapp.test/virtual_machines/:virtual_machine_id/firewall_rules/:firewall_rule_id/move.xml?position=down -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request example:

curl -X GET -u user:userpass http://onapp.test/virtual_machines/:virtual_machine_id/firewall_rules/:firewall_rule_id/move.json?position=up -H 'Accept: application/json' -H 'Content-type: application/json'

To change a firewall rule position, specify the following parameters:

virtual_machine_id - ID of a virtual server the firewall rule belongs to

firewall_rule_id - ID of the firewall rule

position - specify the position change: up or down

 

  • No labels