CloudAMQP v3.20.2 published on Tuesday, Oct 29, 2024 by Pulumi
cloudamqp.getNodes
Explore with Pulumi AI
Use this data source to retrieve information about the node(s) created by CloudAMQP instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const nodes = cloudamqp.getNodes({
instanceId: instance.id,
});
import pulumi
import pulumi_cloudamqp as cloudamqp
nodes = cloudamqp.get_nodes(instance_id=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, &cloudamqp.GetNodesArgs{
InstanceId: instance.Id,
}, nil)
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 nodes = CloudAmqp.GetNodes.Invoke(new()
{
InstanceId = instance.Id,
});
});
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 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 nodes = CloudamqpFunctions.getNodes(GetNodesArgs.builder()
.instanceId(instance.id())
.build());
}
}
variables:
nodes:
fn::invoke:
Function: cloudamqp:getNodes
Arguments:
instanceId: ${instance.id}
Attributes reference
All attributes reference are computed
id
- The identifier for this resource.nodes
- An array of node information. Eachnodes
block consists of the fields documented below.
The nodes
block consist of
hostname
- External hostname assigned to the node.hostname_internal
- Internal 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 Erlang version on the node.hipe
- Enable or disable High-performance Erlang.configured
- Is the node configured?disk_size
- Subscription plan disk sizeadditional_disk_size
- Additional added disk sizeavailability_zone
- Availability zone the node is hosted in.
Note: Total disk size = disk_size + additional_disk_size
Dependency
This data source depends on CloudAMQP instance identifier, cloudamqp_instance.instance.id
.
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:
- Instance
Id int - The CloudAMQP instance identifier.
- Instance
Id int - The CloudAMQP instance identifier.
- instance
Id Integer - The CloudAMQP instance identifier.
- instance
Id number - The CloudAMQP instance identifier.
- instance_
id int - The CloudAMQP instance identifier.
- instance
Id Number - The CloudAMQP instance identifier.
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 Integer - nodes
List<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]
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id Number - nodes List<Property Map>
Supporting Types
GetNodesNode
- Additional
Disk intSize - Availability
Zone string - Configured bool
- Disk
Size int - Erlang
Version string - Hipe bool
- Hostname string
- Hostname
Internal string - Name string
- Rabbitmq
Version string - Running bool
- Additional
Disk intSize - Availability
Zone string - Configured bool
- Disk
Size int - Erlang
Version string - Hipe bool
- Hostname string
- Hostname
Internal string - Name string
- Rabbitmq
Version string - Running bool
- additional
Disk IntegerSize - availability
Zone String - configured Boolean
- disk
Size Integer - erlang
Version String - hipe Boolean
- hostname String
- hostname
Internal String - name String
- rabbitmq
Version String - running Boolean
- additional
Disk numberSize - availability
Zone string - configured boolean
- disk
Size number - erlang
Version string - hipe boolean
- hostname string
- hostname
Internal string - name string
- rabbitmq
Version string - running boolean
- additional_
disk_ intsize - availability_
zone str - configured bool
- disk_
size int - erlang_
version str - hipe bool
- hostname str
- hostname_
internal str - name str
- rabbitmq_
version str - running bool
- additional
Disk NumberSize - availability
Zone String - configured Boolean
- disk
Size Number - erlang
Version String - hipe Boolean
- hostname String
- hostname
Internal String - name String
- rabbitmq
Version String - running Boolean
Package Details
- Repository
- CloudAMQP pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqp
Terraform Provider.