getNodes
Use this data source to retrieve information about the node(s) created by CloudAMQP instance.
Argument reference
instance_id
- (Required) The CloudAMQP instance identifier.
Attribute reference
nodes
- (Computed) An array of node information. Eachnodes
block consists of the fields documented below.
The nodes
block consist of
hostname
- (Computed) Hostname assigned to the node.name
- (Computed) Name of the node.running
- (Computed) Is the node running?rabbitmq_version
- (Computed) Currently configured Rabbit MQ version on the node.erlang_version
- (Computed) Currently used Erlanbg version on the node.hipe
- (Computed) Enable or disable High-performance Erlang.
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/v2/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.GetNodes(ctx, &cloudamqp.GetNodesArgs{
InstanceId: cloudamqp_instance.Instance.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
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,
});
Using getNodes
function getNodes(args: GetNodesArgs, opts?: InvokeOptions): Promise<GetNodesResult>
def get_nodes(instance_id: Optional[int] = None, nodes: Optional[Sequence[GetNodesNodeArgs]] = None, opts: Optional[InvokeOptions] = None) -> GetNodesResult
func GetNodes(ctx *Context, args *GetNodesArgs, opts ...InvokeOption) (*GetNodesResult, error)
Note: This function is named
GetNodes
in the Go SDK.
public static class GetNodes {
public static Task<GetNodesResult> InvokeAsync(GetNodesArgs args, InvokeOptions? opts = null)
}
The following arguments are supported:
- instance
Id number - nodes
Get
Nodes Node[]
getNodes Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id int - Nodes
List<Pulumi.
Cloud Amqp. Outputs. Get Nodes Node>
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id int - Nodes
[]Get
Nodes Node
- id string
The provider-assigned unique ID for this managed resource.
- instance
Id number - nodes
Get
Nodes Node[]
- id str
The provider-assigned unique ID for this managed resource.
- instance_
id int - nodes
Sequence[Get
Nodes Node]
Supporting Types
GetNodesNode
- Erlang
Version string - Hipe bool
- Hostname string
- Name string
- Rabbitmq
Version string - Running bool
- Erlang
Version string - Hipe bool
- Hostname string
- Name string
- Rabbitmq
Version string - Running bool
- erlang
Version string - hipe boolean
- hostname string
- name string
- rabbitmq
Version string - running boolean
- erlang_
version str - hipe bool
- hostname str
- name str
- rabbitmq_
version str - running bool
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqp
Terraform Provider.