1. Packages
  2. Venafi Provider
  3. API Docs
  4. getCloudKeystore
Venafi v1.10.4 published on Wednesday, Oct 16, 2024 by Pulumi

venafi.getCloudKeystore

Explore with Pulumi AI

venafi logo
Venafi v1.10.4 published on Wednesday, Oct 16, 2024 by Pulumi

    Use this data source to get the ID of a cloud keystore in Venafi Control Plane, referenced by its name and parent cloud provider ID. You can use venafi.getCloudProvider data source to obtain the ID of the parent cloud provider.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as venafi from "@pulumi/venafi";
    
    // Find a cloud keystore with a static cloud provider id
    const ckExampleById = venafi.getCloudKeystore({
        cloudProviderId: "e48897d0-2762-11ef-8fab-79ac590dd358",
        name: "Cloud Keystore Example",
    });
    // Find a cloud keystore by using venafi_cloud_provider data source as input
    const ckExample = venafi.getCloudKeystore({
        cloudProviderId: cpExample.id,
        name: "Cloud Keystore example",
    });
    
    import pulumi
    import pulumi_venafi as venafi
    
    # Find a cloud keystore with a static cloud provider id
    ck_example_by_id = venafi.get_cloud_keystore(cloud_provider_id="e48897d0-2762-11ef-8fab-79ac590dd358",
        name="Cloud Keystore Example")
    # Find a cloud keystore by using venafi_cloud_provider data source as input
    ck_example = venafi.get_cloud_keystore(cloud_provider_id=cp_example["id"],
        name="Cloud Keystore example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-venafi/sdk/go/venafi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Find a cloud keystore with a static cloud provider id
    		_, err := venafi.GetCloudKeystore(ctx, &venafi.GetCloudKeystoreArgs{
    			CloudProviderId: "e48897d0-2762-11ef-8fab-79ac590dd358",
    			Name:            "Cloud Keystore Example",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		// Find a cloud keystore by using venafi_cloud_provider data source as input
    		_, err = venafi.GetCloudKeystore(ctx, &venafi.GetCloudKeystoreArgs{
    			CloudProviderId: cpExample.Id,
    			Name:            "Cloud Keystore example",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Venafi = Pulumi.Venafi;
    
    return await Deployment.RunAsync(() => 
    {
        // Find a cloud keystore with a static cloud provider id
        var ckExampleById = Venafi.GetCloudKeystore.Invoke(new()
        {
            CloudProviderId = "e48897d0-2762-11ef-8fab-79ac590dd358",
            Name = "Cloud Keystore Example",
        });
    
        // Find a cloud keystore by using venafi_cloud_provider data source as input
        var ckExample = Venafi.GetCloudKeystore.Invoke(new()
        {
            CloudProviderId = cpExample.Id,
            Name = "Cloud Keystore example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.venafi.VenafiFunctions;
    import com.pulumi.venafi.inputs.GetCloudKeystoreArgs;
    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) {
            // Find a cloud keystore with a static cloud provider id
            final var ckExampleById = VenafiFunctions.getCloudKeystore(GetCloudKeystoreArgs.builder()
                .cloudProviderId("e48897d0-2762-11ef-8fab-79ac590dd358")
                .name("Cloud Keystore Example")
                .build());
    
            // Find a cloud keystore by using venafi_cloud_provider data source as input
            final var ckExample = VenafiFunctions.getCloudKeystore(GetCloudKeystoreArgs.builder()
                .cloudProviderId(cpExample.id())
                .name("Cloud Keystore example")
                .build());
    
        }
    }
    
    variables:
      # Find a cloud keystore with a static cloud provider id
      ckExampleById:
        fn::invoke:
          Function: venafi:getCloudKeystore
          Arguments:
            cloudProviderId: e48897d0-2762-11ef-8fab-79ac590dd358
            name: Cloud Keystore Example
      # Find a cloud keystore by using venafi_cloud_provider data source as input
      ckExample:
        fn::invoke:
          Function: venafi:getCloudKeystore
          Arguments:
            cloudProviderId: ${cpExample.id}
            name: Cloud Keystore example
    

    Using getCloudKeystore

    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 getCloudKeystore(args: GetCloudKeystoreArgs, opts?: InvokeOptions): Promise<GetCloudKeystoreResult>
    function getCloudKeystoreOutput(args: GetCloudKeystoreOutputArgs, opts?: InvokeOptions): Output<GetCloudKeystoreResult>
    def get_cloud_keystore(cloud_provider_id: Optional[str] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetCloudKeystoreResult
    def get_cloud_keystore_output(cloud_provider_id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetCloudKeystoreResult]
    func GetCloudKeystore(ctx *Context, args *GetCloudKeystoreArgs, opts ...InvokeOption) (*GetCloudKeystoreResult, error)
    func GetCloudKeystoreOutput(ctx *Context, args *GetCloudKeystoreOutputArgs, opts ...InvokeOption) GetCloudKeystoreResultOutput

    > Note: This function is named GetCloudKeystore in the Go SDK.

    public static class GetCloudKeystore 
    {
        public static Task<GetCloudKeystoreResult> InvokeAsync(GetCloudKeystoreArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudKeystoreResult> Invoke(GetCloudKeystoreInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudKeystoreResult> getCloudKeystore(GetCloudKeystoreArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: venafi:index/getCloudKeystore:getCloudKeystore
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CloudProviderId string
    ID of the cloud provider whom the cloud keystore to look up belongs to.
    Name string
    Name of the cloud keystore to look up.
    CloudProviderId string
    ID of the cloud provider whom the cloud keystore to look up belongs to.
    Name string
    Name of the cloud keystore to look up.
    cloudProviderId String
    ID of the cloud provider whom the cloud keystore to look up belongs to.
    name String
    Name of the cloud keystore to look up.
    cloudProviderId string
    ID of the cloud provider whom the cloud keystore to look up belongs to.
    name string
    Name of the cloud keystore to look up.
    cloud_provider_id str
    ID of the cloud provider whom the cloud keystore to look up belongs to.
    name str
    Name of the cloud keystore to look up.
    cloudProviderId String
    ID of the cloud provider whom the cloud keystore to look up belongs to.
    name String
    Name of the cloud keystore to look up.

    getCloudKeystore Result

    The following output properties are available:

    CloudProviderId string
    Id string
    The provider-assigned unique ID for this managed resource.
    MachineIdentitiesCount int
    Number of machine identities provisioned to the cloud keystore.
    Name string
    Type string
    The cloud keystore type. Either ACM, AKV or GCM.
    CloudProviderId string
    Id string
    The provider-assigned unique ID for this managed resource.
    MachineIdentitiesCount int
    Number of machine identities provisioned to the cloud keystore.
    Name string
    Type string
    The cloud keystore type. Either ACM, AKV or GCM.
    cloudProviderId String
    id String
    The provider-assigned unique ID for this managed resource.
    machineIdentitiesCount Integer
    Number of machine identities provisioned to the cloud keystore.
    name String
    type String
    The cloud keystore type. Either ACM, AKV or GCM.
    cloudProviderId string
    id string
    The provider-assigned unique ID for this managed resource.
    machineIdentitiesCount number
    Number of machine identities provisioned to the cloud keystore.
    name string
    type string
    The cloud keystore type. Either ACM, AKV or GCM.
    cloud_provider_id str
    id str
    The provider-assigned unique ID for this managed resource.
    machine_identities_count int
    Number of machine identities provisioned to the cloud keystore.
    name str
    type str
    The cloud keystore type. Either ACM, AKV or GCM.
    cloudProviderId String
    id String
    The provider-assigned unique ID for this managed resource.
    machineIdentitiesCount Number
    Number of machine identities provisioned to the cloud keystore.
    name String
    type String
    The cloud keystore type. Either ACM, AKV or GCM.

    Package Details

    Repository
    Venafi pulumi/pulumi-venafi
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the venafi Terraform Provider.
    venafi logo
    Venafi v1.10.4 published on Wednesday, Oct 16, 2024 by Pulumi