powerscale.StoragepoolTier
Explore with Pulumi AI
This resource is used to manage the storagepool tier entity of PowerScale Array. We can Create, Update and Delete the storagepool tiers using this resource. We can also import an existing storagepool tier from PowerScale array.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerscale from "@pulumi/powerscale";
const example = new powerscale.StoragepoolTier("example", {
childrens: ["x410_34tb_1.6tb-ssd_64gb"],
transferLimitPct: 40,
});
import pulumi
import pulumi_powerscale as powerscale
example = powerscale.StoragepoolTier("example",
childrens=["x410_34tb_1.6tb-ssd_64gb"],
transfer_limit_pct=40)
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.NewStoragepoolTier(ctx, "example", &powerscale.StoragepoolTierArgs{
Childrens: pulumi.StringArray{
pulumi.String("x410_34tb_1.6tb-ssd_64gb"),
},
TransferLimitPct: pulumi.Float64(40),
})
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 example = new Powerscale.StoragepoolTier("example", new()
{
Childrens = new[]
{
"x410_34tb_1.6tb-ssd_64gb",
},
TransferLimitPct = 40,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerscale.StoragepoolTier;
import com.pulumi.powerscale.StoragepoolTierArgs;
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 example = new StoragepoolTier("example", StoragepoolTierArgs.builder()
.childrens("x410_34tb_1.6tb-ssd_64gb")
.transferLimitPct(40)
.build());
}
}
resources:
example:
type: powerscale:StoragepoolTier
properties:
# Optional parameters
childrens:
- x410_34tb_1.6tb-ssd_64gb
transferLimitPct: 40
Create StoragepoolTier Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StoragepoolTier(name: string, args?: StoragepoolTierArgs, opts?: CustomResourceOptions);
@overload
def StoragepoolTier(resource_name: str,
args: Optional[StoragepoolTierArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def StoragepoolTier(resource_name: str,
opts: Optional[ResourceOptions] = None,
childrens: Optional[Sequence[str]] = None,
name: Optional[str] = None,
transfer_limit_pct: Optional[float] = None,
transfer_limit_state: Optional[str] = None)
func NewStoragepoolTier(ctx *Context, name string, args *StoragepoolTierArgs, opts ...ResourceOption) (*StoragepoolTier, error)
public StoragepoolTier(string name, StoragepoolTierArgs? args = null, CustomResourceOptions? opts = null)
public StoragepoolTier(String name, StoragepoolTierArgs args)
public StoragepoolTier(String name, StoragepoolTierArgs args, CustomResourceOptions options)
type: powerscale:StoragepoolTier
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 StoragepoolTierArgs
- 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 StoragepoolTierArgs
- 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 StoragepoolTierArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StoragepoolTierArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StoragepoolTierArgs
- 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 storagepoolTierResource = new Powerscale.StoragepoolTier("storagepoolTierResource", new()
{
Childrens = new[]
{
"string",
},
Name = "string",
TransferLimitPct = 0,
TransferLimitState = "string",
});
example, err := powerscale.NewStoragepoolTier(ctx, "storagepoolTierResource", &powerscale.StoragepoolTierArgs{
Childrens: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
TransferLimitPct: pulumi.Float64(0),
TransferLimitState: pulumi.String("string"),
})
var storagepoolTierResource = new StoragepoolTier("storagepoolTierResource", StoragepoolTierArgs.builder()
.childrens("string")
.name("string")
.transferLimitPct(0)
.transferLimitState("string")
.build());
storagepool_tier_resource = powerscale.StoragepoolTier("storagepoolTierResource",
childrens=["string"],
name="string",
transfer_limit_pct=0,
transfer_limit_state="string")
const storagepoolTierResource = new powerscale.StoragepoolTier("storagepoolTierResource", {
childrens: ["string"],
name: "string",
transferLimitPct: 0,
transferLimitState: "string",
});
type: powerscale:StoragepoolTier
properties:
childrens:
- string
name: string
transferLimitPct: 0
transferLimitState: string
StoragepoolTier 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 StoragepoolTier resource accepts the following input properties:
- Childrens List<string>
- An optional parameter which adds new nodepools to the storagepool tier.
- Name string
- Specifies the storagepool tier name.
- Transfer
Limit doublePct - Stop moving files to this tier when this limit is met
- Transfer
Limit stringState - How the transfer limit value is being applied
- Childrens []string
- An optional parameter which adds new nodepools to the storagepool tier.
- Name string
- Specifies the storagepool tier name.
- Transfer
Limit float64Pct - Stop moving files to this tier when this limit is met
- Transfer
Limit stringState - How the transfer limit value is being applied
- childrens List<String>
- An optional parameter which adds new nodepools to the storagepool tier.
- name String
- Specifies the storagepool tier name.
- transfer
Limit DoublePct - Stop moving files to this tier when this limit is met
- transfer
Limit StringState - How the transfer limit value is being applied
- childrens string[]
- An optional parameter which adds new nodepools to the storagepool tier.
- name string
- Specifies the storagepool tier name.
- transfer
Limit numberPct - Stop moving files to this tier when this limit is met
- transfer
Limit stringState - How the transfer limit value is being applied
- childrens Sequence[str]
- An optional parameter which adds new nodepools to the storagepool tier.
- name str
- Specifies the storagepool tier name.
- transfer_
limit_ floatpct - Stop moving files to this tier when this limit is met
- transfer_
limit_ strstate - How the transfer limit value is being applied
- childrens List<String>
- An optional parameter which adds new nodepools to the storagepool tier.
- name String
- Specifies the storagepool tier name.
- transfer
Limit NumberPct - Stop moving files to this tier when this limit is met
- transfer
Limit StringState - How the transfer limit value is being applied
Outputs
All input properties are implicitly available as output properties. Additionally, the StoragepoolTier resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lnns List<double>
- The nodes that are part of this tier.
- Storagepool
Tier doubleId - Specifies a string which represents the unique identifier of storagepool tier
- Id string
- The provider-assigned unique ID for this managed resource.
- Lnns []float64
- The nodes that are part of this tier.
- Storagepool
Tier float64Id - Specifies a string which represents the unique identifier of storagepool tier
- id String
- The provider-assigned unique ID for this managed resource.
- lnns List<Double>
- The nodes that are part of this tier.
- storagepool
Tier DoubleId - Specifies a string which represents the unique identifier of storagepool tier
- id string
- The provider-assigned unique ID for this managed resource.
- lnns number[]
- The nodes that are part of this tier.
- storagepool
Tier numberId - Specifies a string which represents the unique identifier of storagepool tier
- id str
- The provider-assigned unique ID for this managed resource.
- lnns Sequence[float]
- The nodes that are part of this tier.
- storagepool_
tier_ floatid - Specifies a string which represents the unique identifier of storagepool tier
- id String
- The provider-assigned unique ID for this managed resource.
- lnns List<Number>
- The nodes that are part of this tier.
- storagepool
Tier NumberId - Specifies a string which represents the unique identifier of storagepool tier
Look up Existing StoragepoolTier Resource
Get an existing StoragepoolTier 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?: StoragepoolTierState, opts?: CustomResourceOptions): StoragepoolTier
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
childrens: Optional[Sequence[str]] = None,
lnns: Optional[Sequence[float]] = None,
name: Optional[str] = None,
storagepool_tier_id: Optional[float] = None,
transfer_limit_pct: Optional[float] = None,
transfer_limit_state: Optional[str] = None) -> StoragepoolTier
func GetStoragepoolTier(ctx *Context, name string, id IDInput, state *StoragepoolTierState, opts ...ResourceOption) (*StoragepoolTier, error)
public static StoragepoolTier Get(string name, Input<string> id, StoragepoolTierState? state, CustomResourceOptions? opts = null)
public static StoragepoolTier get(String name, Output<String> id, StoragepoolTierState state, CustomResourceOptions options)
resources: _: type: powerscale:StoragepoolTier 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.
- Childrens List<string>
- An optional parameter which adds new nodepools to the storagepool tier.
- Lnns List<double>
- The nodes that are part of this tier.
- Name string
- Specifies the storagepool tier name.
- Storagepool
Tier doubleId - Specifies a string which represents the unique identifier of storagepool tier
- Transfer
Limit doublePct - Stop moving files to this tier when this limit is met
- Transfer
Limit stringState - How the transfer limit value is being applied
- Childrens []string
- An optional parameter which adds new nodepools to the storagepool tier.
- Lnns []float64
- The nodes that are part of this tier.
- Name string
- Specifies the storagepool tier name.
- Storagepool
Tier float64Id - Specifies a string which represents the unique identifier of storagepool tier
- Transfer
Limit float64Pct - Stop moving files to this tier when this limit is met
- Transfer
Limit stringState - How the transfer limit value is being applied
- childrens List<String>
- An optional parameter which adds new nodepools to the storagepool tier.
- lnns List<Double>
- The nodes that are part of this tier.
- name String
- Specifies the storagepool tier name.
- storagepool
Tier DoubleId - Specifies a string which represents the unique identifier of storagepool tier
- transfer
Limit DoublePct - Stop moving files to this tier when this limit is met
- transfer
Limit StringState - How the transfer limit value is being applied
- childrens string[]
- An optional parameter which adds new nodepools to the storagepool tier.
- lnns number[]
- The nodes that are part of this tier.
- name string
- Specifies the storagepool tier name.
- storagepool
Tier numberId - Specifies a string which represents the unique identifier of storagepool tier
- transfer
Limit numberPct - Stop moving files to this tier when this limit is met
- transfer
Limit stringState - How the transfer limit value is being applied
- childrens Sequence[str]
- An optional parameter which adds new nodepools to the storagepool tier.
- lnns Sequence[float]
- The nodes that are part of this tier.
- name str
- Specifies the storagepool tier name.
- storagepool_
tier_ floatid - Specifies a string which represents the unique identifier of storagepool tier
- transfer_
limit_ floatpct - Stop moving files to this tier when this limit is met
- transfer_
limit_ strstate - How the transfer limit value is being applied
- childrens List<String>
- An optional parameter which adds new nodepools to the storagepool tier.
- lnns List<Number>
- The nodes that are part of this tier.
- name String
- Specifies the storagepool tier name.
- storagepool
Tier NumberId - Specifies a string which represents the unique identifier of storagepool tier
- transfer
Limit NumberPct - Stop moving files to this tier when this limit is met
- transfer
Limit StringState - How the transfer limit value is being applied
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/storagepoolTier:StoragepoolTier example id_of_storagepool_tier
Example:
$ pulumi import powerscale:index/storagepoolTier:StoragepoolTier example "tier"
after running this command, populate parameters in the config file to start managing this resource.
Note: running “terraform show” after importing shows the current config/state of 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.