Network list

New-NetworkList

Synopsis

Create a network list.

Syntax

New-NetworkList -Name <String> -Type <String> [-Description <String>] [-ContractId <String>] [-GroupID <Int32>] [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-NetworkList -Body <Object> [-EdgeRCFile <String>] [-Section <String>] [-AccountSwitchKey <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Creates a new network list. You can specify attributes individually or all at once with the -Body parameter.

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
Conditionally required

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

‑ContractId

Your contract's ID

‑Description

Additional information about the network list.

‑EdgeRCFile

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

‑GroupID

The ID of the group for which you want to create the list. You need to have write access to the group you specify. If you include the -GroupID, you need to pair it with the -ContractID.

‑Name
Conditionally required

The name of the network list.

‑Section

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

‑Type
Conditionally required

The network list type, either IP for IP addresses and CIDR blocks, or GEO for two-letter country codes.

Related Links