1. Packages
  2. HashiCorp Nomad
  3. API Docs
  4. getJwks
Nomad v2.3.2 published on Wednesday, Aug 14, 2024 by Pulumi

nomad.getJwks

Explore with Pulumi AI

nomad logo
Nomad v2.3.2 published on Wednesday, Aug 14, 2024 by Pulumi

    Retrieve the cluster JWKS public keys.

    The keys are returned both as a list of maps (keys), and as a list of PEM-encoded strings (pem_keys), which may be more convenient for use.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nomad from "@pulumi/nomad";
    
    const example = nomad.getJwks({});
    
    import pulumi
    import pulumi_nomad as nomad
    
    example = nomad.get_jwks()
    
    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.GetJwks(ctx, nil, 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.GetJwks.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nomad.NomadFunctions;
    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.getJwks();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: nomad:getJwks
          Arguments: {}
    

    Using getJwks

    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 getJwks(opts?: InvokeOptions): Promise<GetJwksResult>
    function getJwksOutput(opts?: InvokeOptions): Output<GetJwksResult>
    def get_jwks(opts: Optional[InvokeOptions] = None) -> GetJwksResult
    def get_jwks_output(opts: Optional[InvokeOptions] = None) -> Output[GetJwksResult]
    func GetJwks(ctx *Context, opts ...InvokeOption) (*GetJwksResult, error)
    func GetJwksOutput(ctx *Context, opts ...InvokeOption) GetJwksResultOutput

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

    public static class GetJwks 
    {
        public static Task<GetJwksResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetJwksResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetJwksResult> getJwks(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: nomad:index/getJwks:getJwks
      arguments:
        # arguments dictionary

    getJwks Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Keys List<GetJwksKey>
    list of maps a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.
    PemKeys List<string>
    list of strings a list JWK keys rendered as PEM-encoded X.509 keys
    Id string
    The provider-assigned unique ID for this managed resource.
    Keys []GetJwksKey
    list of maps a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.
    PemKeys []string
    list of strings a list JWK keys rendered as PEM-encoded X.509 keys
    id String
    The provider-assigned unique ID for this managed resource.
    keys List<GetJwksKey>
    list of maps a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.
    pemKeys List<String>
    list of strings a list JWK keys rendered as PEM-encoded X.509 keys
    id string
    The provider-assigned unique ID for this managed resource.
    keys GetJwksKey[]
    list of maps a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.
    pemKeys string[]
    list of strings a list JWK keys rendered as PEM-encoded X.509 keys
    id str
    The provider-assigned unique ID for this managed resource.
    keys Sequence[GetJwksKey]
    list of maps a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.
    pem_keys Sequence[str]
    list of strings a list JWK keys rendered as PEM-encoded X.509 keys
    id String
    The provider-assigned unique ID for this managed resource.
    keys List<Property Map>
    list of maps a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.
    pemKeys List<String>
    list of strings a list JWK keys rendered as PEM-encoded X.509 keys

    Supporting Types

    GetJwksKey

    Algorithm string
    (string) - JWK field alg
    Exponent string
    (string) - JWK field e
    KeyId string
    (string) - JWK field kid
    KeyType string
    (string) - JWK field kty
    KeyUse string
    (string) - JWK field use
    Modulus string
    (string) - JWK field n
    Algorithm string
    (string) - JWK field alg
    Exponent string
    (string) - JWK field e
    KeyId string
    (string) - JWK field kid
    KeyType string
    (string) - JWK field kty
    KeyUse string
    (string) - JWK field use
    Modulus string
    (string) - JWK field n
    algorithm String
    (string) - JWK field alg
    exponent String
    (string) - JWK field e
    keyId String
    (string) - JWK field kid
    keyType String
    (string) - JWK field kty
    keyUse String
    (string) - JWK field use
    modulus String
    (string) - JWK field n
    algorithm string
    (string) - JWK field alg
    exponent string
    (string) - JWK field e
    keyId string
    (string) - JWK field kid
    keyType string
    (string) - JWK field kty
    keyUse string
    (string) - JWK field use
    modulus string
    (string) - JWK field n
    algorithm str
    (string) - JWK field alg
    exponent str
    (string) - JWK field e
    key_id str
    (string) - JWK field kid
    key_type str
    (string) - JWK field kty
    key_use str
    (string) - JWK field use
    modulus str
    (string) - JWK field n
    algorithm String
    (string) - JWK field alg
    exponent String
    (string) - JWK field e
    keyId String
    (string) - JWK field kid
    keyType String
    (string) - JWK field kty
    keyUse String
    (string) - JWK field use
    modulus String
    (string) - JWK field n

    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.3.2 published on Wednesday, Aug 14, 2024 by Pulumi