Data

Synopsis

Upload namespace data.

Syntax

Import-EdgeKVData [-NamespaceID] <String> [-Network] <String> [-InputFile] <String> [-DryRun] [[-MaxItems] <Int32>] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Upload CSV-formatted data into a namespace. The CSV syntax generally follows RFC 4180, but allows empty lines, which are ignored. Each line needs at least three comma-delimited fields: the groupId, itemId, and item content for the namespace. An optional fourth field defines the number of seconds the item is retained. If this field is absent, the namespace's retentionInSeconds applies.

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.

‑DryRun

When true, it simulates a namespace data upload request. The response data shows what the results will look like after the upload, but without committing any changes to the database.

‑EdgeRCFile

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

‑InputFile
Required

CSV file from which to read CSV data.

‑MaxItems

If specified, maximum number of items to return per request, up to the system limits.

‑NamespaceID
Required

A namespace's ID.

‑Network
Required

The type of network to execute the API request on, either STAGING or PRODUCTION.

‑Section

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

Related Links