Get HPOVDataCenter - HewlettPackard/POSH-HPEOneView GitHub Wiki
Retreive a defined DataCenter.
Get-HPOVDataCenter[ [-Name] <String>][ [-ApplianceConnection] <Object>] [<CommonParameters>]
A data center represents a physically contiguous area in which racks containing IT equipment are located. For example, you have IT equipment in two rooms or on separate floors. You could create a data center for each of these areas. Each server, enclosure, or power distribution device in your data center can report its power requirements, but it can be difficult to understand the power and cooling requirements for your data center as a whole. The appliance enables you to bring power and cooling management of your servers, enclosures, and power delivery devices together in a single management system. When you initialize the appliance for the first time, it creates a data center named Datacenter 1. The appliance provides this data center as a place to visualize your racks. You can rename or edit this data center to match the values and layout of your data center, you can use it as the basis for a planned data center model, or you can delete this data center without adverse effects.
This Cmdlet will retrieve all or a specific DataCenter resource object. If Remote Support has been enabled on the appliance, the DataCenter object will contain a RemoteSupportLocation property that contains the site location (if different from the Default DataCenter), and both the Primary and Secondary contacts.
-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? | false |
Accept wildcard characters? | False |
-Name <String>
DataCenter name. Supports wildcard (*) character.
Aliases | None |
Required? | false |
Position? | named |
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)
None. You cannot pipe objects to this cmdlet.
HPOneView.Facilities.DataCenter
A DataCenter resource object.
-------------------------- EXAMPLE 1 --------------------------Get-HPOVDataCenter
Retrieve all defined DataCenters on the appliance.
-------------------------- EXAMPLE 2 --------------------------Get-HPOVDataCenter -Name DC*
Locate all DataCenter objects that begin with "DC".
-------------------------- EXAMPLE 3 --------------------------Get-HPOVDataCenter | Select -ExpandProperty RemoteSupportLocation
Retrieve the Remote Support Location property from the found DataCenter resource objects.
Retreive a defined DataCenter.
Get-HPOVDataCenter[ [-Name] <String>][ [-ApplianceConnection] <Object>] [<CommonParameters>]
A data center represents a physically contiguous area in which racks containing IT equipment are located. For example, you have IT equipment in two rooms or on separate floors. You could create a data center for each of these areas. Each server, enclosure, or power distribution device in your data center can report its power requirements, but it can be difficult to understand the power and cooling requirements for your data center as a whole. The appliance enables you to bring power and cooling management of your servers, enclosures, and power delivery devices together in a single management system. When you initialize the appliance for the first time, it creates a data center named Datacenter 1. The appliance provides this data center as a place to visualize your racks. You can rename or edit this data center to match the values and layout of your data center, you can use it as the basis for a planned data center model, or you can delete this data center without adverse effects.
This Cmdlet will retrieve all or a specific DataCenter resource object. If Remote Support has been enabled on the appliance, the DataCenter object will contain a RemoteSupportLocation property that contains the site location (if different from the Default DataCenter), and both the Primary and Secondary contacts.
-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? | false |
Accept wildcard characters? | False |
-Name <String>
DataCenter name. Supports wildcard (*) character.
Aliases | None |
Required? | false |
Position? | named |
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)
None. You cannot pipe objects to this cmdlet.
HPOneView.Facilities.DataCenter
A DataCenter resource object.
-------------------------- EXAMPLE 1 --------------------------Get-HPOVDataCenter
Retrieve all defined DataCenters on the appliance.
-------------------------- EXAMPLE 2 --------------------------Get-HPOVDataCenter -Name DC*
Locate all DataCenter objects that begin with 'DC'.
-------------------------- EXAMPLE 3 --------------------------Get-HPOVDataCenter | Select -ExpandProperty RemoteSupportLocation
Retrieve the Remote Support Location property from the found DataCenter resource objects.