1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getCasbEmailLabel
Zscaler Internet Access v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler

zia.getCasbEmailLabel

Explore with Pulumi AI

zia logo
Zscaler Internet Access v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler

    Use the zia_casb_email_label data source to get information about email labels generated for the SaaS Security API policies in a user’s email account

    Example Usage

    By Name

    
    data "zia_casb_email_label" "this" {
      name = "EmailLabel01"
    }
    

    By ID

    
    data "zia_casb_email_label" "this" {
      id = 154658
    }
    

    Using getCasbEmailLabel

    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 getCasbEmailLabel(args: GetCasbEmailLabelArgs, opts?: InvokeOptions): Promise<GetCasbEmailLabelResult>
    function getCasbEmailLabelOutput(args: GetCasbEmailLabelOutputArgs, opts?: InvokeOptions): Output<GetCasbEmailLabelResult>
    def get_casb_email_label(id: Optional[int] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCasbEmailLabelResult
    def get_casb_email_label_output(id: Optional[pulumi.Input[int]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetCasbEmailLabelResult]
    func GetCasbEmailLabel(ctx *Context, args *GetCasbEmailLabelArgs, opts ...InvokeOption) (*GetCasbEmailLabelResult, error)
    func GetCasbEmailLabelOutput(ctx *Context, args *GetCasbEmailLabelOutputArgs, opts ...InvokeOption) GetCasbEmailLabelResultOutput

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

    public static class GetCasbEmailLabel 
    {
        public static Task<GetCasbEmailLabelResult> InvokeAsync(GetCasbEmailLabelArgs args, InvokeOptions? opts = null)
        public static Output<GetCasbEmailLabelResult> Invoke(GetCasbEmailLabelInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCasbEmailLabelResult> getCasbEmailLabel(GetCasbEmailLabelArgs args, InvokeOptions options)
    public static Output<GetCasbEmailLabelResult> getCasbEmailLabel(GetCasbEmailLabelArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zia:index/getCasbEmailLabel:getCasbEmailLabel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id int
    SaaS Security API email label ID
    Name string
    SaaS Security API email label name
    Id int
    SaaS Security API email label ID
    Name string
    SaaS Security API email label name
    id Integer
    SaaS Security API email label ID
    name String
    SaaS Security API email label name
    id number
    SaaS Security API email label ID
    name string
    SaaS Security API email label name
    id int
    SaaS Security API email label ID
    name str
    SaaS Security API email label name
    id Number
    SaaS Security API email label ID
    name String
    SaaS Security API email label name

    getCasbEmailLabel Result

    The following output properties are available:

    Id int
    LabelDeleted bool
    (Boolean) A Boolean value that indicates whether or not the email label is deleted
    Name string
    Id int
    LabelDeleted bool
    (Boolean) A Boolean value that indicates whether or not the email label is deleted
    Name string
    id Integer
    labelDeleted Boolean
    (Boolean) A Boolean value that indicates whether or not the email label is deleted
    name String
    id number
    labelDeleted boolean
    (Boolean) A Boolean value that indicates whether or not the email label is deleted
    name string
    id int
    label_deleted bool
    (Boolean) A Boolean value that indicates whether or not the email label is deleted
    name str
    id Number
    labelDeleted Boolean
    (Boolean) A Boolean value that indicates whether or not the email label is deleted
    name String

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    MIT
    Notes
    This Pulumi package is based on the zia Terraform Provider.
    zia logo
    Zscaler Internet Access v1.1.1 published on Tuesday, Jun 24, 2025 by Zscaler