Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler
zia.getRuleLabels
Explore with Pulumi AI
Use the zia_rule_labels data source to get information about a rule label resource in the Zscaler Internet Access cloud or via the API. This data source can then be associated with resources such as: Firewall Rules and URL filtering rules
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@pulumi/zia";
const example = zia.getRuleLabels({
name: "Example",
});
import pulumi
import pulumi_zia as zia
example = zia.get_rule_labels(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.LookupRuleLabels(ctx, &zia.LookupRuleLabelsArgs{
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 example = Zia.GetRuleLabels.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.GetRuleLabelsArgs;
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 example = ZiaFunctions.getRuleLabels(GetRuleLabelsArgs.builder()
.name("Example")
.build());
}
}
variables:
example:
fn::invoke:
Function: zia:getRuleLabels
Arguments:
name: Example
Using getRuleLabels
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 getRuleLabels(args: GetRuleLabelsArgs, opts?: InvokeOptions): Promise<GetRuleLabelsResult>
function getRuleLabelsOutput(args: GetRuleLabelsOutputArgs, opts?: InvokeOptions): Output<GetRuleLabelsResult>
def get_rule_labels(id: Optional[int] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRuleLabelsResult
def get_rule_labels_output(id: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRuleLabelsResult]
func LookupRuleLabels(ctx *Context, args *LookupRuleLabelsArgs, opts ...InvokeOption) (*LookupRuleLabelsResult, error)
func LookupRuleLabelsOutput(ctx *Context, args *LookupRuleLabelsOutputArgs, opts ...InvokeOption) LookupRuleLabelsResultOutput
> Note: This function is named LookupRuleLabels
in the Go SDK.
public static class GetRuleLabels
{
public static Task<GetRuleLabelsResult> InvokeAsync(GetRuleLabelsArgs args, InvokeOptions? opts = null)
public static Output<GetRuleLabelsResult> Invoke(GetRuleLabelsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRuleLabelsResult> getRuleLabels(GetRuleLabelsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zia:index/getRuleLabels:getRuleLabels
arguments:
# arguments dictionary
The following arguments are supported:
getRuleLabels Result
The following output properties are available:
- Created
Bies List<zscaler.Pulumi Package. Zia. Outputs. Get Rule Labels Created By> - (String) The admin that created the rule label. This is a read-only field. Ignored by PUT requests.
- Description string
- (String) The rule label description.
- Id int
- Last
Modified List<zscaler.Bies Pulumi Package. Zia. Outputs. Get Rule Labels Last Modified By> - (String) The admin that modified the rule label last. This is a read-only field. Ignored by PUT requests.
- Last
Modified intTime - (String) Timestamp when the rule lable was last modified. This is a read-only field. Ignored by PUT and DELETE requests.
- Name string
- Referenced
Rule intCount - (int) The number of rules that reference the label.
- Created
Bies []GetRule Labels Created By - (String) The admin that created the rule label. This is a read-only field. Ignored by PUT requests.
- Description string
- (String) The rule label description.
- Id int
- Last
Modified []GetBies Rule Labels Last Modified By - (String) The admin that modified the rule label last. This is a read-only field. Ignored by PUT requests.
- Last
Modified intTime - (String) Timestamp when the rule lable was last modified. This is a read-only field. Ignored by PUT and DELETE requests.
- Name string
- Referenced
Rule intCount - (int) The number of rules that reference the label.
- created
Bies List<GetRule Labels Created By> - (String) The admin that created the rule label. This is a read-only field. Ignored by PUT requests.
- description String
- (String) The rule label description.
- id Integer
- last
Modified List<GetBies Rule Labels Last Modified By> - (String) The admin that modified the rule label last. This is a read-only field. Ignored by PUT requests.
- last
Modified IntegerTime - (String) Timestamp when the rule lable was last modified. This is a read-only field. Ignored by PUT and DELETE requests.
- name String
- referenced
Rule IntegerCount - (int) The number of rules that reference the label.
- created
Bies GetRule Labels Created By[] - (String) The admin that created the rule label. This is a read-only field. Ignored by PUT requests.
- description string
- (String) The rule label description.
- id number
- last
Modified GetBies Rule Labels Last Modified By[] - (String) The admin that modified the rule label last. This is a read-only field. Ignored by PUT requests.
- last
Modified numberTime - (String) Timestamp when the rule lable was last modified. This is a read-only field. Ignored by PUT and DELETE requests.
- name string
- referenced
Rule numberCount - (int) The number of rules that reference the label.
- created_
bies Sequence[GetRule Labels Created By] - (String) The admin that created the rule label. This is a read-only field. Ignored by PUT requests.
- description str
- (String) The rule label description.
- id int
- last_
modified_ Sequence[Getbies Rule Labels Last Modified By] - (String) The admin that modified the rule label last. This is a read-only field. Ignored by PUT requests.
- last_
modified_ inttime - (String) Timestamp when the rule lable was last modified. This is a read-only field. Ignored by PUT and DELETE requests.
- name str
- referenced_
rule_ intcount - (int) The number of rules that reference the label.
- created
Bies List<Property Map> - (String) The admin that created the rule label. This is a read-only field. Ignored by PUT requests.
- description String
- (String) The rule label description.
- id Number
- last
Modified List<Property Map>Bies - (String) The admin that modified the rule label last. This is a read-only field. Ignored by PUT requests.
- last
Modified NumberTime - (String) Timestamp when the rule lable was last modified. This is a read-only field. Ignored by PUT and DELETE requests.
- name String
- referenced
Rule NumberCount - (int) The number of rules that reference the label.
Supporting Types
GetRuleLabelsCreatedBy
- Extensions Dictionary<string, string>
- Id int
- The unique identifer for the device group.
- Name string
- The name of the rule label to be exported.
- Extensions map[string]string
- Id int
- The unique identifer for the device group.
- Name string
- The name of the rule label to be exported.
- extensions Map<String,String>
- id Integer
- The unique identifer for the device group.
- name String
- The name of the rule label to be exported.
- extensions {[key: string]: string}
- id number
- The unique identifer for the device group.
- name string
- The name of the rule label to be exported.
- extensions Mapping[str, str]
- id int
- The unique identifer for the device group.
- name str
- The name of the rule label to be exported.
- extensions Map<String>
- id Number
- The unique identifer for the device group.
- name String
- The name of the rule label to be exported.
GetRuleLabelsLastModifiedBy
- Extensions Dictionary<string, string>
- Id int
- The unique identifer for the device group.
- Name string
- The name of the rule label to be exported.
- Extensions map[string]string
- Id int
- The unique identifer for the device group.
- Name string
- The name of the rule label to be exported.
- extensions Map<String,String>
- id Integer
- The unique identifer for the device group.
- name String
- The name of the rule label to be exported.
- extensions {[key: string]: string}
- id number
- The unique identifer for the device group.
- name string
- The name of the rule label to be exported.
- extensions Mapping[str, str]
- id int
- The unique identifer for the device group.
- name str
- The name of the rule label to be exported.
- extensions Map<String>
- id Number
- The unique identifer for the device group.
- name String
- The name of the rule label to be exported.
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the
zia
Terraform Provider.