1. Packages
  2. HCP
  3. API Docs
  4. VaultClusterAdminToken
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security

hcp.VaultClusterAdminToken

Explore with Pulumi AI

hcp logo
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Hcp = Pulumi.Hcp;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Hcp.VaultClusterAdminToken("example", new()
        {
            ClusterId = "test-vault-cluster",
        });
    
    });
    
    package main
    
    import (
    	"github.com/grapl-security/pulumi-hcp/sdk/go/hcp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hcp.NewVaultClusterAdminToken(ctx, "example", &hcp.VaultClusterAdminTokenArgs{
    			ClusterId: pulumi.String("test-vault-cluster"),
    		})
    		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.hcp.VaultClusterAdminToken;
    import com.pulumi.hcp.VaultClusterAdminTokenArgs;
    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 example = new VaultClusterAdminToken("example", VaultClusterAdminTokenArgs.builder()        
                .clusterId("test-vault-cluster")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_hcp as hcp
    
    example = hcp.VaultClusterAdminToken("example", cluster_id="test-vault-cluster")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as hcp from "@pulumi/hcp";
    
    const example = new hcp.VaultClusterAdminToken("example", {
        clusterId: "test-vault-cluster",
    });
    
    resources:
      example:
        type: hcp:VaultClusterAdminToken
        properties:
          clusterId: test-vault-cluster
    

    Create VaultClusterAdminToken Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VaultClusterAdminToken(name: string, args: VaultClusterAdminTokenArgs, opts?: CustomResourceOptions);
    @overload
    def VaultClusterAdminToken(resource_name: str,
                               args: VaultClusterAdminTokenArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def VaultClusterAdminToken(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               cluster_id: Optional[str] = None)
    func NewVaultClusterAdminToken(ctx *Context, name string, args VaultClusterAdminTokenArgs, opts ...ResourceOption) (*VaultClusterAdminToken, error)
    public VaultClusterAdminToken(string name, VaultClusterAdminTokenArgs args, CustomResourceOptions? opts = null)
    public VaultClusterAdminToken(String name, VaultClusterAdminTokenArgs args)
    public VaultClusterAdminToken(String name, VaultClusterAdminTokenArgs args, CustomResourceOptions options)
    
    type: hcp:VaultClusterAdminToken
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VaultClusterAdminTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VaultClusterAdminTokenArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VaultClusterAdminTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VaultClusterAdminTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VaultClusterAdminTokenArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var vaultClusterAdminTokenResource = new Hcp.VaultClusterAdminToken("vaultClusterAdminTokenResource", new()
    {
        ClusterId = "string",
    });
    
    example, err := hcp.NewVaultClusterAdminToken(ctx, "vaultClusterAdminTokenResource", &hcp.VaultClusterAdminTokenArgs{
    	ClusterId: pulumi.String("string"),
    })
    
    var vaultClusterAdminTokenResource = new VaultClusterAdminToken("vaultClusterAdminTokenResource", VaultClusterAdminTokenArgs.builder()        
        .clusterId("string")
        .build());
    
    vault_cluster_admin_token_resource = hcp.VaultClusterAdminToken("vaultClusterAdminTokenResource", cluster_id="string")
    
    const vaultClusterAdminTokenResource = new hcp.VaultClusterAdminToken("vaultClusterAdminTokenResource", {clusterId: "string"});
    
    type: hcp:VaultClusterAdminToken
    properties:
        clusterId: string
    

    VaultClusterAdminToken Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VaultClusterAdminToken resource accepts the following input properties:

    ClusterId string
    The ID of the HCP Vault cluster.
    ClusterId string
    The ID of the HCP Vault cluster.
    clusterId String
    The ID of the HCP Vault cluster.
    clusterId string
    The ID of the HCP Vault cluster.
    cluster_id str
    The ID of the HCP Vault cluster.
    clusterId String
    The ID of the HCP Vault cluster.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VaultClusterAdminToken resource produces the following output properties:

    CreatedAt string
    The time that the admin token was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The admin token of this HCP Vault cluster.
    CreatedAt string
    The time that the admin token was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The admin token of this HCP Vault cluster.
    createdAt String
    The time that the admin token was created.
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The admin token of this HCP Vault cluster.
    createdAt string
    The time that the admin token was created.
    id string
    The provider-assigned unique ID for this managed resource.
    token string
    The admin token of this HCP Vault cluster.
    created_at str
    The time that the admin token was created.
    id str
    The provider-assigned unique ID for this managed resource.
    token str
    The admin token of this HCP Vault cluster.
    createdAt String
    The time that the admin token was created.
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The admin token of this HCP Vault cluster.

    Look up Existing VaultClusterAdminToken Resource

    Get an existing VaultClusterAdminToken resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VaultClusterAdminTokenState, opts?: CustomResourceOptions): VaultClusterAdminToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            created_at: Optional[str] = None,
            token: Optional[str] = None) -> VaultClusterAdminToken
    func GetVaultClusterAdminToken(ctx *Context, name string, id IDInput, state *VaultClusterAdminTokenState, opts ...ResourceOption) (*VaultClusterAdminToken, error)
    public static VaultClusterAdminToken Get(string name, Input<string> id, VaultClusterAdminTokenState? state, CustomResourceOptions? opts = null)
    public static VaultClusterAdminToken get(String name, Output<String> id, VaultClusterAdminTokenState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClusterId string
    The ID of the HCP Vault cluster.
    CreatedAt string
    The time that the admin token was created.
    Token string
    The admin token of this HCP Vault cluster.
    ClusterId string
    The ID of the HCP Vault cluster.
    CreatedAt string
    The time that the admin token was created.
    Token string
    The admin token of this HCP Vault cluster.
    clusterId String
    The ID of the HCP Vault cluster.
    createdAt String
    The time that the admin token was created.
    token String
    The admin token of this HCP Vault cluster.
    clusterId string
    The ID of the HCP Vault cluster.
    createdAt string
    The time that the admin token was created.
    token string
    The admin token of this HCP Vault cluster.
    cluster_id str
    The ID of the HCP Vault cluster.
    created_at str
    The time that the admin token was created.
    token str
    The admin token of this HCP Vault cluster.
    clusterId String
    The ID of the HCP Vault cluster.
    createdAt String
    The time that the admin token was created.
    token String
    The admin token of this HCP Vault cluster.

    Package Details

    Repository
    hcp grapl-security/pulumi-hcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the hcp Terraform Provider.
    hcp logo
    HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security