Keys

Revoke-APIKey

Synopsis

Revoke keys.

Syntax

Revoke-APIKey [-KeyIDs] <Object> [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Revokes keys in a collection and marks them as revoked. You can restore the revoked keys within the next 120 days, after which they're deleted.

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.

‑KeyIDs
Required

A comma-separated string containing key IDs. You can retrieve these with Get-APIKey.

‑Section

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

Related Links