1. Packages
  2. Powerstore Provider
  3. API Docs
  4. Storagecontainer
powerstore 1.2.0 published on Monday, Apr 14, 2025 by dell

powerstore.Storagecontainer

Explore with Pulumi AI

powerstore logo
powerstore 1.2.0 published on Monday, Apr 14, 2025 by dell

    Import

    Below are the steps to import storage container :

    Step 1 - To import a storage container , we need the id of that storage container

    Step 2 - To check the id of the storage container we can make Get request to storage container endpoint. eg. https://10.0.0.1/api/rest/storage_container which will return list of all storage container ids.

    Step 3 - Add empty resource block in tf file.

    eg.

    resource “powerstore_storagecontainer” “resource_block_name” {

    (resource arguments)

    }

    $ pulumi import powerstore:index/storagecontainer:Storagecontainer Step 4 - Execute the command: "powerstore_storagecontainer.resource_block_name" "id_of_the_storage_container" (resource_block_name must be taken from step 3 and id must be taken from step 2)
    

    Step 5 - After successful execution of the command , check the state file

    Create Storagecontainer Resource

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

    Constructor syntax

    new Storagecontainer(name: string, args?: StoragecontainerArgs, opts?: CustomResourceOptions);
    @overload
    def Storagecontainer(resource_name: str,
                         args: Optional[StoragecontainerArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def Storagecontainer(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         high_water_mark: Optional[float] = None,
                         name: Optional[str] = None,
                         quota: Optional[float] = None,
                         storage_protocol: Optional[str] = None)
    func NewStoragecontainer(ctx *Context, name string, args *StoragecontainerArgs, opts ...ResourceOption) (*Storagecontainer, error)
    public Storagecontainer(string name, StoragecontainerArgs? args = null, CustomResourceOptions? opts = null)
    public Storagecontainer(String name, StoragecontainerArgs args)
    public Storagecontainer(String name, StoragecontainerArgs args, CustomResourceOptions options)
    
    type: powerstore:Storagecontainer
    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 StoragecontainerArgs
    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 StoragecontainerArgs
    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 StoragecontainerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StoragecontainerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StoragecontainerArgs
    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 storagecontainerResource = new Powerstore.Storagecontainer("storagecontainerResource", new()
    {
        HighWaterMark = 0,
        Name = "string",
        Quota = 0,
        StorageProtocol = "string",
    });
    
    example, err := powerstore.NewStoragecontainer(ctx, "storagecontainerResource", &powerstore.StoragecontainerArgs{
    	HighWaterMark:   pulumi.Float64(0),
    	Name:            pulumi.String("string"),
    	Quota:           pulumi.Float64(0),
    	StorageProtocol: pulumi.String("string"),
    })
    
    var storagecontainerResource = new Storagecontainer("storagecontainerResource", StoragecontainerArgs.builder()
        .highWaterMark(0)
        .name("string")
        .quota(0)
        .storageProtocol("string")
        .build());
    
    storagecontainer_resource = powerstore.Storagecontainer("storagecontainerResource",
        high_water_mark=0,
        name="string",
        quota=0,
        storage_protocol="string")
    
    const storagecontainerResource = new powerstore.Storagecontainer("storagecontainerResource", {
        highWaterMark: 0,
        name: "string",
        quota: 0,
        storageProtocol: "string",
    });
    
    type: powerstore:Storagecontainer
    properties:
        highWaterMark: 0
        name: string
        quota: 0
        storageProtocol: string
    

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

    HighWaterMark double
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    Name string
    Name for the storage container. This should be unique across all storage containers in the cluster.
    Quota double
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    StorageProtocol string
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    HighWaterMark float64
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    Name string
    Name for the storage container. This should be unique across all storage containers in the cluster.
    Quota float64
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    StorageProtocol string
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    highWaterMark Double
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    name String
    Name for the storage container. This should be unique across all storage containers in the cluster.
    quota Double
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    storageProtocol String
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    highWaterMark number
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    name string
    Name for the storage container. This should be unique across all storage containers in the cluster.
    quota number
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    storageProtocol string
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    high_water_mark float
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    name str
    Name for the storage container. This should be unique across all storage containers in the cluster.
    quota float
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    storage_protocol str
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    highWaterMark Number
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    name String
    Name for the storage container. This should be unique across all storage containers in the cluster.
    quota Number
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    storageProtocol String
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.

    Outputs

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

    Get an existing Storagecontainer 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?: StoragecontainerState, opts?: CustomResourceOptions): Storagecontainer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            high_water_mark: Optional[float] = None,
            name: Optional[str] = None,
            quota: Optional[float] = None,
            storage_protocol: Optional[str] = None) -> Storagecontainer
    func GetStoragecontainer(ctx *Context, name string, id IDInput, state *StoragecontainerState, opts ...ResourceOption) (*Storagecontainer, error)
    public static Storagecontainer Get(string name, Input<string> id, StoragecontainerState? state, CustomResourceOptions? opts = null)
    public static Storagecontainer get(String name, Output<String> id, StoragecontainerState state, CustomResourceOptions options)
    resources:  _:    type: powerstore:Storagecontainer    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:
    HighWaterMark double
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    Name string
    Name for the storage container. This should be unique across all storage containers in the cluster.
    Quota double
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    StorageProtocol string
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    HighWaterMark float64
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    Name string
    Name for the storage container. This should be unique across all storage containers in the cluster.
    Quota float64
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    StorageProtocol string
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    highWaterMark Double
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    name String
    Name for the storage container. This should be unique across all storage containers in the cluster.
    quota Double
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    storageProtocol String
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    highWaterMark number
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    name string
    Name for the storage container. This should be unique across all storage containers in the cluster.
    quota number
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    storageProtocol string
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    high_water_mark float
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    name str
    Name for the storage container. This should be unique across all storage containers in the cluster.
    quota float
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    storage_protocol str
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.
    highWaterMark Number
    The percentage of the quota that can be consumed before an alert is raised. Allowed values are between 50 and 100 (inclusive).
    name String
    Name for the storage container. This should be unique across all storage containers in the cluster.
    quota Number
    The total number of bytes that can be provisioned/reserved against this storage container. A value of 0 means there is no limit.
    storageProtocol String
    The storage protocol of Storage Container. Accepted values are SCSI and NVMe.

    Package Details

    Repository
    powerstore dell/terraform-provider-powerstore
    License
    Notes
    This Pulumi package is based on the powerstore Terraform Provider.
    powerstore logo
    powerstore 1.2.0 published on Monday, Apr 14, 2025 by dell