Hetzner Cloud

v1.10.1 published on Wednesday, Aug 3, 2022 by Pulumi

getCertificates

Provides details about multiple Hetzner Cloud Certificates.

Example Usage

using Pulumi;
using HCloud = Pulumi.HCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var sampleCertificate1 = Output.Create(HCloud.GetCertificates.InvokeAsync(new HCloud.GetCertificatesArgs
        {
            WithSelector = "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, &GetCertificatesArgs{
			WithSelector: pulumi.StringRef("key=value"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var sampleCertificate1 = Output.of(HcloudFunctions.getCertificates(GetCertificatesArgs.builder()
            .withSelector("key=value")
            .build()));

    }
}
import pulumi
import pulumi_hcloud as hcloud

sample_certificate1 = hcloud.get_certificates(with_selector="key=value")
import * as pulumi from "@pulumi/pulumi";
import * as hcloud from "@pulumi/hcloud";

const sampleCertificate1 = pulumi.output(hcloud.getCertificates({
    withSelector: "key=value",
}));
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, object>
NotValidAfter string
NotValidBefore string
Type string
Name string
Certificate string
Created string
DomainNames []string
Fingerprint string
Id int
Labels map[string]interface{}
NotValidAfter string
NotValidBefore string
Type string
Name string
certificate String
created String
domainNames List<String>
fingerprint String
id Integer
labels Map<String,Object>
notValidAfter String
notValidBefore String
type String
name String
certificate string
created string
domainNames string[]
fingerprint string
id number
labels {[key: string]: any}
notValidAfter string
notValidBefore string
type string
name string
certificate str
created str
domain_names Sequence[str]
fingerprint str
id int
labels Mapping[str, Any]
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<Any>
notValidAfter String
notValidBefore String
type String
name String

Package Details

Repository
https://github.com/pulumi/pulumi-hcloud
License
Apache-2.0
Notes

This Pulumi package is based on the hcloud Terraform Provider.