Child pages
  • Get List of Publishing Rules
Skip to end of metadata
Go to start of metadata
GET /virtual_machines/:vm_id/publications.xml
GET /virtual_machines/:vm_id/publications.json

XML Request example

curl -i -X GET -u user:userpass http://onapp.test/virtual_machines/ozfdksfaf7esrx/publications.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request example

curl -i -X GET -u user:userpass http://onapp.test/virtual_machines/ozfdksfaf7esrx/publications.json -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output example

<?xml version="1.0" encoding="UTF-8"?>
<publications type="array">
  <publication>
    <created_at type="datetime">2012-09-14T12:57:49+03:00</created_at>
    <id type="integer">1</id>
    <is_built type="boolean">false</is_built>
    <outside_ip_address_id nil="true"></outside_ip_address_id>
    <port type="integer">80</port>
    <protocol>UDP</protocol>
    <rule_number type="integer">51</rule_number>
    <updated_at type="datetime">2012-09-14T12:57:49+03:00</updated_at>
    <virtual_machine_id type="integer">66</virtual_machine_id>
  </publication>
</publications>

Where:

publications - an array of the publishing rules

created_at - the date when the publishing rule was created in the [YYYY][MM][DD]T[hh][mm][ss]Z format

id - publishing rule ID

outside_ip_address_id - ID of a free IPv4 address

port - the port for which this rule is active

protocol - type of the protocol.

rule_number -

updated_at - the date when the publishing rule was updated in the [YYYY][MM][DD]T[hh][mm][ss]Z format

virtual_machine_id - ID of the virtual server

 

 

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels