Get-NsxtGlobalManagerService

This cmdlet retrieves PSObject objects that represent a proxy to an NSX-T GlobalManager API service and can be used to invoke the operations of the NSX-T GlobalManager API service. The cmdlet returns one PSObject object for every GlobalManager API service available on the NSX-T server.

Syntax

[-Name  <String[]>]
[-Server  <CisServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Name
String[] named
  • wildcards
  • Specifies the service type ID.
    optional
    Server
    CisServer[] named Specifies the NSX-T servers 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-NsxtServer cmdlet.

    Output

    System.Management.Automation.PSObject

    Examples


    Example 1

    $service = Get-NsxtGlobalManagerService com.vmware.nsx_global_policy.global_infra.domains.groups
    $service.list("domain_id")

    Retrieves the binding for the specified service and invokes a service operation.

    Example 2

    # Retrieves the "com.vmware.nsx_global_policy.global_infra.domains.groups" service.
    $service = Get-NsxtGlobalManagerService com.vmware.nsx_global_policy.global_infra.domains.groups
    # Creates string parameters.
    $domain_id = "domain_id"
    $group_id = "webgroup"
    # Creates the "group" input parameter.
    $group = $service.Help.patch.group.Create()
    $group.display_name = "web group"
    $group.description = "web group"
    # Creates an empty list of expressions.
    $group.expression = $service.Help.patch.group.expression.Create()
    # Creates a single expression of type Condition. The resource_type field is prefilled with the correct value.
    $expression = $service.Help.patch.group.expression.Element.condition.Create()
    $expression.member_type = "VirtualMachine"
    $expression.value = "webvm"
    $expression.key = "Tag"
    $expression.operator = "EQUALS"
    [void]($group.expression.Add($expression))
    # Creates or patches the group.
    $service.patch($domain_id, $group_id, $group)

    Creates a domain workgroup.

    Related Commands

    Feedback

    Was this page helpful?