LogoLogo
edgegap.comDashboard
  • 📘Learning Center
    • Getting Started
    • Unity Games
      • Getting Started - Servers
      • Developer Tools
    • Unreal Engine Games
      • Getting Started - Servers
      • Developer Tools
    • Matchmaking
      • Getting Started
      • Matchmaker In-Depth
      • Ping Beacons
    • Advanced Features
      • Apps and Versions
      • Deployments
      • Managed Clusters
  • API Reference
    • Dedicated Servers
    • Integration
    • Matchmaking
    • Peer to Peer
  • Release Notes
  • 📚Documentation
    • Sample Projects
      • Unity Netcodes
        • Unity NGO
        • Photon Fusion 1
        • Photon Fusion 2
        • Mirror
        • Mirror WebGL
        • Fishnet
        • Fishnet WebGL
        • Photon Bolt
      • Unreal Top-Down Sample
      • NuxtJS
      • Ruby On Rails
      • Unity Lobbies
      • Unity Matchmaker
    • Tools & Integrations
      • Container
        • What is Docker
        • Your First Docker
        • The Good Practices
        • SSH in Your Container
        • External Registries
          • Docker Hub
          • AWS ECR
          • GCP GCR
          • Gitlab registry
      • Deploy from Nakama
      • EOS Lobby Integration
      • Switch From Gamelift
      • Switch From Multiplay
      • Playfab Bridge
    • Deployment
      • Endpoint Storage
        • How to Save Logs
        • Upload File to Deployment
      • Webhooks
    • Application
      • Command and Arguments
      • 1:1 Port Mapping
    • Session
      • How They Work
      • Application Version Configuration
      • Manage Request
      • Selectors Filtering
    • Fleet
      • Fleet Policy
      • Policy Filter
      • Linking Version
      • Fleet's Deployment
    • Container Registry
    • Distributed Relay
      • Matchmaker/Lobby
      • Relay Edgegap API
      • Transport Samples
    • Lobby
      • Lobby Service
      • Functions
    • Glossary
    • SLA Terms
Powered by GitBook
LogoLogo

Connect with Community

  • Discord
  • Linkedin
  • X

Read More

  • Release Notes
  • Blog
  • Enterprise
  • Legal
  • edgegap.com

© 2025 Edgegap

On this page
  • What Are the Policy's Filters
  • Location type
  • Tag type
  • Point type

Was this helpful?

  1. Documentation
  2. Fleet

Policy Filter

PreviousFleet PolicyNextLinking Version

Last updated 2 months ago

Was this helpful?

What Are the Policy's Filters

They allow you to fine-tune where you want your deployments to be located. They are a part of the policy itself, but by how they are constructed, we found that it would be easier to understand on their documentation page.

The policy data will not include the same structure depending on the policy's type. We will go through every type with examples.

Location type

This is the option we would prefer in our North American fleet.

We will add a slight constraint to our North American fleet to show you how you can tweak the filters to your taste. Let's say you don't want any of your games to be located in Miami because you find that it is too far from your typical players' location.

You will need to choose an available field from city, country, continent, administrative_division.

Next is the filter type. You can choose between:

  • any - You want one or more of the values to match the potential locations.

  • all - You want all the values to match the potential locations.

  • not - You want all the values not to match the potential locations.

You can create pretty complex policies, but be aware that your filters might be technically correct but impossible to process. If you create an `all` filter with three different cities, it will simply not work since no location can physically be in those three cities.

You can get all the geographical information about the locations with the .

The different policies are independent of each other. So if you set a policy with a minimum number of 4 deployments in Canada and a policy with two in Montreal, you will end up with six deployments in total, even if Montreal is in Canada.

Using the Dashboard

The data for the policy is created in a small form with some predetermined values.

Using the API

From the API, you must specify the type when updating the data field.

{
  "type": "Location",
  "data": {
    "filters": [
      {
        "field": "continent",
        "filter_type": "all",
        "values": ["North America"]
      },
      {
        "field": "city",
        "filter_type": "not",
        "values": ["Miami"]
      }
    ]
  }
}

Tag type

Tag type is less often useful for common use cases but can be very convenient if you need more technical filters like high clock CPU. The values will always be a key and a value separated with an equal sign.

Using the Dashboard

Using the API

{
  "data": {
    "filters": [
      {
        "field": "location_tags",
        "filter_type": "any",
        "values": ["infrastructure=16523f"]
      }
    ]
  }
}

Point type

Point type lets you give latitude and longitude coordinates. The fleet will create deployment at the closest location available from the point.

Using the Dashboard

Using the API

{
  "data": {
    "coordinates": {
      "latitude": 45.5016,
      "longitude": -73.5672
    }
  }
}

You can get all the tags for each locations with the . You will need to set the tags parameter to true.

📚
API
API Reference
API
API Reference
API Reference