-
Notifications
You must be signed in to change notification settings - Fork 52
New HPOVResource
Create a new resource.
New-HPOVResource [-Uri] <String> [-InputObject] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]
Create a new resource by passing the URI and the resource details in the form of a PowerShell hashtable.
-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)
System.Management.Automation.PSCustomObject
Resource object to create
System.Management.Automation.PSCustomObject
The newly created resource, or async task
-------------------------- 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".
- Add-HPOVResourceToLabel
- Add-HPOVResourceToRack
- Add-HPOVResourceToScope
- Remove-HPOVResource
- Remove-HPOVResourceFromLabel
- Remove-HPOVResourceFromScope
- Set-HPOVResource
Create a new resource.
New-HPOVResource [-Uri] <String> [-InputObject] <Object> [-ApplianceConnection] <Object> [<CommonParameters>]
Create a new resource by passing the URI and the resource details in the form of a PowerShell hashtable.
-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)
System.Management.Automation.PSCustomObject
Resource object to create
System.Management.Automation.PSCustomObject
The newly created resource, or async task
-------------------------- 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".
- Add-HPOVResourceToLabel
- Add-HPOVResourceToRack
- Add-HPOVResourceToScope
- Remove-HPOVResource
- Remove-HPOVResourceFromLabel
- Remove-HPOVResourceFromScope
- Set-HPOVResource