1. Packages
  2. Ionoscloud
  3. API Docs
  4. cert
  5. getAutoCertificateProvider
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

ionoscloud.cert.getAutoCertificateProvider

Explore with Pulumi AI

ionoscloud logo
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

    The CM Provider data source can be used to search for and return an existing certificate manager provider. You can provide a string for either id or name parameters which will be compared with provisioned providers. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.

    Example Usage

    By ID

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.cert.getAutoCertificateProvider({
        id: "provider_id",
        location: "provider_location",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.cert.get_auto_certificate_provider(id="provider_id",
        location="provider_location")
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/cert"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cert.LookupAutoCertificateProvider(ctx, &cert.LookupAutoCertificateProviderArgs{
    			Id:       pulumi.StringRef("provider_id"),
    			Location: pulumi.StringRef("provider_location"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.Cert.GetAutoCertificateProvider.Invoke(new()
        {
            Id = "provider_id",
            Location = "provider_location",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.cert.CertFunctions;
    import com.pulumi.ionoscloud.cert.inputs.GetAutoCertificateProviderArgs;
    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 = CertFunctions.getAutoCertificateProvider(GetAutoCertificateProviderArgs.builder()
                .id("provider_id")
                .location("provider_location")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:cert:getAutoCertificateProvider
          arguments:
            id: provider_id
            location: provider_location
    

    By Name

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const example = ionoscloud.cert.getAutoCertificateProvider({
        name: "Provider Name Example",
        location: "provider_location",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.cert.get_auto_certificate_provider(name="Provider Name Example",
        location="provider_location")
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/cert"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cert.LookupAutoCertificateProvider(ctx, &cert.LookupAutoCertificateProviderArgs{
    			Name:     pulumi.StringRef("Provider Name Example"),
    			Location: pulumi.StringRef("provider_location"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Ionoscloud.Cert.GetAutoCertificateProvider.Invoke(new()
        {
            Name = "Provider Name Example",
            Location = "provider_location",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.cert.CertFunctions;
    import com.pulumi.ionoscloud.cert.inputs.GetAutoCertificateProviderArgs;
    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 = CertFunctions.getAutoCertificateProvider(GetAutoCertificateProviderArgs.builder()
                .name("Provider Name Example")
                .location("provider_location")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ionoscloud:cert:getAutoCertificateProvider
          arguments:
            name: Provider Name Example
            location: provider_location
    

    Using getAutoCertificateProvider

    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 getAutoCertificateProvider(args: GetAutoCertificateProviderArgs, opts?: InvokeOptions): Promise<GetAutoCertificateProviderResult>
    function getAutoCertificateProviderOutput(args: GetAutoCertificateProviderOutputArgs, opts?: InvokeOptions): Output<GetAutoCertificateProviderResult>
    def get_auto_certificate_provider(id: Optional[str] = None,
                                      location: Optional[str] = None,
                                      name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetAutoCertificateProviderResult
    def get_auto_certificate_provider_output(id: Optional[pulumi.Input[str]] = None,
                                      location: Optional[pulumi.Input[str]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetAutoCertificateProviderResult]
    func LookupAutoCertificateProvider(ctx *Context, args *LookupAutoCertificateProviderArgs, opts ...InvokeOption) (*LookupAutoCertificateProviderResult, error)
    func LookupAutoCertificateProviderOutput(ctx *Context, args *LookupAutoCertificateProviderOutputArgs, opts ...InvokeOption) LookupAutoCertificateProviderResultOutput

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

    public static class GetAutoCertificateProvider 
    {
        public static Task<GetAutoCertificateProviderResult> InvokeAsync(GetAutoCertificateProviderArgs args, InvokeOptions? opts = null)
        public static Output<GetAutoCertificateProviderResult> Invoke(GetAutoCertificateProviderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAutoCertificateProviderResult> getAutoCertificateProvider(GetAutoCertificateProviderArgs args, InvokeOptions options)
    public static Output<GetAutoCertificateProviderResult> getAutoCertificateProvider(GetAutoCertificateProviderArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ionoscloud:cert/getAutoCertificateProvider:getAutoCertificateProvider
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string

    [string] ID of the provider you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    Location string
    [string] The location of the provider.
    Name string
    [string] Name of an existing provider that you want to search for.
    Id string

    [string] ID of the provider you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    Location string
    [string] The location of the provider.
    Name string
    [string] Name of an existing provider that you want to search for.
    id String

    [string] ID of the provider you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    location String
    [string] The location of the provider.
    name String
    [string] Name of an existing provider that you want to search for.
    id string

    [string] ID of the provider you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    location string
    [string] The location of the provider.
    name string
    [string] Name of an existing provider that you want to search for.
    id str

    [string] ID of the provider you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    location str
    [string] The location of the provider.
    name str
    [string] Name of an existing provider that you want to search for.
    id String

    [string] ID of the provider you want to search for.

    Either name or id must be provided. If none, or both are provided, the datasource will return an error.

    location String
    [string] The location of the provider.
    name String
    [string] Name of an existing provider that you want to search for.

    getAutoCertificateProvider Result

    The following output properties are available:

    Email string
    [string] The email address of the certificate requester.
    ExternalAccountBindings List<Ionoscloud.GetAutoCertificateProviderExternalAccountBinding>
    [list]
    Id string
    Name string
    Server string
    [string] The URL of the certificate provider.
    Location string
    Email string
    [string] The email address of the certificate requester.
    ExternalAccountBindings []GetAutoCertificateProviderExternalAccountBinding
    [list]
    Id string
    Name string
    Server string
    [string] The URL of the certificate provider.
    Location string
    email String
    [string] The email address of the certificate requester.
    externalAccountBindings List<GetAutoCertificateProviderExternalAccountBinding>
    [list]
    id String
    name String
    server String
    [string] The URL of the certificate provider.
    location String
    email string
    [string] The email address of the certificate requester.
    externalAccountBindings GetAutoCertificateProviderExternalAccountBinding[]
    [list]
    id string
    name string
    server string
    [string] The URL of the certificate provider.
    location string
    email str
    [string] The email address of the certificate requester.
    external_account_bindings Sequence[GetAutoCertificateProviderExternalAccountBinding]
    [list]
    id str
    name str
    server str
    [string] The URL of the certificate provider.
    location str
    email String
    [string] The email address of the certificate requester.
    externalAccountBindings List<Property Map>
    [list]
    id String
    name String
    server String
    [string] The URL of the certificate provider.
    location String

    Supporting Types

    GetAutoCertificateProviderExternalAccountBinding

    KeyId string
    [string] The key ID of the external account binding.
    KeyId string
    [string] The key ID of the external account binding.
    keyId String
    [string] The key ID of the external account binding.
    keyId string
    [string] The key ID of the external account binding.
    key_id str
    [string] The key ID of the external account binding.
    keyId String
    [string] The key ID of the external account binding.

    Package Details

    Repository
    ionoscloud ionos-cloud/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud