1. Packages
  2. Powerscale Provider
  3. API Docs
  4. getNtpsettings
powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell

powerscale.getNtpsettings

Explore with Pulumi AI

powerscale logo
powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell

    This datasource is used to query the NTP Settings from PowerScale array. The information fetched from this datasource can be used for getting the details or for further processing in resource block. You can use NTP Settings to change the settings of NTP Servers

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as powerscale from "@pulumi/powerscale";
    
    const all = powerscale.getNtpsettings({});
    export const powerscaleNtpsettingsDataAll = all;
    
    import pulumi
    import pulumi_powerscale as powerscale
    
    all = powerscale.get_ntpsettings()
    pulumi.export("powerscaleNtpsettingsDataAll", all)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerscale/powerscale"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		all, err := powerscale.LookupNtpsettings(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("powerscaleNtpsettingsDataAll", all)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Powerscale = Pulumi.Powerscale;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Powerscale.GetNtpsettings.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["powerscaleNtpsettingsDataAll"] = all,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.powerscale.PowerscaleFunctions;
    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 all = PowerscaleFunctions.getNtpsettings();
    
            ctx.export("powerscaleNtpsettingsDataAll", all.applyValue(getNtpsettingsResult -> getNtpsettingsResult));
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: powerscale:getNtpsettings
          arguments: {}
    outputs:
      # Output value of above block by executing 'terraform output' command
      # You can use the the fetched information by the variable data.powerscale_ntpsettings.all
      powerscaleNtpsettingsDataAll: ${all}
    

    Using getNtpsettings

    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 getNtpsettings(opts?: InvokeOptions): Promise<GetNtpsettingsResult>
    function getNtpsettingsOutput(opts?: InvokeOptions): Output<GetNtpsettingsResult>
    def get_ntpsettings(opts: Optional[InvokeOptions] = None) -> GetNtpsettingsResult
    def get_ntpsettings_output(opts: Optional[InvokeOptions] = None) -> Output[GetNtpsettingsResult]
    func LookupNtpsettings(ctx *Context, opts ...InvokeOption) (*LookupNtpsettingsResult, error)
    func LookupNtpsettingsOutput(ctx *Context, opts ...InvokeOption) LookupNtpsettingsResultOutput

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

    public static class GetNtpsettings 
    {
        public static Task<GetNtpsettingsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetNtpsettingsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNtpsettingsResult> getNtpsettings(InvokeOptions options)
    public static Output<GetNtpsettingsResult> getNtpsettings(InvokeOptions options)
    
    fn::invoke:
      function: powerscale:index/getNtpsettings:getNtpsettings
      arguments:
        # arguments dictionary

    getNtpsettings Result

    The following output properties are available:

    Chimers double
    Number of nodes that will contact the NTP servers.
    Excludeds List<string>
    Node number (LNN) for nodes excluded from chimer duty.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyFile string
    Path to NTP key file within /ifs.
    Chimers float64
    Number of nodes that will contact the NTP servers.
    Excludeds []string
    Node number (LNN) for nodes excluded from chimer duty.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyFile string
    Path to NTP key file within /ifs.
    chimers Double
    Number of nodes that will contact the NTP servers.
    excludeds List<String>
    Node number (LNN) for nodes excluded from chimer duty.
    id String
    The provider-assigned unique ID for this managed resource.
    keyFile String
    Path to NTP key file within /ifs.
    chimers number
    Number of nodes that will contact the NTP servers.
    excludeds string[]
    Node number (LNN) for nodes excluded from chimer duty.
    id string
    The provider-assigned unique ID for this managed resource.
    keyFile string
    Path to NTP key file within /ifs.
    chimers float
    Number of nodes that will contact the NTP servers.
    excludeds Sequence[str]
    Node number (LNN) for nodes excluded from chimer duty.
    id str
    The provider-assigned unique ID for this managed resource.
    key_file str
    Path to NTP key file within /ifs.
    chimers Number
    Number of nodes that will contact the NTP servers.
    excludeds List<String>
    Node number (LNN) for nodes excluded from chimer duty.
    id String
    The provider-assigned unique ID for this managed resource.
    keyFile String
    Path to NTP key file within /ifs.

    Package Details

    Repository
    powerscale dell/terraform-provider-powerscale
    License
    Notes
    This Pulumi package is based on the powerscale Terraform Provider.
    powerscale logo
    powerscale 1.7.1 published on Wednesday, Apr 30, 2025 by dell