PowerCLI Reference

Get-SpbmView

Synopsis

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

Syntax

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

Get-SpbmView [-Server <VIServer[]>] [-ServiceContent] [<CommonParameters>]

Related Commands

Online Version

Detailed Description

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()

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
IdManagedObjectReference[]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.trueFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseFalse
ServiceContentSwitchParameterWhen specified, returns views for all the managed objects in the SPBM service contents.falseFalse

Return Type

Zero or more SpbmView objects

Notes

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.


Copyright © VMware, Inc. All rights reserved.