HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security
hcp.getVaultCluster
Explore with Pulumi AI
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security
The cluster data source provides information about an existing HCP Vault cluster.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Hcp = Pulumi.Hcp;
return await Deployment.RunAsync(() =>
{
var example = Hcp.GetVaultCluster.Invoke(new()
{
ClusterId = @var.Cluster_id,
});
});
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.LookupVaultCluster(ctx, &GetVaultClusterArgs{
ClusterId: _var.Cluster_id,
}, nil)
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.HcpFunctions;
import com.pulumi.hcp.inputs.GetVaultClusterArgs;
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 = HcpFunctions.getVaultCluster(GetVaultClusterArgs.builder()
.clusterId(var_.cluster_id())
.build());
}
}
import pulumi
import pulumi_hcp as hcp
example = hcp.get_vault_cluster(cluster_id=var["cluster_id"])
import * as pulumi from "@pulumi/pulumi";
import * as hcp from "@pulumi/hcp";
const example = hcp.getVaultCluster({
clusterId: _var.cluster_id,
});
variables:
example:
Fn::Invoke:
Function: hcp:getVaultCluster
Arguments:
clusterId: ${var.cluster_id}
Using getVaultCluster
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 getVaultCluster(args: GetVaultClusterArgs, opts?: InvokeOptions): Promise<GetVaultClusterResult>
function getVaultClusterOutput(args: GetVaultClusterOutputArgs, opts?: InvokeOptions): Output<GetVaultClusterResult>
def get_vault_cluster(audit_log_configs: Optional[Sequence[GetVaultClusterAuditLogConfig]] = None,
cluster_id: Optional[str] = None,
metrics_configs: Optional[Sequence[GetVaultClusterMetricsConfig]] = None,
opts: Optional[InvokeOptions] = None) -> GetVaultClusterResult
def get_vault_cluster_output(audit_log_configs: Optional[pulumi.Input[Sequence[pulumi.Input[GetVaultClusterAuditLogConfigArgs]]]] = None,
cluster_id: Optional[pulumi.Input[str]] = None,
metrics_configs: Optional[pulumi.Input[Sequence[pulumi.Input[GetVaultClusterMetricsConfigArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVaultClusterResult]
func LookupVaultCluster(ctx *Context, args *LookupVaultClusterArgs, opts ...InvokeOption) (*LookupVaultClusterResult, error)
func LookupVaultClusterOutput(ctx *Context, args *LookupVaultClusterOutputArgs, opts ...InvokeOption) LookupVaultClusterResultOutput
> Note: This function is named LookupVaultCluster
in the Go SDK.
public static class GetVaultCluster
{
public static Task<GetVaultClusterResult> InvokeAsync(GetVaultClusterArgs args, InvokeOptions? opts = null)
public static Output<GetVaultClusterResult> Invoke(GetVaultClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVaultClusterResult> getVaultCluster(GetVaultClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: hcp:index/getVaultCluster:getVaultCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - The ID of the HCP Vault cluster.
- Audit
Log List<GetConfigs Vault Cluster Audit Log Config> - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- Metrics
Configs List<GetVault Cluster Metrics Config> - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- Cluster
Id string - The ID of the HCP Vault cluster.
- Audit
Log []GetConfigs Vault Cluster Audit Log Config - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- Metrics
Configs []GetVault Cluster Metrics Config - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- cluster
Id String - The ID of the HCP Vault cluster.
- audit
Log List<GetConfigs Vault Cluster Audit Log Config> - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- metrics
Configs List<GetVault Cluster Metrics Config> - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- cluster
Id string - The ID of the HCP Vault cluster.
- audit
Log GetConfigs Vault Cluster Audit Log Config[] - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- metrics
Configs GetVault Cluster Metrics Config[] - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- cluster_
id str - The ID of the HCP Vault cluster.
- audit_
log_ Sequence[Getconfigs Vault Cluster Audit Log Config] - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- metrics_
configs Sequence[GetVault Cluster Metrics Config] - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- cluster
Id String - The ID of the HCP Vault cluster.
- audit
Log List<Property Map>Configs - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- metrics
Configs List<Property Map> - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
getVaultCluster Result
The following output properties are available:
- Audit
Log List<GetConfigs Vault Cluster Audit Log Config> - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- Cloud
Provider string - The provider where the HCP Vault cluster is located.
- Cluster
Id string - The ID of the HCP Vault cluster.
- Created
At string - The time that the Vault cluster was created.
- Hvn
Id string - The ID of the HVN this HCP Vault cluster is associated to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Major
Version List<GetUpgrade Configs Vault Cluster Major Version Upgrade Config> - Metrics
Configs List<GetVault Cluster Metrics Config> - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- Min
Vault stringVersion - The minimum Vault version to use when creating the cluster. If not specified, it is defaulted to the version that is currently recommended by HCP.
- Namespace string
- The name of the customer namespace this HCP Vault cluster is located in.
- Organization
Id string - The ID of the organization this HCP Vault cluster is located in.
- Paths
Filters List<string> - The performance replication paths filter. Applies to performance replication secondaries only and operates in "deny" mode only.
- Primary
Link string - The
self_link
of the HCP Vault Plus tier cluster which is the primary in the performance replication setup with this HCP Vault Plus tier cluster. If not specified, it is a standalone Plus tier HCP Vault cluster. - Project
Id string - The ID of the project this HCP Vault cluster is located in.
- Public
Endpoint bool - Denotes that the cluster has a public endpoint. Defaults to false.
- Region string
- The region where the HCP Vault cluster is located.
- Self
Link string - A unique URL identifying the Vault cluster.
- State string
- The state of the Vault cluster.
- Tier string
- The tier that the HCP Vault cluster will be provisioned as. Only 'development' is available at this time.
- Vault
Private stringEndpoint Url - The private URL for the Vault cluster.
- Vault
Public stringEndpoint Url - The public URL for the Vault cluster. This will be empty if
public_endpoint
isfalse
. - Vault
Version string - The Vault version of the cluster.
- Audit
Log []GetConfigs Vault Cluster Audit Log Config - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- Cloud
Provider string - The provider where the HCP Vault cluster is located.
- Cluster
Id string - The ID of the HCP Vault cluster.
- Created
At string - The time that the Vault cluster was created.
- Hvn
Id string - The ID of the HVN this HCP Vault cluster is associated to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Major
Version []GetUpgrade Configs Vault Cluster Major Version Upgrade Config - Metrics
Configs []GetVault Cluster Metrics Config - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- Min
Vault stringVersion - The minimum Vault version to use when creating the cluster. If not specified, it is defaulted to the version that is currently recommended by HCP.
- Namespace string
- The name of the customer namespace this HCP Vault cluster is located in.
- Organization
Id string - The ID of the organization this HCP Vault cluster is located in.
- Paths
Filters []string - The performance replication paths filter. Applies to performance replication secondaries only and operates in "deny" mode only.
- Primary
Link string - The
self_link
of the HCP Vault Plus tier cluster which is the primary in the performance replication setup with this HCP Vault Plus tier cluster. If not specified, it is a standalone Plus tier HCP Vault cluster. - Project
Id string - The ID of the project this HCP Vault cluster is located in.
- Public
Endpoint bool - Denotes that the cluster has a public endpoint. Defaults to false.
- Region string
- The region where the HCP Vault cluster is located.
- Self
Link string - A unique URL identifying the Vault cluster.
- State string
- The state of the Vault cluster.
- Tier string
- The tier that the HCP Vault cluster will be provisioned as. Only 'development' is available at this time.
- Vault
Private stringEndpoint Url - The private URL for the Vault cluster.
- Vault
Public stringEndpoint Url - The public URL for the Vault cluster. This will be empty if
public_endpoint
isfalse
. - Vault
Version string - The Vault version of the cluster.
- audit
Log List<GetConfigs Vault Cluster Audit Log Config> - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- cloud
Provider String - The provider where the HCP Vault cluster is located.
- cluster
Id String - The ID of the HCP Vault cluster.
- created
At String - The time that the Vault cluster was created.
- hvn
Id String - The ID of the HVN this HCP Vault cluster is associated to.
- id String
- The provider-assigned unique ID for this managed resource.
- major
Version List<GetUpgrade Configs Vault Cluster Major Version Upgrade Config> - metrics
Configs List<GetVault Cluster Metrics Config> - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- min
Vault StringVersion - The minimum Vault version to use when creating the cluster. If not specified, it is defaulted to the version that is currently recommended by HCP.
- namespace String
- The name of the customer namespace this HCP Vault cluster is located in.
- organization
Id String - The ID of the organization this HCP Vault cluster is located in.
- paths
Filters List<String> - The performance replication paths filter. Applies to performance replication secondaries only and operates in "deny" mode only.
- primary
Link String - The
self_link
of the HCP Vault Plus tier cluster which is the primary in the performance replication setup with this HCP Vault Plus tier cluster. If not specified, it is a standalone Plus tier HCP Vault cluster. - project
Id String - The ID of the project this HCP Vault cluster is located in.
- public
Endpoint Boolean - Denotes that the cluster has a public endpoint. Defaults to false.
- region String
- The region where the HCP Vault cluster is located.
- self
Link String - A unique URL identifying the Vault cluster.
- state String
- The state of the Vault cluster.
- tier String
- The tier that the HCP Vault cluster will be provisioned as. Only 'development' is available at this time.
- vault
Private StringEndpoint Url - The private URL for the Vault cluster.
- vault
Public StringEndpoint Url - The public URL for the Vault cluster. This will be empty if
public_endpoint
isfalse
. - vault
Version String - The Vault version of the cluster.
- audit
Log GetConfigs Vault Cluster Audit Log Config[] - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- cloud
Provider string - The provider where the HCP Vault cluster is located.
- cluster
Id string - The ID of the HCP Vault cluster.
- created
At string - The time that the Vault cluster was created.
- hvn
Id string - The ID of the HVN this HCP Vault cluster is associated to.
- id string
- The provider-assigned unique ID for this managed resource.
- major
Version GetUpgrade Configs Vault Cluster Major Version Upgrade Config[] - metrics
Configs GetVault Cluster Metrics Config[] - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- min
Vault stringVersion - The minimum Vault version to use when creating the cluster. If not specified, it is defaulted to the version that is currently recommended by HCP.
- namespace string
- The name of the customer namespace this HCP Vault cluster is located in.
- organization
Id string - The ID of the organization this HCP Vault cluster is located in.
- paths
Filters string[] - The performance replication paths filter. Applies to performance replication secondaries only and operates in "deny" mode only.
- primary
Link string - The
self_link
of the HCP Vault Plus tier cluster which is the primary in the performance replication setup with this HCP Vault Plus tier cluster. If not specified, it is a standalone Plus tier HCP Vault cluster. - project
Id string - The ID of the project this HCP Vault cluster is located in.
- public
Endpoint boolean - Denotes that the cluster has a public endpoint. Defaults to false.
- region string
- The region where the HCP Vault cluster is located.
- self
Link string - A unique URL identifying the Vault cluster.
- state string
- The state of the Vault cluster.
- tier string
- The tier that the HCP Vault cluster will be provisioned as. Only 'development' is available at this time.
- vault
Private stringEndpoint Url - The private URL for the Vault cluster.
- vault
Public stringEndpoint Url - The public URL for the Vault cluster. This will be empty if
public_endpoint
isfalse
. - vault
Version string - The Vault version of the cluster.
- audit_
log_ Sequence[Getconfigs Vault Cluster Audit Log Config] - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- cloud_
provider str - The provider where the HCP Vault cluster is located.
- cluster_
id str - The ID of the HCP Vault cluster.
- created_
at str - The time that the Vault cluster was created.
- hvn_
id str - The ID of the HVN this HCP Vault cluster is associated to.
- id str
- The provider-assigned unique ID for this managed resource.
- major_
version_ Sequence[Getupgrade_ configs Vault Cluster Major Version Upgrade Config] - metrics_
configs Sequence[GetVault Cluster Metrics Config] - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- min_
vault_ strversion - The minimum Vault version to use when creating the cluster. If not specified, it is defaulted to the version that is currently recommended by HCP.
- namespace str
- The name of the customer namespace this HCP Vault cluster is located in.
- organization_
id str - The ID of the organization this HCP Vault cluster is located in.
- paths_
filters Sequence[str] - The performance replication paths filter. Applies to performance replication secondaries only and operates in "deny" mode only.
- primary_
link str - The
self_link
of the HCP Vault Plus tier cluster which is the primary in the performance replication setup with this HCP Vault Plus tier cluster. If not specified, it is a standalone Plus tier HCP Vault cluster. - project_
id str - The ID of the project this HCP Vault cluster is located in.
- public_
endpoint bool - Denotes that the cluster has a public endpoint. Defaults to false.
- region str
- The region where the HCP Vault cluster is located.
- self_
link str - A unique URL identifying the Vault cluster.
- state str
- The state of the Vault cluster.
- tier str
- The tier that the HCP Vault cluster will be provisioned as. Only 'development' is available at this time.
- vault_
private_ strendpoint_ url - The private URL for the Vault cluster.
- vault_
public_ strendpoint_ url - The public URL for the Vault cluster. This will be empty if
public_endpoint
isfalse
. - vault_
version str - The Vault version of the cluster.
- audit
Log List<Property Map>Configs - The audit logs configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- cloud
Provider String - The provider where the HCP Vault cluster is located.
- cluster
Id String - The ID of the HCP Vault cluster.
- created
At String - The time that the Vault cluster was created.
- hvn
Id String - The ID of the HVN this HCP Vault cluster is associated to.
- id String
- The provider-assigned unique ID for this managed resource.
- major
Version List<Property Map>Upgrade Configs - metrics
Configs List<Property Map> - The metrics configuration for export. (https://learn.hashicorp.com/tutorials/cloud/vault-metrics-guide#metrics-streaming-configuration)
- min
Vault StringVersion - The minimum Vault version to use when creating the cluster. If not specified, it is defaulted to the version that is currently recommended by HCP.
- namespace String
- The name of the customer namespace this HCP Vault cluster is located in.
- organization
Id String - The ID of the organization this HCP Vault cluster is located in.
- paths
Filters List<String> - The performance replication paths filter. Applies to performance replication secondaries only and operates in "deny" mode only.
- primary
Link String - The
self_link
of the HCP Vault Plus tier cluster which is the primary in the performance replication setup with this HCP Vault Plus tier cluster. If not specified, it is a standalone Plus tier HCP Vault cluster. - project
Id String - The ID of the project this HCP Vault cluster is located in.
- public
Endpoint Boolean - Denotes that the cluster has a public endpoint. Defaults to false.
- region String
- The region where the HCP Vault cluster is located.
- self
Link String - A unique URL identifying the Vault cluster.
- state String
- The state of the Vault cluster.
- tier String
- The tier that the HCP Vault cluster will be provisioned as. Only 'development' is available at this time.
- vault
Private StringEndpoint Url - The private URL for the Vault cluster.
- vault
Public StringEndpoint Url - The public URL for the Vault cluster. This will be empty if
public_endpoint
isfalse
. - vault
Version String - The Vault version of the cluster.
Supporting Types
GetVaultClusterAuditLogConfig
- Datadog
Region string - Datadog region for streaming audit logs
- Grafana
Endpoint string - Grafana endpoint for streaming audit logs
- Grafana
User string - Grafana user for streaming audit logs
- Splunk
Hecendpoint string - Splunk endpoint for streaming audit logs
- Datadog
Region string - Datadog region for streaming audit logs
- Grafana
Endpoint string - Grafana endpoint for streaming audit logs
- Grafana
User string - Grafana user for streaming audit logs
- Splunk
Hecendpoint string - Splunk endpoint for streaming audit logs
- datadog
Region String - Datadog region for streaming audit logs
- grafana
Endpoint String - Grafana endpoint for streaming audit logs
- grafana
User String - Grafana user for streaming audit logs
- splunk
Hecendpoint String - Splunk endpoint for streaming audit logs
- datadog
Region string - Datadog region for streaming audit logs
- grafana
Endpoint string - Grafana endpoint for streaming audit logs
- grafana
User string - Grafana user for streaming audit logs
- splunk
Hecendpoint string - Splunk endpoint for streaming audit logs
- datadog_
region str - Datadog region for streaming audit logs
- grafana_
endpoint str - Grafana endpoint for streaming audit logs
- grafana_
user str - Grafana user for streaming audit logs
- splunk_
hecendpoint str - Splunk endpoint for streaming audit logs
- datadog
Region String - Datadog region for streaming audit logs
- grafana
Endpoint String - Grafana endpoint for streaming audit logs
- grafana
User String - Grafana user for streaming audit logs
- splunk
Hecendpoint String - Splunk endpoint for streaming audit logs
GetVaultClusterMajorVersionUpgradeConfig
- Maintenance
Window stringDay - Maintenance
Window stringTime - Upgrade
Type string
- Maintenance
Window stringDay - Maintenance
Window stringTime - Upgrade
Type string
- maintenance
Window StringDay - maintenance
Window StringTime - upgrade
Type String
- maintenance
Window stringDay - maintenance
Window stringTime - upgrade
Type string
- maintenance
Window StringDay - maintenance
Window StringTime - upgrade
Type String
GetVaultClusterMetricsConfig
- Datadog
Region string - Datadog region for streaming metrics
- Grafana
Endpoint string - Grafana endpoint for streaming metrics
- Grafana
User string - Grafana user for streaming metrics
- Splunk
Hecendpoint string - Splunk endpoint for streaming metrics
- Datadog
Region string - Datadog region for streaming metrics
- Grafana
Endpoint string - Grafana endpoint for streaming metrics
- Grafana
User string - Grafana user for streaming metrics
- Splunk
Hecendpoint string - Splunk endpoint for streaming metrics
- datadog
Region String - Datadog region for streaming metrics
- grafana
Endpoint String - Grafana endpoint for streaming metrics
- grafana
User String - Grafana user for streaming metrics
- splunk
Hecendpoint String - Splunk endpoint for streaming metrics
- datadog
Region string - Datadog region for streaming metrics
- grafana
Endpoint string - Grafana endpoint for streaming metrics
- grafana
User string - Grafana user for streaming metrics
- splunk
Hecendpoint string - Splunk endpoint for streaming metrics
- datadog_
region str - Datadog region for streaming metrics
- grafana_
endpoint str - Grafana endpoint for streaming metrics
- grafana_
user str - Grafana user for streaming metrics
- splunk_
hecendpoint str - Splunk endpoint for streaming metrics
- datadog
Region String - Datadog region for streaming metrics
- grafana
Endpoint String - Grafana endpoint for streaming metrics
- grafana
User String - Grafana user for streaming metrics
- splunk
Hecendpoint String - Splunk endpoint for streaming metrics
Package Details
- Repository
- hcp grapl-security/pulumi-hcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
hcp
Terraform Provider.
HashiCorp Cloud Platform (HCP) v0.1.14 published on Friday, Dec 2, 2022 by Grapl Security