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

Describe a specific routing rule

URL Parameters

Parameter Type Description
ROUTING_RULE_ID * String

The routing rule id you want to get

Example: rr-12345
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(`/v1`)",
      "targetSetIds": [
        "ts-12345",
        "ts-67890"
      ],
      "middlewareIds": [
        "mw-12345"
      ],
      "tags": [
        {
          "key": "Environment",
          "value": "Production"
        }
      ],
     "listenerId": "ls-12345",
     "strategy": "ROUNDROBIN",
     "priority": 1
    }
  ],
  "count": 1
}