New HPOVResource - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

New-HPOVResource

Create a new resource.

SYNTAX

New-HPOVResource [-Uri] <String> [-InputObject] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]

Detailed Description

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

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? true
Position? 2
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-InputObject <Object>

The new resource that is to be created

Aliases Resource
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-Uri <String>

The location where the new object is to be created, using the HTTP POST method.

Aliases None
Required? true
Position? 0
Default value
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)

Input Types

System.Management.Automation.PSCustomObject

Resource object to create

Return Values

System.Management.Automation.PSCustomObject

The newly created resource, or async task

Examples

 -------------------------- EXAMPLE 1 --------------------------

New-HPOVResource /rest/ethernet-networks @{vlanId=2000; purpose="General"; name="VLAN 2000"; smartLink=$true; privateNetwork=$false; type="ethernet-networkV2"}

Create a new Ethernet Network, "VLAN 2000".

Related Links


Top

HPE OneView 4.00 Library

New-HPOVResource

Create a new resource.

SYNTAX

New-HPOVResource [-Uri] <String> [-InputObject] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]

Detailed Description

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

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one HPOneView.Appliance.Connection object or Name property value. If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.

Default Value: ${Global:ConnectedSessions} | ? Default

Aliases Appliance
Required? true
Position? 2
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-InputObject <Object>

The new resource that is to be created

Aliases Resource
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-Uri <String>

The location where the new object is to be created, using the HTTP POST method.

Aliases None
Required? true
Position? 0
Default value
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)

Input Types

System.Management.Automation.PSCustomObject

Resource object to create

Return Values

System.Management.Automation.PSCustomObject

The newly created resource, or async task

Examples

 -------------------------- EXAMPLE 1 --------------------------

New-HPOVResource /rest/ethernet-networks @{vlanId=2000; purpose="General"; name="VLAN 2000"; smartLink=$true; privateNetwork=$false; type="ethernet-networkV2"}

Create a new Ethernet Network, "VLAN 2000".

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️