Skip to content

Add HPOVRackToDataCenter

Chris Lynch edited this page Dec 4, 2019 · 20 revisions

HPE OneView 5.00 Library

Add-HPOVRackToDataCenter

Add rack resource to DataCenter.

Syntax

Add-HPOVRackToDataCenter [-InputObject] <Object> [-DataCenter] <Object> [[-X] <Int32>] [[-Y] <Int32>] [[-Millimeters] <SwitchParameter>] [[-Rotate] <Int>] [[-ApplianceConnection] <Object>] [<CommonParameters>]

Description

Add a rack resource to a defined DataCenter object.

Minimum required privileges: Infrastructure administrator or Server administrator.

Parameters

-ApplianceConnection <Object>

Specify one or more [HPOneView.Appliance.Connection] object(s) or Name property value(s).

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

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

-DataCenter <Object>

The DataCenter object from Get-HPOVDataCenter.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

The Rack object from Get-HPOVRack.

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

-Millimeters <SwitchParameter>

If X and/or Y are in Millimeters, you must include this parameter.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-Rotate <Int>

Specify the degree rotation of the rack. Allowed range 0 to 360

Aliases None
Required? False
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters?    False

-X <Int32>

The X coordinate in the DC. Value can be in US Feet or Millimeters. If specifying Millimeters, you need to include the -Millimeters switch parameter. Feet will be converted to Millimeters.

Aliases None
Required? False
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters?    False

-Y <Int32>

The Y coordinate in the DC. Value can be in US Feet or Millimeters. If specifying Millimeters, you need to include the -Millimeters switch parameter. Feet will be converted to Millimeters.

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

HPOneView.Facilities.Rack [System.Management.Automation.PSCustomObject]

Rack resource object from Get-HPOVRack.

Return Values

HPOneView.Facilities.DataCenter [System.Management.Automation.PSCustomObject]

Updated DataCenter object with the newly added Rack resource in the contents property.

Examples

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

$DC = Get-HPOVDataCenter -Name Houston_DC1 -ErrorAction Stop $X = 10 $Y = 12 Get-HPOVRack -Name MyRack -ErrorAction Stop | Add-HPOVRackToDataCenter -DataCenter $DC -X $X -Y $Y

Add "MyRack" to "Houston_DC1" datacenter object, located at 10",12".

Related Links


HPE OneView 4.20 Library

Add-HPOVRackToDataCenter

Add rack resource to DataCenter.

Syntax

Add-HPOVRackToDataCenter [-InputObject] <Object> [-DataCenter] <Object> [[-X] <Int32>] [[-Y] <Int32>] [[-Millimeters] <SwitchParameter>] [[-Rotate] <Int>] [[-ApplianceConnection] <Object>] [<CommonParameters>]

Description

Add a rack resource to a defined DataCenter object.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

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

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

-DataCenter <Object>

The DataCenter object from Get-HPOVDataCenter.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

The Rack object from Get-HPOVRack.

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

-Millimeters <SwitchParameter>

If X and/or Y are in Millimeters, you must include this parameter.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-Rotate <Int>

Specify the degree rotation of the rack. Allowed range 0 to 360

Aliases None
Required? False
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters?    False

-X <Int32>

The X coordinate in the DC. Value can be in US Feet or Millimeters. If specying Millimeters, you need to include the -Millimeters switch parameter. Feet will be converted to Millimeters.

Aliases None
Required? False
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters?    False

-Y <Int32>

The Y coordinate in the DC. Value can be in US Feet or Millimeters. If specying Millimeters, you need to include the -Millimeters switch parameter. Feet will be converted to Millimeters.

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

HPOneView.Facilities.Rack [System.Management.Automation.PSCustomObject]

Rack resource object from Get-HPOVRack.

Return Values

HPOneView.Facilities.DataCenter [System.Management.Automation.PSCustomObject]

Updated DataCenter object with the newly added Rack resource in the contents property.

Examples

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

$DC = Get-HPOVDataCenter -Name Houston_DC1 -ErrorAction Stop $X = 10 $Y = 12 Get-HPOVRack -Name MyRack -ErrorAction Stop | Add-HPOVRackToDataCenter -DataCenter $DC -X $X -Y $Y

Add "MyRack" to "Houston_DC1" datacenter object, located at 10",12".

Related Links


HPE OneView 4.10 Library

Add-HPOVRackToDataCenter

Add rack resource to DataCenter.

Syntax

Add-HPOVRackToDataCenter [-InputObject] <Object> [-DataCenter] <Object> [[-X] <Int32>] [[-Y] <Int32>] [[-Millimeters] <SwitchParameter>] [[-Rotate] <Int>] [[-ApplianceConnection] <Object>] [<CommonParameters>]

Description

Add a rack resource to a defined DataCenter object.

Parameters

-ApplianceConnection <Object>

Aliases [-Appliance]

Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).

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

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

-DataCenter <Object>

The DataCenter object from Get-HPOVDataCenter.

Aliases None
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-InputObject <Object>

The Rack object from Get-HPOVRack.

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

-Millimeters <SwitchParameter>

If X and/or Y are in Millimeters, you must include this parameter.

Aliases None
Required? False
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters?    False

-Rotate <Int>

Specify the degree rotation of the rack. Allowed range 0 to 360

Aliases None
Required? False
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters?    False

-X <Int32>

The X coordinate in the DC. Value can be in US Feet or Millimeters. If specying Millimeters, you need to include the -Millimeters switch parameter. Feet will be converted to Millimeters.

Aliases None
Required? False
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters?    False

-Y <Int32>

The Y coordinate in the DC. Value can be in US Feet or Millimeters. If specying Millimeters, you need to include the -Millimeters switch parameter. Feet will be converted to Millimeters.

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

HPOneView.Facilities.Rack [System.Management.Automation.PSCustomObject]

Rack resource object from Get-HPOVRack.

Return Values

HPOneView.Facilities.DataCenter [System.Management.Automation.PSCustomObject]

Updated DataCenter object with the newly added Rack resource in the contents property.

Examples

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

$DC = Get-HPOVDataCenter -Name Houston_DC1 -ErrorAction Stop $X = 10 $Y = 12 Get-HPOVRack -Name MyRack -ErrorAction Stop | Add-HPOVRackToDataCenter -DataCenter $DC -X $X -Y $Y

Add "MyRack" to "Houston_DC1" datacenter object, located at 10",12".

Related Links


Wiki Table of Contents

Clone this wiki locally