Fleets

List All Policies of a Fleet

List all the 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

Path parameters

fleet_namestring required

The name of the fleet

Query parameters

pageinteger

Page number for pagination

limitinteger

Limit of Fleet for each page

Headers

X-Fieldsstring mask

An optional fields mask

Response

Success

Example response

{
  "policies": [
    {
      "name": "policy_name",
      "enabled": true,
      "type": "Location",
      "minimum": 1,
      "maximum": 1,
      "data": {
        "filters": [
          {
            "field": "city",
            "values": [
              "Montreal"
            ],
            "filter_type": "any"
          }
        ]
      },
      "create_time": "2022-01-01 00:00:00.000000",
      "last_updated": "2022-01-01 00:00:00.000000"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.