1. Packages
  2. Nomad Provider
  3. API Docs
  4. getJwks
Nomad v2.5.0 published on Thursday, Apr 17, 2025 by Pulumi

nomad.getJwks

Explore with Pulumi AI

Nomad v2.5.0 published on Thursday, Apr 17, 2025 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({});
Copy
import pulumi
import pulumi_nomad as nomad

example = nomad.get_jwks()
Copy
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, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nomad = Pulumi.Nomad;

return await Deployment.RunAsync(() => 
{
    var example = Nomad.GetJwks.Invoke();

});
Copy
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(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: nomad:getJwks
      arguments: {}
Copy

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

> 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)
}
Copy
public static CompletableFuture<GetJwksResult> getJwks(InvokeOptions options)
public static Output<GetJwksResult> getJwks(InvokeOptions options)
Copy
fn::invoke:
  function: nomad:index/getJwks:getJwks
  arguments:
    # arguments dictionary
Copy

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 This property is required. string
(string) - JWK field alg
Exponent This property is required. string
(string) - JWK field e
KeyId This property is required. string
(string) - JWK field kid
KeyType This property is required. string
(string) - JWK field kty
KeyUse This property is required. string
(string) - JWK field use
Modulus This property is required. string
(string) - JWK field n
Algorithm This property is required. string
(string) - JWK field alg
Exponent This property is required. string
(string) - JWK field e
KeyId This property is required. string
(string) - JWK field kid
KeyType This property is required. string
(string) - JWK field kty
KeyUse This property is required. string
(string) - JWK field use
Modulus This property is required. string
(string) - JWK field n
algorithm This property is required. String
(string) - JWK field alg
exponent This property is required. String
(string) - JWK field e
keyId This property is required. String
(string) - JWK field kid
keyType This property is required. String
(string) - JWK field kty
keyUse This property is required. String
(string) - JWK field use
modulus This property is required. String
(string) - JWK field n
algorithm This property is required. string
(string) - JWK field alg
exponent This property is required. string
(string) - JWK field e
keyId This property is required. string
(string) - JWK field kid
keyType This property is required. string
(string) - JWK field kty
keyUse This property is required. string
(string) - JWK field use
modulus This property is required. string
(string) - JWK field n
algorithm This property is required. str
(string) - JWK field alg
exponent This property is required. str
(string) - JWK field e
key_id This property is required. str
(string) - JWK field kid
key_type This property is required. str
(string) - JWK field kty
key_use This property is required. str
(string) - JWK field use
modulus This property is required. str
(string) - JWK field n
algorithm This property is required. String
(string) - JWK field alg
exponent This property is required. String
(string) - JWK field e
keyId This property is required. String
(string) - JWK field kid
keyType This property is required. String
(string) - JWK field kty
keyUse This property is required. String
(string) - JWK field use
modulus This property is required. 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 v2.5.0 published on Thursday, Apr 17, 2025 by Pulumi