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

powerscale.Ntpsettings

Explore with Pulumi AI

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

    This resource is used to manage the NTP Settings entity of PowerScale Array. We can Create, Update and Delete the NTP Settings using this resource. We can also import the existing NTP Settings from PowerScale array. Note that, NTP Settings is the native functionality of PowerScale. When creating the resource, we actually load NTP Settings from PowerScale to the resource state.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as powerscale from "@pulumi/powerscale";
    
    // PowerScale NTP Settings allow you to change the settings of NTP Servers
    const exampleNtpSettings = new powerscale.Ntpsettings("exampleNtpSettings", {});
    
    import pulumi
    import pulumi_powerscale as powerscale
    
    # PowerScale NTP Settings allow you to change the settings of NTP Servers
    example_ntp_settings = powerscale.Ntpsettings("exampleNtpSettings")
    
    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 {
    		// PowerScale NTP Settings allow you to change the settings of NTP Servers
    		_, err := powerscale.NewNtpsettings(ctx, "exampleNtpSettings", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Powerscale = Pulumi.Powerscale;
    
    return await Deployment.RunAsync(() => 
    {
        // PowerScale NTP Settings allow you to change the settings of NTP Servers
        var exampleNtpSettings = new Powerscale.Ntpsettings("exampleNtpSettings");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.powerscale.Ntpsettings;
    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) {
            // PowerScale NTP Settings allow you to change the settings of NTP Servers
            var exampleNtpSettings = new Ntpsettings("exampleNtpSettings");
    
        }
    }
    
    resources:
      # PowerScale NTP Settings allow you to change the settings of NTP Servers
      exampleNtpSettings:
        type: powerscale:Ntpsettings
    

    Create Ntpsettings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Ntpsettings(name: string, args?: NtpsettingsArgs, opts?: CustomResourceOptions);
    @overload
    def Ntpsettings(resource_name: str,
                    args: Optional[NtpsettingsArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ntpsettings(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    chimers: Optional[float] = None,
                    excludeds: Optional[Sequence[str]] = None,
                    key_file: Optional[str] = None)
    func NewNtpsettings(ctx *Context, name string, args *NtpsettingsArgs, opts ...ResourceOption) (*Ntpsettings, error)
    public Ntpsettings(string name, NtpsettingsArgs? args = null, CustomResourceOptions? opts = null)
    public Ntpsettings(String name, NtpsettingsArgs args)
    public Ntpsettings(String name, NtpsettingsArgs args, CustomResourceOptions options)
    
    type: powerscale:Ntpsettings
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NtpsettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NtpsettingsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NtpsettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NtpsettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NtpsettingsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ntpsettingsResource = new Powerscale.Ntpsettings("ntpsettingsResource", new()
    {
        Chimers = 0,
        Excludeds = new[]
        {
            "string",
        },
        KeyFile = "string",
    });
    
    example, err := powerscale.NewNtpsettings(ctx, "ntpsettingsResource", &powerscale.NtpsettingsArgs{
    	Chimers: pulumi.Float64(0),
    	Excludeds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	KeyFile: pulumi.String("string"),
    })
    
    var ntpsettingsResource = new Ntpsettings("ntpsettingsResource", NtpsettingsArgs.builder()
        .chimers(0)
        .excludeds("string")
        .keyFile("string")
        .build());
    
    ntpsettings_resource = powerscale.Ntpsettings("ntpsettingsResource",
        chimers=0,
        excludeds=["string"],
        key_file="string")
    
    const ntpsettingsResource = new powerscale.Ntpsettings("ntpsettingsResource", {
        chimers: 0,
        excludeds: ["string"],
        keyFile: "string",
    });
    
    type: powerscale:Ntpsettings
    properties:
        chimers: 0
        excludeds:
            - string
        keyFile: string
    

    Ntpsettings Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Ntpsettings resource accepts the following input properties:

    Chimers double
    Number of nodes that will contact the NTP servers.
    Excludeds List<string>
    Node number (LNN) for nodes excluded from chimer duty.
    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.
    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.
    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.
    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.
    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.
    keyFile String
    Path to NTP key file within /ifs.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Ntpsettings resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Ntpsettings Resource

    Get an existing Ntpsettings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NtpsettingsState, opts?: CustomResourceOptions): Ntpsettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            chimers: Optional[float] = None,
            excludeds: Optional[Sequence[str]] = None,
            key_file: Optional[str] = None) -> Ntpsettings
    func GetNtpsettings(ctx *Context, name string, id IDInput, state *NtpsettingsState, opts ...ResourceOption) (*Ntpsettings, error)
    public static Ntpsettings Get(string name, Input<string> id, NtpsettingsState? state, CustomResourceOptions? opts = null)
    public static Ntpsettings get(String name, Output<String> id, NtpsettingsState state, CustomResourceOptions options)
    resources:  _:    type: powerscale:Ntpsettings    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Chimers double
    Number of nodes that will contact the NTP servers.
    Excludeds List<string>
    Node number (LNN) for nodes excluded from chimer duty.
    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.
    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.
    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.
    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.
    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.
    keyFile String
    Path to NTP key file within /ifs.

    Import

    Copyright (c) 2023-2024 Dell Inc., or its subsidiaries. All Rights Reserved.

    Licensed under the Mozilla Public License Version 2.0 (the “License”);

    you may not use this file except in compliance with the License.

    You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/
    

    Unless required by applicable law or agreed to in writing, software

    distributed under the License is distributed on an “AS IS” BASIS,

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    See the License for the specific language governing permissions and

    limitations under the License.

    The command is

    $ pulumi import powerscale:index/ntpsettings:Ntpsettings example_ntp_settings <anyString>
    

    Example:

    $ pulumi import powerscale:index/ntpsettings:Ntpsettings example_ntp_settings anyString
    

    after running this command, populate the name field and other required parameters in the config file to start managing this resource.

    Note: running “terraform show” after importing shows the current config/state of the resource. You can copy/paste that config to make it easier to manage the resource.

    To learn more about importing existing cloud resources, see Importing resources.

    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