---
title: "List All Policies of a Fleet"
method: GET
path: "/v1/fleet/{fleet_name}/policies"
tags: ["Fleets"]
---

# List All Policies of a Fleet

`GET /v1/fleet/{fleet_name}/policies`

## Request

- Base URL: `https://api.edgegap.com`
- URL: `https://api.edgegap.com/v1/fleet/{fleet_name}/policies`
- Auth: API key in header `authorization`

List all the policies of a fleet.

## Path parameters

- `fleet_name` string, required

## Query parameters

- `page` integer
- `limit` integer

## Headers

- `X-Fields` string, mask

## Response `200`

Success

- HorizontalScalerConstraintList
  - `policies` FleetPoliciesGetResponse[]
    - `name` string, required: Name of the Policy
    - `enabled` boolean, required: If the Policy is enabled. Defaults to true.
    - `type` 'Location' | 'Tag' | 'Coordinates', required: Type of the Policy. See our documentation for more information on the type and it's data.
    - `minimum` integer, required: Minimum deployments at all time
    - `maximum` integer, required: Maximum deployments for the provided type.
    - `threshold` number, required: Based on the number of sockets connected, how filled should a session deployment be before initiating a scale-up deployment. Float between 0.1 and 1.
    - `data` object, required: JSON object for your filters. See our documentation for more information.
    - `create_time` string: UTC time of policy creation
    - `last_updated` string: UTC time of policy last update
  - `pagination` Pagination
    - `number` integer: Current page number
    - `next_page_number` integer: Next page number
    - `previous_page_number` integer: Previous page number
    - `paginator` Paginator
      - `num_pages` integer: Total pages count
    - `has_next` boolean: If there is a next page
    - `has_previous` boolean: If there is a previous page

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
