---
updatedAt: 2026-11-02T19:08:18.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/llms.txt
---

# server_​location

<table><thead><th class="page-label-version">Version: <code>v2026-09-30</code></th><th class="page-label-includes">Includes use: Yes</th></thead><table>

**Criterion name:** Akamai Server Location

The location of the Akamai server handling the request.

## Default criterion

These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.

```json HCL
data "akamai_property_rules_builder" "server_location" {
  rules_v2026_09_30 {
    name     = ""
    comments = ""
    criterion {
      server_location {
        location_type = "COUNTRY"
        countries = []
        match_operator = "IS_ONE_OF"
      }
    }
  }
}
```
```json JSON
"criterion": [
  {
    "name": "serverLocation",
    "options": {
      "locationType": "COUNTRY",
      "countries": [],
      "matchOperator": "IS_ONE_OF"
    }
  }
]
```

## Options

<table>
  <thead>
    <th>Option</th>
    <th>Description</th>
  </thead>
  <tbody>
    <tr>
      <td><code>location_type</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata ps-blue">Enum</span>
        </div>
        <div>Indicates the geographic scope. Value is one of:
          <ul>
            <li class="ps-li"><code>COUNTRY</code>. The user's country.</li>
            <li class="ps-li"><code>REGION</code>. The user's state or province within the country.</li>
            <li class="ps-li"><code>CONTINENT</code>. The continent on which the user is.</li>
          </ul>
        </div>
      </td>
    </tr>
    <tr>
      <td><code>match_operator</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata ps-blue">Enum</span>
        </div>
        <div>Specifies the match logic. Value is one of:
          <ul>
            <li class="ps-li"><code>IS_ONE_OF</code>. The field's value matches.</li>
            <li class="ps-li"><code>IS_NOT_ONE_OF</code>. The field's value doesn't match.</li>
          </ul>
        </div>
      </td>
    </tr>
    <tr>
      <td><code>countries</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata ps-blue">String array</span>
          <span class="ps-param-metadata" style="font-style: normal;">|</span>
          <span class="ps-param-metadata"><span class="ps-blue">Requires:</span> <code>location_type</code> is <code>COUNTRY</code></span>
        </div>
        <div>An <a href="https://control.akamai.com/apps/download-center/?redirect=/artifacts/10294;name=country_codes.csv">ISO 3166-1 country codes</a>, such as <code>US</code> or <code>CN</code>.
        </div>
      </td>
    </tr>
    <tr>
      <td><code>continents</code></td>
      <td class="ps-tableinner">
      <div class="ps-metadata">
        <span class="ps-param-metadata ps-blue">String array</span>
        <span class="ps-param-metadata" style="font-style: normal;">|</span>
          <span class="ps-param-metadata"><span class="ps-blue">Requires:</span> <code>location_type</code> is <code>CONTINENT</code></span>
      </div>
      <div>A <a href="https://control.akamai.com/apps/download-center/?redirect=/artifacts/261;name=continentCodes.csv">continent codes</a>.
        </div>
      </td>
    </tr>
    <tr>
      <td><code>regions</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata ps-blue">String array</span>
          <span class="ps-param-metadata" style="font-style: normal;">|</span>
          <span class="ps-param-metadata"><span class="ps-blue">Requires:</span> <code>location_type</code> is <code>REGION</code></span>
        </div>
        <div>An <a hfef="https://control.akamai.com/apps/download-center/?redirect=/artifacts/5444;name=region_codes.txt">ISO 3166 country and region codes</a>, for example <code>US:MA</code> for Massachusetts or <code>JP:13</code> for Tokyo.
        </div>
      </td>
    </tr>
  </tbody>
</table>

# Sibling pages

\- [advanced\_​im\_​match](https://techdocs.akamai.com/terraform/docs/advanced-im-match.md)
\- [bucket](https://techdocs.akamai.com/terraform/docs/bucket.md)
\- [cacheability](https://techdocs.akamai.com/terraform/docs/cacheability.md)
\- [china\_​cdn\_​region](https://techdocs.akamai.com/terraform/docs/china-cdn-region.md)
\- [client\_​certificate](https://techdocs.akamai.com/terraform/docs/client-certificate.md)
\- [client\_​ip](https://techdocs.akamai.com/terraform/docs/client-ip.md)
\- [client\_​ip\_​version](https://techdocs.akamai.com/terraform/docs/client-ip-version.md)
\- [cloudlets\_​origin](https://techdocs.akamai.com/terraform/docs/cloudlets-origin.md)
\- [content\_​delivery\_​network](https://techdocs.akamai.com/terraform/docs/content-delivery-network.md)
\- [content\_​type](https://techdocs.akamai.com/terraform/docs/content-type.md)
\- [debug\_​mode](https://techdocs.akamai.com/terraform/docs/debug-mode.md)
\- [device\_​characteristic](https://techdocs.akamai.com/terraform/docs/device-characteristic.md)
\- [edge\_​workers\_​failure](https://techdocs.akamai.com/terraform/docs/edge-workers-failure.md)
\- [file\_​extension](https://techdocs.akamai.com/terraform/docs/file-extension.md)
\- [filename](https://techdocs.akamai.com/terraform/docs/filename.md)
\- [hostname](https://techdocs.akamai.com/terraform/docs/hostname.md)
\- [match\_​advanced](https://techdocs.akamai.com/terraform/docs/match-advanced.md)
\- [match\_​cp\_​code](https://techdocs.akamai.com/terraform/docs/match-cp-code.md)
\- [match\_​response\_​code](https://techdocs.akamai.com/terraform/docs/match-response-code.md)
\- [match\_​variable](https://techdocs.akamai.com/terraform/docs/match-variable.md)
\- [metadata\_​stage](https://techdocs.akamai.com/terraform/docs/metadata-stage.md)
\- [origin\_​timeout](https://techdocs.akamai.com/terraform/docs/origin-timeout.md)
\- [path](https://techdocs.akamai.com/terraform/docs/path.md)
\- [query\_​string\_​parameter](https://techdocs.akamai.com/terraform/docs/query-string-parameter.md)
\- [random](https://techdocs.akamai.com/terraform/docs/random.md)
\- [recovery\_​config](https://techdocs.akamai.com/terraform/docs/recovery-config.md)
\- [regular\_​expression](https://techdocs.akamai.com/terraform/docs/regular-expression.md)
\- [request\_​cookie](https://techdocs.akamai.com/terraform/docs/request-cookie.md)
\- [request\_​header](https://techdocs.akamai.com/terraform/docs/request-header.md)
\- [request\_​method](https://techdocs.akamai.com/terraform/docs/request-method.md)
\- [request\_​protocol](https://techdocs.akamai.com/terraform/docs/request-protocol.md)
\- [request\_​type](https://techdocs.akamai.com/terraform/docs/request-type.md)
\- [response\_​header](https://techdocs.akamai.com/terraform/docs/response-header.md)
\- [time](https://techdocs.akamai.com/terraform/docs/time.md)
\- [token\_​authorization](https://techdocs.akamai.com/terraform/docs/token-authorization.md)
\- [user\_​agent](https://techdocs.akamai.com/terraform/docs/user-agent.md)
\- [user\_​location](https://techdocs.akamai.com/terraform/docs/user-location.md)
\- [user\_​network](https://techdocs.akamai.com/terraform/docs/user-network.md)
\- [variable\_​error](https://techdocs.akamai.com/terraform/docs/variable-error.md)