HashiCorp Nomad

Pulumi Official
Package maintained by Pulumi
v0.2.1 published on Tuesday, Dec 7, 2021 by Pulumi

getPlugins

Retrieve a list of dynamic plugins in Nomad.

Example Usage

using Pulumi;
using Nomad = Pulumi.Nomad;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Nomad.GetPlugins.InvokeAsync());
    }

}
package main

import (
	"github.com/pulumi/pulumi-nomad/sdk/go/nomad"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nomad.GetPlugins(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_nomad as nomad

example = nomad.get_plugins()
import * as pulumi from "@pulumi/pulumi";
import * as nomad from "@pulumi/nomad";

const example = pulumi.output(nomad.getPlugins());

Coming soon!

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(type: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetPluginsResult
def get_plugins_output(type: Optional[pulumi.Input[str]] = 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)
}
public static CompletableFuture<GetPluginsResult> getPlugins(GetPluginsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: nomad:index/getPlugins:getPlugins
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Type string
Type string
type String
type string
type str
type String

getPlugins Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Plugins List<ImmutableDictionary<string, object>>
Type string
Id string

The provider-assigned unique ID for this managed resource.

Plugins []map[string]interface{}
Type string
id String

The provider-assigned unique ID for this managed resource.

plugins List<Map<String,Object>>
type String
id string

The provider-assigned unique ID for this managed resource.

plugins {[key: string]: any}[]
type string
id str

The provider-assigned unique ID for this managed resource.

plugins Sequence[Mapping[str, Any]]
type str
id String

The provider-assigned unique ID for this managed resource.

plugins List<Map<Any>>
type String

Package Details

Repository
https://github.com/pulumi/pulumi-nomad
License
Apache-2.0
Notes

This Pulumi package is based on the nomad Terraform Provider.