Skip to end of metadata
Go to start of metadata

Load Balancer Addresses Resource

Main URI of the Resource

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

Exposed Methods

Retrieve all the load balancer addresses

Synopsis: GET /cloud/locations/{location}/loadbalancers/{loadbalancer}/addresses
Roles required: ROLE_MANAGE_LOADBALANCERS
Request headers: Accept: application/vnd.abiquo.loadbalanceraddresses+json; version=3.1; application/vnd.abiquo.loadbalanceraddresses+xml; version=3.1;
Request parameters : (pagination)

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

Response

 Click here to show/hide example
{
  "links": [],
  "collection": [
    {
      "links": [
        {
          "title": "a-314051167.eu-west-1.elb.amazonaws.com",
          "rel": "edit",
          "type": "application/vnd.abiquo.loadbalanceraddress+json",
          "href": "http://10.60.1.223:80/api/cloud/locations/1/loadbalancers/addresses/1"
        },
        {
          "title": "a",
          "rel": "loadbalancer",
          "type": "application/vnd.abiquo.loadbalancer+json",
          "href": "http://10.60.1.223:80/api/cloud/locations/1/loadbalancers/1"
        }
      ],
      "providerId": "Z3NF1Z3NOM5OY2",
      "endpoint": "a-314051167.eu-west-1.elb.amazonaws.com",
      "internal": false
    }
  ]
}

Retrieve all the load balancer addresses in the location

Synopsis: GET /cloud/locations/{location}/loadbalancers/addresses
Roles required: ROLE_MANAGE_LOADBALANCERS
Request headers: Accept: application/vnd.abiquo.loadbalanceraddresses+json; version=3.1; application/vnd.abiquo.loadbalanceraddresses+xml; version=3.1;
Request parameters : (pagination)

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

Response
 

 Click here to show/hide example
{
  "links": [],
  "collection": [
    {
      "links": [
        {
          "title": "a-314051167.eu-west-1.elb.amazonaws.com",
          "rel": "edit",
          "type": "application/vnd.abiquo.loadbalanceraddress+json",
          "href": "http://10.60.1.223:80/api/cloud/locations/1/loadbalancers/addresses/1"
        },
        {
          "title": "a",
          "rel": "loadbalancer",
          "type": "application/vnd.abiquo.loadbalancer+json",
          "href": "http://10.60.1.223:80/api/cloud/locations/1/loadbalancers/1"
        }
      ],
      "providerId": "Z3NF1Z3NOM5OY2",
      "endpoint": "a-314051167.eu-west-1.elb.amazonaws.com",
      "internal": false
    }
  ]
}

Remember the *LOADBALANCER_ADDRESSESS_REUSE* constraint controls which plugins allow reuse of existing addresses during load balancer creation. Check this using HypervisorTypeResource#HypervisorTypeResource-Retrieveahypervisortype

  • No labels