CP code

New-MSLCPCode

Synopsis

Create a CP code.

Syntax

New-MSLCPCode [-Name] <String> [-ContractID] <String> [[-EdgeRCFile] <String>] [[-Section] <String>] [[-AccountSwitchKey] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Creates a new MSL CP code. You need a CP code to create a stream or an origin.

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.

‑ContractID
Required

The ID of the contract associated with the CP code. Run Get-Contract from the Akamai.Property module to see these.

‑EdgeRCFile

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

‑Name
Required

A human-readable name for the CP code.

‑Section

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

Related Links