ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getHpcsVault
Explore with Pulumi AI
Provides a read-only data source for vault. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const vault = ibm.getHpcsVault({
    instanceId: "76195d24-8a31-4c6d-9050-c35f09375cfb",
    region: "us-east",
    vaultId: "5295ad47-2ce9-43c3-b9e7-e5a9482c362b",
});
import pulumi
import pulumi_ibm as ibm
vault = ibm.get_hpcs_vault(instance_id="76195d24-8a31-4c6d-9050-c35f09375cfb",
    region="us-east",
    vault_id="5295ad47-2ce9-43c3-b9e7-e5a9482c362b")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.LookupHpcsVault(ctx, &ibm.LookupHpcsVaultArgs{
			InstanceId: "76195d24-8a31-4c6d-9050-c35f09375cfb",
			Region:     "us-east",
			VaultId:    "5295ad47-2ce9-43c3-b9e7-e5a9482c362b",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() => 
{
    var vault = Ibm.GetHpcsVault.Invoke(new()
    {
        InstanceId = "76195d24-8a31-4c6d-9050-c35f09375cfb",
        Region = "us-east",
        VaultId = "5295ad47-2ce9-43c3-b9e7-e5a9482c362b",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetHpcsVaultArgs;
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 vault = IbmFunctions.getHpcsVault(GetHpcsVaultArgs.builder()
            .instanceId("76195d24-8a31-4c6d-9050-c35f09375cfb")
            .region("us-east")
            .vaultId("5295ad47-2ce9-43c3-b9e7-e5a9482c362b")
            .build());
    }
}
variables:
  vault:
    fn::invoke:
      function: ibm:getHpcsVault
      arguments:
        instanceId: 76195d24-8a31-4c6d-9050-c35f09375cfb
        region: us-east
        vaultId: 5295ad47-2ce9-43c3-b9e7-e5a9482c362b
Using getHpcsVault
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 getHpcsVault(args: GetHpcsVaultArgs, opts?: InvokeOptions): Promise<GetHpcsVaultResult>
function getHpcsVaultOutput(args: GetHpcsVaultOutputArgs, opts?: InvokeOptions): Output<GetHpcsVaultResult>def get_hpcs_vault(id: Optional[str] = None,
                   instance_id: Optional[str] = None,
                   region: Optional[str] = None,
                   vault_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetHpcsVaultResult
def get_hpcs_vault_output(id: Optional[pulumi.Input[str]] = None,
                   instance_id: Optional[pulumi.Input[str]] = None,
                   region: Optional[pulumi.Input[str]] = None,
                   vault_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetHpcsVaultResult]func LookupHpcsVault(ctx *Context, args *LookupHpcsVaultArgs, opts ...InvokeOption) (*LookupHpcsVaultResult, error)
func LookupHpcsVaultOutput(ctx *Context, args *LookupHpcsVaultOutputArgs, opts ...InvokeOption) LookupHpcsVaultResultOutput> Note: This function is named LookupHpcsVault in the Go SDK.
public static class GetHpcsVault 
{
    public static Task<GetHpcsVaultResult> InvokeAsync(GetHpcsVaultArgs args, InvokeOptions? opts = null)
    public static Output<GetHpcsVaultResult> Invoke(GetHpcsVaultInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHpcsVaultResult> getHpcsVault(GetHpcsVaultArgs args, InvokeOptions options)
public static Output<GetHpcsVaultResult> getHpcsVault(GetHpcsVaultArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getHpcsVault:getHpcsVault
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Id string - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
 
 - Region string
 - Region of the UKO Instance
- Constraints: Allowable values are: 
au-syd,in-che,jp-osa,jp-tok,kr-seo,eu-de,eu-gb,ca-tor,us-south,us-south-test,us-east,br-sao. 
 - Constraints: Allowable values are: 
 - Vault
Id string - UUID of the vault.
 - Id string
 
- Instance
Id string - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
 
 - Region string
 - Region of the UKO Instance
- Constraints: Allowable values are: 
au-syd,in-che,jp-osa,jp-tok,kr-seo,eu-de,eu-gb,ca-tor,us-south,us-south-test,us-east,br-sao. 
 - Constraints: Allowable values are: 
 - Vault
Id string - UUID of the vault.
 - Id string
 
- instance
Id String - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
 
 - region String
 - Region of the UKO Instance
- Constraints: Allowable values are: 
au-syd,in-che,jp-osa,jp-tok,kr-seo,eu-de,eu-gb,ca-tor,us-south,us-south-test,us-east,br-sao. 
 - Constraints: Allowable values are: 
 - vault
Id String - UUID of the vault.
 - id String
 
- instance
Id string - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
 
 - region string
 - Region of the UKO Instance
- Constraints: Allowable values are: 
au-syd,in-che,jp-osa,jp-tok,kr-seo,eu-de,eu-gb,ca-tor,us-south,us-south-test,us-east,br-sao. 
 - Constraints: Allowable values are: 
 - vault
Id string - UUID of the vault.
 - id string
 
- instance_
id str - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
 
 - region str
 - Region of the UKO Instance
- Constraints: Allowable values are: 
au-syd,in-che,jp-osa,jp-tok,kr-seo,eu-de,eu-gb,ca-tor,us-south,us-south-test,us-east,br-sao. 
 - Constraints: Allowable values are: 
 - vault_
id str - UUID of the vault.
 - id str
 
- instance
Id String - ID of UKO Instance
- Constraints: Must match the ID of the UKO instance you are trying to work with.
 
 - region String
 - Region of the UKO Instance
- Constraints: Allowable values are: 
au-syd,in-che,jp-osa,jp-tok,kr-seo,eu-de,eu-gb,ca-tor,us-south,us-south-test,us-east,br-sao. 
 - Constraints: Allowable values are: 
 - vault
Id String - UUID of the vault.
 - id String
 
getHpcsVault Result
The following output properties are available:
- Created
At string - (String) Date and time when the vault was created.
 - Created
By string - (String) ID of the user that created the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$%'_-]*$/. 
 - Constraints: The maximum length is 
 - Description string
 - (Required, String) Description of the vault.
- Constraints: The maximum length is 
200characters. The minimum length is0characters. The value must match regular expression/.*/. 
 - Constraints: The maximum length is 
 - Href string
 - (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is 
200characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/. 
 - Constraints: The maximum length is 
 - Id string
 - Instance
Id string - Name string
 - (String) Name of the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - Region string
 - Updated
At string - (String) Date and time when the vault was last updated.
 - Updated
By string - (String) ID of the user that last updated the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - Vault
Id string - The unique identifier of the vault.
 
- Created
At string - (String) Date and time when the vault was created.
 - Created
By string - (String) ID of the user that created the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$%'_-]*$/. 
 - Constraints: The maximum length is 
 - Description string
 - (Required, String) Description of the vault.
- Constraints: The maximum length is 
200characters. The minimum length is0characters. The value must match regular expression/.*/. 
 - Constraints: The maximum length is 
 - Href string
 - (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is 
200characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/. 
 - Constraints: The maximum length is 
 - Id string
 - Instance
Id string - Name string
 - (String) Name of the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - Region string
 - Updated
At string - (String) Date and time when the vault was last updated.
 - Updated
By string - (String) ID of the user that last updated the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - Vault
Id string - The unique identifier of the vault.
 
- created
At String - (String) Date and time when the vault was created.
 - created
By String - (String) ID of the user that created the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$%'_-]*$/. 
 - Constraints: The maximum length is 
 - description String
 - (Required, String) Description of the vault.
- Constraints: The maximum length is 
200characters. The minimum length is0characters. The value must match regular expression/.*/. 
 - Constraints: The maximum length is 
 - href String
 - (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is 
200characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/. 
 - Constraints: The maximum length is 
 - id String
 - instance
Id String - name String
 - (String) Name of the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - region String
 - updated
At String - (String) Date and time when the vault was last updated.
 - updated
By String - (String) ID of the user that last updated the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - vault
Id String - The unique identifier of the vault.
 
- created
At string - (String) Date and time when the vault was created.
 - created
By string - (String) ID of the user that created the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$%'_-]*$/. 
 - Constraints: The maximum length is 
 - description string
 - (Required, String) Description of the vault.
- Constraints: The maximum length is 
200characters. The minimum length is0characters. The value must match regular expression/.*/. 
 - Constraints: The maximum length is 
 - href string
 - (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is 
200characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/. 
 - Constraints: The maximum length is 
 - id string
 - instance
Id string - name string
 - (String) Name of the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - region string
 - updated
At string - (String) Date and time when the vault was last updated.
 - updated
By string - (String) ID of the user that last updated the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - vault
Id string - The unique identifier of the vault.
 
- created_
at str - (String) Date and time when the vault was created.
 - created_
by str - (String) ID of the user that created the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$%'_-]*$/. 
 - Constraints: The maximum length is 
 - description str
 - (Required, String) Description of the vault.
- Constraints: The maximum length is 
200characters. The minimum length is0characters. The value must match regular expression/.*/. 
 - Constraints: The maximum length is 
 - href str
 - (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is 
200characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/. 
 - Constraints: The maximum length is 
 - id str
 - instance_
id str - name str
 - (String) Name of the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - region str
 - updated_
at str - (String) Date and time when the vault was last updated.
 - updated_
by str - (String) ID of the user that last updated the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - vault_
id str - The unique identifier of the vault.
 
- created
At String - (String) Date and time when the vault was created.
 - created
By String - (String) ID of the user that created the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$%'_-]*$/. 
 - Constraints: The maximum length is 
 - description String
 - (Required, String) Description of the vault.
- Constraints: The maximum length is 
200characters. The minimum length is0characters. The value must match regular expression/.*/. 
 - Constraints: The maximum length is 
 - href String
 - (String) A URL that uniquely identifies your cloud resource.
- Constraints: The maximum length is 
200characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._~:\/?&=-]+$/. 
 - Constraints: The maximum length is 
 - id String
 - instance
Id String - name String
 - (String) Name of the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - region String
 - updated
At String - (String) Date and time when the vault was last updated.
 - updated
By String - (String) ID of the user that last updated the vault.
- Constraints: The maximum length is 
100characters. The minimum length is1character. The value must match regular expression/^[A-Za-z][A-Za-z0-9#@!$% '_-]*$/. 
 - Constraints: The maximum length is 
 - vault
Id String - The unique identifier of the vault.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.