Access token

Synopsis

Revoke an access token.

Syntax

Remove-EdgeKVAccessToken [-TokenName] <String> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Revokes a specified access token.

Once you revoke it, you can't undo it.

You also need to update any deployed EdgeWorkers code bundles that use the old token with a new token; otherwise, the requests to EdgeKV fail.

Any requests from an EdgeWorkers code bundle using a revoked token cause a 401 error.

To learn more about access tokens, see the EdgeKV guide (https://techdocs.akamai.com/edgekv/docs/generate-and-retrieve-edgekv-access-tokens).

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.

‑Section

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

‑TokenName
Required

A namespace's ID.

Related Links