Credentials

Synopsis

Create a set of Netstorage credentials.

Syntax

New-NetstorageCredentials [-UploadAccountID] <String> [[-APIKey] <String>] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Create a set of Netstorage credentials by retrieving a Netstorage Upload Account and combine the data into the format used in .nsrc files or Import-NetstorageCredentials. Note: the upload account must have an active HTTP API key.

Parameters

‑APIKey

HTTP API key to apply to your credentials. Only required if your Netstorage upload account has more than 1 HTTP API key, and you do not wish to use the first.

‑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.

‑UploadAccountID
Required

The ID assigned to the target upload account. You can get this value by running Get-NetstorageUploadAccount and filtering the results.

Related Links

User Guide: Netstorage