1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. getClock
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.getClock

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This data source can read the Clock configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetClock.Invoke();
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iosxe.LookupClock(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.iosxe.IosxeFunctions;
    import com.pulumi.iosxe.inputs.GetClockArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = IosxeFunctions.getClock();
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_clock()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getClock({});
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getClock
          Arguments: {}
    

    Using getClock

    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 getClock(args: GetClockArgs, opts?: InvokeOptions): Promise<GetClockResult>
    function getClockOutput(args: GetClockOutputArgs, opts?: InvokeOptions): Output<GetClockResult>
    def get_clock(device: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetClockResult
    def get_clock_output(device: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetClockResult]
    func LookupClock(ctx *Context, args *LookupClockArgs, opts ...InvokeOption) (*LookupClockResult, error)
    func LookupClockOutput(ctx *Context, args *LookupClockOutputArgs, opts ...InvokeOption) LookupClockResultOutput

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

    public static class GetClock 
    {
        public static Task<GetClockResult> InvokeAsync(GetClockArgs args, InvokeOptions? opts = null)
        public static Output<GetClockResult> Invoke(GetClockInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClockResult> getClock(GetClockArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getClock:getClock
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Device string
    A device name from the provider configuration.
    Device string
    A device name from the provider configuration.
    device String
    A device name from the provider configuration.
    device string
    A device name from the provider configuration.
    device str
    A device name from the provider configuration.
    device String
    A device name from the provider configuration.

    getClock Result

    The following output properties are available:

    CalendarValid bool
    Calendar time is authoritative
    Id string
    The path of the retrieved object.
    SummerTimeDate bool
    Configure absolute summer time
    SummerTimeDateEndDay int
    SummerTimeDateEndMonth string
    SummerTimeDateEndTime string
    SummerTimeDateEndYear int
    SummerTimeDateOffset int
    SummerTimeDateStartDay int
    SummerTimeDateStartMonth string
    SummerTimeDateStartTime string
    SummerTimeDateStartYear int
    SummerTimeRecurring bool
    Configure recurring summer time
    SummerTimeRecurringEndMonth string
    SummerTimeRecurringEndTime string
    SummerTimeRecurringEndWeek string
    SummerTimeRecurringEndWeekday string
    SummerTimeRecurringOffset int
    SummerTimeRecurringStartMonth string
    SummerTimeRecurringStartTime string
    SummerTimeRecurringStartWeek string
    SummerTimeRecurringStartWeekday string
    SummerTimeZone string
    Name of time zone in summer
    Device string
    A device name from the provider configuration.
    CalendarValid bool
    Calendar time is authoritative
    Id string
    The path of the retrieved object.
    SummerTimeDate bool
    Configure absolute summer time
    SummerTimeDateEndDay int
    SummerTimeDateEndMonth string
    SummerTimeDateEndTime string
    SummerTimeDateEndYear int
    SummerTimeDateOffset int
    SummerTimeDateStartDay int
    SummerTimeDateStartMonth string
    SummerTimeDateStartTime string
    SummerTimeDateStartYear int
    SummerTimeRecurring bool
    Configure recurring summer time
    SummerTimeRecurringEndMonth string
    SummerTimeRecurringEndTime string
    SummerTimeRecurringEndWeek string
    SummerTimeRecurringEndWeekday string
    SummerTimeRecurringOffset int
    SummerTimeRecurringStartMonth string
    SummerTimeRecurringStartTime string
    SummerTimeRecurringStartWeek string
    SummerTimeRecurringStartWeekday string
    SummerTimeZone string
    Name of time zone in summer
    Device string
    A device name from the provider configuration.
    calendarValid Boolean
    Calendar time is authoritative
    id String
    The path of the retrieved object.
    summerTimeDate Boolean
    Configure absolute summer time
    summerTimeDateEndDay Integer
    summerTimeDateEndMonth String
    summerTimeDateEndTime String
    summerTimeDateEndYear Integer
    summerTimeDateOffset Integer
    summerTimeDateStartDay Integer
    summerTimeDateStartMonth String
    summerTimeDateStartTime String
    summerTimeDateStartYear Integer
    summerTimeRecurring Boolean
    Configure recurring summer time
    summerTimeRecurringEndMonth String
    summerTimeRecurringEndTime String
    summerTimeRecurringEndWeek String
    summerTimeRecurringEndWeekday String
    summerTimeRecurringOffset Integer
    summerTimeRecurringStartMonth String
    summerTimeRecurringStartTime String
    summerTimeRecurringStartWeek String
    summerTimeRecurringStartWeekday String
    summerTimeZone String
    Name of time zone in summer
    device String
    A device name from the provider configuration.
    calendarValid boolean
    Calendar time is authoritative
    id string
    The path of the retrieved object.
    summerTimeDate boolean
    Configure absolute summer time
    summerTimeDateEndDay number
    summerTimeDateEndMonth string
    summerTimeDateEndTime string
    summerTimeDateEndYear number
    summerTimeDateOffset number
    summerTimeDateStartDay number
    summerTimeDateStartMonth string
    summerTimeDateStartTime string
    summerTimeDateStartYear number
    summerTimeRecurring boolean
    Configure recurring summer time
    summerTimeRecurringEndMonth string
    summerTimeRecurringEndTime string
    summerTimeRecurringEndWeek string
    summerTimeRecurringEndWeekday string
    summerTimeRecurringOffset number
    summerTimeRecurringStartMonth string
    summerTimeRecurringStartTime string
    summerTimeRecurringStartWeek string
    summerTimeRecurringStartWeekday string
    summerTimeZone string
    Name of time zone in summer
    device string
    A device name from the provider configuration.
    calendar_valid bool
    Calendar time is authoritative
    id str
    The path of the retrieved object.
    summer_time_date bool
    Configure absolute summer time
    summer_time_date_end_day int
    summer_time_date_end_month str
    summer_time_date_end_time str
    summer_time_date_end_year int
    summer_time_date_offset int
    summer_time_date_start_day int
    summer_time_date_start_month str
    summer_time_date_start_time str
    summer_time_date_start_year int
    summer_time_recurring bool
    Configure recurring summer time
    summer_time_recurring_end_month str
    summer_time_recurring_end_time str
    summer_time_recurring_end_week str
    summer_time_recurring_end_weekday str
    summer_time_recurring_offset int
    summer_time_recurring_start_month str
    summer_time_recurring_start_time str
    summer_time_recurring_start_week str
    summer_time_recurring_start_weekday str
    summer_time_zone str
    Name of time zone in summer
    device str
    A device name from the provider configuration.
    calendarValid Boolean
    Calendar time is authoritative
    id String
    The path of the retrieved object.
    summerTimeDate Boolean
    Configure absolute summer time
    summerTimeDateEndDay Number
    summerTimeDateEndMonth String
    summerTimeDateEndTime String
    summerTimeDateEndYear Number
    summerTimeDateOffset Number
    summerTimeDateStartDay Number
    summerTimeDateStartMonth String
    summerTimeDateStartTime String
    summerTimeDateStartYear Number
    summerTimeRecurring Boolean
    Configure recurring summer time
    summerTimeRecurringEndMonth String
    summerTimeRecurringEndTime String
    summerTimeRecurringEndWeek String
    summerTimeRecurringEndWeekday String
    summerTimeRecurringOffset Number
    summerTimeRecurringStartMonth String
    summerTimeRecurringStartTime String
    summerTimeRecurringStartWeek String
    summerTimeRecurringStartWeekday String
    summerTimeZone String
    Name of time zone in summer
    device String
    A device name from the provider configuration.

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs