OidcScope

class OidcScope : KotlinCustomResource

Manages OIDC Scopes in a Vault server. See the Vault documentation for more information.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const groups = new vault.identity.OidcScope("groups", {
name: "groups",
template: "{\"groups\":{{identity.entity.groups.names}}}",
description: "Vault OIDC Groups Scope",
});
import pulumi
import pulumi_vault as vault
groups = vault.identity.OidcScope("groups",
name="groups",
template="{\"groups\":{{identity.entity.groups.names}}}",
description="Vault OIDC Groups Scope")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var groups = new Vault.Identity.OidcScope("groups", new()
{
Name = "groups",
Template = "{\"groups\":{{identity.entity.groups.names}}}",
Description = "Vault OIDC Groups Scope",
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := identity.NewOidcScope(ctx, "groups", &identity.OidcScopeArgs{
Name: pulumi.String("groups"),
Template: pulumi.String("{\"groups\":{{identity.entity.groups.names}}}"),
Description: pulumi.String("Vault OIDC Groups Scope"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.identity.OidcScope;
import com.pulumi.vault.identity.OidcScopeArgs;
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) {
var groups = new OidcScope("groups", OidcScopeArgs.builder()
.name("groups")
.template("{\"groups\":{{identity.entity.groups.names}}}")
.description("Vault OIDC Groups Scope")
.build());
}
}
resources:
groups:
type: vault:identity:OidcScope
properties:
name: groups
template: '{"groups":{{identity.entity.groups.names}}}'
description: Vault OIDC Groups Scope

Import

OIDC Scopes can be imported using the name, e.g.

$ pulumi import vault:identity/oidcScope:OidcScope groups groups

Properties

Link copied to clipboard
val description: Output<String>?

A description of the scope.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the scope. The openid scope name is reserved.

Link copied to clipboard
val namespace: Output<String>?

The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The namespace is always relative to the provider's configured namespace. Available only for Vault Enterprise.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val template: Output<String>?

The template string for the scope. This may be provided as escaped JSON or base64 encoded JSON.

Link copied to clipboard
val urn: Output<String>