1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getCasbEmailLabel
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 CASB email label by ID or name.

    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(name: Optional[str] = None,
                             resource_id: Optional[int] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCasbEmailLabelResult
    def get_casb_email_label_output(name: Optional[pulumi.Input[str]] = None,
                             resource_id: Optional[pulumi.Input[int]] = 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:getCasbEmailLabel
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getCasbEmailLabel Result

    The following output properties are available:

    LabelDeleted bool
    Whether the email label has been deleted.
    Name string
    The name of the CASB email label.
    ResourceId int
    The ID of the CASB email label.
    LabelDeleted bool
    Whether the email label has been deleted.
    Name string
    The name of the CASB email label.
    ResourceId int
    The ID of the CASB email label.
    labelDeleted Boolean
    Whether the email label has been deleted.
    name String
    The name of the CASB email label.
    resourceId Integer
    The ID of the CASB email label.
    labelDeleted boolean
    Whether the email label has been deleted.
    name string
    The name of the CASB email label.
    resourceId number
    The ID of the CASB email label.
    label_deleted bool
    Whether the email label has been deleted.
    name str
    The name of the CASB email label.
    resource_id int
    The ID of the CASB email label.
    labelDeleted Boolean
    Whether the email label has been deleted.
    name String
    The name of the CASB email label.
    resourceId Number
    The ID of the CASB email label.

    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.