getPlugins

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

⚠️ From our go API wrapper v1.4.0 there is support for multiple retries when requesting information about plugins. This was introduced to avoid ReadPlugin error 400: Timeout talking to backend.

Argument reference

  • instance_id - (Required) The CloudAMQP instance identifier.

Attributes reference

All attributes reference are computed

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

The plugins block consist of

  • name - The type of the recipient.
  • version - Rabbit MQ version that the plugins are shipped with.
  • description - Description of what the plugin does.
  • enabled - 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/v3/go/cloudamqp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudamqp.GetPlugins(ctx, &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

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 getPlugins(args: GetPluginsArgs, opts?: InvokeOptions): Promise<GetPluginsResult>
function getPluginsOutput(args: GetPluginsOutputArgs, opts?: InvokeOptions): Output<GetPluginsResult>
def get_plugins(instance_id: Optional[int] = None,
                opts: Optional[InvokeOptions] = None) -> GetPluginsResult
def get_plugins_output(instance_id: Optional[pulumi.Input[int]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetPluginsResult]
func GetPlugins(ctx *Context, args *GetPluginsArgs, opts ...InvokeOption) (*GetPluginsResult, error)
func GetPluginsOutput(ctx *Context, args *GetPluginsOutputArgs, opts ...InvokeOption) GetPluginsResultOutput

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

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

The following arguments are supported:

instanceId number

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
description str
enabled bool
name str
version str

Package Details

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