powerscale.ClusterOwner
Explore with Pulumi AI
This resource is used to manage the Cluster Owner Settings entity of PowerScale Array. PowerScale Cluster Owner Settings provide the ability to configure owner settings on the cluster.We can Create, Update and Delete the Cluster Owner Settings using this resource. We can also import existing Cluster Owner Settings from PowerScale array. Note that, Cluster Owner Settings is the native functionality of PowerScale. When creating the resource, we actually load Cluster Owner Settings from PowerScale to the resource state.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerscale from "@pulumi/powerscale";
const test = new powerscale.ClusterOwner("test", {
company: "company_name",
location: "location",
primaryEmail: "primary_email@example.com",
primaryName: "primary_name",
primaryPhone1: "+91-12345-67890",
primaryPhone2: "+1 123-456-7890",
secondaryEmail: "secondary_email@example.com",
secondaryName: "secondary_name",
secondaryPhone1: "+44 (20) 1234 5678",
secondaryPhone2: "+1 (800) 555-5555",
});
// secondary alternate phone number
import pulumi
import pulumi_powerscale as powerscale
test = powerscale.ClusterOwner("test",
company="company_name",
location="location",
primary_email="primary_email@example.com",
primary_name="primary_name",
primary_phone1="+91-12345-67890",
primary_phone2="+1 123-456-7890",
secondary_email="secondary_email@example.com",
secondary_name="secondary_name",
secondary_phone1="+44 (20) 1234 5678",
secondary_phone2="+1 (800) 555-5555")
# secondary alternate phone number
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.NewClusterOwner(ctx, "test", &powerscale.ClusterOwnerArgs{
Company: pulumi.String("company_name"),
Location: pulumi.String("location"),
PrimaryEmail: pulumi.String("primary_email@example.com"),
PrimaryName: pulumi.String("primary_name"),
PrimaryPhone1: pulumi.String("+91-12345-67890"),
PrimaryPhone2: pulumi.String("+1 123-456-7890"),
SecondaryEmail: pulumi.String("secondary_email@example.com"),
SecondaryName: pulumi.String("secondary_name"),
SecondaryPhone1: pulumi.String("+44 (20) 1234 5678"),
SecondaryPhone2: pulumi.String("+1 (800) 555-5555"),
})
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.ClusterOwner("test", new()
{
Company = "company_name",
Location = "location",
PrimaryEmail = "primary_email@example.com",
PrimaryName = "primary_name",
PrimaryPhone1 = "+91-12345-67890",
PrimaryPhone2 = "+1 123-456-7890",
SecondaryEmail = "secondary_email@example.com",
SecondaryName = "secondary_name",
SecondaryPhone1 = "+44 (20) 1234 5678",
SecondaryPhone2 = "+1 (800) 555-5555",
});
// secondary alternate phone number
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerscale.ClusterOwner;
import com.pulumi.powerscale.ClusterOwnerArgs;
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 ClusterOwner("test", ClusterOwnerArgs.builder()
.company("company_name")
.location("location")
.primaryEmail("primary_email@example.com")
.primaryName("primary_name")
.primaryPhone1("+91-12345-67890")
.primaryPhone2("+1 123-456-7890")
.secondaryEmail("secondary_email@example.com")
.secondaryName("secondary_name")
.secondaryPhone1("+44 (20) 1234 5678")
.secondaryPhone2("+1 (800) 555-5555")
.build());
// secondary alternate phone number
}
}
resources:
test:
type: powerscale:ClusterOwner
properties:
company: company_name
location: location
primaryEmail: primary_email@example.com
primaryName: primary_name
primaryPhone1: +91-12345-67890
primaryPhone2: +1 123-456-7890
# primary alternate phone number
secondaryEmail: secondary_email@example.com
secondaryName: secondary_name
secondaryPhone1: +44 (20) 1234 5678
secondaryPhone2: +1 (800) 555-5555
Create ClusterOwner Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterOwner(name: string, args?: ClusterOwnerArgs, opts?: CustomResourceOptions);
@overload
def ClusterOwner(resource_name: str,
args: Optional[ClusterOwnerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterOwner(resource_name: str,
opts: Optional[ResourceOptions] = None,
company: Optional[str] = None,
location: Optional[str] = None,
primary_email: Optional[str] = None,
primary_name: Optional[str] = None,
primary_phone1: Optional[str] = None,
primary_phone2: Optional[str] = None,
secondary_email: Optional[str] = None,
secondary_name: Optional[str] = None,
secondary_phone1: Optional[str] = None,
secondary_phone2: Optional[str] = None)
func NewClusterOwner(ctx *Context, name string, args *ClusterOwnerArgs, opts ...ResourceOption) (*ClusterOwner, error)
public ClusterOwner(string name, ClusterOwnerArgs? args = null, CustomResourceOptions? opts = null)
public ClusterOwner(String name, ClusterOwnerArgs args)
public ClusterOwner(String name, ClusterOwnerArgs args, CustomResourceOptions options)
type: powerscale:ClusterOwner
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 ClusterOwnerArgs
- 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 ClusterOwnerArgs
- 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 ClusterOwnerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterOwnerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterOwnerArgs
- 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 clusterOwnerResource = new Powerscale.ClusterOwner("clusterOwnerResource", new()
{
Company = "string",
Location = "string",
PrimaryEmail = "string",
PrimaryName = "string",
PrimaryPhone1 = "string",
PrimaryPhone2 = "string",
SecondaryEmail = "string",
SecondaryName = "string",
SecondaryPhone1 = "string",
SecondaryPhone2 = "string",
});
example, err := powerscale.NewClusterOwner(ctx, "clusterOwnerResource", &powerscale.ClusterOwnerArgs{
Company: pulumi.String("string"),
Location: pulumi.String("string"),
PrimaryEmail: pulumi.String("string"),
PrimaryName: pulumi.String("string"),
PrimaryPhone1: pulumi.String("string"),
PrimaryPhone2: pulumi.String("string"),
SecondaryEmail: pulumi.String("string"),
SecondaryName: pulumi.String("string"),
SecondaryPhone1: pulumi.String("string"),
SecondaryPhone2: pulumi.String("string"),
})
var clusterOwnerResource = new ClusterOwner("clusterOwnerResource", ClusterOwnerArgs.builder()
.company("string")
.location("string")
.primaryEmail("string")
.primaryName("string")
.primaryPhone1("string")
.primaryPhone2("string")
.secondaryEmail("string")
.secondaryName("string")
.secondaryPhone1("string")
.secondaryPhone2("string")
.build());
cluster_owner_resource = powerscale.ClusterOwner("clusterOwnerResource",
company="string",
location="string",
primary_email="string",
primary_name="string",
primary_phone1="string",
primary_phone2="string",
secondary_email="string",
secondary_name="string",
secondary_phone1="string",
secondary_phone2="string")
const clusterOwnerResource = new powerscale.ClusterOwner("clusterOwnerResource", {
company: "string",
location: "string",
primaryEmail: "string",
primaryName: "string",
primaryPhone1: "string",
primaryPhone2: "string",
secondaryEmail: "string",
secondaryName: "string",
secondaryPhone1: "string",
secondaryPhone2: "string",
});
type: powerscale:ClusterOwner
properties:
company: string
location: string
primaryEmail: string
primaryName: string
primaryPhone1: string
primaryPhone2: string
secondaryEmail: string
secondaryName: string
secondaryPhone1: string
secondaryPhone2: string
ClusterOwner 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 ClusterOwner resource accepts the following input properties:
- Company string
- Company Name of the Cluster Owner Settings.
- Location string
- Location of the Cluster Owner Settings.
- Primary
Email string - Primary Email of the Cluster Owner Settings.
- Primary
Name string - Primary Name of the Cluster Owner Settings.
- Primary
Phone1 string - Primary Phone of the Cluster Owner Settings.
- Primary
Phone2 string - Primary Alternate Phone of the Cluster Owner Settings.
- Secondary
Email string - Secondary Email of the Cluster Owner Settings.
- Secondary
Name string - Secondary Name of the Cluster Owner Settings.
- Secondary
Phone1 string - Secondary Phone of the Cluster Owner Settings.
- Secondary
Phone2 string - Secondary Alternate Phone of the Cluster Owner Settings.
- Company string
- Company Name of the Cluster Owner Settings.
- Location string
- Location of the Cluster Owner Settings.
- Primary
Email string - Primary Email of the Cluster Owner Settings.
- Primary
Name string - Primary Name of the Cluster Owner Settings.
- Primary
Phone1 string - Primary Phone of the Cluster Owner Settings.
- Primary
Phone2 string - Primary Alternate Phone of the Cluster Owner Settings.
- Secondary
Email string - Secondary Email of the Cluster Owner Settings.
- Secondary
Name string - Secondary Name of the Cluster Owner Settings.
- Secondary
Phone1 string - Secondary Phone of the Cluster Owner Settings.
- Secondary
Phone2 string - Secondary Alternate Phone of the Cluster Owner Settings.
- company String
- Company Name of the Cluster Owner Settings.
- location String
- Location of the Cluster Owner Settings.
- primary
Email String - Primary Email of the Cluster Owner Settings.
- primary
Name String - Primary Name of the Cluster Owner Settings.
- primary
Phone1 String - Primary Phone of the Cluster Owner Settings.
- primary
Phone2 String - Primary Alternate Phone of the Cluster Owner Settings.
- secondary
Email String - Secondary Email of the Cluster Owner Settings.
- secondary
Name String - Secondary Name of the Cluster Owner Settings.
- secondary
Phone1 String - Secondary Phone of the Cluster Owner Settings.
- secondary
Phone2 String - Secondary Alternate Phone of the Cluster Owner Settings.
- company string
- Company Name of the Cluster Owner Settings.
- location string
- Location of the Cluster Owner Settings.
- primary
Email string - Primary Email of the Cluster Owner Settings.
- primary
Name string - Primary Name of the Cluster Owner Settings.
- primary
Phone1 string - Primary Phone of the Cluster Owner Settings.
- primary
Phone2 string - Primary Alternate Phone of the Cluster Owner Settings.
- secondary
Email string - Secondary Email of the Cluster Owner Settings.
- secondary
Name string - Secondary Name of the Cluster Owner Settings.
- secondary
Phone1 string - Secondary Phone of the Cluster Owner Settings.
- secondary
Phone2 string - Secondary Alternate Phone of the Cluster Owner Settings.
- company str
- Company Name of the Cluster Owner Settings.
- location str
- Location of the Cluster Owner Settings.
- primary_
email str - Primary Email of the Cluster Owner Settings.
- primary_
name str - Primary Name of the Cluster Owner Settings.
- primary_
phone1 str - Primary Phone of the Cluster Owner Settings.
- primary_
phone2 str - Primary Alternate Phone of the Cluster Owner Settings.
- secondary_
email str - Secondary Email of the Cluster Owner Settings.
- secondary_
name str - Secondary Name of the Cluster Owner Settings.
- secondary_
phone1 str - Secondary Phone of the Cluster Owner Settings.
- secondary_
phone2 str - Secondary Alternate Phone of the Cluster Owner Settings.
- company String
- Company Name of the Cluster Owner Settings.
- location String
- Location of the Cluster Owner Settings.
- primary
Email String - Primary Email of the Cluster Owner Settings.
- primary
Name String - Primary Name of the Cluster Owner Settings.
- primary
Phone1 String - Primary Phone of the Cluster Owner Settings.
- primary
Phone2 String - Primary Alternate Phone of the Cluster Owner Settings.
- secondary
Email String - Secondary Email of the Cluster Owner Settings.
- secondary
Name String - Secondary Name of the Cluster Owner Settings.
- secondary
Phone1 String - Secondary Phone of the Cluster Owner Settings.
- secondary
Phone2 String - Secondary Alternate Phone of the Cluster Owner Settings.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterOwner 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 ClusterOwner Resource
Get an existing ClusterOwner 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?: ClusterOwnerState, opts?: CustomResourceOptions): ClusterOwner
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
company: Optional[str] = None,
location: Optional[str] = None,
primary_email: Optional[str] = None,
primary_name: Optional[str] = None,
primary_phone1: Optional[str] = None,
primary_phone2: Optional[str] = None,
secondary_email: Optional[str] = None,
secondary_name: Optional[str] = None,
secondary_phone1: Optional[str] = None,
secondary_phone2: Optional[str] = None) -> ClusterOwner
func GetClusterOwner(ctx *Context, name string, id IDInput, state *ClusterOwnerState, opts ...ResourceOption) (*ClusterOwner, error)
public static ClusterOwner Get(string name, Input<string> id, ClusterOwnerState? state, CustomResourceOptions? opts = null)
public static ClusterOwner get(String name, Output<String> id, ClusterOwnerState state, CustomResourceOptions options)
resources: _: type: powerscale:ClusterOwner 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.
- Company string
- Company Name of the Cluster Owner Settings.
- Location string
- Location of the Cluster Owner Settings.
- Primary
Email string - Primary Email of the Cluster Owner Settings.
- Primary
Name string - Primary Name of the Cluster Owner Settings.
- Primary
Phone1 string - Primary Phone of the Cluster Owner Settings.
- Primary
Phone2 string - Primary Alternate Phone of the Cluster Owner Settings.
- Secondary
Email string - Secondary Email of the Cluster Owner Settings.
- Secondary
Name string - Secondary Name of the Cluster Owner Settings.
- Secondary
Phone1 string - Secondary Phone of the Cluster Owner Settings.
- Secondary
Phone2 string - Secondary Alternate Phone of the Cluster Owner Settings.
- Company string
- Company Name of the Cluster Owner Settings.
- Location string
- Location of the Cluster Owner Settings.
- Primary
Email string - Primary Email of the Cluster Owner Settings.
- Primary
Name string - Primary Name of the Cluster Owner Settings.
- Primary
Phone1 string - Primary Phone of the Cluster Owner Settings.
- Primary
Phone2 string - Primary Alternate Phone of the Cluster Owner Settings.
- Secondary
Email string - Secondary Email of the Cluster Owner Settings.
- Secondary
Name string - Secondary Name of the Cluster Owner Settings.
- Secondary
Phone1 string - Secondary Phone of the Cluster Owner Settings.
- Secondary
Phone2 string - Secondary Alternate Phone of the Cluster Owner Settings.
- company String
- Company Name of the Cluster Owner Settings.
- location String
- Location of the Cluster Owner Settings.
- primary
Email String - Primary Email of the Cluster Owner Settings.
- primary
Name String - Primary Name of the Cluster Owner Settings.
- primary
Phone1 String - Primary Phone of the Cluster Owner Settings.
- primary
Phone2 String - Primary Alternate Phone of the Cluster Owner Settings.
- secondary
Email String - Secondary Email of the Cluster Owner Settings.
- secondary
Name String - Secondary Name of the Cluster Owner Settings.
- secondary
Phone1 String - Secondary Phone of the Cluster Owner Settings.
- secondary
Phone2 String - Secondary Alternate Phone of the Cluster Owner Settings.
- company string
- Company Name of the Cluster Owner Settings.
- location string
- Location of the Cluster Owner Settings.
- primary
Email string - Primary Email of the Cluster Owner Settings.
- primary
Name string - Primary Name of the Cluster Owner Settings.
- primary
Phone1 string - Primary Phone of the Cluster Owner Settings.
- primary
Phone2 string - Primary Alternate Phone of the Cluster Owner Settings.
- secondary
Email string - Secondary Email of the Cluster Owner Settings.
- secondary
Name string - Secondary Name of the Cluster Owner Settings.
- secondary
Phone1 string - Secondary Phone of the Cluster Owner Settings.
- secondary
Phone2 string - Secondary Alternate Phone of the Cluster Owner Settings.
- company str
- Company Name of the Cluster Owner Settings.
- location str
- Location of the Cluster Owner Settings.
- primary_
email str - Primary Email of the Cluster Owner Settings.
- primary_
name str - Primary Name of the Cluster Owner Settings.
- primary_
phone1 str - Primary Phone of the Cluster Owner Settings.
- primary_
phone2 str - Primary Alternate Phone of the Cluster Owner Settings.
- secondary_
email str - Secondary Email of the Cluster Owner Settings.
- secondary_
name str - Secondary Name of the Cluster Owner Settings.
- secondary_
phone1 str - Secondary Phone of the Cluster Owner Settings.
- secondary_
phone2 str - Secondary Alternate Phone of the Cluster Owner Settings.
- company String
- Company Name of the Cluster Owner Settings.
- location String
- Location of the Cluster Owner Settings.
- primary
Email String - Primary Email of the Cluster Owner Settings.
- primary
Name String - Primary Name of the Cluster Owner Settings.
- primary
Phone1 String - Primary Phone of the Cluster Owner Settings.
- primary
Phone2 String - Primary Alternate Phone of the Cluster Owner Settings.
- secondary
Email String - Secondary Email of the Cluster Owner Settings.
- secondary
Name String - Secondary Name of the Cluster Owner Settings.
- secondary
Phone1 String - Secondary Phone of the Cluster Owner Settings.
- secondary
Phone2 String - Secondary Alternate Phone of the Cluster Owner Settings.
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/clusterOwner:ClusterOwner owner <anystring>
Example:
$ pulumi import powerscale:index/clusterOwner:ClusterOwner owner cluster_owner
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.