1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getTimeWindow
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 firewall time window by ID or name.

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

    The following arguments are supported:

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

    getTimeWindow Result

    The following output properties are available:

    DayOfWeek List<string>
    The days of the week the time window applies to.
    EndTime int
    The end time of the time window (minutes from midnight).
    Name string
    The name of the time window.
    ResourceId int
    The ID of the time window.
    StartTime int
    The start time of the time window (minutes from midnight).
    DayOfWeek []string
    The days of the week the time window applies to.
    EndTime int
    The end time of the time window (minutes from midnight).
    Name string
    The name of the time window.
    ResourceId int
    The ID of the time window.
    StartTime int
    The start time of the time window (minutes from midnight).
    dayOfWeek List<String>
    The days of the week the time window applies to.
    endTime Integer
    The end time of the time window (minutes from midnight).
    name String
    The name of the time window.
    resourceId Integer
    The ID of the time window.
    startTime Integer
    The start time of the time window (minutes from midnight).
    dayOfWeek string[]
    The days of the week the time window applies to.
    endTime number
    The end time of the time window (minutes from midnight).
    name string
    The name of the time window.
    resourceId number
    The ID of the time window.
    startTime number
    The start time of the time window (minutes from midnight).
    day_of_week Sequence[str]
    The days of the week the time window applies to.
    end_time int
    The end time of the time window (minutes from midnight).
    name str
    The name of the time window.
    resource_id int
    The ID of the time window.
    start_time int
    The start time of the time window (minutes from midnight).
    dayOfWeek List<String>
    The days of the week the time window applies to.
    endTime Number
    The end time of the time window (minutes from midnight).
    name String
    The name of the time window.
    resourceId Number
    The ID of the time window.
    startTime Number
    The start time of the time window (minutes from midnight).

    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.