Get-SpbmView Command | Vmware PowerCLI Reference

Get-SpbmView

This cmdlet retrieves SPBM views for the managed objects in the SPBM server. The following options are supported: 1. By the specified IDs. The string value of the ID is in format <type>-<value> as it is in the PowerShell toolkit objects. 2. By the SPBM service contents. Returns views for all the managed objects available in the SPBM service contents.You can retrieve the SPBM service content by fetching PbmServiceInstance view and then calling "PbmRetrieveServiceContent" on this view object. Example: $serviceInstanceView = Get-SpbmView -Id "PbmServiceInstance-ServiceInstance" $spbmServiceContent = $serviceInstanceView.PbmRetrieveServiceContent()

Syntax

Get-SpbmView
-Id < ManagedObjectReference[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Id ManagedObjectReference[] named
Specifies the ManagedObjectReference for which you want to retrieve the view. This parameter also accepts strings by silently converting them to ManagedObjectReference by using ArgumentTransformationAttribute.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
Get-SpbmView
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[-ServiceContent ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
optional ServiceContent SwitchParameter named
When specified, returns views for all the managed objects in the SPBM service contents.

Output

VMware.Spbm.Views.SpbmView

Examples

Example 1

Get-SpbmView -ServiceContent -Server "MyServer"

Retrieves all SPBM view objects of the SPBM service content from the "MyServer" connected server.

Example 2

Get-SpbmView -Id "ManagedObjectId"

Retrieves the SPBM view object of a SPBM managed object with a "ManagedObjectId" ID.

Example 3

$serviceInstanceView = Get-SpbmView -Id "PbmServiceInstance-ServiceInstance"
$spbmServiceContent = $serviceInstanceView.PbmRetrieveServiceContent()
Get-SpbmView -Id $spbmServiceContent.ProfileManager

Retrieves the SPBM view object of the ProfileManager singleton managed object.

Related Commands

SpbmView

This cmdlet retrieves SPBM views for the managed objects in the SPBM server.