Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getPlugins

Use this data source to retrieve information about installed and available plugins for the CloudAMQP instance.

Argument reference

  • instance_id - (Required) The CloudAMQP instance identifier.

Attribute reference

  • plugins - (Computed) An array of plugins. Each plugins block consists of the fields documented below.

The plugins block consist of

  • name - (Computed) The type of the recipient.
  • version - (Computed) Rabbit MQ version that the plugins are shipped with.
  • description - (Computed) Description of what the plugin does.
  • enabled - (Computed) Enable or disable information for the plugin.

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 plugins = Output.Create(CloudAmqp.GetPlugins.InvokeAsync(new CloudAmqp.GetPluginsArgs
        {
            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.GetPlugins(ctx, &cloudamqp.GetPluginsArgs{
            InstanceId: cloudamqp_instance.Instance.Id,
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_cloudamqp as cloudamqp

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

const plugins = cloudamqp.getPlugins({
    instanceId: cloudamqp_instance.instance.id,
});

Using getPlugins

function getPlugins(args: GetPluginsArgs, opts?: InvokeOptions): Promise<GetPluginsResult>
def get_plugins(instance_id: Optional[int] = None, plugins: Optional[Sequence[GetPluginsPluginArgs]] = None, opts: Optional[InvokeOptions] = None) -> GetPluginsResult
func GetPlugins(ctx *Context, args *GetPluginsArgs, opts ...InvokeOption) (*GetPluginsResult, error)

Note: This function is named GetPlugins in the Go SDK.

public static class GetPlugins {
    public static Task<GetPluginsResult> InvokeAsync(GetPluginsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

getPlugins Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

InstanceId int
Plugins List<Pulumi.CloudAmqp.Outputs.GetPluginsPlugin>
Id string

The provider-assigned unique ID for this managed resource.

InstanceId int
Plugins []GetPluginsPlugin
id string

The provider-assigned unique ID for this managed resource.

instanceId number
plugins GetPluginsPlugin[]
id str

The provider-assigned unique ID for this managed resource.

instance_id int
plugins Sequence[GetPluginsPlugin]

Supporting Types

GetPluginsPlugin

Description string
Enabled bool
Name string
Version string
Description string
Enabled bool
Name string
Version string
description string
enabled boolean
name string
version string

Package Details

Repository
https://github.com/pulumi/pulumi-cloudamqp
License
Apache-2.0
Notes
This Pulumi package is based on the cloudamqp Terraform Provider.