1. Packages
  2. Venafi
  3. API Docs
  4. getCloudProvider
Venafi v1.10.0 published on Wednesday, Jun 12, 2024 by Pulumi

venafi.getCloudProvider

Explore with Pulumi AI

venafi logo
Venafi v1.10.0 published on Wednesday, Jun 12, 2024 by Pulumi

    Use this data source to get the ID of a cloud provider in Venafi Control Plane, referenced by its name.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as venafi from "@pulumi/venafi";
    
    // Find a cloud provider
    const cpExample = venafi.getCloudProvider({
        name: "Cloud Provider Example",
    });
    
    import pulumi
    import pulumi_venafi as venafi
    
    # Find a cloud provider
    cp_example = venafi.get_cloud_provider(name="Cloud Provider 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 provider
    		_, err := venafi.GetCloudProvider(ctx, &venafi.GetCloudProviderArgs{
    			Name: "Cloud Provider 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 provider
        var cpExample = Venafi.GetCloudProvider.Invoke(new()
        {
            Name = "Cloud Provider 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.GetCloudProviderArgs;
    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 provider
            final var cpExample = VenafiFunctions.getCloudProvider(GetCloudProviderArgs.builder()
                .name("Cloud Provider Example")
                .build());
    
        }
    }
    
    variables:
      # Find a cloud provider
      cpExample:
        fn::invoke:
          Function: venafi:getCloudProvider
          Arguments:
            name: Cloud Provider Example
    

    Using getCloudProvider

    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 getCloudProvider(args: GetCloudProviderArgs, opts?: InvokeOptions): Promise<GetCloudProviderResult>
    function getCloudProviderOutput(args: GetCloudProviderOutputArgs, opts?: InvokeOptions): Output<GetCloudProviderResult>
    def get_cloud_provider(name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetCloudProviderResult
    def get_cloud_provider_output(name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetCloudProviderResult]
    func GetCloudProvider(ctx *Context, args *GetCloudProviderArgs, opts ...InvokeOption) (*GetCloudProviderResult, error)
    func GetCloudProviderOutput(ctx *Context, args *GetCloudProviderOutputArgs, opts ...InvokeOption) GetCloudProviderResultOutput

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

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

    The following arguments are supported:

    Name string
    Name of the Cloud Provider to look up.
    Name string
    Name of the Cloud Provider to look up.
    name String
    Name of the Cloud Provider to look up.
    name string
    Name of the Cloud Provider to look up.
    name str
    Name of the Cloud Provider to look up.
    name String
    Name of the Cloud Provider to look up.

    getCloudProvider Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    KeystoresCount int
    Number of Cloud Keystores configured with the Cloud Provider
    Name string
    Status string
    The status of the Cloud Provider. Either VALIDATED or NOT_VALIDATED.
    StatusDetails string
    The details of the Cloud Provider status. If the status is VALIDATED, this value will be empty.
    Type string
    The Cloud Provider type. Either AWS, AZURE or GCP
    Id string
    The provider-assigned unique ID for this managed resource.
    KeystoresCount int
    Number of Cloud Keystores configured with the Cloud Provider
    Name string
    Status string
    The status of the Cloud Provider. Either VALIDATED or NOT_VALIDATED.
    StatusDetails string
    The details of the Cloud Provider status. If the status is VALIDATED, this value will be empty.
    Type string
    The Cloud Provider type. Either AWS, AZURE or GCP
    id String
    The provider-assigned unique ID for this managed resource.
    keystoresCount Integer
    Number of Cloud Keystores configured with the Cloud Provider
    name String
    status String
    The status of the Cloud Provider. Either VALIDATED or NOT_VALIDATED.
    statusDetails String
    The details of the Cloud Provider status. If the status is VALIDATED, this value will be empty.
    type String
    The Cloud Provider type. Either AWS, AZURE or GCP
    id string
    The provider-assigned unique ID for this managed resource.
    keystoresCount number
    Number of Cloud Keystores configured with the Cloud Provider
    name string
    status string
    The status of the Cloud Provider. Either VALIDATED or NOT_VALIDATED.
    statusDetails string
    The details of the Cloud Provider status. If the status is VALIDATED, this value will be empty.
    type string
    The Cloud Provider type. Either AWS, AZURE or GCP
    id str
    The provider-assigned unique ID for this managed resource.
    keystores_count int
    Number of Cloud Keystores configured with the Cloud Provider
    name str
    status str
    The status of the Cloud Provider. Either VALIDATED or NOT_VALIDATED.
    status_details str
    The details of the Cloud Provider status. If the status is VALIDATED, this value will be empty.
    type str
    The Cloud Provider type. Either AWS, AZURE or GCP
    id String
    The provider-assigned unique ID for this managed resource.
    keystoresCount Number
    Number of Cloud Keystores configured with the Cloud Provider
    name String
    status String
    The status of the Cloud Provider. Either VALIDATED or NOT_VALIDATED.
    statusDetails String
    The details of the Cloud Provider status. If the status is VALIDATED, this value will be empty.
    type String
    The Cloud Provider type. Either AWS, AZURE or GCP

    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.0 published on Wednesday, Jun 12, 2024 by Pulumi