RoutingRulesResource


Create a routing rule in a load balancer


POST https://example.com/api/cloud/locations/{location}/devices/{device}/loadbalancers/{loadbalancer}/routingrules

Roles : [ROLE_MANAGE_LOADBALANCERS]

Content-Type : routingrule Accept : routingrule

Error Codes

  • LOADBALANCER-1 - The requested load balancer does not exist
  • LOADBALANCER-13 - Certificate cannot be stored in the provider. Ensure the load balancer is properly created
  • LOADBALANCER-18 - The requested SSL certificate does not exist
  • LOADBALANCER-4 - A routing rule with the same port in and port out already exists for the load balancer
  • LOADBALANCER-6 - Not all required fields are present for the embedded SSL certificate
  • LOADBALANCER-7 - A link to the SSL certificate or the embedded form must be used, but not both at the same time.
  • NAT-RULE-3 - Original port already in use for the specified NAT IP

Example

List routing rules in a load balancer


GET https://example.com/api/cloud/locations/{location}/devices/{device}/loadbalancers/{loadbalancer}/routingrules

Roles : [ROLE_MANAGE_LOADBALANCERS]

Accept : routingrules

Error Codes

  • LOADBALANCER-1 - The requested load balancer does not exist

Example

Delete a routing rule from a load balancer


DELETE https://example.com/api/cloud/locations/{location}/devices/{device}/loadbalancers/{loadbalancer}/routingrules/{routingrule}

Roles : [ROLE_MANAGE_LOADBALANCERS]

Example

Get a routing rule in a load balancer


Retrieve a routing rule

GET https://example.com/api/cloud/locations/{location}/devices/{device}/loadbalancers/{loadbalancer}/routingrules/{routingrule}

Roles : [ROLE_MANAGE_LOADBALANCERS]

Accept : routingrule

Error Codes

  • LOADBALANCER-1 - The requested load balancer does not exist
  • LOADBALANCER-2 - The requested routing rule does not exist

Example

Update a routing rule in a load balancer


When modifying a routing rule it is also possible to embed an SSLCertificate, or unassign it (removing the ''sslecertificate'' link)

PUT https://example.com/api/cloud/locations/{location}/devices/{device}/loadbalancers/{loadbalancer}/routingrules/{routingrule}

Roles : [ROLE_MANAGE_LOADBALANCERS]

Content-Type : routingrule Accept : routingrule

Error Codes

  • LOADBALANCER-1 - The requested load balancer does not exist
  • LOADBALANCER-13 - Certificate cannot be stored in the provider. Ensure the load balancer is properly created
  • LOADBALANCER-18 - The requested SSL certificate does not exist
  • LOADBALANCER-2 - The requested routing rule does not exist
  • LOADBALANCER-4 - A routing rule with the same port in and port out already exists for the load balancer
  • LOADBALANCER-5 - Routing rule belongs to a load balancer that cannot be modified
  • LOADBALANCER-6 - Not all required fields are present for the embedded SSL certificate
  • LOADBALANCER-7 - A link to the SSL certificate or the embedded form must be used, but not both at the same time.
  • NAT-RULE-3 - Original port already in use for the specified NAT IP

Example