List item

Synopsis

Import entries from a CSV file.

Syntax

Import-ClientListItem -Name <String> -Version <String> -File <String> -Action <String> [-DryRun] [-IncludeStatus] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Import-ClientListItem -Name <String> -Version <String> -Items <String[]> -Action <String> [-DryRun] [-IncludeStatus] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Import-ClientListItem -ListID <String> -Version <String> -Items <String[]> -Action <String> [-DryRun] [-IncludeStatus] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Import-ClientListItem -ListID <String> -Version <String> -File <String> -Action <String> [-DryRun] [-IncludeStatus] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Imports entries from a CSV file or as inline parameters to a client list. Entries can replace or merge with existing entries. You can specify the list by its name or ID.

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.

‑Action
Required

Merges or replaces specified items, either MERGE or REPLACE.

‑DryRun

Executes the request as a dry run, without saving.

‑EdgeRCFile

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

‑File
Conditionally required

A CSV file from which to read list items.

‑IncludeStatus

Include request metadata in the response. Without this, only the updated list items will be returned.

‑Items
Conditionally required

The entry values to import into a client list. Can be an array or a comma-separated string.

‑ListID
Conditionally required

Your client list's ID.

‑Name
Conditionally required

Your client list's name.

‑Section

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

‑Version
Required

Your client list's version. Can be an integer or the word latest.

Related Links