fbpx
GEThttps://api.spotinst.io/loadBalancer/routingRule?accountId={ACCOUNT_ID}

Describe all the routing rules and their full JSONs

Parameter Type Description
ACCOUNT_ID String

Account ID from Spotinst console

Example: act-12345
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "kind": "spotinst:lb:routingRule",
  "items": [
    {
      "id": "rr-12345",
      "balancerId": "lb-12345",
      "protocol": "HTTP",
      "route": "PathRegexp(`/`)",
      "targetSetIds": [
        "ts-12345",
        "ts-67890"
      ],
      "middlewareIds": [],
      "tags": [
        {
          "key": "Environment",
          "value": "Production"
        }
      ],
      "listenerId": "ls-12345",
      "strategy": "ROUNDROBIN",
      "priority": 1
    },
    {
      "id": "rr-67890",
      "balancerId": "lb-12345",
      "protocol": "HTTP",
      "route": "PathRegexp(`/v2`)",
      "targetSetIds": [
        "ts-12345",
        "ts-67890"
      ],
      "middlewareIds": [],
            "tags": [
        {
          "key": "Environment",
          "value": "Production"
        }
      ],
      "listenerId": "ls-12345",
      "strategy": "ROUNDROBIN",
      "priority": 1
    }
  ],
  "count": 2
}