Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler
zia.getWorkloadGroups
Explore with Pulumi AI
Use the zia_workload_groups data source to get information about Workload Groups in the Zscaler Internet Access cloud or via the API. This data source can then be used as a criterion in ZIA policies such as, Firewall Filtering, URL Filtering, and Data Loss Prevention (DLP) to apply security policies to the workload traffic.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@pulumi/zia";
const ios = zia.getWorkloadGroups({
    name: "Example",
});
import pulumi
import pulumi_zia as zia
ios = zia.get_workload_groups(name="Example")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/zscaler/pulumi-zia/sdk/go/zia"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := zia.GetWorkloadGroups(ctx, &zia.GetWorkloadGroupsArgs{
			Name: pulumi.StringRef("Example"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zia = Pulumi.Zia;
return await Deployment.RunAsync(() => 
{
    var ios = Zia.GetWorkloadGroups.Invoke(new()
    {
        Name = "Example",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.ZiaFunctions;
import com.pulumi.zia.inputs.GetWorkloadGroupsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var ios = ZiaFunctions.getWorkloadGroups(GetWorkloadGroupsArgs.builder()
            .name("Example")
            .build());
    }
}
variables:
  ios:
    fn::invoke:
      Function: zia:getWorkloadGroups
      Arguments:
        name: Example
Using getWorkloadGroups
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 getWorkloadGroups(args: GetWorkloadGroupsArgs, opts?: InvokeOptions): Promise<GetWorkloadGroupsResult>
function getWorkloadGroupsOutput(args: GetWorkloadGroupsOutputArgs, opts?: InvokeOptions): Output<GetWorkloadGroupsResult>def get_workload_groups(name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetWorkloadGroupsResult
def get_workload_groups_output(name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetWorkloadGroupsResult]func GetWorkloadGroups(ctx *Context, args *GetWorkloadGroupsArgs, opts ...InvokeOption) (*GetWorkloadGroupsResult, error)
func GetWorkloadGroupsOutput(ctx *Context, args *GetWorkloadGroupsOutputArgs, opts ...InvokeOption) GetWorkloadGroupsResultOutput> Note: This function is named GetWorkloadGroups in the Go SDK.
public static class GetWorkloadGroups 
{
    public static Task<GetWorkloadGroupsResult> InvokeAsync(GetWorkloadGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetWorkloadGroupsResult> Invoke(GetWorkloadGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkloadGroupsResult> getWorkloadGroups(GetWorkloadGroupsArgs args, InvokeOptions options)
public static Output<GetWorkloadGroupsResult> getWorkloadGroups(GetWorkloadGroupsArgs args, InvokeOptions options)
fn::invoke:
  function: zia:index/getWorkloadGroups:getWorkloadGroups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of the workload group to be exported.
- Name string
- The name of the workload group to be exported.
- name String
- The name of the workload group to be exported.
- name string
- The name of the workload group to be exported.
- name str
- The name of the workload group to be exported.
- name String
- The name of the workload group to be exported.
getWorkloadGroups Result
The following output properties are available:
- Description string
- (String) The description of the workload group.
- Expression string
- (String) The workload group expression containing tag types, tags, and their relationships.
- ExpressionJsons List<zscaler.Pulumi Package. Zia. Outputs. Get Workload Groups Expression Json> 
- (List) The workload group expression containing tag types, tags, and their relationships represented in a JSON format.
- Id int
- (Number) Identifier that uniquely identifies an entity
- LastModified List<zscaler.Bies Pulumi Package. Zia. Outputs. Get Workload Groups Last Modified By> 
- LastModified intTime 
- (Number) When the rule was last modified
- Name string
- (String) The configured name of the entity
- Description string
- (String) The description of the workload group.
- Expression string
- (String) The workload group expression containing tag types, tags, and their relationships.
- ExpressionJsons []GetWorkload Groups Expression Json 
- (List) The workload group expression containing tag types, tags, and their relationships represented in a JSON format.
- Id int
- (Number) Identifier that uniquely identifies an entity
- LastModified []GetBies Workload Groups Last Modified By 
- LastModified intTime 
- (Number) When the rule was last modified
- Name string
- (String) The configured name of the entity
- description String
- (String) The description of the workload group.
- expression String
- (String) The workload group expression containing tag types, tags, and their relationships.
- expressionJsons List<GetWorkload Groups Expression Json> 
- (List) The workload group expression containing tag types, tags, and their relationships represented in a JSON format.
- id Integer
- (Number) Identifier that uniquely identifies an entity
- lastModified List<GetBies Workload Groups Last Modified By> 
- lastModified IntegerTime 
- (Number) When the rule was last modified
- name String
- (String) The configured name of the entity
- description string
- (String) The description of the workload group.
- expression string
- (String) The workload group expression containing tag types, tags, and their relationships.
- expressionJsons GetWorkload Groups Expression Json[] 
- (List) The workload group expression containing tag types, tags, and their relationships represented in a JSON format.
- id number
- (Number) Identifier that uniquely identifies an entity
- lastModified GetBies Workload Groups Last Modified By[] 
- lastModified numberTime 
- (Number) When the rule was last modified
- name string
- (String) The configured name of the entity
- description str
- (String) The description of the workload group.
- expression str
- (String) The workload group expression containing tag types, tags, and their relationships.
- expression_jsons Sequence[GetWorkload Groups Expression Json] 
- (List) The workload group expression containing tag types, tags, and their relationships represented in a JSON format.
- id int
- (Number) Identifier that uniquely identifies an entity
- last_modified_ Sequence[Getbies Workload Groups Last Modified By] 
- last_modified_ inttime 
- (Number) When the rule was last modified
- name str
- (String) The configured name of the entity
- description String
- (String) The description of the workload group.
- expression String
- (String) The workload group expression containing tag types, tags, and their relationships.
- expressionJsons List<Property Map>
- (List) The workload group expression containing tag types, tags, and their relationships represented in a JSON format.
- id Number
- (Number) Identifier that uniquely identifies an entity
- lastModified List<Property Map>Bies 
- lastModified NumberTime 
- (Number) When the rule was last modified
- name String
- (String) The configured name of the entity
Supporting Types
GetWorkloadGroupsExpressionJson    
- ExpressionContainers List<zscaler.Pulumi Package. Zia. Inputs. Get Workload Groups Expression Json Expression Container> 
- (List) Contains one or more tag types (and associated tags) combined using logical operators within a workload group
- ExpressionContainers []GetWorkload Groups Expression Json Expression Container 
- (List) Contains one or more tag types (and associated tags) combined using logical operators within a workload group
- expressionContainers List<GetWorkload Groups Expression Json Expression Container> 
- (List) Contains one or more tag types (and associated tags) combined using logical operators within a workload group
- expressionContainers GetWorkload Groups Expression Json Expression Container[] 
- (List) Contains one or more tag types (and associated tags) combined using logical operators within a workload group
- expression_containers Sequence[GetWorkload Groups Expression Json Expression Container] 
- (List) Contains one or more tag types (and associated tags) combined using logical operators within a workload group
- expressionContainers List<Property Map>
- (List) Contains one or more tag types (and associated tags) combined using logical operators within a workload group
GetWorkloadGroupsExpressionJsonExpressionContainer      
- Operator string
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- TagContainers List<zscaler.Pulumi Package. Zia. Inputs. Get Workload Groups Expression Json Expression Container Tag Container> 
- (String) Contains one or more tags and the logical operator used to combine the tags within a tag type CLOSE_PARENTHESES
- TagType string
- (String) The tag type selected from a predefined list. Returned values are: ANY,VPC,SUBNET,VM,ENI,ATTR
- Operator string
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- TagContainers []GetWorkload Groups Expression Json Expression Container Tag Container 
- (String) Contains one or more tags and the logical operator used to combine the tags within a tag type CLOSE_PARENTHESES
- TagType string
- (String) The tag type selected from a predefined list. Returned values are: ANY,VPC,SUBNET,VM,ENI,ATTR
- operator String
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- tagContainers List<GetWorkload Groups Expression Json Expression Container Tag Container> 
- (String) Contains one or more tags and the logical operator used to combine the tags within a tag type CLOSE_PARENTHESES
- tagType String
- (String) The tag type selected from a predefined list. Returned values are: ANY,VPC,SUBNET,VM,ENI,ATTR
- operator string
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- tagContainers GetWorkload Groups Expression Json Expression Container Tag Container[] 
- (String) Contains one or more tags and the logical operator used to combine the tags within a tag type CLOSE_PARENTHESES
- tagType string
- (String) The tag type selected from a predefined list. Returned values are: ANY,VPC,SUBNET,VM,ENI,ATTR
- operator str
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- tag_containers Sequence[GetWorkload Groups Expression Json Expression Container Tag Container] 
- (String) Contains one or more tags and the logical operator used to combine the tags within a tag type CLOSE_PARENTHESES
- tag_type str
- (String) The tag type selected from a predefined list. Returned values are: ANY,VPC,SUBNET,VM,ENI,ATTR
- operator String
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- tagContainers List<Property Map>
- (String) Contains one or more tags and the logical operator used to combine the tags within a tag type CLOSE_PARENTHESES
- tagType String
- (String) The tag type selected from a predefined list. Returned values are: ANY,VPC,SUBNET,VM,ENI,ATTR
GetWorkloadGroupsExpressionJsonExpressionContainerTagContainer        
- Operator string
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- 
List<zscaler.Pulumi Package. Zia. Inputs. Get Workload Groups Expression Json Expression Container Tag Container Tag> 
- (String) One or more tags, each consisting of a key-value pair, selected within a tag type. If multiple tags are present within a tag type, they are combined using a logical operator. Note: A maximum of 8 tags can be added to a workload group, irrespective of the number of tag types present.
- Operator string
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- 
[]GetWorkload Groups Expression Json Expression Container Tag Container Tag 
- (String) One or more tags, each consisting of a key-value pair, selected within a tag type. If multiple tags are present within a tag type, they are combined using a logical operator. Note: A maximum of 8 tags can be added to a workload group, irrespective of the number of tag types present.
- operator String
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- 
List<GetWorkload Groups Expression Json Expression Container Tag Container Tag> 
- (String) One or more tags, each consisting of a key-value pair, selected within a tag type. If multiple tags are present within a tag type, they are combined using a logical operator. Note: A maximum of 8 tags can be added to a workload group, irrespective of the number of tag types present.
- operator string
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- 
GetWorkload Groups Expression Json Expression Container Tag Container Tag[] 
- (String) One or more tags, each consisting of a key-value pair, selected within a tag type. If multiple tags are present within a tag type, they are combined using a logical operator. Note: A maximum of 8 tags can be added to a workload group, irrespective of the number of tag types present.
- operator str
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- 
Sequence[GetWorkload Groups Expression Json Expression Container Tag Container Tag] 
- (String) One or more tags, each consisting of a key-value pair, selected within a tag type. If multiple tags are present within a tag type, they are combined using a logical operator. Note: A maximum of 8 tags can be added to a workload group, irrespective of the number of tag types present.
- operator String
- (String) The operator (either AND or OR) used to create logical relationships among tag types. Returned values are: AND,OR,OPEN_PARENTHESES,CLOSE_PARENTHESES
- List<Property Map>
- (String) One or more tags, each consisting of a key-value pair, selected within a tag type. If multiple tags are present within a tag type, they are combined using a logical operator. Note: A maximum of 8 tags can be added to a workload group, irrespective of the number of tag types present.
GetWorkloadGroupsExpressionJsonExpressionContainerTagContainerTag         
GetWorkloadGroupsLastModifiedBy     
- Extensions Dictionary<string, string>
- (Map of String)
- ExternalId string
- Id int
- The unique identifer for the workload group.
- Name string
- The name of the workload group to be exported.
- Extensions map[string]string
- (Map of String)
- ExternalId string
- Id int
- The unique identifer for the workload group.
- Name string
- The name of the workload group to be exported.
- extensions Map<String,String>
- (Map of String)
- externalId String
- id Integer
- The unique identifer for the workload group.
- name String
- The name of the workload group to be exported.
- extensions {[key: string]: string}
- (Map of String)
- externalId string
- id number
- The unique identifer for the workload group.
- name string
- The name of the workload group to be exported.
- extensions Mapping[str, str]
- (Map of String)
- external_id str
- id int
- The unique identifer for the workload group.
- name str
- The name of the workload group to be exported.
- extensions Map<String>
- (Map of String)
- externalId String
- id Number
- The unique identifer for the workload group.
- name String
- The name of the workload group to be exported.
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the ziaTerraform Provider.
