---
updatedAt: 2026-05-21T21:08:29.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/powershell/llms.txt
---

# Edge server locations for metadata tracing

Get-EdgeDiagnosticsMetadataTraceLocations

## Synopsis

Get available edge server locations for metadata tracing.

## Syntax

```powershell
Get-EdgeDiagnosticsMetadataTraceLocations [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## Description

Gets active locations.

Use the `id` values from this operation in the `-MtLocationId` parameter when you run the `New-EdgeDiagnosticsMetadataTrace` operation together with information about supported HTTP methods.

The operation responds with a subset of edge servers returned by the `Get-EdgeDiagnosticsLocations` operation.

## Parameters

<table>
  <tbody>
    <tr>
      <td class="ps-td"><code>&#8209;AccountSwitchKey</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>An account credential key that lets you move between accounts when using an API client enabled for multiple accounts. To find account switch keys, use <a href="https://techdocs.akamai.com/powershell/docs/get-accountswitchkey">Get-AccountSwitchKey</a>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;EdgeRCFile</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>Your EdgeGrid resource file to authenticate your command. Defaults to <code>~/.edgerc</code>.</p>
        </div>
      </td>
    </tr>
    <tr>
      <td class="ps-td"><code>&#8209;Section</code></td>
      <td class="ps-tableinner">
        <div class="ps-metadata">
          <span class="ps-param-metadata">String</span>
          <span class="ps-param-metadata">Pipeline input: False</span>
        </div>
        <div>
          <p>The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to <code>default</code>.</p>
        </div>
      </td>
    </tr>
  </tbody>
</table>

## Related Links

* [User Guide: Edge Diagnostics](https://techdocs.akamai.com/powershell/docs/diagnose-content-delivery-issues)
* [API Reference](https://techdocs.akamai.com/edge-diagnostics/reference/get-mdt-locations)

# Sibling pages

* [Akamaized URL translation](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticsurltranslation.md)
* [Connectivity problems](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticsconnectivityproblem.md)
* [Content problems](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticscontentproblem.md)
* [Diagnostic data for group](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticsgroup.md)
* [Edge server locations](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticslocations.md)
* [Error statistics](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticserrorstatistics.md)
* [Error translation](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticserrortranslation.md)
* [GREP request](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticsgrep.md)
* [GTM properties](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticsgtmproperties.md)
* [GTM property IPs](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticsgtmpropertyips.md)
* [IPA hostnames](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticsipahostnames.md)
* [Logs](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticslogs.md)
* [Metadata tracer](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticsmetadatatrace.md)
* [URL health check](https://techdocs.akamai.com/powershell/docs/get-edgediagnosticsurlhealthcheck.md)