Network list

Set-NetworkList

Synopsis

Update a network list.

Syntax

Set-NetworkList [-NetworkListID] <String> [[-Body] <Object>] [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Modifies the network list items and properties. You can edit the name, description, and a set of network list items to the resource. You can't edit the type. When running the operation, the current state of the list is replaced with the properties and items you provide.

Note: To retrieve a network list with its elements, run the Get-NetworkList operation with the -NetworkListID parameter and the -IncludeElements switch, edit the content locally, and pipe it to this command. Make sure to use the -IncludeElements switch when retrieving. Otherwise, the operation won't return any elements.

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.

‑Body

A request body, either as a PSCustomObject or a string. This parameter supports pipelining.

‑EdgeRCFile

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

‑NetworkListID
Required

Your network list's ID.

‑Section

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

Related Links