Object

Rename-NetstorageObject

Synopsis

Rename a NetStorage object.

Syntax

Rename-NetstorageObject [-Path] <String> -NewFilename <String> [-AuthFile <String>] [-Section <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Renames an object's filename. The -Path parameter is the full path to your file, whereas the -NewFilename parameter is the new filename you want to use. The rest of the object's path is unchanged.

Note: You don't need to prepend paths with the upload directory CP code, this is implied.

Parameters

‑AuthFile

A location of your NetStorage auth file. Defaults to ~/.nsrc, but environment variables will take precedence.

‑NewFilename
Required

A replacement filename for your Netstorage object. Only the filename is required, not the full path.

‑Path
Required

A path of your directory within the NetStorage group.

‑Section

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

Related Links