1. Packages
  2. Hcloud Provider
  3. API Docs
  4. getCertificates
Hetzner Cloud v1.21.0 published on Tuesday, Nov 12, 2024 by Pulumi

hcloud.getCertificates

Explore with Pulumi AI

hcloud logo
Hetzner Cloud v1.21.0 published on Tuesday, Nov 12, 2024 by Pulumi

    Provides details about multiple Hetzner Cloud Certificates.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hcloud from "@pulumi/hcloud";
    
    const sampleCertificate1 = hcloud.getCertificates({
        withSelector: "key=value",
    });
    
    import pulumi
    import pulumi_hcloud as hcloud
    
    sample_certificate1 = hcloud.get_certificates(with_selector="key=value")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-hcloud/sdk/go/hcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hcloud.GetCertificates(ctx, &hcloud.GetCertificatesArgs{
    			WithSelector: pulumi.StringRef("key=value"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using HCloud = Pulumi.HCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var sampleCertificate1 = HCloud.GetCertificates.Invoke(new()
        {
            WithSelector = "key=value",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hcloud.HcloudFunctions;
    import com.pulumi.hcloud.inputs.GetCertificatesArgs;
    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 sampleCertificate1 = HcloudFunctions.getCertificates(GetCertificatesArgs.builder()
                .withSelector("key=value")
                .build());
    
        }
    }
    
    variables:
      sampleCertificate1:
        fn::invoke:
          Function: hcloud:getCertificates
          Arguments:
            withSelector: key=value
    

    Using getCertificates

    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 getCertificates(args: GetCertificatesArgs, opts?: InvokeOptions): Promise<GetCertificatesResult>
    function getCertificatesOutput(args: GetCertificatesOutputArgs, opts?: InvokeOptions): Output<GetCertificatesResult>
    def get_certificates(with_selector: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetCertificatesResult
    def get_certificates_output(with_selector: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetCertificatesResult]
    func GetCertificates(ctx *Context, args *GetCertificatesArgs, opts ...InvokeOption) (*GetCertificatesResult, error)
    func GetCertificatesOutput(ctx *Context, args *GetCertificatesOutputArgs, opts ...InvokeOption) GetCertificatesResultOutput

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

    public static class GetCertificates 
    {
        public static Task<GetCertificatesResult> InvokeAsync(GetCertificatesArgs args, InvokeOptions? opts = null)
        public static Output<GetCertificatesResult> Invoke(GetCertificatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCertificatesResult> getCertificates(GetCertificatesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: hcloud:index/getCertificates:getCertificates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getCertificates Result

    The following output properties are available:

    Certificates List<Pulumi.HCloud.Outputs.GetCertificatesCertificate>
    (list) List of all matching certificates. See data.hcloud_certificate for schema.
    Id string
    The provider-assigned unique ID for this managed resource.
    WithSelector string
    Certificates []GetCertificatesCertificate
    (list) List of all matching certificates. See data.hcloud_certificate for schema.
    Id string
    The provider-assigned unique ID for this managed resource.
    WithSelector string
    certificates List<GetCertificatesCertificate>
    (list) List of all matching certificates. See data.hcloud_certificate for schema.
    id String
    The provider-assigned unique ID for this managed resource.
    withSelector String
    certificates GetCertificatesCertificate[]
    (list) List of all matching certificates. See data.hcloud_certificate for schema.
    id string
    The provider-assigned unique ID for this managed resource.
    withSelector string
    certificates Sequence[GetCertificatesCertificate]
    (list) List of all matching certificates. See data.hcloud_certificate for schema.
    id str
    The provider-assigned unique ID for this managed resource.
    with_selector str
    certificates List<Property Map>
    (list) List of all matching certificates. See data.hcloud_certificate for schema.
    id String
    The provider-assigned unique ID for this managed resource.
    withSelector String

    Supporting Types

    GetCertificatesCertificate

    Certificate string
    Created string
    DomainNames List<string>
    Fingerprint string
    Id int
    Labels Dictionary<string, string>
    NotValidAfter string
    NotValidBefore string
    Type string
    Name string
    Certificate string
    Created string
    DomainNames []string
    Fingerprint string
    Id int
    Labels map[string]string
    NotValidAfter string
    NotValidBefore string
    Type string
    Name string
    certificate String
    created String
    domainNames List<String>
    fingerprint String
    id Integer
    labels Map<String,String>
    notValidAfter String
    notValidBefore String
    type String
    name String
    certificate string
    created string
    domainNames string[]
    fingerprint string
    id number
    labels {[key: string]: string}
    notValidAfter string
    notValidBefore string
    type string
    name string
    certificate str
    created str
    domain_names Sequence[str]
    fingerprint str
    id int
    labels Mapping[str, str]
    not_valid_after str
    not_valid_before str
    type str
    name str
    certificate String
    created String
    domainNames List<String>
    fingerprint String
    id Number
    labels Map<String>
    notValidAfter String
    notValidBefore String
    type String
    name String

    Package Details

    Repository
    Hetzner Cloud pulumi/pulumi-hcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the hcloud Terraform Provider.
    hcloud logo
    Hetzner Cloud v1.21.0 published on Tuesday, Nov 12, 2024 by Pulumi