1. Packages
  2. Cloudamqp Provider
  3. API Docs
  4. getNodes
CloudAMQP v3.21.0 published on Tuesday, Apr 8, 2025 by Pulumi

cloudamqp.getNodes

Explore with Pulumi AI

cloudamqp logo
CloudAMQP v3.21.0 published on Tuesday, Apr 8, 2025 by Pulumi

    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}
    

    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)
    public static Output<GetNodesResult> getNodes(GetNodesArgs args, InvokeOptions options)
    
    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>
    An array of node information. Each nodes block consists of the fields documented below.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId int
    Nodes []GetNodesNode
    An array of node information. Each nodes block consists of the fields documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId Integer
    nodes List<GetNodesNode>
    An array of node information. Each nodes block consists of the fields documented below.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId number
    nodes GetNodesNode[]
    An array of node information. Each nodes block consists of the fields documented below.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id int
    nodes Sequence[GetNodesNode]
    An array of node information. Each nodes block consists of the fields documented below.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId Number
    nodes List<Property Map>
    An array of node information. Each nodes block consists of the fields documented below.

    Supporting Types

    GetNodesNode

    AdditionalDiskSize int
    Additional added disk size
    AvailabilityZone string
    Availability zone the node is hosted in.
    Configured bool
    Is the node configured?
    DiskSize int
    Subscription plan disk size
    ErlangVersion string
    Currently used Erlang version on the node.
    Hipe bool
    Enable or disable High-performance Erlang.
    Hostname string
    External hostname assigned to the node.
    HostnameInternal string
    Internal hostname assigned to the node.
    Name string
    Name of the node.
    RabbitmqVersion string
    Currently configured Rabbit MQ version on the node.
    Running bool
    Is the node running?
    AdditionalDiskSize int
    Additional added disk size
    AvailabilityZone string
    Availability zone the node is hosted in.
    Configured bool
    Is the node configured?
    DiskSize int
    Subscription plan disk size
    ErlangVersion string
    Currently used Erlang version on the node.
    Hipe bool
    Enable or disable High-performance Erlang.
    Hostname string
    External hostname assigned to the node.
    HostnameInternal string
    Internal hostname assigned to the node.
    Name string
    Name of the node.
    RabbitmqVersion string
    Currently configured Rabbit MQ version on the node.
    Running bool
    Is the node running?
    additionalDiskSize Integer
    Additional added disk size
    availabilityZone String
    Availability zone the node is hosted in.
    configured Boolean
    Is the node configured?
    diskSize Integer
    Subscription plan disk size
    erlangVersion String
    Currently used Erlang version on the node.
    hipe Boolean
    Enable or disable High-performance Erlang.
    hostname String
    External hostname assigned to the node.
    hostnameInternal String
    Internal hostname assigned to the node.
    name String
    Name of the node.
    rabbitmqVersion String
    Currently configured Rabbit MQ version on the node.
    running Boolean
    Is the node running?
    additionalDiskSize number
    Additional added disk size
    availabilityZone string
    Availability zone the node is hosted in.
    configured boolean
    Is the node configured?
    diskSize number
    Subscription plan disk size
    erlangVersion string
    Currently used Erlang version on the node.
    hipe boolean
    Enable or disable High-performance Erlang.
    hostname string
    External hostname assigned to the node.
    hostnameInternal string
    Internal hostname assigned to the node.
    name string
    Name of the node.
    rabbitmqVersion string
    Currently configured Rabbit MQ version on the node.
    running boolean
    Is the node running?
    additional_disk_size int
    Additional added disk size
    availability_zone str
    Availability zone the node is hosted in.
    configured bool
    Is the node configured?
    disk_size int
    Subscription plan disk size
    erlang_version str
    Currently used Erlang version on the node.
    hipe bool
    Enable or disable High-performance Erlang.
    hostname str
    External hostname assigned to the node.
    hostname_internal str
    Internal hostname assigned to the node.
    name str
    Name of the node.
    rabbitmq_version str
    Currently configured Rabbit MQ version on the node.
    running bool
    Is the node running?
    additionalDiskSize Number
    Additional added disk size
    availabilityZone String
    Availability zone the node is hosted in.
    configured Boolean
    Is the node configured?
    diskSize Number
    Subscription plan disk size
    erlangVersion String
    Currently used Erlang version on the node.
    hipe Boolean
    Enable or disable High-performance Erlang.
    hostname String
    External hostname assigned to the node.
    hostnameInternal String
    Internal hostname assigned to the node.
    name String
    Name of the node.
    rabbitmqVersion String
    Currently configured Rabbit MQ version on the node.
    running Boolean
    Is the node running?

    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.21.0 published on Tuesday, Apr 8, 2025 by Pulumi