List an LB's middlewares.
GET
/v1/projects/{projectId}/lb/load-balancers/{loadBalancerId}/middlewares
Code sample: Shell / cURL
curl --request GET \ --url 'https://stratum.example.com/v1/projects/example/lb/load-balancers/example/middlewares?limit=100' \ --header 'Authorization: Bearer <token>'Cursor-paginated. Ordered name, id.
Ordering on name alone is not total, so id is the tiebreaker. Without a unique tiebreaker a cursor sitting on a tie repeats or
skips a row.
When nextPageToken is present there are more rows; pass it back as
page_token. A token that cannot be parsed is treated as no token, so a
client gets the first page rather than a 400.
This endpoint returned every matching row with no limit of any kind until .
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string
loadBalancerId
required
string
Query Parameters
Section titled “Query Parameters”limit
integer
page_token
string
Opaque cursor from a previous response’s nextPageToken. Omit for the
first page.
Responses
Section titled “Responses”Middlewares.
Media typeapplication/json
object
items
required
Array<object>
A named request/response filter on an LB (slice F). One of the 16 data-plane kinds; config is kind-specific and validated by the data plane.
object
id
required
string
loadBalancerId
required
string
name
required
string
kind
required
string
config
required
Kind-specific configuration.
object
key
additional properties
any
createdAt
string format: date-time
updatedAt
string format: date-time
nextPageToken
string
Example
{ "items": [ { "kind": "header_rewrite" } ]}