Harness v0.5.7 published on Saturday, Mar 8, 2025 by Pulumi
harness.platform.getVaultConnector
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.platform.getVaultConnector({
    identifier: "identifier",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.get_vault_connector(identifier="identifier")
package main
import (
	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := platform.LookupVaultConnector(ctx, &platform.LookupVaultConnectorArgs{
			Identifier: "identifier",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() => 
{
    var example = Harness.Platform.GetVaultConnector.Invoke(new()
    {
        Identifier = "identifier",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetVaultConnectorArgs;
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 = PlatformFunctions.getVaultConnector(GetVaultConnectorArgs.builder()
            .identifier("identifier")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: harness:platform:getVaultConnector
      arguments:
        identifier: identifier
Using getVaultConnector
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 getVaultConnector(args: GetVaultConnectorArgs, opts?: InvokeOptions): Promise<GetVaultConnectorResult>
function getVaultConnectorOutput(args: GetVaultConnectorOutputArgs, opts?: InvokeOptions): Output<GetVaultConnectorResult>def get_vault_connector(identifier: Optional[str] = None,
                        name: Optional[str] = None,
                        org_id: Optional[str] = None,
                        project_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVaultConnectorResult
def get_vault_connector_output(identifier: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        org_id: Optional[pulumi.Input[str]] = None,
                        project_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetVaultConnectorResult]func LookupVaultConnector(ctx *Context, args *LookupVaultConnectorArgs, opts ...InvokeOption) (*LookupVaultConnectorResult, error)
func LookupVaultConnectorOutput(ctx *Context, args *LookupVaultConnectorOutputArgs, opts ...InvokeOption) LookupVaultConnectorResultOutput> Note: This function is named LookupVaultConnector in the Go SDK.
public static class GetVaultConnector 
{
    public static Task<GetVaultConnectorResult> InvokeAsync(GetVaultConnectorArgs args, InvokeOptions? opts = null)
    public static Output<GetVaultConnectorResult> Invoke(GetVaultConnectorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVaultConnectorResult> getVaultConnector(GetVaultConnectorArgs args, InvokeOptions options)
public static Output<GetVaultConnectorResult> getVaultConnector(GetVaultConnectorArgs args, InvokeOptions options)
fn::invoke:
  function: harness:platform/getVaultConnector:getVaultConnector
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- orgId string
- Unique identifier of the organization.
- projectId string
- Unique identifier of the project.
- identifier str
- Unique identifier of the resource.
- name str
- Name of the resource.
- org_id str
- Unique identifier of the organization.
- project_id str
- Unique identifier of the project.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
getVaultConnector Result
The following output properties are available:
- AccessType string
- Access type.
- AppRole stringId 
- ID of App Role.
- AuthToken string
- The authentication token for Vault.
- AwsRegion string
- The AWS region where AWS IAM auth will happen.
- BasePath string
- The location of the Vault directory where Secret will be stored.
- Default bool
- Is default or not.
- DelegateSelectors List<string>
- List of Delegate Selectors that belong to the same Delegate and are used to connect to the Secret Manager.
- Description string
- Description of the resource.
- ExecuteOn boolDelegate 
- Execute on delegate or not.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- IsDefault bool
- Is default or not.
- IsRead boolOnly 
- Read only or not.
- K8sAuth stringEndpoint 
- The path where kubernetes auth is enabled in Vault.
- Namespace string
- The Vault namespace where Secret will be created.
- ReadOnly bool
- Read only.
- RenewApp boolRole Token 
- Boolean value to indicate if appRole token renewal is enabled or not.
- RenewalInterval intMinutes 
- The time interval for token renewal.
- SecretEngine boolManually Configured 
- Manually entered Secret Engine.
- SecretEngine stringName 
- Name of the Secret Engine.
- SecretEngine intVersion 
- Version of Secret Engine.
- SecretId string
- ID of the Secret.
- ServiceAccount stringToken Path 
- The SA token path where the token is mounted in the K8s Pod.
- SinkPath string
- The location at which auth token is to be read from.
- List<string>
- Tags to associate with the resource.
- UseAws boolIam 
- Boolean value to indicate if AWS IAM is used for authentication.
- UseJwt boolAuth 
- Boolean value to indicate if JWT is used for authentication.
- UseK8s boolAuth 
- Boolean value to indicate if K8s Auth is used for authentication.
- UseVault boolAgent 
- Boolean value to indicate if Vault Agent is used for authentication.
- VaultAws stringIam Role 
- The Vault role defined to bind to AWS IAM account/role being accessed.
- VaultJwt stringAuth Path 
- Custom path at with JWT auth in enabled for Vault.
- VaultJwt stringAuth Role 
- The Vault role defined with JWT auth type for accessing Vault as per policies binded.
- VaultK8s stringAuth Role 
- The role where K8s auth will happen.
- VaultUrl string
- URL of the HashiCorp Vault.
- XvaultAws stringIam Server Id 
- The AWS IAM Header Server ID that has been configured for this AWS IAM instance.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- AccessType string
- Access type.
- AppRole stringId 
- ID of App Role.
- AuthToken string
- The authentication token for Vault.
- AwsRegion string
- The AWS region where AWS IAM auth will happen.
- BasePath string
- The location of the Vault directory where Secret will be stored.
- Default bool
- Is default or not.
- DelegateSelectors []string
- List of Delegate Selectors that belong to the same Delegate and are used to connect to the Secret Manager.
- Description string
- Description of the resource.
- ExecuteOn boolDelegate 
- Execute on delegate or not.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- IsDefault bool
- Is default or not.
- IsRead boolOnly 
- Read only or not.
- K8sAuth stringEndpoint 
- The path where kubernetes auth is enabled in Vault.
- Namespace string
- The Vault namespace where Secret will be created.
- ReadOnly bool
- Read only.
- RenewApp boolRole Token 
- Boolean value to indicate if appRole token renewal is enabled or not.
- RenewalInterval intMinutes 
- The time interval for token renewal.
- SecretEngine boolManually Configured 
- Manually entered Secret Engine.
- SecretEngine stringName 
- Name of the Secret Engine.
- SecretEngine intVersion 
- Version of Secret Engine.
- SecretId string
- ID of the Secret.
- ServiceAccount stringToken Path 
- The SA token path where the token is mounted in the K8s Pod.
- SinkPath string
- The location at which auth token is to be read from.
- []string
- Tags to associate with the resource.
- UseAws boolIam 
- Boolean value to indicate if AWS IAM is used for authentication.
- UseJwt boolAuth 
- Boolean value to indicate if JWT is used for authentication.
- UseK8s boolAuth 
- Boolean value to indicate if K8s Auth is used for authentication.
- UseVault boolAgent 
- Boolean value to indicate if Vault Agent is used for authentication.
- VaultAws stringIam Role 
- The Vault role defined to bind to AWS IAM account/role being accessed.
- VaultJwt stringAuth Path 
- Custom path at with JWT auth in enabled for Vault.
- VaultJwt stringAuth Role 
- The Vault role defined with JWT auth type for accessing Vault as per policies binded.
- VaultK8s stringAuth Role 
- The role where K8s auth will happen.
- VaultUrl string
- URL of the HashiCorp Vault.
- XvaultAws stringIam Server Id 
- The AWS IAM Header Server ID that has been configured for this AWS IAM instance.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- accessType String
- Access type.
- appRole StringId 
- ID of App Role.
- authToken String
- The authentication token for Vault.
- awsRegion String
- The AWS region where AWS IAM auth will happen.
- basePath String
- The location of the Vault directory where Secret will be stored.
- default_ Boolean
- Is default or not.
- delegateSelectors List<String>
- List of Delegate Selectors that belong to the same Delegate and are used to connect to the Secret Manager.
- description String
- Description of the resource.
- executeOn BooleanDelegate 
- Execute on delegate or not.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- isDefault Boolean
- Is default or not.
- isRead BooleanOnly 
- Read only or not.
- k8sAuth StringEndpoint 
- The path where kubernetes auth is enabled in Vault.
- namespace String
- The Vault namespace where Secret will be created.
- readOnly Boolean
- Read only.
- renewApp BooleanRole Token 
- Boolean value to indicate if appRole token renewal is enabled or not.
- renewalInterval IntegerMinutes 
- The time interval for token renewal.
- secretEngine BooleanManually Configured 
- Manually entered Secret Engine.
- secretEngine StringName 
- Name of the Secret Engine.
- secretEngine IntegerVersion 
- Version of Secret Engine.
- secretId String
- ID of the Secret.
- serviceAccount StringToken Path 
- The SA token path where the token is mounted in the K8s Pod.
- sinkPath String
- The location at which auth token is to be read from.
- List<String>
- Tags to associate with the resource.
- useAws BooleanIam 
- Boolean value to indicate if AWS IAM is used for authentication.
- useJwt BooleanAuth 
- Boolean value to indicate if JWT is used for authentication.
- useK8s BooleanAuth 
- Boolean value to indicate if K8s Auth is used for authentication.
- useVault BooleanAgent 
- Boolean value to indicate if Vault Agent is used for authentication.
- vaultAws StringIam Role 
- The Vault role defined to bind to AWS IAM account/role being accessed.
- vaultJwt StringAuth Path 
- Custom path at with JWT auth in enabled for Vault.
- vaultJwt StringAuth Role 
- The Vault role defined with JWT auth type for accessing Vault as per policies binded.
- vaultK8s StringAuth Role 
- The role where K8s auth will happen.
- vaultUrl String
- URL of the HashiCorp Vault.
- xvaultAws StringIam Server Id 
- The AWS IAM Header Server ID that has been configured for this AWS IAM instance.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- accessType string
- Access type.
- appRole stringId 
- ID of App Role.
- authToken string
- The authentication token for Vault.
- awsRegion string
- The AWS region where AWS IAM auth will happen.
- basePath string
- The location of the Vault directory where Secret will be stored.
- default boolean
- Is default or not.
- delegateSelectors string[]
- List of Delegate Selectors that belong to the same Delegate and are used to connect to the Secret Manager.
- description string
- Description of the resource.
- executeOn booleanDelegate 
- Execute on delegate or not.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the resource.
- isDefault boolean
- Is default or not.
- isRead booleanOnly 
- Read only or not.
- k8sAuth stringEndpoint 
- The path where kubernetes auth is enabled in Vault.
- namespace string
- The Vault namespace where Secret will be created.
- readOnly boolean
- Read only.
- renewApp booleanRole Token 
- Boolean value to indicate if appRole token renewal is enabled or not.
- renewalInterval numberMinutes 
- The time interval for token renewal.
- secretEngine booleanManually Configured 
- Manually entered Secret Engine.
- secretEngine stringName 
- Name of the Secret Engine.
- secretEngine numberVersion 
- Version of Secret Engine.
- secretId string
- ID of the Secret.
- serviceAccount stringToken Path 
- The SA token path where the token is mounted in the K8s Pod.
- sinkPath string
- The location at which auth token is to be read from.
- string[]
- Tags to associate with the resource.
- useAws booleanIam 
- Boolean value to indicate if AWS IAM is used for authentication.
- useJwt booleanAuth 
- Boolean value to indicate if JWT is used for authentication.
- useK8s booleanAuth 
- Boolean value to indicate if K8s Auth is used for authentication.
- useVault booleanAgent 
- Boolean value to indicate if Vault Agent is used for authentication.
- vaultAws stringIam Role 
- The Vault role defined to bind to AWS IAM account/role being accessed.
- vaultJwt stringAuth Path 
- Custom path at with JWT auth in enabled for Vault.
- vaultJwt stringAuth Role 
- The Vault role defined with JWT auth type for accessing Vault as per policies binded.
- vaultK8s stringAuth Role 
- The role where K8s auth will happen.
- vaultUrl string
- URL of the HashiCorp Vault.
- xvaultAws stringIam Server Id 
- The AWS IAM Header Server ID that has been configured for this AWS IAM instance.
- name string
- Name of the resource.
- orgId string
- Unique identifier of the organization.
- projectId string
- Unique identifier of the project.
- access_type str
- Access type.
- app_role_ strid 
- ID of App Role.
- auth_token str
- The authentication token for Vault.
- aws_region str
- The AWS region where AWS IAM auth will happen.
- base_path str
- The location of the Vault directory where Secret will be stored.
- default bool
- Is default or not.
- delegate_selectors Sequence[str]
- List of Delegate Selectors that belong to the same Delegate and are used to connect to the Secret Manager.
- description str
- Description of the resource.
- execute_on_ booldelegate 
- Execute on delegate or not.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Unique identifier of the resource.
- is_default bool
- Is default or not.
- is_read_ boolonly 
- Read only or not.
- k8s_auth_ strendpoint 
- The path where kubernetes auth is enabled in Vault.
- namespace str
- The Vault namespace where Secret will be created.
- read_only bool
- Read only.
- renew_app_ boolrole_ token 
- Boolean value to indicate if appRole token renewal is enabled or not.
- renewal_interval_ intminutes 
- The time interval for token renewal.
- secret_engine_ boolmanually_ configured 
- Manually entered Secret Engine.
- secret_engine_ strname 
- Name of the Secret Engine.
- secret_engine_ intversion 
- Version of Secret Engine.
- secret_id str
- ID of the Secret.
- service_account_ strtoken_ path 
- The SA token path where the token is mounted in the K8s Pod.
- sink_path str
- The location at which auth token is to be read from.
- Sequence[str]
- Tags to associate with the resource.
- use_aws_ booliam 
- Boolean value to indicate if AWS IAM is used for authentication.
- use_jwt_ boolauth 
- Boolean value to indicate if JWT is used for authentication.
- use_k8s_ boolauth 
- Boolean value to indicate if K8s Auth is used for authentication.
- use_vault_ boolagent 
- Boolean value to indicate if Vault Agent is used for authentication.
- vault_aws_ striam_ role 
- The Vault role defined to bind to AWS IAM account/role being accessed.
- vault_jwt_ strauth_ path 
- Custom path at with JWT auth in enabled for Vault.
- vault_jwt_ strauth_ role 
- The Vault role defined with JWT auth type for accessing Vault as per policies binded.
- vault_k8s_ strauth_ role 
- The role where K8s auth will happen.
- vault_url str
- URL of the HashiCorp Vault.
- xvault_aws_ striam_ server_ id 
- The AWS IAM Header Server ID that has been configured for this AWS IAM instance.
- name str
- Name of the resource.
- org_id str
- Unique identifier of the organization.
- project_id str
- Unique identifier of the project.
- accessType String
- Access type.
- appRole StringId 
- ID of App Role.
- authToken String
- The authentication token for Vault.
- awsRegion String
- The AWS region where AWS IAM auth will happen.
- basePath String
- The location of the Vault directory where Secret will be stored.
- default Boolean
- Is default or not.
- delegateSelectors List<String>
- List of Delegate Selectors that belong to the same Delegate and are used to connect to the Secret Manager.
- description String
- Description of the resource.
- executeOn BooleanDelegate 
- Execute on delegate or not.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- isDefault Boolean
- Is default or not.
- isRead BooleanOnly 
- Read only or not.
- k8sAuth StringEndpoint 
- The path where kubernetes auth is enabled in Vault.
- namespace String
- The Vault namespace where Secret will be created.
- readOnly Boolean
- Read only.
- renewApp BooleanRole Token 
- Boolean value to indicate if appRole token renewal is enabled or not.
- renewalInterval NumberMinutes 
- The time interval for token renewal.
- secretEngine BooleanManually Configured 
- Manually entered Secret Engine.
- secretEngine StringName 
- Name of the Secret Engine.
- secretEngine NumberVersion 
- Version of Secret Engine.
- secretId String
- ID of the Secret.
- serviceAccount StringToken Path 
- The SA token path where the token is mounted in the K8s Pod.
- sinkPath String
- The location at which auth token is to be read from.
- List<String>
- Tags to associate with the resource.
- useAws BooleanIam 
- Boolean value to indicate if AWS IAM is used for authentication.
- useJwt BooleanAuth 
- Boolean value to indicate if JWT is used for authentication.
- useK8s BooleanAuth 
- Boolean value to indicate if K8s Auth is used for authentication.
- useVault BooleanAgent 
- Boolean value to indicate if Vault Agent is used for authentication.
- vaultAws StringIam Role 
- The Vault role defined to bind to AWS IAM account/role being accessed.
- vaultJwt StringAuth Path 
- Custom path at with JWT auth in enabled for Vault.
- vaultJwt StringAuth Role 
- The Vault role defined with JWT auth type for accessing Vault as per policies binded.
- vaultK8s StringAuth Role 
- The role where K8s auth will happen.
- vaultUrl String
- URL of the HashiCorp Vault.
- xvaultAws StringIam Server Id 
- The AWS IAM Header Server ID that has been configured for this AWS IAM instance.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
