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

Describe a specific middleware

URL Parameters

Parameter Type Description
MIDDLEWARE_ID * String

The middleware id you want to get

Example: mw-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:middleware",
  "items": [
    {
      "id": "mw-01c4ec988f3s",
      "balancerId": "lb-57e0dad0627c",
      "type": "ACL",
      "priority": 4,
      "spec": {
        "action": "DENY",
        "conditions": [
          {
            "type": "HTTP_REQUEST_COOKIE",
            "values": [
              "blabla=123",
              "blabla=124"
            ]
          }
        ]
      },
      "tags": [
        {
          "key": "Environment",
          "value": "Production"
        }
      ]
    }
  ],
  "count": 1
}