1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getLocationGroup
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
zia logo
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler

    Use this data source to look up a location group by ID or name.

    Using getLocationGroup

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getLocationGroup(args: GetLocationGroupArgs, opts?: InvokeOptions): Promise<GetLocationGroupResult>
    function getLocationGroupOutput(args: GetLocationGroupOutputArgs, opts?: InvokeOptions): Output<GetLocationGroupResult>
    def get_location_group(name: Optional[str] = None,
                           resource_id: Optional[int] = None,
                           opts: Optional[InvokeOptions] = None) -> GetLocationGroupResult
    def get_location_group_output(name: Optional[pulumi.Input[str]] = None,
                           resource_id: Optional[pulumi.Input[int]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetLocationGroupResult]
    func GetLocationGroup(ctx *Context, args *GetLocationGroupArgs, opts ...InvokeOption) (*GetLocationGroupResult, error)
    func GetLocationGroupOutput(ctx *Context, args *GetLocationGroupOutputArgs, opts ...InvokeOption) GetLocationGroupResultOutput

    > Note: This function is named GetLocationGroup in the Go SDK.

    public static class GetLocationGroup 
    {
        public static Task<GetLocationGroupResult> InvokeAsync(GetLocationGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetLocationGroupResult> Invoke(GetLocationGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLocationGroupResult> getLocationGroup(GetLocationGroupArgs args, InvokeOptions options)
    public static Output<GetLocationGroupResult> getLocationGroup(GetLocationGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zia:getLocationGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the location group to look up.
    ResourceId int
    The ID of the location group to look up.
    Name string
    The name of the location group to look up.
    ResourceId int
    The ID of the location group to look up.
    name String
    The name of the location group to look up.
    resourceId Integer
    The ID of the location group to look up.
    name string
    The name of the location group to look up.
    resourceId number
    The ID of the location group to look up.
    name str
    The name of the location group to look up.
    resource_id int
    The ID of the location group to look up.
    name String
    The name of the location group to look up.
    resourceId Number
    The ID of the location group to look up.

    getLocationGroup Result

    The following output properties are available:

    Comments string
    Comments or notes about the location group.
    Deleted bool
    Whether the location group has been deleted.
    GroupType string
    The type of the location group.
    LastModTime int
    The last modification time of the location group (epoch).
    LocationIds List<int>
    List of location IDs that belong to this group.
    Name string
    The name of the location group.
    Predefined bool
    Whether the location group is predefined by Zscaler.
    ResourceId int
    The ID of the location group.
    Comments string
    Comments or notes about the location group.
    Deleted bool
    Whether the location group has been deleted.
    GroupType string
    The type of the location group.
    LastModTime int
    The last modification time of the location group (epoch).
    LocationIds []int
    List of location IDs that belong to this group.
    Name string
    The name of the location group.
    Predefined bool
    Whether the location group is predefined by Zscaler.
    ResourceId int
    The ID of the location group.
    comments String
    Comments or notes about the location group.
    deleted Boolean
    Whether the location group has been deleted.
    groupType String
    The type of the location group.
    lastModTime Integer
    The last modification time of the location group (epoch).
    locationIds List<Integer>
    List of location IDs that belong to this group.
    name String
    The name of the location group.
    predefined Boolean
    Whether the location group is predefined by Zscaler.
    resourceId Integer
    The ID of the location group.
    comments string
    Comments or notes about the location group.
    deleted boolean
    Whether the location group has been deleted.
    groupType string
    The type of the location group.
    lastModTime number
    The last modification time of the location group (epoch).
    locationIds number[]
    List of location IDs that belong to this group.
    name string
    The name of the location group.
    predefined boolean
    Whether the location group is predefined by Zscaler.
    resourceId number
    The ID of the location group.
    comments str
    Comments or notes about the location group.
    deleted bool
    Whether the location group has been deleted.
    group_type str
    The type of the location group.
    last_mod_time int
    The last modification time of the location group (epoch).
    location_ids Sequence[int]
    List of location IDs that belong to this group.
    name str
    The name of the location group.
    predefined bool
    Whether the location group is predefined by Zscaler.
    resource_id int
    The ID of the location group.
    comments String
    Comments or notes about the location group.
    deleted Boolean
    Whether the location group has been deleted.
    groupType String
    The type of the location group.
    lastModTime Number
    The last modification time of the location group (epoch).
    locationIds List<Number>
    List of location IDs that belong to this group.
    name String
    The name of the location group.
    predefined Boolean
    Whether the location group is predefined by Zscaler.
    resourceId Number
    The ID of the location group.

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    zia logo
    Viewing docs for pulumi-resource-zia v1.3.8
    published on Friday, Mar 13, 2026 by Zscaler
      Try Pulumi Cloud free. Your team will thank you.