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

zia.getTenantRestrictionProfile

Explore with Pulumi AI

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

    Use the zia_tenant_restriction_profile data source to get information about a ZIA Domain Profiles in the Zscaler Internet Access cloud or via the API. The resource can then be utilized when configuring a Web DLP Rule resource zia.DLPWebRules

    Example Usage

    By Name

    data "zia_tenant_restriction_profile" "this"{
        name = "MiicrosoftO365Login"
    }
    

    By ID

    data "zia_tenant_restriction_profile" "this"{
        id = "5421656"
    }
    

    Using getTenantRestrictionProfile

    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 getTenantRestrictionProfile(args: GetTenantRestrictionProfileArgs, opts?: InvokeOptions): Promise<GetTenantRestrictionProfileResult>
    function getTenantRestrictionProfileOutput(args: GetTenantRestrictionProfileOutputArgs, opts?: InvokeOptions): Output<GetTenantRestrictionProfileResult>
    def get_tenant_restriction_profile(description: Optional[str] = None,
                                       id: Optional[int] = None,
                                       name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetTenantRestrictionProfileResult
    def get_tenant_restriction_profile_output(description: Optional[pulumi.Input[str]] = None,
                                       id: Optional[pulumi.Input[int]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetTenantRestrictionProfileResult]
    func GetTenantRestrictionProfile(ctx *Context, args *GetTenantRestrictionProfileArgs, opts ...InvokeOption) (*GetTenantRestrictionProfileResult, error)
    func GetTenantRestrictionProfileOutput(ctx *Context, args *GetTenantRestrictionProfileOutputArgs, opts ...InvokeOption) GetTenantRestrictionProfileResultOutput

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

    public static class GetTenantRestrictionProfile 
    {
        public static Task<GetTenantRestrictionProfileResult> InvokeAsync(GetTenantRestrictionProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetTenantRestrictionProfileResult> Invoke(GetTenantRestrictionProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTenantRestrictionProfileResult> getTenantRestrictionProfile(GetTenantRestrictionProfileArgs args, InvokeOptions options)
    public static Output<GetTenantRestrictionProfileResult> getTenantRestrictionProfile(GetTenantRestrictionProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zia:index/getTenantRestrictionProfile:getTenantRestrictionProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Description string
    Id int
    Name string
    Description string
    Id int
    Name string
    description String
    id Integer
    name String
    description string
    id number
    name string
    description str
    id int
    name str
    description String
    id Number
    name String

    getTenantRestrictionProfile Result

    The following output properties are available:

    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