Get-SpbmView

Syntax

-Id  <ManagedObjectReference[]>
[-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
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.

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

    Parameters

    Required Parameter Name Type Position Features Description
    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

    Feedback

    Was this page helpful?