Akamai NSAPI request

Invoke-AkamaiNSAPIRequest

Synopsis

NetStorage authorization wrapper.

Syntax

Invoke-AkamaiNSAPIRequest [-Path] <String> [-Action] <String> [[-AdditionalOptions] <Hashtable>] [[-Body] <String>] [[-InputFile] <String>] [[-OutputFile] <String>] [[-AuthFile] <String>] [[-Section] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

The Invoke-AkamaiNSAPIRequest cmdlet provides an authorization wrapper around Invoke-RestMethod for use with the NetStorage API.

Examples


Invoke-AkamaiNSAPIRequest -Path $Path -Action "download" -OutputFile ./"localfile.txt"

Parameters

‑Path
Required

Your request path.

‑Action
Required

The API endpoint's action type.

‑AdditionalOptions

A hashtable of additional options for a request.

‑Body

The request body to include in the auth calculation.

‑InputFile

An input file to be read as part of the auth calculation.

‑OutputFile

The file to write response data to.

‑AuthFile

Your NetStorage auth file (NSRC) to read credentials from.

‑Section

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

Related Links