CloudAMQP

Pulumi Official
Package maintained by Pulumi
v3.9.0 published on Wednesday, Jul 20, 2022 by Pulumi

getNodes

Use this data source to retrieve information about the node(s) created by CloudAMQP instance.

Attributes reference

All attributes reference are computed

  • id - The identifier for this resource.
  • nodes - An array of node information. Each nodes block consists of the fields documented below.

The nodes block consist of

  • hostname - External hostname assigned to the node.
  • name - Name of the node.
  • running - Is the node running?
  • rabbitmq_version - Currently configured Rabbit MQ version on the node.
  • erlang_version - Currently used Erlanbg version on the node.
  • hipe - Enable or disable High-performance Erlang.
  • configured - Is the node configured?

Dependency

This data source depends on CloudAMQP instance identifier, cloudamqp_instance.instance.id.

Example Usage

using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;

class MyStack : Stack
{
    public MyStack()
    {
        var nodes = Output.Create(CloudAmqp.GetNodes.InvokeAsync(new CloudAmqp.GetNodesArgs
        {
            InstanceId = cloudamqp_instance.Instance.Id,
        }));
    }

}
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 {
		_, err := cloudamqp.GetNodes(ctx, &GetNodesArgs{
			InstanceId: cloudamqp_instance.Instance.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_cloudamqp as cloudamqp

nodes = cloudamqp.get_nodes(instance_id=cloudamqp_instance["instance"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";

const nodes = cloudamqp.getNodes({
    instanceId: cloudamqp_instance.instance.id,
});

Coming soon!

Using getNodes

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getNodes(args: GetNodesArgs, opts?: InvokeOptions): Promise<GetNodesResult>
function getNodesOutput(args: GetNodesOutputArgs, opts?: InvokeOptions): Output<GetNodesResult>
def get_nodes(instance_id: Optional[int] = None,
              opts: Optional[InvokeOptions] = None) -> GetNodesResult
def get_nodes_output(instance_id: Optional[pulumi.Input[int]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetNodesResult]
func GetNodes(ctx *Context, args *GetNodesArgs, opts ...InvokeOption) (*GetNodesResult, error)
func GetNodesOutput(ctx *Context, args *GetNodesOutputArgs, opts ...InvokeOption) GetNodesResultOutput

> Note: This function is named GetNodes in the Go SDK.

public static class GetNodes 
{
    public static Task<GetNodesResult> InvokeAsync(GetNodesArgs args, InvokeOptions? opts = null)
    public static Output<GetNodesResult> Invoke(GetNodesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNodesResult> getNodes(GetNodesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: cloudamqp:index/getNodes:getNodes
  Arguments:
    # Arguments dictionary

The following arguments are supported:

InstanceId int

The CloudAMQP instance identifier.

InstanceId int

The CloudAMQP instance identifier.

instanceId Integer

The CloudAMQP instance identifier.

instanceId number

The CloudAMQP instance identifier.

instance_id int

The CloudAMQP instance identifier.

instanceId Number

The CloudAMQP instance identifier.

getNodes Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

InstanceId int
Nodes List<Pulumi.CloudAmqp.Outputs.GetNodesNode>
Id string

The provider-assigned unique ID for this managed resource.

InstanceId int
Nodes []GetNodesNode
id String

The provider-assigned unique ID for this managed resource.

instanceId Integer
nodes List<GetNodesNode>
id string

The provider-assigned unique ID for this managed resource.

instanceId number
nodes GetNodesNode[]
id str

The provider-assigned unique ID for this managed resource.

instance_id int
nodes Sequence[GetNodesNode]
id String

The provider-assigned unique ID for this managed resource.

instanceId Number
nodes List<Property Map>

Supporting Types

GetNodesNode

additionalDiskSize Integer
configured Boolean
diskSize Integer
erlangVersion String
hipe Boolean
hostname String
name String
rabbitmqVersion String
running Boolean
additionalDiskSize number
configured boolean
diskSize number
erlangVersion string
hipe boolean
hostname string
name string
rabbitmqVersion string
running boolean
additionalDiskSize Number
configured Boolean
diskSize Number
erlangVersion String
hipe Boolean
hostname String
name String
rabbitmqVersion String
running Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-cloudamqp
License
Apache-2.0
Notes

This Pulumi package is based on the cloudamqp Terraform Provider.