Hetzner Cloud v1.28.0 published on Tuesday, Nov 11, 2025 by Pulumi
Hetzner Cloud v1.28.0 published on Tuesday, Nov 11, 2025 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)
public static Output<GetCertificatesResult> getCertificates(GetCertificatesArgs args, InvokeOptions options)
fn::invoke:
function: hcloud:index/getCertificates:getCertificates
arguments:
# arguments dictionaryThe following arguments are supported:
- With
Selector string - Label selector
- With
Selector string - Label selector
- with
Selector String - Label selector
- with
Selector string - Label selector
- with
Selector String - Label selector
getCertificates Result
The following output properties are available:
- Certificates
List<Pulumi.
HCloud. Outputs. Get Certificates Certificate> - (list) List of all matching certificates. See
data.hcloud_certificatefor schema. - Id string
- The provider-assigned unique ID for this managed resource.
- With
Selector string
- Certificates
[]Get
Certificates Certificate - (list) List of all matching certificates. See
data.hcloud_certificatefor schema. - Id string
- The provider-assigned unique ID for this managed resource.
- With
Selector string
- certificates
List<Get
Certificates Certificate> - (list) List of all matching certificates. See
data.hcloud_certificatefor schema. - id String
- The provider-assigned unique ID for this managed resource.
- with
Selector String
- certificates
Get
Certificates Certificate[] - (list) List of all matching certificates. See
data.hcloud_certificatefor schema. - id string
- The provider-assigned unique ID for this managed resource.
- with
Selector string
- certificates
Sequence[Get
Certificates Certificate] - (list) List of all matching certificates. See
data.hcloud_certificatefor 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_certificatefor schema. - id String
- The provider-assigned unique ID for this managed resource.
- with
Selector String
Supporting Types
GetCertificatesCertificate
- Certificate string
- Created string
- Domain
Names List<string> - Fingerprint string
- Id int
- Labels Dictionary<string, string>
- Not
Valid stringAfter - Not
Valid stringBefore - Type string
- Name string
- Certificate string
- Created string
- Domain
Names []string - Fingerprint string
- Id int
- Labels map[string]string
- Not
Valid stringAfter - Not
Valid stringBefore - Type string
- Name string
- certificate String
- created String
- domain
Names List<String> - fingerprint String
- id Integer
- labels Map<String,String>
- not
Valid StringAfter - not
Valid StringBefore - type String
- name String
- certificate string
- created string
- domain
Names string[] - fingerprint string
- id number
- labels {[key: string]: string}
- not
Valid stringAfter - not
Valid stringBefore - type string
- name string
- certificate str
- created str
- domain_
names Sequence[str] - fingerprint str
- id int
- labels Mapping[str, str]
- not_
valid_ strafter - not_
valid_ strbefore - type str
- name str
- certificate String
- created String
- domain
Names List<String> - fingerprint String
- id Number
- labels Map<String>
- not
Valid StringAfter - not
Valid StringBefore - type String
- name String
Package Details
- Repository
- Hetzner Cloud pulumi/pulumi-hcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
hcloudTerraform Provider.
Hetzner Cloud v1.28.0 published on Tuesday, Nov 11, 2025 by Pulumi
