Viewing docs for Nomad v2.5.5
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
Viewing docs for Nomad v2.5.5
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 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, map[string]interface{}{}, 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(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
}
}
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)
public static Output<GetJwksResult> getJwks(InvokeOptions options)
fn::invoke:
function: nomad:index/getJwks:getJwks
arguments:
# arguments dictionarygetJwks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Keys
List<Get
Jwks Key> list of mapsa list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- Pem
Keys List<string> list of stringsa list JWK keys rendered as PEM-encoded X.509 keys
- Id string
- The provider-assigned unique ID for this managed resource.
- Keys
[]Get
Jwks Key list of mapsa list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- Pem
Keys []string list of stringsa list JWK keys rendered as PEM-encoded X.509 keys
- id String
- The provider-assigned unique ID for this managed resource.
- keys
List<Get
Jwks Key> list of mapsa list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- pem
Keys List<String> list of stringsa list JWK keys rendered as PEM-encoded X.509 keys
- id string
- The provider-assigned unique ID for this managed resource.
- keys
Get
Jwks Key[] list of mapsa list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- pem
Keys string[] list of stringsa list JWK keys rendered as PEM-encoded X.509 keys
- id str
- The provider-assigned unique ID for this managed resource.
- keys
Sequence[Get
Jwks Key] list of mapsa list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- pem_
keys Sequence[str] list of stringsa 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 mapsa list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- pem
Keys List<String> list of stringsa list JWK keys rendered as PEM-encoded X.509 keys
Supporting Types
GetJwksKey
Package Details
- Repository
- HashiCorp Nomad pulumi/pulumi-nomad
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nomadTerraform Provider.
Viewing docs for Nomad v2.5.5
published on Thursday, Feb 26, 2026 by Pulumi
published on Thursday, Feb 26, 2026 by Pulumi
