1. Packages
  2. Cloudamqp Provider
  3. API Docs
  4. NodeActions
CloudAMQP v3.20.0 published on Thursday, Sep 5, 2024 by Pulumi

cloudamqp.NodeActions

Explore with Pulumi AI

cloudamqp logo
CloudAMQP v3.20.0 published on Thursday, Sep 5, 2024 by Pulumi

    This resource allows you to invoke actions on a specific node.

    Only available for dedicated subscription plans.

    Example Usage

    Already know the node identifier (e.g. from state file)
    import * as pulumi from "@pulumi/pulumi";
    import * as cloudamqp from "@pulumi/cloudamqp";
    
    // New recipient to receieve notifications
    const nodeAction = new cloudamqp.NodeActions("node_action", {
        instanceId: instance.id,
        nodeName: "<node name>",
        action: "restart",
    });
    
    import pulumi
    import pulumi_cloudamqp as cloudamqp
    
    # New recipient to receieve notifications
    node_action = cloudamqp.NodeActions("node_action",
        instance_id=instance["id"],
        node_name="<node name>",
        action="restart")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// New recipient to receieve notifications
    		_, err := cloudamqp.NewNodeActions(ctx, "node_action", &cloudamqp.NodeActionsArgs{
    			InstanceId: pulumi.Any(instance.Id),
    			NodeName:   pulumi.String("<node name>"),
    			Action:     pulumi.String("restart"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using CloudAmqp = Pulumi.CloudAmqp;
    
    return await Deployment.RunAsync(() => 
    {
        // New recipient to receieve notifications
        var nodeAction = new CloudAmqp.NodeActions("node_action", new()
        {
            InstanceId = instance.Id,
            NodeName = "<node name>",
            Action = "restart",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudamqp.NodeActions;
    import com.pulumi.cloudamqp.NodeActionsArgs;
    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) {
            // New recipient to receieve notifications
            var nodeAction = new NodeActions("nodeAction", NodeActionsArgs.builder()
                .instanceId(instance.id())
                .nodeName("<node name>")
                .action("restart")
                .build());
    
        }
    }
    
    resources:
      # New recipient to receieve notifications
      nodeAction:
        type: cloudamqp:NodeActions
        name: node_action
        properties:
          instanceId: ${instance.id}
          nodeName: <node name>
          action: restart
    

    Using data source cloudamqp.getNodes to restart RabbitMQ on all nodes.
    Note: RabbitMQ restart on multiple nodes need to be chained, so one node restart at the time.

    Multi node RabbitMQ restart
    import * as pulumi from "@pulumi/pulumi";
    import * as cloudamqp from "@pulumi/cloudamqp";
    
    const listNodes = cloudamqp.getNodes({
        instanceId: instance.id,
    });
    const restart01 = new cloudamqp.NodeActions("restart_01", {
        instanceId: instance.id,
        action: "restart",
        nodeName: listNodes.then(listNodes => listNodes.nodes?.[0]?.name),
    });
    const restart02 = new cloudamqp.NodeActions("restart_02", {
        instanceId: instance.id,
        action: "restart",
        nodeName: listNodes.then(listNodes => listNodes.nodes?.[1]?.name),
    }, {
        dependsOn: [restart01],
    });
    const restart03 = new cloudamqp.NodeActions("restart_03", {
        instanceId: instance.id,
        action: "restart",
        nodeName: listNodes.then(listNodes => listNodes.nodes?.[2]?.name),
    }, {
        dependsOn: [
            restart01,
            restart02,
        ],
    });
    
    import pulumi
    import pulumi_cloudamqp as cloudamqp
    
    list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
    restart01 = cloudamqp.NodeActions("restart_01",
        instance_id=instance["id"],
        action="restart",
        node_name=list_nodes.nodes[0].name)
    restart02 = cloudamqp.NodeActions("restart_02",
        instance_id=instance["id"],
        action="restart",
        node_name=list_nodes.nodes[1].name,
        opts = pulumi.ResourceOptions(depends_on=[restart01]))
    restart03 = cloudamqp.NodeActions("restart_03",
        instance_id=instance["id"],
        action="restart",
        node_name=list_nodes.nodes[2].name,
        opts = pulumi.ResourceOptions(depends_on=[
                restart01,
                restart02,
            ]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		listNodes, err := cloudamqp.GetNodes(ctx, &cloudamqp.GetNodesArgs{
    			InstanceId: instance.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		restart01, err := cloudamqp.NewNodeActions(ctx, "restart_01", &cloudamqp.NodeActionsArgs{
    			InstanceId: pulumi.Any(instance.Id),
    			Action:     pulumi.String("restart"),
    			NodeName:   pulumi.String(listNodes.Nodes[0].Name),
    		})
    		if err != nil {
    			return err
    		}
    		restart02, err := cloudamqp.NewNodeActions(ctx, "restart_02", &cloudamqp.NodeActionsArgs{
    			InstanceId: pulumi.Any(instance.Id),
    			Action:     pulumi.String("restart"),
    			NodeName:   pulumi.String(listNodes.Nodes[1].Name),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			restart01,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = cloudamqp.NewNodeActions(ctx, "restart_03", &cloudamqp.NodeActionsArgs{
    			InstanceId: pulumi.Any(instance.Id),
    			Action:     pulumi.String("restart"),
    			NodeName:   pulumi.String(listNodes.Nodes[2].Name),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			restart01,
    			restart02,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using CloudAmqp = Pulumi.CloudAmqp;
    
    return await Deployment.RunAsync(() => 
    {
        var listNodes = CloudAmqp.GetNodes.Invoke(new()
        {
            InstanceId = instance.Id,
        });
    
        var restart01 = new CloudAmqp.NodeActions("restart_01", new()
        {
            InstanceId = instance.Id,
            Action = "restart",
            NodeName = listNodes.Apply(getNodesResult => getNodesResult.Nodes[0]?.Name),
        });
    
        var restart02 = new CloudAmqp.NodeActions("restart_02", new()
        {
            InstanceId = instance.Id,
            Action = "restart",
            NodeName = listNodes.Apply(getNodesResult => getNodesResult.Nodes[1]?.Name),
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                restart01,
            },
        });
    
        var restart03 = new CloudAmqp.NodeActions("restart_03", new()
        {
            InstanceId = instance.Id,
            Action = "restart",
            NodeName = listNodes.Apply(getNodesResult => getNodesResult.Nodes[2]?.Name),
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                restart01,
                restart02,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudamqp.CloudamqpFunctions;
    import com.pulumi.cloudamqp.inputs.GetNodesArgs;
    import com.pulumi.cloudamqp.NodeActions;
    import com.pulumi.cloudamqp.NodeActionsArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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) {
            final var listNodes = CloudamqpFunctions.getNodes(GetNodesArgs.builder()
                .instanceId(instance.id())
                .build());
    
            var restart01 = new NodeActions("restart01", NodeActionsArgs.builder()
                .instanceId(instance.id())
                .action("restart")
                .nodeName(listNodes.applyValue(getNodesResult -> getNodesResult.nodes()[0].name()))
                .build());
    
            var restart02 = new NodeActions("restart02", NodeActionsArgs.builder()
                .instanceId(instance.id())
                .action("restart")
                .nodeName(listNodes.applyValue(getNodesResult -> getNodesResult.nodes()[1].name()))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(restart01)
                    .build());
    
            var restart03 = new NodeActions("restart03", NodeActionsArgs.builder()
                .instanceId(instance.id())
                .action("restart")
                .nodeName(listNodes.applyValue(getNodesResult -> getNodesResult.nodes()[2].name()))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        restart01,
                        restart02)
                    .build());
    
        }
    }
    
    resources:
      restart01:
        type: cloudamqp:NodeActions
        name: restart_01
        properties:
          instanceId: ${instance.id}
          action: restart
          nodeName: ${listNodes.nodes[0].name}
      restart02:
        type: cloudamqp:NodeActions
        name: restart_02
        properties:
          instanceId: ${instance.id}
          action: restart
          nodeName: ${listNodes.nodes[1].name}
        options:
          dependson:
            - ${restart01}
      restart03:
        type: cloudamqp:NodeActions
        name: restart_03
        properties:
          instanceId: ${instance.id}
          action: restart
          nodeName: ${listNodes.nodes[2].name}
        options:
          dependson:
            - ${restart01}
            - ${restart02}
    variables:
      listNodes:
        fn::invoke:
          Function: cloudamqp:getNodes
          Arguments:
            instanceId: ${instance.id}
    
    Combine log level configuration change with multi node RabbitMQ restart
    import * as pulumi from "@pulumi/pulumi";
    import * as cloudamqp from "@pulumi/cloudamqp";
    
    const listNodes = cloudamqp.getNodes({
        instanceId: instance.id,
    });
    const rabbitmqConfig = new cloudamqp.RabbitConfiguration("rabbitmq_config", {
        instanceId: instance.id,
        logExchangeLevel: "info",
    });
    const restart01 = new cloudamqp.NodeActions("restart_01", {
        instanceId: instance.id,
        action: "restart",
        nodeName: listNodes.then(listNodes => listNodes.nodes?.[0]?.name),
    }, {
        dependsOn: [rabbitmqConfig],
    });
    const restart02 = new cloudamqp.NodeActions("restart_02", {
        instanceId: instance.id,
        action: "restart",
        nodeName: listNodes.then(listNodes => listNodes.nodes?.[1]?.name),
    }, {
        dependsOn: [
            rabbitmqConfig,
            restart01,
        ],
    });
    const restart03 = new cloudamqp.NodeActions("restart_03", {
        instanceId: instance.id,
        action: "restart",
        nodeName: listNodes.then(listNodes => listNodes.nodes?.[2]?.name),
    }, {
        dependsOn: [
            rabbitmqConfig,
            restart01,
            restart02,
        ],
    });
    
    import pulumi
    import pulumi_cloudamqp as cloudamqp
    
    list_nodes = cloudamqp.get_nodes(instance_id=instance["id"])
    rabbitmq_config = cloudamqp.RabbitConfiguration("rabbitmq_config",
        instance_id=instance["id"],
        log_exchange_level="info")
    restart01 = cloudamqp.NodeActions("restart_01",
        instance_id=instance["id"],
        action="restart",
        node_name=list_nodes.nodes[0].name,
        opts = pulumi.ResourceOptions(depends_on=[rabbitmq_config]))
    restart02 = cloudamqp.NodeActions("restart_02",
        instance_id=instance["id"],
        action="restart",
        node_name=list_nodes.nodes[1].name,
        opts = pulumi.ResourceOptions(depends_on=[
                rabbitmq_config,
                restart01,
            ]))
    restart03 = cloudamqp.NodeActions("restart_03",
        instance_id=instance["id"],
        action="restart",
        node_name=list_nodes.nodes[2].name,
        opts = pulumi.ResourceOptions(depends_on=[
                rabbitmq_config,
                restart01,
                restart02,
            ]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		listNodes, err := cloudamqp.GetNodes(ctx, &cloudamqp.GetNodesArgs{
    			InstanceId: instance.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		rabbitmqConfig, err := cloudamqp.NewRabbitConfiguration(ctx, "rabbitmq_config", &cloudamqp.RabbitConfigurationArgs{
    			InstanceId:       pulumi.Any(instance.Id),
    			LogExchangeLevel: pulumi.String("info"),
    		})
    		if err != nil {
    			return err
    		}
    		restart01, err := cloudamqp.NewNodeActions(ctx, "restart_01", &cloudamqp.NodeActionsArgs{
    			InstanceId: pulumi.Any(instance.Id),
    			Action:     pulumi.String("restart"),
    			NodeName:   pulumi.String(listNodes.Nodes[0].Name),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			rabbitmqConfig,
    		}))
    		if err != nil {
    			return err
    		}
    		restart02, err := cloudamqp.NewNodeActions(ctx, "restart_02", &cloudamqp.NodeActionsArgs{
    			InstanceId: pulumi.Any(instance.Id),
    			Action:     pulumi.String("restart"),
    			NodeName:   pulumi.String(listNodes.Nodes[1].Name),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			rabbitmqConfig,
    			restart01,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = cloudamqp.NewNodeActions(ctx, "restart_03", &cloudamqp.NodeActionsArgs{
    			InstanceId: pulumi.Any(instance.Id),
    			Action:     pulumi.String("restart"),
    			NodeName:   pulumi.String(listNodes.Nodes[2].Name),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			rabbitmqConfig,
    			restart01,
    			restart02,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using CloudAmqp = Pulumi.CloudAmqp;
    
    return await Deployment.RunAsync(() => 
    {
        var listNodes = CloudAmqp.GetNodes.Invoke(new()
        {
            InstanceId = instance.Id,
        });
    
        var rabbitmqConfig = new CloudAmqp.RabbitConfiguration("rabbitmq_config", new()
        {
            InstanceId = instance.Id,
            LogExchangeLevel = "info",
        });
    
        var restart01 = new CloudAmqp.NodeActions("restart_01", new()
        {
            InstanceId = instance.Id,
            Action = "restart",
            NodeName = listNodes.Apply(getNodesResult => getNodesResult.Nodes[0]?.Name),
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                rabbitmqConfig,
            },
        });
    
        var restart02 = new CloudAmqp.NodeActions("restart_02", new()
        {
            InstanceId = instance.Id,
            Action = "restart",
            NodeName = listNodes.Apply(getNodesResult => getNodesResult.Nodes[1]?.Name),
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                rabbitmqConfig,
                restart01,
            },
        });
    
        var restart03 = new CloudAmqp.NodeActions("restart_03", new()
        {
            InstanceId = instance.Id,
            Action = "restart",
            NodeName = listNodes.Apply(getNodesResult => getNodesResult.Nodes[2]?.Name),
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                rabbitmqConfig,
                restart01,
                restart02,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudamqp.CloudamqpFunctions;
    import com.pulumi.cloudamqp.inputs.GetNodesArgs;
    import com.pulumi.cloudamqp.RabbitConfiguration;
    import com.pulumi.cloudamqp.RabbitConfigurationArgs;
    import com.pulumi.cloudamqp.NodeActions;
    import com.pulumi.cloudamqp.NodeActionsArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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) {
            final var listNodes = CloudamqpFunctions.getNodes(GetNodesArgs.builder()
                .instanceId(instance.id())
                .build());
    
            var rabbitmqConfig = new RabbitConfiguration("rabbitmqConfig", RabbitConfigurationArgs.builder()
                .instanceId(instance.id())
                .logExchangeLevel("info")
                .build());
    
            var restart01 = new NodeActions("restart01", NodeActionsArgs.builder()
                .instanceId(instance.id())
                .action("restart")
                .nodeName(listNodes.applyValue(getNodesResult -> getNodesResult.nodes()[0].name()))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(rabbitmqConfig)
                    .build());
    
            var restart02 = new NodeActions("restart02", NodeActionsArgs.builder()
                .instanceId(instance.id())
                .action("restart")
                .nodeName(listNodes.applyValue(getNodesResult -> getNodesResult.nodes()[1].name()))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        rabbitmqConfig,
                        restart01)
                    .build());
    
            var restart03 = new NodeActions("restart03", NodeActionsArgs.builder()
                .instanceId(instance.id())
                .action("restart")
                .nodeName(listNodes.applyValue(getNodesResult -> getNodesResult.nodes()[2].name()))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        rabbitmqConfig,
                        restart01,
                        restart02)
                    .build());
    
        }
    }
    
    resources:
      rabbitmqConfig:
        type: cloudamqp:RabbitConfiguration
        name: rabbitmq_config
        properties:
          instanceId: ${instance.id}
          logExchangeLevel: info
      restart01:
        type: cloudamqp:NodeActions
        name: restart_01
        properties:
          instanceId: ${instance.id}
          action: restart
          nodeName: ${listNodes.nodes[0].name}
        options:
          dependson:
            - ${rabbitmqConfig}
      restart02:
        type: cloudamqp:NodeActions
        name: restart_02
        properties:
          instanceId: ${instance.id}
          action: restart
          nodeName: ${listNodes.nodes[1].name}
        options:
          dependson:
            - ${rabbitmqConfig}
            - ${restart01}
      restart03:
        type: cloudamqp:NodeActions
        name: restart_03
        properties:
          instanceId: ${instance.id}
          action: restart
          nodeName: ${listNodes.nodes[2].name}
        options:
          dependson:
            - ${rabbitmqConfig}
            - ${restart01}
            - ${restart02}
    variables:
      listNodes:
        fn::invoke:
          Function: cloudamqp:getNodes
          Arguments:
            instanceId: ${instance.id}
    

    Action reference

    Valid options for action.

    ActionInfo
    startStart RabbitMQ
    stopStop RabbitMQ
    restartRestart RabbitMQ
    rebootReboot the node
    mgmt.restartRestart the RabbitMQ mgmt interace

    Dependency

    This resource depends on CloudAMQP instance identifier, cloudamqp_instance.instance.id and node name.

    Create NodeActions Resource

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

    Constructor syntax

    new NodeActions(name: string, args: NodeActionsArgs, opts?: CustomResourceOptions);
    @overload
    def NodeActions(resource_name: str,
                    args: NodeActionsArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def NodeActions(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    action: Optional[str] = None,
                    instance_id: Optional[int] = None,
                    node_name: Optional[str] = None)
    func NewNodeActions(ctx *Context, name string, args NodeActionsArgs, opts ...ResourceOption) (*NodeActions, error)
    public NodeActions(string name, NodeActionsArgs args, CustomResourceOptions? opts = null)
    public NodeActions(String name, NodeActionsArgs args)
    public NodeActions(String name, NodeActionsArgs args, CustomResourceOptions options)
    
    type: cloudamqp:NodeActions
    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 NodeActionsArgs
    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 NodeActionsArgs
    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 NodeActionsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NodeActionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NodeActionsArgs
    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 nodeActionsResource = new CloudAmqp.NodeActions("nodeActionsResource", new()
    {
        Action = "string",
        InstanceId = 0,
        NodeName = "string",
    });
    
    example, err := cloudamqp.NewNodeActions(ctx, "nodeActionsResource", &cloudamqp.NodeActionsArgs{
    	Action:     pulumi.String("string"),
    	InstanceId: pulumi.Int(0),
    	NodeName:   pulumi.String("string"),
    })
    
    var nodeActionsResource = new NodeActions("nodeActionsResource", NodeActionsArgs.builder()
        .action("string")
        .instanceId(0)
        .nodeName("string")
        .build());
    
    node_actions_resource = cloudamqp.NodeActions("nodeActionsResource",
        action="string",
        instance_id=0,
        node_name="string")
    
    const nodeActionsResource = new cloudamqp.NodeActions("nodeActionsResource", {
        action: "string",
        instanceId: 0,
        nodeName: "string",
    });
    
    type: cloudamqp:NodeActions
    properties:
        action: string
        instanceId: 0
        nodeName: string
    

    NodeActions Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NodeActions resource accepts the following input properties:

    Action string
    The action to invoke on the node.
    InstanceId int
    The CloudAMQP instance ID.
    NodeName string
    The node name, e.g green-guinea-pig-01.
    Action string
    The action to invoke on the node.
    InstanceId int
    The CloudAMQP instance ID.
    NodeName string
    The node name, e.g green-guinea-pig-01.
    action String
    The action to invoke on the node.
    instanceId Integer
    The CloudAMQP instance ID.
    nodeName String
    The node name, e.g green-guinea-pig-01.
    action string
    The action to invoke on the node.
    instanceId number
    The CloudAMQP instance ID.
    nodeName string
    The node name, e.g green-guinea-pig-01.
    action str
    The action to invoke on the node.
    instance_id int
    The CloudAMQP instance ID.
    node_name str
    The node name, e.g green-guinea-pig-01.
    action String
    The action to invoke on the node.
    instanceId Number
    The CloudAMQP instance ID.
    nodeName String
    The node name, e.g green-guinea-pig-01.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NodeActions resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Running bool
    If the node is running.
    Id string
    The provider-assigned unique ID for this managed resource.
    Running bool
    If the node is running.
    id String
    The provider-assigned unique ID for this managed resource.
    running Boolean
    If the node is running.
    id string
    The provider-assigned unique ID for this managed resource.
    running boolean
    If the node is running.
    id str
    The provider-assigned unique ID for this managed resource.
    running bool
    If the node is running.
    id String
    The provider-assigned unique ID for this managed resource.
    running Boolean
    If the node is running.

    Look up Existing NodeActions Resource

    Get an existing NodeActions 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?: NodeActionsState, opts?: CustomResourceOptions): NodeActions
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            instance_id: Optional[int] = None,
            node_name: Optional[str] = None,
            running: Optional[bool] = None) -> NodeActions
    func GetNodeActions(ctx *Context, name string, id IDInput, state *NodeActionsState, opts ...ResourceOption) (*NodeActions, error)
    public static NodeActions Get(string name, Input<string> id, NodeActionsState? state, CustomResourceOptions? opts = null)
    public static NodeActions get(String name, Output<String> id, NodeActionsState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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 invoke on the node.
    InstanceId int
    The CloudAMQP instance ID.
    NodeName string
    The node name, e.g green-guinea-pig-01.
    Running bool
    If the node is running.
    Action string
    The action to invoke on the node.
    InstanceId int
    The CloudAMQP instance ID.
    NodeName string
    The node name, e.g green-guinea-pig-01.
    Running bool
    If the node is running.
    action String
    The action to invoke on the node.
    instanceId Integer
    The CloudAMQP instance ID.
    nodeName String
    The node name, e.g green-guinea-pig-01.
    running Boolean
    If the node is running.
    action string
    The action to invoke on the node.
    instanceId number
    The CloudAMQP instance ID.
    nodeName string
    The node name, e.g green-guinea-pig-01.
    running boolean
    If the node is running.
    action str
    The action to invoke on the node.
    instance_id int
    The CloudAMQP instance ID.
    node_name str
    The node name, e.g green-guinea-pig-01.
    running bool
    If the node is running.
    action String
    The action to invoke on the node.
    instanceId Number
    The CloudAMQP instance ID.
    nodeName String
    The node name, e.g green-guinea-pig-01.
    running Boolean
    If the node is running.

    Import

    This resource cannot be imported.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    CloudAMQP pulumi/pulumi-cloudamqp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudamqp Terraform Provider.
    cloudamqp logo
    CloudAMQP v3.20.0 published on Thursday, Sep 5, 2024 by Pulumi