1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getTimeWindow
Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler

zia.getTimeWindow

Explore with Pulumi AI

zia logo
Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler

    Use the zia_firewall_filtering_time_window data source to get information about a time window option available in the Zscaler Internet Access cloud firewall. This data source can then be associated with a ZIA firewall filtering rule.

    Example Usage

    # ZIA Time Window - Work Hours
    data "zia_firewall_filtering_time_window" "work_hours"{
        name = "Work hours"
    }
    
    # ZIA Time Window - Weekends
    data "zia_firewall_filtering_time_window" "weekends"{
        name = "Weekends"
    }
    
    # ZIA Time Window - Off Hours
    data "zia_firewall_filtering_time_window" "off_hours"{
        name = "Off hours"
    }
    

    Using getTimeWindow

    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 getTimeWindow(args: GetTimeWindowArgs, opts?: InvokeOptions): Promise<GetTimeWindowResult>
    function getTimeWindowOutput(args: GetTimeWindowOutputArgs, opts?: InvokeOptions): Output<GetTimeWindowResult>
    def get_time_window(name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetTimeWindowResult
    def get_time_window_output(name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetTimeWindowResult]
    func GetTimeWindow(ctx *Context, args *GetTimeWindowArgs, opts ...InvokeOption) (*GetTimeWindowResult, error)
    func GetTimeWindowOutput(ctx *Context, args *GetTimeWindowOutputArgs, opts ...InvokeOption) GetTimeWindowResultOutput

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

    public static class GetTimeWindow 
    {
        public static Task<GetTimeWindowResult> InvokeAsync(GetTimeWindowArgs args, InvokeOptions? opts = null)
        public static Output<GetTimeWindowResult> Invoke(GetTimeWindowInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTimeWindowResult> getTimeWindow(GetTimeWindowArgs args, InvokeOptions options)
    public static Output<GetTimeWindowResult> getTimeWindow(GetTimeWindowArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zia:index/getTimeWindow:getTimeWindow
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the time window to be exported.
    Name string
    The name of the time window to be exported.
    name String
    The name of the time window to be exported.
    name string
    The name of the time window to be exported.
    name str
    The name of the time window to be exported.
    name String
    The name of the time window to be exported.

    getTimeWindow Result

    The following output properties are available:

    DayOfWeeks List<string>
    (String). The supported values are:

    • ANY - (String)
    • NONE - (String)
    • EVERYDAY - (String)
    • SUN - (String)
    • MON - (String)
    • TUE - (String)
    • WED - (String)
    • THU - (String)
    • FRI - (String)
    • SAT - (String)
    EndTime int
    (String)
    Id int
    StartTime int
    (String)
    Name string
    DayOfWeeks []string
    (String). The supported values are:

    • ANY - (String)
    • NONE - (String)
    • EVERYDAY - (String)
    • SUN - (String)
    • MON - (String)
    • TUE - (String)
    • WED - (String)
    • THU - (String)
    • FRI - (String)
    • SAT - (String)
    EndTime int
    (String)
    Id int
    StartTime int
    (String)
    Name string
    dayOfWeeks List<String>
    (String). The supported values are:

    • ANY - (String)
    • NONE - (String)
    • EVERYDAY - (String)
    • SUN - (String)
    • MON - (String)
    • TUE - (String)
    • WED - (String)
    • THU - (String)
    • FRI - (String)
    • SAT - (String)
    endTime Integer
    (String)
    id Integer
    startTime Integer
    (String)
    name String
    dayOfWeeks string[]
    (String). The supported values are:

    • ANY - (String)
    • NONE - (String)
    • EVERYDAY - (String)
    • SUN - (String)
    • MON - (String)
    • TUE - (String)
    • WED - (String)
    • THU - (String)
    • FRI - (String)
    • SAT - (String)
    endTime number
    (String)
    id number
    startTime number
    (String)
    name string
    day_of_weeks Sequence[str]
    (String). The supported values are:

    • ANY - (String)
    • NONE - (String)
    • EVERYDAY - (String)
    • SUN - (String)
    • MON - (String)
    • TUE - (String)
    • WED - (String)
    • THU - (String)
    • FRI - (String)
    • SAT - (String)
    end_time int
    (String)
    id int
    start_time int
    (String)
    name str
    dayOfWeeks List<String>
    (String). The supported values are:

    • ANY - (String)
    • NONE - (String)
    • EVERYDAY - (String)
    • SUN - (String)
    • MON - (String)
    • TUE - (String)
    • WED - (String)
    • THU - (String)
    • FRI - (String)
    • SAT - (String)
    endTime Number
    (String)
    id Number
    startTime Number
    (String)
    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.0.1 published on Friday, Jun 6, 2025 by Zscaler