workloadgroups

package
v3.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpressionContainer

type ExpressionContainer struct {
	// The tag type selected from a predefined list
	TagType string `json:"tagType,omitempty"`

	// The operator (either AND or OR) used to create logical relationships among tag types
	Operator string `json:"operator,omitempty"`

	// Contains one or more tags and the logical operator used to combine the tags within a tag type
	TagContainer TagContainer `json:"tagContainer"`
}

type TagContainer

type TagContainer struct {
	//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.
	Tags []Tags `json:"tags"`

	// The logical operator (either AND or OR) used to combine the tags within a tag type
	Operator string `json:"operator,omitempty"`
}

type Tags

type Tags struct {
	// The key component present in the key-value pair contained in a tag
	Key string `json:"key,omitempty"`
	// The value component present in the key-value pair contained in a tag
	Value string `json:"value,omitempty"`
}

The list of tags (key-value pairs) selected within a tag type

type WorkloadGroup

type WorkloadGroup struct {
	// A unique identifier assigned to the workload group
	ID int `json:"id"`

	// The name of the workload group
	Name string `json:"name,omitempty"`

	// The description of the workload group
	Description string `json:"description,omitempty"`

	// The workload group expression containing tag types, tags, and their relationships.
	Expression string `json:"expression,omitempty"`

	// Timestamp when the workload group was last modified
	LastModifiedTime int `json:"lastModifiedTime,omitempty"`

	// Information about the admin that last modified the workload group
	LastModifiedBy *common.IDNameExtensions `json:"lastModifiedBy,omitempty"`

	WorkloadTagExpression WorkloadTagExpression `json:"expressionJson,omitempty"`
}

func Get

func Get(ctx context.Context, service *zscaler.Service, workloadID int) (*WorkloadGroup, error)

func GetAll

func GetAll(ctx context.Context, service *zscaler.Service) ([]WorkloadGroup, error)

func GetByName

func GetByName(ctx context.Context, service *zscaler.Service, workloadName string) (*WorkloadGroup, error)

type WorkloadTagExpression

type WorkloadTagExpression struct {
	ExpressionContainers []ExpressionContainer `json:"expressionContainers"`
}

The workload group expression containing tag types, tags, and their relationships represented in a JSON format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL