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.

Skip to end of metadata
Go to start of metadata

Load Balancer Virtual Machines Resource

Main URI of the Resource

This class operates mainly over the Resource URI: /cloud/locations/{location}/loadbalancers/{loadbalancer}/virtualmachines

Exposed Methods

List all the VirtualMachines registered in the LoadBalancer

Synopsis: GET /cloud/locations/{location}/loadbalancers/{loadbalancer}/virtualmachines
Roles required: ROLE_MANAGE_LOADBALANCERS
Request headers: Accept: application/vnd.abiquo.links
Request parameters:

curl --verbose -XGET http://admin:xabiquo@10.60.1.223:80/api/cloud/locations/1/loadbalancers/1/virtualmachines

response

{
  "links": [
    {
      "href": "http://10.60.1.223:80/api/cloud/virtualdatacenters/2/virtualappliances/1/virtualmachines/1",
      "type": "application/vnd.abiquo.virtualmachine+json",
      "rel": "virtualmachine",
      "title": "ABQ_71726514-daf6-42d3-ab62-3d2739556b8d"
    }
  ]
}

Update the list of registered VirtualMachines in the LoadBalancer

Synopsis: PUT /cloud/locations/{location}/loadbalancers/{loadbalancer}/virtualmachines
Roles required: ROLE_MANAGE_LOADBALANCERS
Request headers: Accept: application/vnd.abiquo.links; Content-Type: application/vnd.abiquo.links
Request parameters:

curl --verbose -XPUT http://admin:xabiquo@10.60.1.223/api/cloud/locations/1/loadbalancers/1/virtualmachines -H "Content-Type: application/vnd.abiquo.links" -d '{
    "links": [
        {
            "href": "http://10.60.1.223:80/api/cloud/virtualdatacenters/2/virtualappliances/1/virtualmachines/1",
            "rel": "virtualmachine",
            "title": "ABQ_71726514-daf6-42d3-ab62-3d2739556b8d",
            "type": "application/vnd.abiquo.virtualmachine+json"
        }
    ]
}'

response

{
    "links": [
        {
            "href": "http://10.60.1.223:80/api/cloud/virtualdatacenters/2/virtualappliances/1/virtualmachines/1",
            "rel": "virtualmachine",
            "title": "ABQ_71726514-daf6-42d3-ab62-3d2739556b8d",
            "type": "application/vnd.abiquo.virtualmachine+json"
        }
    ]
}
  • No labels