1. Registry
  2. Packages
  3. Powerflex Provider
  4. API Docs
  5. DeviceActionV2
Viewing docs for powerflex 1.9.0
published on Monday, Sep 28, 2026 by dell
Viewing docs for powerflex 1.9.0
published on Monday, Sep 28, 2026 by dell

    This resource is used to perform Gen2 device actions on PowerFlex systems (5.0+). Supported actions: activate, clear_error, set_capacity_limit.

    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 performs actions on devices (Gen2 systems 5.0+)
    // Supported actions: activate, clear_error, set_capacity_limit
    // device_id and action are required
    // capacity_limit_in_kb is required when action is set_capacity_limit
    // Example: Activate a device
    const activate = new powerflex.DeviceActionV2("activate", {
        deviceId: "0123456789abcdef",
        action: "activate",
    });
    // Example: Clear device error
    const clearError = new powerflex.DeviceActionV2("clear_error", {
        deviceId: "0123456789abcdef",
        action: "clear_error",
    });
    // Example: Set device capacity limit
    const setCapacity = new powerflex.DeviceActionV2("set_capacity", {
        deviceId: "0123456789abcdef",
        action: "set_capacity_limit",
        capacityLimitInKb: "10737418240",
    });
    export const deviceAction = activate;
    
    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 performs actions on devices (Gen2 systems 5.0+)
    # Supported actions: activate, clear_error, set_capacity_limit
    # device_id and action are required
    # capacity_limit_in_kb is required when action is set_capacity_limit
    # Example: Activate a device
    activate = powerflex.DeviceActionV2("activate",
        device_id="0123456789abcdef",
        action="activate")
    # Example: Clear device error
    clear_error = powerflex.DeviceActionV2("clear_error",
        device_id="0123456789abcdef",
        action="clear_error")
    # Example: Set device capacity limit
    set_capacity = powerflex.DeviceActionV2("set_capacity",
        device_id="0123456789abcdef",
        action="set_capacity_limit",
        capacity_limit_in_kb="10737418240")
    pulumi.export("deviceAction", activate)
    
    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 performs actions on devices (Gen2 systems 5.0+)
    		// Supported actions: activate, clear_error, set_capacity_limit
    		// device_id and action are required
    		// capacity_limit_in_kb is required when action is set_capacity_limit
    		// Example: Activate a device
    		activate, err := powerflex.NewDeviceActionV2(ctx, "activate", &powerflex.DeviceActionV2Args{
    			DeviceId: pulumi.String("0123456789abcdef"),
    			Action:   pulumi.String("activate"),
    		})
    		if err != nil {
    			return err
    		}
    		// Example: Clear device error
    		_, err = powerflex.NewDeviceActionV2(ctx, "clear_error", &powerflex.DeviceActionV2Args{
    			DeviceId: pulumi.String("0123456789abcdef"),
    			Action:   pulumi.String("clear_error"),
    		})
    		if err != nil {
    			return err
    		}
    		// Example: Set device capacity limit
    		_, err = powerflex.NewDeviceActionV2(ctx, "set_capacity", &powerflex.DeviceActionV2Args{
    			DeviceId:          pulumi.String("0123456789abcdef"),
    			Action:            pulumi.String("set_capacity_limit"),
    			CapacityLimitInKb: pulumi.String("10737418240"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("deviceAction", activate)
    		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 performs actions on devices (Gen2 systems 5.0+)
        // Supported actions: activate, clear_error, set_capacity_limit
        // device_id and action are required
        // capacity_limit_in_kb is required when action is set_capacity_limit
        // Example: Activate a device
        var activate = new Powerflex.DeviceActionV2("activate", new()
        {
            DeviceId = "0123456789abcdef",
            Action = "activate",
        });
    
        // Example: Clear device error
        var clearError = new Powerflex.DeviceActionV2("clear_error", new()
        {
            DeviceId = "0123456789abcdef",
            Action = "clear_error",
        });
    
        // Example: Set device capacity limit
        var setCapacity = new Powerflex.DeviceActionV2("set_capacity", new()
        {
            DeviceId = "0123456789abcdef",
            Action = "set_capacity_limit",
            CapacityLimitInKb = "10737418240",
        });
    
        return new Dictionary<string, object?>
        {
            ["deviceAction"] = activate,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.powerflex.DeviceActionV2;
    import com.pulumi.powerflex.DeviceActionV2Args;
    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 performs actions on devices (Gen2 systems 5.0+)
            // Supported actions: activate, clear_error, set_capacity_limit
            // device_id and action are required
            // capacity_limit_in_kb is required when action is set_capacity_limit
            // Example: Activate a device
            var activate = new DeviceActionV2("activate", DeviceActionV2Args.builder()
                .deviceId("0123456789abcdef")
                .action("activate")
                .build());
    
            // Example: Clear device error
            var clearError = new DeviceActionV2("clearError", DeviceActionV2Args.builder()
                .deviceId("0123456789abcdef")
                .action("clear_error")
                .build());
    
            // Example: Set device capacity limit
            var setCapacity = new DeviceActionV2("setCapacity", DeviceActionV2Args.builder()
                .deviceId("0123456789abcdef")
                .action("set_capacity_limit")
                .capacityLimitInKb("10737418240")
                .build());
    
            ctx.export("deviceAction", activate);
        }
    }
    
    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 performs actions on devices (Gen2 systems 5.0+)
      # Supported actions: activate, clear_error, set_capacity_limit
      # device_id and action are required
      # capacity_limit_in_kb is required when action is set_capacity_limit
    
      # Example: Activate a device
      activate:
        type: powerflex:DeviceActionV2
        properties:
          deviceId: 0123456789abcdef
          action: activate
      # Example: Clear device error
      clearError:
        type: powerflex:DeviceActionV2
        name: clear_error
        properties:
          deviceId: 0123456789abcdef
          action: clear_error
      # Example: Set device capacity limit
      setCapacity:
        type: powerflex:DeviceActionV2
        name: set_capacity
        properties:
          deviceId: 0123456789abcdef
          action: set_capacity_limit
          capacityLimitInKb: '10737418240'
    outputs:
      deviceAction: ${activate}
    
    Example coming soon!
    

    Create DeviceActionV2 Resource

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

    Constructor syntax

    new DeviceActionV2(name: string, args: DeviceActionV2Args, opts?: CustomResourceOptions);
    @overload
    def DeviceActionV2(resource_name: str,
                       args: DeviceActionV2Args,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DeviceActionV2(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       action: Optional[str] = None,
                       device_id: Optional[str] = None,
                       capacity_limit_in_kb: Optional[str] = None)
    func NewDeviceActionV2(ctx *Context, name string, args DeviceActionV2Args, opts ...ResourceOption) (*DeviceActionV2, error)
    public DeviceActionV2(string name, DeviceActionV2Args args, CustomResourceOptions? opts = null)
    public DeviceActionV2(String name, DeviceActionV2Args args)
    public DeviceActionV2(String name, DeviceActionV2Args args, CustomResourceOptions options)
    
    type: powerflex:DeviceActionV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "powerflex_device_action_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DeviceActionV2Args
    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 DeviceActionV2Args
    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 DeviceActionV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeviceActionV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeviceActionV2Args
    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 deviceActionV2Resource = new Powerflex.DeviceActionV2("deviceActionV2Resource", new()
    {
        Action = "string",
        DeviceId = "string",
        CapacityLimitInKb = "string",
    });
    
    example, err := powerflex.NewDeviceActionV2(ctx, "deviceActionV2Resource", &powerflex.DeviceActionV2Args{
    	Action:            pulumi.String("string"),
    	DeviceId:          pulumi.String("string"),
    	CapacityLimitInKb: pulumi.String("string"),
    })
    
    resource "powerflex_device_action_v2" "deviceActionV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      action               = "string"
      device_id            = "string"
      capacity_limit_in_kb = "string"
    }
    
    var deviceActionV2Resource = new DeviceActionV2("deviceActionV2Resource", DeviceActionV2Args.builder()
        .action("string")
        .deviceId("string")
        .capacityLimitInKb("string")
        .build());
    
    device_action_v2_resource = powerflex.DeviceActionV2("deviceActionV2Resource",
        action="string",
        device_id="string",
        capacity_limit_in_kb="string")
    
    const deviceActionV2Resource = new powerflex.DeviceActionV2("deviceActionV2Resource", {
        action: "string",
        deviceId: "string",
        capacityLimitInKb: "string",
    });
    
    type: powerflex:DeviceActionV2
    properties:
        action: string
        capacityLimitInKb: string
        deviceId: string
    

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

    Action string
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    DeviceId string
    The ID of the device to perform the action on.
    CapacityLimitInKb string
    Capacity limit in KB. Required when action is set_capacity_limit.
    Action string
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    DeviceId string
    The ID of the device to perform the action on.
    CapacityLimitInKb string
    Capacity limit in KB. Required when action is set_capacity_limit.
    action string
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    device_id string
    The ID of the device to perform the action on.
    capacity_limit_in_kb string
    Capacity limit in KB. Required when action is set_capacity_limit.
    action String
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    deviceId String
    The ID of the device to perform the action on.
    capacityLimitInKb String
    Capacity limit in KB. Required when action is set_capacity_limit.
    action string
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    deviceId string
    The ID of the device to perform the action on.
    capacityLimitInKb string
    Capacity limit in KB. Required when action is set_capacity_limit.
    action str
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    device_id str
    The ID of the device to perform the action on.
    capacity_limit_in_kb str
    Capacity limit in KB. Required when action is set_capacity_limit.
    action String
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    deviceId String
    The ID of the device to perform the action on.
    capacityLimitInKb String
    Capacity limit in KB. Required when action is set_capacity_limit.

    Outputs

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

    Get an existing DeviceActionV2 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?: DeviceActionV2State, opts?: CustomResourceOptions): DeviceActionV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            capacity_limit_in_kb: Optional[str] = None,
            device_id: Optional[str] = None) -> DeviceActionV2
    func GetDeviceActionV2(ctx *Context, name string, id IDInput, state *DeviceActionV2State, opts ...ResourceOption) (*DeviceActionV2, error)
    public static DeviceActionV2 Get(string name, Input<string> id, DeviceActionV2State? state, CustomResourceOptions? opts = null)
    public static DeviceActionV2 get(String name, Output<String> id, DeviceActionV2State state, CustomResourceOptions options)
    resources:  _:    type: powerflex:DeviceActionV2    get:      id: ${id}
    import {
      to = powerflex_device_action_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.
    The following state arguments are supported:
    Action string
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    CapacityLimitInKb string
    Capacity limit in KB. Required when action is set_capacity_limit.
    DeviceId string
    The ID of the device to perform the action on.
    Action string
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    CapacityLimitInKb string
    Capacity limit in KB. Required when action is set_capacity_limit.
    DeviceId string
    The ID of the device to perform the action on.
    action string
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    capacity_limit_in_kb string
    Capacity limit in KB. Required when action is set_capacity_limit.
    device_id string
    The ID of the device to perform the action on.
    action String
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    capacityLimitInKb String
    Capacity limit in KB. Required when action is set_capacity_limit.
    deviceId String
    The ID of the device to perform the action on.
    action string
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    capacityLimitInKb string
    Capacity limit in KB. Required when action is set_capacity_limit.
    deviceId string
    The ID of the device to perform the action on.
    action str
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    capacity_limit_in_kb str
    Capacity limit in KB. Required when action is set_capacity_limit.
    device_id str
    The ID of the device to perform the action on.
    action String
    The action to perform. Valid values: activate, clear_error, set_capacity_limit.
    capacityLimitInKb String
    Capacity limit in KB. Required when action is set_capacity_limit.
    deviceId String
    The ID of the device to perform the action on.

    Package Details

    Repository
    powerflex dell/terraform-provider-powerflex
    License
    Notes
    This Pulumi package is based on the powerflex Terraform Provider.
    Viewing docs for powerflex 1.9.0
    published on Monday, Sep 28, 2026 by dell

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial