1. Packages
  2. Nomad Provider
  3. API Docs
  4. getPlugins
Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi

nomad.getPlugins

Explore with Pulumi AI

nomad logo
Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi

    Retrieve a list of dynamic plugins in Nomad.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nomad from "@pulumi/nomad";
    
    const example = nomad.getPlugins({});
    
    import pulumi
    import pulumi_nomad as nomad
    
    example = nomad.get_plugins()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-nomad/sdk/v2/go/nomad"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nomad.GetPlugins(ctx, &nomad.GetPluginsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nomad = Pulumi.Nomad;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Nomad.GetPlugins.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nomad.NomadFunctions;
    import com.pulumi.nomad.inputs.GetPluginsArgs;
    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 example = NomadFunctions.getPlugins();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: nomad:getPlugins
          Arguments: {}
    

    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, string>>
    (list of maps) a list of dynamic plugins registered in the cluster.
    Type string
    Id string
    The provider-assigned unique ID for this managed resource.
    Plugins []map[string]string
    (list of maps) a list of dynamic plugins registered in the cluster.
    Type string
    id String
    The provider-assigned unique ID for this managed resource.
    plugins List<Map<String,String>>
    (list of maps) a list of dynamic plugins registered in the cluster.
    type String
    id string
    The provider-assigned unique ID for this managed resource.
    plugins {[key: string]: string}[]
    (list of maps) a list of dynamic plugins registered in the cluster.
    type string
    id str
    The provider-assigned unique ID for this managed resource.
    plugins Sequence[Mapping[str, str]]
    (list of maps) a list of dynamic plugins registered in the cluster.
    type str
    id String
    The provider-assigned unique ID for this managed resource.
    plugins List<Map<String>>
    (list of maps) a list of dynamic plugins registered in the cluster.
    type String

    Package Details

    Repository
    HashiCorp Nomad pulumi/pulumi-nomad
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nomad Terraform Provider.
    nomad logo
    Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi