Get HPOVNetworkSet - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Get-HPOVNetworkSet

Retrieve Network Set resource(s).

SYNTAX

Get-HPOVNetworkSet [-Name] <String>[ [-Scope] <Object>][ [-Label] <String>] [-ApplianceConnection] <Object> [<CommonParameters>]
Get-HPOVNetworkSet [-Name] <String>[ [-Scope] <Object>][ [-Label] <String>] [-ApplianceConnection] <Object> [-ExportFile] <String> [<CommonParameters>]

Detailed Description

Retrieves a list of all Network Sets or just specific Networks Sets via a query if the name parameter is provided. The Network Set output can be sent to a file using the exportFile parameter.

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? true
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? false
Accept wildcard characters?    False

-ExportFile <String>

Aliases [-x, -export]

The full path and file name to export the contents retrieved from the call to Get-HPOVNetworkSet.

Aliases x, export
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Label <String>

Specify the label associated with resources.

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

-Name <String>

The name of the Network Set to retrieve.

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

-Scope <Object>

Filter resources based on provided Scope membership. By default, all resources for the accounts Active Permissions will be displayed. Allowed values:

* AllResources
* AllResourcesInScope
* HPOneView.Appliance.ScopeCollection
* HPOneView.Appliance.ConnectionPermission
Aliases None
Required? False
Position? named
Default value AllResourcesInScope
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

None. You cannot pipe objects to this cmdlet.

Return Values

HPOneView.Networking.NetworkSet [System.Management.Automation.PSCustomObject]

Single Network Set

System.Collections.ArrayList <HPOneView.Networking.NetworkSet>

Multiple Network Sets

Examples

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

Get-HPOVNetworkSet

Returns all Network Sets defined on the appliance to standard output.

 -------------------------- EXAMPLE 2 --------------------------

Get-HPOVNetworkSet -Name "Production"

Returns just the Production Network Set object to standard output.

 -------------------------- EXAMPLE 3 --------------------------

$myNetSets = Get-HPOVNetworkSet

Returns the Get-HPOVNetworkSet query and stores it in the object $myNetSets

 -------------------------- EXAMPLE 4 --------------------------

Get-HPOVNetworkSet -exportFile "c:\myApplianceConfig\Network-Sets.json"

Returns the Get-HPOVNetworkSet query results to the file c:\myApplianceConfig\Network-Sets.json

Related Links


Top

HPE OneView 4.00 Library

Get-HPOVNetworkSet

Retrieve Network Set resource(s).

SYNTAX

Get-HPOVNetworkSet [-Name] <String>[ [-Scope] <Object>][ [-Label] <String>] [-ApplianceConnection] <Object> [<CommonParameters>]
Get-HPOVNetworkSet [-Name] <String>[ [-Scope] <Object>][ [-Label] <String>] [-ApplianceConnection] <Object> [-ExportFile] <String> [<CommonParameters>]

Detailed Description

Retrieves a list of all Network Sets or just specific Networks Sets via a query if the name parameter is provided. The Network Set output can be sent to a file using the exportFile parameter.

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? true
Position? named
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? false
Accept wildcard characters?    False

-ExportFile <String>

Aliases [-x, -export]

The full path and file name to export the contents retrieved from the call to Get-HPOVNetworkSet.

Aliases x, export
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Label <String>

Specify the label associated with resources.

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

-Name <String>

The name of the Network Set to retrieve.

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

-Scope <Object>

Filter resources based on provided Scope membership. By default, all resources for the accounts Active Permissions will be displayed. Allowed values:

* AllResources
* AllResourcesInScope
* HPOneView.Appliance.ScopeCollection
* HPOneView.Appliance.ConnectionPermission
Aliases None
Required? False
Position? named
Default value AllResourcesInScope
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

None. You cannot pipe objects to this cmdlet.

Return Values

HPOneView.Networking.NetworkSet [System.Management.Automation.PSCustomObject]

Single Network Set

System.Collections.ArrayList <HPOneView.Networking.NetworkSet>

Multiple Network Sets

Examples

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

Get-HPOVNetworkSet

Returns all Network Sets defined on the appliance to standard output.

 -------------------------- EXAMPLE 2 --------------------------

Get-HPOVNetworkSet -Name "Production"

Returns just the Production Network Set object to standard output.

 -------------------------- EXAMPLE 3 --------------------------

$myNetSets = Get-HPOVNetworkSet

Returns the Get-HPOVNetworkSet query and stores it in the object $myNetSets

 -------------------------- EXAMPLE 4 --------------------------

Get-HPOVNetworkSet -exportFile "c:\myApplianceConfig\Network-Sets.json"

Returns the Get-HPOVNetworkSet query results to the file c:\myApplianceConfig\Network-Sets.json

Related Links


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