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

powerscale.Ntpserver

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 Server entity of PowerScale Array. We can Create, Update and Delete the NTP Server using this resource. We can also import an existing NTP Server from PowerScale array.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as powerscale from "@pulumi/powerscale";
    
    // PowerScale NTP Server allows you to synchronize the system time
    const ntpServerTest = new powerscale.Ntpserver("ntpServerTest", {key: "ntp_server_key_example"});
    
    import pulumi
    import pulumi_powerscale as powerscale
    
    # PowerScale NTP Server allows you to synchronize the system time
    ntp_server_test = powerscale.Ntpserver("ntpServerTest", key="ntp_server_key_example")
    
    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 Server allows you to synchronize the system time
    		_, err := powerscale.NewNtpserver(ctx, "ntpServerTest", &powerscale.NtpserverArgs{
    			Key: pulumi.String("ntp_server_key_example"),
    		})
    		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 Server allows you to synchronize the system time
        var ntpServerTest = new Powerscale.Ntpserver("ntpServerTest", new()
        {
            Key = "ntp_server_key_example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.powerscale.Ntpserver;
    import com.pulumi.powerscale.NtpserverArgs;
    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 Server allows you to synchronize the system time
            var ntpServerTest = new Ntpserver("ntpServerTest", NtpserverArgs.builder()
                .key("ntp_server_key_example")
                .build());
    
        }
    }
    
    resources:
      # PowerScale NTP Server allows you to synchronize the system time
      ntpServerTest:
        type: powerscale:Ntpserver
        properties:
          # Optional parameters for updating
          key: ntp_server_key_example
    

    Create Ntpserver Resource

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

    Constructor syntax

    new Ntpserver(name: string, args?: NtpserverArgs, opts?: CustomResourceOptions);
    @overload
    def Ntpserver(resource_name: str,
                  args: Optional[NtpserverArgs] = None,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ntpserver(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  key: Optional[str] = None,
                  name: Optional[str] = None)
    func NewNtpserver(ctx *Context, name string, args *NtpserverArgs, opts ...ResourceOption) (*Ntpserver, error)
    public Ntpserver(string name, NtpserverArgs? args = null, CustomResourceOptions? opts = null)
    public Ntpserver(String name, NtpserverArgs args)
    public Ntpserver(String name, NtpserverArgs args, CustomResourceOptions options)
    
    type: powerscale:Ntpserver
    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 NtpserverArgs
    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 NtpserverArgs
    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 NtpserverArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NtpserverArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NtpserverArgs
    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 ntpserverResource = new Powerscale.Ntpserver("ntpserverResource", new()
    {
        Key = "string",
        Name = "string",
    });
    
    example, err := powerscale.NewNtpserver(ctx, "ntpserverResource", &powerscale.NtpserverArgs{
    	Key:  pulumi.String("string"),
    	Name: pulumi.String("string"),
    })
    
    var ntpserverResource = new Ntpserver("ntpserverResource", NtpserverArgs.builder()
        .key("string")
        .name("string")
        .build());
    
    ntpserver_resource = powerscale.Ntpserver("ntpserverResource",
        key="string",
        name="string")
    
    const ntpserverResource = new powerscale.Ntpserver("ntpserverResource", {
        key: "string",
        name: "string",
    });
    
    type: powerscale:Ntpserver
    properties:
        key: string
        name: string
    

    Ntpserver 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 Ntpserver resource accepts the following input properties:

    Key string
    Key value from key_file that maps to this server.
    Name string
    NTP server name.
    Key string
    Key value from key_file that maps to this server.
    Name string
    NTP server name.
    key String
    Key value from key_file that maps to this server.
    name String
    NTP server name.
    key string
    Key value from key_file that maps to this server.
    name string
    NTP server name.
    key str
    Key value from key_file that maps to this server.
    name str
    NTP server name.
    key String
    Key value from key_file that maps to this server.
    name String
    NTP server name.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Ntpserver 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 Ntpserver Resource

    Get an existing Ntpserver 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?: NtpserverState, opts?: CustomResourceOptions): Ntpserver
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            key: Optional[str] = None,
            name: Optional[str] = None) -> Ntpserver
    func GetNtpserver(ctx *Context, name string, id IDInput, state *NtpserverState, opts ...ResourceOption) (*Ntpserver, error)
    public static Ntpserver Get(string name, Input<string> id, NtpserverState? state, CustomResourceOptions? opts = null)
    public static Ntpserver get(String name, Output<String> id, NtpserverState state, CustomResourceOptions options)
    resources:  _:    type: powerscale:Ntpserver    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:
    Key string
    Key value from key_file that maps to this server.
    Name string
    NTP server name.
    Key string
    Key value from key_file that maps to this server.
    Name string
    NTP server name.
    key String
    Key value from key_file that maps to this server.
    name String
    NTP server name.
    key string
    Key value from key_file that maps to this server.
    name string
    NTP server name.
    key str
    Key value from key_file that maps to this server.
    name str
    NTP server name.
    key String
    Key value from key_file that maps to this server.
    name String
    NTP server name.

    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/ntpserver:Ntpserver ntp_server_test <name>
    

    Example:

    $ pulumi import powerscale:index/ntpserver:Ntpserver ntp_server_test ntp_server_id
    

    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