NAME

New-HPOVResource

SYNOPSIS

Create a new resource.

SYNTAX

New-HPOVResource [-uri] <String> [-resource] <Object> [<CommonParameters>]

DESCRIPTION

Create a new resource by passing the URI and the resource details in the form of a PowerShell hashtable.

PARAMETERS

-uri <String>
The location where the new object is to be created, using the HTTP POST method.
Required? true
Position? 1
Default value <none>
Accept pipeline input? false
Accept wildcard characters? false

-resource <Object>
The new resource that is to be created
Required? true
Position? 2
Default value <none>
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None.
You cannot pipe objects to this cmdlet.

OUTPUTS

System.Management.Automation.PSCustomObject
The newly created resource, or async task.

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------
PS C:\> New-HPOVResource /rest/ethernet-networks @{vlanId=2000; purpose="General"; name="VLAN 2000"; smartLink=$true; privateNetwork=$false; type="ethernet-network"}
Create a new Ethernet Network, "VLAN 2000".

Last edited Mar 2, 2014 at 7:41 AM by ChrisLynchHP, version 2