published on Monday, Sep 28, 2026 by dell
published on Monday, Sep 28, 2026 by dell
This resource is used to configure Erasure Coding policy on Storage Pools for PowerFlex Gen2 systems (5.0+).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as powerflex from "@pulumi/powerflex";
//Copyright (c) 2024-2026 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.
// Commands to run this tf file : terraform init && pulumi preview && pulumi up
// This resource configures Erasure Coding policy on Storage Pools (Gen2 systems 5.0+)
// storage_pool_id and erasure_coding_policy are required
// Valid erasure_coding_policy values: none, rs_2_1, rs_4_1
// Example: Set Erasure Coding policy to rs_2_1
const rs21 = new powerflex.StoragePoolErasureCodingV2("rs2_1", {
storagePoolId: "0123456789abcdef",
erasureCodingPolicy: "rs_2_1",
});
// Example: Set Erasure Coding policy to rs_4_1
const rs41 = new powerflex.StoragePoolErasureCodingV2("rs4_1", {
storagePoolId: "0123456789abcdef",
erasureCodingPolicy: "rs_4_1",
});
// Example: Disable Erasure Coding (set to none)
const none = new powerflex.StoragePoolErasureCodingV2("none", {
storagePoolId: "0123456789abcdef",
erasureCodingPolicy: "none",
});
export const erasureCoding = rs21;
import pulumi
import pulumi_powerflex as powerflex
#Copyright (c) 2024-2026 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.
# Commands to run this tf file : terraform init && pulumi preview && pulumi up
# This resource configures Erasure Coding policy on Storage Pools (Gen2 systems 5.0+)
# storage_pool_id and erasure_coding_policy are required
# Valid erasure_coding_policy values: none, rs_2_1, rs_4_1
# Example: Set Erasure Coding policy to rs_2_1
rs21 = powerflex.StoragePoolErasureCodingV2("rs2_1",
storage_pool_id="0123456789abcdef",
erasure_coding_policy="rs_2_1")
# Example: Set Erasure Coding policy to rs_4_1
rs41 = powerflex.StoragePoolErasureCodingV2("rs4_1",
storage_pool_id="0123456789abcdef",
erasure_coding_policy="rs_4_1")
# Example: Disable Erasure Coding (set to none)
none = powerflex.StoragePoolErasureCodingV2("none",
storage_pool_id="0123456789abcdef",
erasure_coding_policy="none")
pulumi.export("erasureCoding", rs21)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/powerflex/powerflex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Copyright (c) 2024-2026 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.
// Commands to run this tf file : terraform init && pulumi preview && pulumi up
// This resource configures Erasure Coding policy on Storage Pools (Gen2 systems 5.0+)
// storage_pool_id and erasure_coding_policy are required
// Valid erasure_coding_policy values: none, rs_2_1, rs_4_1
// Example: Set Erasure Coding policy to rs_2_1
rs21, err := powerflex.NewStoragePoolErasureCodingV2(ctx, "rs2_1", &powerflex.StoragePoolErasureCodingV2Args{
StoragePoolId: pulumi.String("0123456789abcdef"),
ErasureCodingPolicy: pulumi.String("rs_2_1"),
})
if err != nil {
return err
}
// Example: Set Erasure Coding policy to rs_4_1
_, err = powerflex.NewStoragePoolErasureCodingV2(ctx, "rs4_1", &powerflex.StoragePoolErasureCodingV2Args{
StoragePoolId: pulumi.String("0123456789abcdef"),
ErasureCodingPolicy: pulumi.String("rs_4_1"),
})
if err != nil {
return err
}
// Example: Disable Erasure Coding (set to none)
_, err = powerflex.NewStoragePoolErasureCodingV2(ctx, "none", &powerflex.StoragePoolErasureCodingV2Args{
StoragePoolId: pulumi.String("0123456789abcdef"),
ErasureCodingPolicy: pulumi.String("none"),
})
if err != nil {
return err
}
ctx.Export("erasureCoding", rs21)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Powerflex = Pulumi.Powerflex;
return await Deployment.RunAsync(() =>
{
//Copyright (c) 2024-2026 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.
// Commands to run this tf file : terraform init && pulumi preview && pulumi up
// This resource configures Erasure Coding policy on Storage Pools (Gen2 systems 5.0+)
// storage_pool_id and erasure_coding_policy are required
// Valid erasure_coding_policy values: none, rs_2_1, rs_4_1
// Example: Set Erasure Coding policy to rs_2_1
var rs21 = new Powerflex.StoragePoolErasureCodingV2("rs2_1", new()
{
StoragePoolId = "0123456789abcdef",
ErasureCodingPolicy = "rs_2_1",
});
// Example: Set Erasure Coding policy to rs_4_1
var rs41 = new Powerflex.StoragePoolErasureCodingV2("rs4_1", new()
{
StoragePoolId = "0123456789abcdef",
ErasureCodingPolicy = "rs_4_1",
});
// Example: Disable Erasure Coding (set to none)
var none = new Powerflex.StoragePoolErasureCodingV2("none", new()
{
StoragePoolId = "0123456789abcdef",
ErasureCodingPolicy = "none",
});
return new Dictionary<string, object?>
{
["erasureCoding"] = rs21,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.powerflex.StoragePoolErasureCodingV2;
import com.pulumi.powerflex.StoragePoolErasureCodingV2Args;
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) {
//Copyright (c) 2024-2026 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.
// Commands to run this tf file : terraform init && pulumi preview && pulumi up
// This resource configures Erasure Coding policy on Storage Pools (Gen2 systems 5.0+)
// storage_pool_id and erasure_coding_policy are required
// Valid erasure_coding_policy values: none, rs_2_1, rs_4_1
// Example: Set Erasure Coding policy to rs_2_1
var rs21 = new StoragePoolErasureCodingV2("rs21", StoragePoolErasureCodingV2Args.builder()
.storagePoolId("0123456789abcdef")
.erasureCodingPolicy("rs_2_1")
.build());
// Example: Set Erasure Coding policy to rs_4_1
var rs41 = new StoragePoolErasureCodingV2("rs41", StoragePoolErasureCodingV2Args.builder()
.storagePoolId("0123456789abcdef")
.erasureCodingPolicy("rs_4_1")
.build());
// Example: Disable Erasure Coding (set to none)
var none = new StoragePoolErasureCodingV2("none", StoragePoolErasureCodingV2Args.builder()
.storagePoolId("0123456789abcdef")
.erasureCodingPolicy("none")
.build());
ctx.export("erasureCoding", rs21);
}
}
resources:
# /*
# Copyright (c) 2024-2026 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.
# */
# Commands to run this tf file : terraform init && pulumi preview && pulumi up
# This resource configures Erasure Coding policy on Storage Pools (Gen2 systems 5.0+)
# storage_pool_id and erasure_coding_policy are required
# Valid erasure_coding_policy values: none, rs_2_1, rs_4_1
# Example: Set Erasure Coding policy to rs_2_1
rs21:
type: powerflex:StoragePoolErasureCodingV2
name: rs2_1
properties:
storagePoolId: 0123456789abcdef
erasureCodingPolicy: rs_2_1
# Example: Set Erasure Coding policy to rs_4_1
rs41:
type: powerflex:StoragePoolErasureCodingV2
name: rs4_1
properties:
storagePoolId: 0123456789abcdef
erasureCodingPolicy: rs_4_1
# Example: Disable Erasure Coding (set to none)
none:
type: powerflex:StoragePoolErasureCodingV2
properties:
storagePoolId: 0123456789abcdef
erasureCodingPolicy: none
outputs:
erasureCoding: ${rs21}
Example coming soon!
Create StoragePoolErasureCodingV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StoragePoolErasureCodingV2(name: string, args: StoragePoolErasureCodingV2Args, opts?: CustomResourceOptions);@overload
def StoragePoolErasureCodingV2(resource_name: str,
args: StoragePoolErasureCodingV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def StoragePoolErasureCodingV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
erasure_coding_policy: Optional[str] = None,
storage_pool_id: Optional[str] = None)func NewStoragePoolErasureCodingV2(ctx *Context, name string, args StoragePoolErasureCodingV2Args, opts ...ResourceOption) (*StoragePoolErasureCodingV2, error)public StoragePoolErasureCodingV2(string name, StoragePoolErasureCodingV2Args args, CustomResourceOptions? opts = null)
public StoragePoolErasureCodingV2(String name, StoragePoolErasureCodingV2Args args)
public StoragePoolErasureCodingV2(String name, StoragePoolErasureCodingV2Args args, CustomResourceOptions options)
type: powerflex:StoragePoolErasureCodingV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "powerflex_storage_pool_erasure_coding_v2" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args StoragePoolErasureCodingV2Args
- 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 StoragePoolErasureCodingV2Args
- 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 StoragePoolErasureCodingV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StoragePoolErasureCodingV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StoragePoolErasureCodingV2Args
- 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 storagePoolErasureCodingV2Resource = new Powerflex.StoragePoolErasureCodingV2("storagePoolErasureCodingV2Resource", new()
{
ErasureCodingPolicy = "string",
StoragePoolId = "string",
});
example, err := powerflex.NewStoragePoolErasureCodingV2(ctx, "storagePoolErasureCodingV2Resource", &powerflex.StoragePoolErasureCodingV2Args{
ErasureCodingPolicy: pulumi.String("string"),
StoragePoolId: pulumi.String("string"),
})
resource "powerflex_storage_pool_erasure_coding_v2" "storagePoolErasureCodingV2Resource" {
lifecycle {
create_before_destroy = true
}
erasure_coding_policy = "string"
storage_pool_id = "string"
}
var storagePoolErasureCodingV2Resource = new StoragePoolErasureCodingV2("storagePoolErasureCodingV2Resource", StoragePoolErasureCodingV2Args.builder()
.erasureCodingPolicy("string")
.storagePoolId("string")
.build());
storage_pool_erasure_coding_v2_resource = powerflex.StoragePoolErasureCodingV2("storagePoolErasureCodingV2Resource",
erasure_coding_policy="string",
storage_pool_id="string")
const storagePoolErasureCodingV2Resource = new powerflex.StoragePoolErasureCodingV2("storagePoolErasureCodingV2Resource", {
erasureCodingPolicy: "string",
storagePoolId: "string",
});
type: powerflex:StoragePoolErasureCodingV2
properties:
erasureCodingPolicy: string
storagePoolId: string
StoragePoolErasureCodingV2 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 StoragePoolErasureCodingV2 resource accepts the following input properties:
- Erasure
Coding stringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - Storage
Pool stringId - The ID of the storage pool to configure erasure coding on.
- Erasure
Coding stringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - Storage
Pool stringId - The ID of the storage pool to configure erasure coding on.
- erasure_
coding_ stringpolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage_
pool_ stringid - The ID of the storage pool to configure erasure coding on.
- erasure
Coding StringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage
Pool StringId - The ID of the storage pool to configure erasure coding on.
- erasure
Coding stringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage
Pool stringId - The ID of the storage pool to configure erasure coding on.
- erasure_
coding_ strpolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage_
pool_ strid - The ID of the storage pool to configure erasure coding on.
- erasure
Coding StringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage
Pool StringId - The ID of the storage pool to configure erasure coding on.
Outputs
All input properties are implicitly available as output properties. Additionally, the StoragePoolErasureCodingV2 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 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 StoragePoolErasureCodingV2 Resource
Get an existing StoragePoolErasureCodingV2 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?: StoragePoolErasureCodingV2State, opts?: CustomResourceOptions): StoragePoolErasureCodingV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
erasure_coding_policy: Optional[str] = None,
storage_pool_id: Optional[str] = None) -> StoragePoolErasureCodingV2func GetStoragePoolErasureCodingV2(ctx *Context, name string, id IDInput, state *StoragePoolErasureCodingV2State, opts ...ResourceOption) (*StoragePoolErasureCodingV2, error)public static StoragePoolErasureCodingV2 Get(string name, Input<string> id, StoragePoolErasureCodingV2State? state, CustomResourceOptions? opts = null)public static StoragePoolErasureCodingV2 get(String name, Output<String> id, StoragePoolErasureCodingV2State state, CustomResourceOptions options)resources: _: type: powerflex:StoragePoolErasureCodingV2 get: id: ${id}import {
to = powerflex_storage_pool_erasure_coding_v2.example
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.
- Erasure
Coding stringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - Storage
Pool stringId - The ID of the storage pool to configure erasure coding on.
- Erasure
Coding stringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - Storage
Pool stringId - The ID of the storage pool to configure erasure coding on.
- erasure_
coding_ stringpolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage_
pool_ stringid - The ID of the storage pool to configure erasure coding on.
- erasure
Coding StringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage
Pool StringId - The ID of the storage pool to configure erasure coding on.
- erasure
Coding stringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage
Pool stringId - The ID of the storage pool to configure erasure coding on.
- erasure_
coding_ strpolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage_
pool_ strid - The ID of the storage pool to configure erasure coding on.
- erasure
Coding StringPolicy - The erasure coding policy to set. Valid values:
none,rs_2_1,rs_4_1. - storage
Pool StringId - The ID of the storage pool to configure erasure coding on.
Package Details
- Repository
- powerflex dell/terraform-provider-powerflex
- License
- Notes
- This Pulumi package is based on the
powerflexTerraform Provider.
published on Monday, Sep 28, 2026 by dell