Nomad v2.4.1 published on Wednesday, Oct 30, 2024 by Pulumi
nomad.getJwks
Explore with Pulumi AI
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();
}
}
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<Get
Jwks Key> list of maps
a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- Pem
Keys 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
[]Get
Jwks Key list of maps
a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- Pem
Keys []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<Get
Jwks Key> list of maps
a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- pem
Keys 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
Get
Jwks Key[] list of maps
a list of JWK keys in structured format: see RFC7517 for the JWK field meanings.- pem
Keys 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[Get
Jwks Key] 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.- pem
Keys List<String> list of strings
a 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
nomad
Terraform Provider.