Secure token

Synopsis

Create a secure token.

Syntax

New-EdgeWorkerAuthToken [[-Hostnames] <String>] [[-Expiry] <Int32>] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Generates a JWT authentication token to enable enhanced debug headers (https://techdocs.akamai.com/edgeworkers/docs/enable-enhanced-debug-headers)for EdgeWorkers.

Parameters

‑AccountSwitchKey

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 Get-AccountSwitchKey.

‑EdgeRCFile

Your EdgeGrid resource file to authenticate your command. Defaults to ~/.edgerc.

‑Expiry

The number of minutes before the authentication token expires, from 1 to 720 minutes, or 12 hours. The default is 480 for 8 hours.

‑Hostnames

A comma-separated list of hostnames to limit the scope of your auth token. Without this, your token will be valid for all hosts, providing you have access to all in a single account.

‑Section

The section name in your EdgeGrid resource file to retrieve authentication credentials from. Defaults to default.

Related Links