powerscale.ClusterTime
Explore with Pulumi AI
This resource is used to manage the Cluster Time settings of PowerScale Array. We can Create, Update and Delete the Cluster Time using this resource. We can also import an existing Cluster Time from PowerScale array.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerscale from "@pulumi/powerscale";
const test = new powerscale.ClusterTime("test", {
date: "01/12/2024",
path: "Asia/Kolkata",
time: "00:32",
});
import pulumi
import pulumi_powerscale as powerscale
test = powerscale.ClusterTime("test",
date="01/12/2024",
path="Asia/Kolkata",
time="00:32")
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 {
_, err := powerscale.NewClusterTime(ctx, "test", &powerscale.ClusterTimeArgs{
Date: pulumi.String("01/12/2024"),
Path: pulumi.String("Asia/Kolkata"),
Time: pulumi.String("00:32"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Powerscale = Pulumi.Powerscale;
return await Deployment.RunAsync(() =>
{
var test = new Powerscale.ClusterTime("test", new()
{
Date = "01/12/2024",
Path = "Asia/Kolkata",
Time = "00:32",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerscale.ClusterTime;
import com.pulumi.powerscale.ClusterTimeArgs;
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) {
var test = new ClusterTime("test", ClusterTimeArgs.builder()
.date("01/12/2024")
.path("Asia/Kolkata")
.time("00:32")
.build());
}
}
resources:
test:
type: powerscale:ClusterTime
properties:
date: 01/12/2024
path: Asia/Kolkata
time: 00:32
Create ClusterTime Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterTime(name: string, args?: ClusterTimeArgs, opts?: CustomResourceOptions);
@overload
def ClusterTime(resource_name: str,
args: Optional[ClusterTimeArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterTime(resource_name: str,
opts: Optional[ResourceOptions] = None,
date: Optional[str] = None,
path: Optional[str] = None,
time: Optional[str] = None)
func NewClusterTime(ctx *Context, name string, args *ClusterTimeArgs, opts ...ResourceOption) (*ClusterTime, error)
public ClusterTime(string name, ClusterTimeArgs? args = null, CustomResourceOptions? opts = null)
public ClusterTime(String name, ClusterTimeArgs args)
public ClusterTime(String name, ClusterTimeArgs args, CustomResourceOptions options)
type: powerscale:ClusterTime
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 ClusterTimeArgs
- 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 ClusterTimeArgs
- 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 ClusterTimeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterTimeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterTimeArgs
- 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 clusterTimeResource = new Powerscale.ClusterTime("clusterTimeResource", new()
{
Date = "string",
Path = "string",
Time = "string",
});
example, err := powerscale.NewClusterTime(ctx, "clusterTimeResource", &powerscale.ClusterTimeArgs{
Date: pulumi.String("string"),
Path: pulumi.String("string"),
Time: pulumi.String("string"),
})
var clusterTimeResource = new ClusterTime("clusterTimeResource", ClusterTimeArgs.builder()
.date("string")
.path("string")
.time("string")
.build());
cluster_time_resource = powerscale.ClusterTime("clusterTimeResource",
date="string",
path="string",
time="string")
const clusterTimeResource = new powerscale.ClusterTime("clusterTimeResource", {
date: "string",
path: "string",
time: "string",
});
type: powerscale:ClusterTime
properties:
date: string
path: string
time: string
ClusterTime 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 ClusterTime resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterTime resource produces the following output properties:
- Abbreviation string
- Timezone abbreviation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Millis double - Time in Miliseconds of the Cluster
- Abbreviation string
- Timezone abbreviation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Time
Millis float64 - Time in Miliseconds of the Cluster
- abbreviation String
- Timezone abbreviation.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Millis Double - Time in Miliseconds of the Cluster
- abbreviation string
- Timezone abbreviation.
- id string
- The provider-assigned unique ID for this managed resource.
- time
Millis number - Time in Miliseconds of the Cluster
- abbreviation str
- Timezone abbreviation.
- id str
- The provider-assigned unique ID for this managed resource.
- time_
millis float - Time in Miliseconds of the Cluster
- abbreviation String
- Timezone abbreviation.
- id String
- The provider-assigned unique ID for this managed resource.
- time
Millis Number - Time in Miliseconds of the Cluster
Look up Existing ClusterTime Resource
Get an existing ClusterTime 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?: ClusterTimeState, opts?: CustomResourceOptions): ClusterTime
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
abbreviation: Optional[str] = None,
date: Optional[str] = None,
path: Optional[str] = None,
time: Optional[str] = None,
time_millis: Optional[float] = None) -> ClusterTime
func GetClusterTime(ctx *Context, name string, id IDInput, state *ClusterTimeState, opts ...ResourceOption) (*ClusterTime, error)
public static ClusterTime Get(string name, Input<string> id, ClusterTimeState? state, CustomResourceOptions? opts = null)
public static ClusterTime get(String name, Output<String> id, ClusterTimeState state, CustomResourceOptions options)
resources: _: type: powerscale:ClusterTime 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.
- Abbreviation string
- Timezone abbreviation.
- Date string
- Date of the Cluster Time Settings, Please follow format MM/dd/yyyy
- Path string
- Timezone hierarchical name.
- Time string
- Time of the Cluster Time Settings, Please follow format HH:mm
- Time
Millis double - Time in Miliseconds of the Cluster
- Abbreviation string
- Timezone abbreviation.
- Date string
- Date of the Cluster Time Settings, Please follow format MM/dd/yyyy
- Path string
- Timezone hierarchical name.
- Time string
- Time of the Cluster Time Settings, Please follow format HH:mm
- Time
Millis float64 - Time in Miliseconds of the Cluster
- abbreviation String
- Timezone abbreviation.
- date String
- Date of the Cluster Time Settings, Please follow format MM/dd/yyyy
- path String
- Timezone hierarchical name.
- time String
- Time of the Cluster Time Settings, Please follow format HH:mm
- time
Millis Double - Time in Miliseconds of the Cluster
- abbreviation string
- Timezone abbreviation.
- date string
- Date of the Cluster Time Settings, Please follow format MM/dd/yyyy
- path string
- Timezone hierarchical name.
- time string
- Time of the Cluster Time Settings, Please follow format HH:mm
- time
Millis number - Time in Miliseconds of the Cluster
- abbreviation str
- Timezone abbreviation.
- date str
- Date of the Cluster Time Settings, Please follow format MM/dd/yyyy
- path str
- Timezone hierarchical name.
- time str
- Time of the Cluster Time Settings, Please follow format HH:mm
- time_
millis float - Time in Miliseconds of the Cluster
- abbreviation String
- Timezone abbreviation.
- date String
- Date of the Cluster Time Settings, Please follow format MM/dd/yyyy
- path String
- Timezone hierarchical name.
- time String
- Time of the Cluster Time Settings, Please follow format HH:mm
- time
Millis Number - Time in Miliseconds of the Cluster
Import
Copyright (c) 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/clusterTime:ClusterTime time <anystring>
Example:
$ pulumi import powerscale:index/clusterTime:ClusterTime time cluster_time
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.