cert

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoCertificate

type AutoCertificate struct {
	pulumi.CustomResourceState

	// [string] The common name (DNS) of the certificate to issue. The common name needs to be part of a zone in IONOS Cloud DNS.
	CommonName pulumi.StringOutput `pulumi:"commonName"`
	// [string] The key algorithm used to generate the certificate.
	KeyAlgorithm pulumi.StringOutput `pulumi:"keyAlgorithm"`
	// [string] The ID of the last certificate that was issued.
	LastIssuedCertificateId pulumi.StringOutput `pulumi:"lastIssuedCertificateId"`
	// [string] The location of the auto-certificate.
	Location pulumi.StringOutput `pulumi:"location"`
	// [string] A certificate name used for management purposes.
	Name pulumi.StringOutput `pulumi:"name"`
	// [string] The certificate provider used to issue the certificates.
	ProviderId pulumi.StringOutput `pulumi:"providerId"`
	// [list][string] Optional additional names to be added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS.
	SubjectAlternativeNames pulumi.StringArrayOutput `pulumi:"subjectAlternativeNames"`
}

Manages a **CM AutoCertificate**.

## Example Usage

```go 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 {
		example, err := cert.NewAutoCertificateProvider(ctx, "example", &cert.AutoCertificateProviderArgs{
			Name:     pulumi.String("Let's Encrypt"),
			Email:    pulumi.String("user@example.com"),
			Location: pulumi.String("de/fra"),
			Server:   pulumi.String("https://acme-v02.api.letsencrypt.org/directory"),
			ExternalAccountBinding: &cert.AutoCertificateProviderExternalAccountBindingArgs{
				KeyId:     pulumi.String("some-key-id"),
				KeySecret: pulumi.String("secret"),
			},
		})
		if err != nil {
			return err
		}
		_, err = cert.NewAutoCertificate(ctx, "example", &cert.AutoCertificateArgs{
			ProviderId:   example.ID(),
			CommonName:   pulumi.String("www.example.com"),
			Location:     example.Location,
			KeyAlgorithm: pulumi.String("rsa4096"),
			Name:         pulumi.String("My Auto renewed certificate"),
			SubjectAlternativeNames: pulumi.StringArray{
				pulumi.String("app.example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The resource can be imported using the `auto_certificate_id` and the `location`, separated by `:`, e.g.

```sh $ pulumi import ionoscloud:cert/autoCertificate:AutoCertificate example location:auto_certificate_id ```

func GetAutoCertificate

func GetAutoCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AutoCertificateState, opts ...pulumi.ResourceOption) (*AutoCertificate, error)

GetAutoCertificate gets an existing AutoCertificate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAutoCertificate

func NewAutoCertificate(ctx *pulumi.Context,
	name string, args *AutoCertificateArgs, opts ...pulumi.ResourceOption) (*AutoCertificate, error)

NewAutoCertificate registers a new resource with the given unique name, arguments, and options.

func (*AutoCertificate) ElementType

func (*AutoCertificate) ElementType() reflect.Type

func (*AutoCertificate) ToAutoCertificateOutput

func (i *AutoCertificate) ToAutoCertificateOutput() AutoCertificateOutput

func (*AutoCertificate) ToAutoCertificateOutputWithContext

func (i *AutoCertificate) ToAutoCertificateOutputWithContext(ctx context.Context) AutoCertificateOutput

type AutoCertificateArgs

type AutoCertificateArgs struct {
	// [string] The common name (DNS) of the certificate to issue. The common name needs to be part of a zone in IONOS Cloud DNS.
	CommonName pulumi.StringInput
	// [string] The key algorithm used to generate the certificate.
	KeyAlgorithm pulumi.StringInput
	// [string] The location of the auto-certificate.
	Location pulumi.StringInput
	// [string] A certificate name used for management purposes.
	Name pulumi.StringPtrInput
	// [string] The certificate provider used to issue the certificates.
	ProviderId pulumi.StringInput
	// [list][string] Optional additional names to be added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS.
	SubjectAlternativeNames pulumi.StringArrayInput
}

The set of arguments for constructing a AutoCertificate resource.

func (AutoCertificateArgs) ElementType

func (AutoCertificateArgs) ElementType() reflect.Type

type AutoCertificateArray

type AutoCertificateArray []AutoCertificateInput

func (AutoCertificateArray) ElementType

func (AutoCertificateArray) ElementType() reflect.Type

func (AutoCertificateArray) ToAutoCertificateArrayOutput

func (i AutoCertificateArray) ToAutoCertificateArrayOutput() AutoCertificateArrayOutput

func (AutoCertificateArray) ToAutoCertificateArrayOutputWithContext

func (i AutoCertificateArray) ToAutoCertificateArrayOutputWithContext(ctx context.Context) AutoCertificateArrayOutput

type AutoCertificateArrayInput

type AutoCertificateArrayInput interface {
	pulumi.Input

	ToAutoCertificateArrayOutput() AutoCertificateArrayOutput
	ToAutoCertificateArrayOutputWithContext(context.Context) AutoCertificateArrayOutput
}

AutoCertificateArrayInput is an input type that accepts AutoCertificateArray and AutoCertificateArrayOutput values. You can construct a concrete instance of `AutoCertificateArrayInput` via:

AutoCertificateArray{ AutoCertificateArgs{...} }

type AutoCertificateArrayOutput

type AutoCertificateArrayOutput struct{ *pulumi.OutputState }

func (AutoCertificateArrayOutput) ElementType

func (AutoCertificateArrayOutput) ElementType() reflect.Type

func (AutoCertificateArrayOutput) Index

func (AutoCertificateArrayOutput) ToAutoCertificateArrayOutput

func (o AutoCertificateArrayOutput) ToAutoCertificateArrayOutput() AutoCertificateArrayOutput

func (AutoCertificateArrayOutput) ToAutoCertificateArrayOutputWithContext

func (o AutoCertificateArrayOutput) ToAutoCertificateArrayOutputWithContext(ctx context.Context) AutoCertificateArrayOutput

type AutoCertificateInput

type AutoCertificateInput interface {
	pulumi.Input

	ToAutoCertificateOutput() AutoCertificateOutput
	ToAutoCertificateOutputWithContext(ctx context.Context) AutoCertificateOutput
}

type AutoCertificateMap

type AutoCertificateMap map[string]AutoCertificateInput

func (AutoCertificateMap) ElementType

func (AutoCertificateMap) ElementType() reflect.Type

func (AutoCertificateMap) ToAutoCertificateMapOutput

func (i AutoCertificateMap) ToAutoCertificateMapOutput() AutoCertificateMapOutput

func (AutoCertificateMap) ToAutoCertificateMapOutputWithContext

func (i AutoCertificateMap) ToAutoCertificateMapOutputWithContext(ctx context.Context) AutoCertificateMapOutput

type AutoCertificateMapInput

type AutoCertificateMapInput interface {
	pulumi.Input

	ToAutoCertificateMapOutput() AutoCertificateMapOutput
	ToAutoCertificateMapOutputWithContext(context.Context) AutoCertificateMapOutput
}

AutoCertificateMapInput is an input type that accepts AutoCertificateMap and AutoCertificateMapOutput values. You can construct a concrete instance of `AutoCertificateMapInput` via:

AutoCertificateMap{ "key": AutoCertificateArgs{...} }

type AutoCertificateMapOutput

type AutoCertificateMapOutput struct{ *pulumi.OutputState }

func (AutoCertificateMapOutput) ElementType

func (AutoCertificateMapOutput) ElementType() reflect.Type

func (AutoCertificateMapOutput) MapIndex

func (AutoCertificateMapOutput) ToAutoCertificateMapOutput

func (o AutoCertificateMapOutput) ToAutoCertificateMapOutput() AutoCertificateMapOutput

func (AutoCertificateMapOutput) ToAutoCertificateMapOutputWithContext

func (o AutoCertificateMapOutput) ToAutoCertificateMapOutputWithContext(ctx context.Context) AutoCertificateMapOutput

type AutoCertificateOutput

type AutoCertificateOutput struct{ *pulumi.OutputState }

func (AutoCertificateOutput) CommonName

func (o AutoCertificateOutput) CommonName() pulumi.StringOutput

[string] The common name (DNS) of the certificate to issue. The common name needs to be part of a zone in IONOS Cloud DNS.

func (AutoCertificateOutput) ElementType

func (AutoCertificateOutput) ElementType() reflect.Type

func (AutoCertificateOutput) KeyAlgorithm

func (o AutoCertificateOutput) KeyAlgorithm() pulumi.StringOutput

[string] The key algorithm used to generate the certificate.

func (AutoCertificateOutput) LastIssuedCertificateId

func (o AutoCertificateOutput) LastIssuedCertificateId() pulumi.StringOutput

[string] The ID of the last certificate that was issued.

func (AutoCertificateOutput) Location

[string] The location of the auto-certificate.

func (AutoCertificateOutput) Name

[string] A certificate name used for management purposes.

func (AutoCertificateOutput) ProviderId

func (o AutoCertificateOutput) ProviderId() pulumi.StringOutput

[string] The certificate provider used to issue the certificates.

func (AutoCertificateOutput) SubjectAlternativeNames

func (o AutoCertificateOutput) SubjectAlternativeNames() pulumi.StringArrayOutput

[list][string] Optional additional names to be added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS.

func (AutoCertificateOutput) ToAutoCertificateOutput

func (o AutoCertificateOutput) ToAutoCertificateOutput() AutoCertificateOutput

func (AutoCertificateOutput) ToAutoCertificateOutputWithContext

func (o AutoCertificateOutput) ToAutoCertificateOutputWithContext(ctx context.Context) AutoCertificateOutput

type AutoCertificateProvider

type AutoCertificateProvider struct {
	pulumi.CustomResourceState

	// [string] The email address of the certificate requester.
	Email pulumi.StringOutput `pulumi:"email"`
	// [list] External account binding details.
	ExternalAccountBinding AutoCertificateProviderExternalAccountBindingPtrOutput `pulumi:"externalAccountBinding"`
	// [string] The location of the provider.
	Location pulumi.StringPtrOutput `pulumi:"location"`
	// [string] The name of the certificate provider.
	Name pulumi.StringOutput `pulumi:"name"`
	// [string] The URL of the certificate provider.
	Server pulumi.StringOutput `pulumi:"server"`
}

Manages a **CM provider**.

## Example Usage

```go 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.NewAutoCertificateProvider(ctx, "example", &cert.AutoCertificateProviderArgs{
			Name:     pulumi.String("Let's Encrypt"),
			Email:    pulumi.String("user@example.com"),
			Location: pulumi.String("de/fra"),
			Server:   pulumi.String("https://acme-v02.api.letsencrypt.org/directory"),
			ExternalAccountBinding: &cert.AutoCertificateProviderExternalAccountBindingArgs{
				KeyId:     pulumi.String("some-key-id"),
				KeySecret: pulumi.String("secret"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

The resource can be imported using the `provider_id` and the `location`, separated by `:`, e.g.

```sh $ pulumi import ionoscloud:cert/autoCertificateProvider:AutoCertificateProvider example location:provider_id ```

func GetAutoCertificateProvider

func GetAutoCertificateProvider(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AutoCertificateProviderState, opts ...pulumi.ResourceOption) (*AutoCertificateProvider, error)

GetAutoCertificateProvider gets an existing AutoCertificateProvider resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAutoCertificateProvider

func NewAutoCertificateProvider(ctx *pulumi.Context,
	name string, args *AutoCertificateProviderArgs, opts ...pulumi.ResourceOption) (*AutoCertificateProvider, error)

NewAutoCertificateProvider registers a new resource with the given unique name, arguments, and options.

func (*AutoCertificateProvider) ElementType

func (*AutoCertificateProvider) ElementType() reflect.Type

func (*AutoCertificateProvider) ToAutoCertificateProviderOutput

func (i *AutoCertificateProvider) ToAutoCertificateProviderOutput() AutoCertificateProviderOutput

func (*AutoCertificateProvider) ToAutoCertificateProviderOutputWithContext

func (i *AutoCertificateProvider) ToAutoCertificateProviderOutputWithContext(ctx context.Context) AutoCertificateProviderOutput

type AutoCertificateProviderArgs

type AutoCertificateProviderArgs struct {
	// [string] The email address of the certificate requester.
	Email pulumi.StringInput
	// [list] External account binding details.
	ExternalAccountBinding AutoCertificateProviderExternalAccountBindingPtrInput
	// [string] The location of the provider.
	Location pulumi.StringPtrInput
	// [string] The name of the certificate provider.
	Name pulumi.StringPtrInput
	// [string] The URL of the certificate provider.
	Server pulumi.StringInput
}

The set of arguments for constructing a AutoCertificateProvider resource.

func (AutoCertificateProviderArgs) ElementType

type AutoCertificateProviderArray

type AutoCertificateProviderArray []AutoCertificateProviderInput

func (AutoCertificateProviderArray) ElementType

func (AutoCertificateProviderArray) ToAutoCertificateProviderArrayOutput

func (i AutoCertificateProviderArray) ToAutoCertificateProviderArrayOutput() AutoCertificateProviderArrayOutput

func (AutoCertificateProviderArray) ToAutoCertificateProviderArrayOutputWithContext

func (i AutoCertificateProviderArray) ToAutoCertificateProviderArrayOutputWithContext(ctx context.Context) AutoCertificateProviderArrayOutput

type AutoCertificateProviderArrayInput

type AutoCertificateProviderArrayInput interface {
	pulumi.Input

	ToAutoCertificateProviderArrayOutput() AutoCertificateProviderArrayOutput
	ToAutoCertificateProviderArrayOutputWithContext(context.Context) AutoCertificateProviderArrayOutput
}

AutoCertificateProviderArrayInput is an input type that accepts AutoCertificateProviderArray and AutoCertificateProviderArrayOutput values. You can construct a concrete instance of `AutoCertificateProviderArrayInput` via:

AutoCertificateProviderArray{ AutoCertificateProviderArgs{...} }

type AutoCertificateProviderArrayOutput

type AutoCertificateProviderArrayOutput struct{ *pulumi.OutputState }

func (AutoCertificateProviderArrayOutput) ElementType

func (AutoCertificateProviderArrayOutput) Index

func (AutoCertificateProviderArrayOutput) ToAutoCertificateProviderArrayOutput

func (o AutoCertificateProviderArrayOutput) ToAutoCertificateProviderArrayOutput() AutoCertificateProviderArrayOutput

func (AutoCertificateProviderArrayOutput) ToAutoCertificateProviderArrayOutputWithContext

func (o AutoCertificateProviderArrayOutput) ToAutoCertificateProviderArrayOutputWithContext(ctx context.Context) AutoCertificateProviderArrayOutput

type AutoCertificateProviderExternalAccountBinding

type AutoCertificateProviderExternalAccountBinding struct {
	// [string] The key ID of the external account binding.
	KeyId string `pulumi:"keyId"`
	// [string] The key secret of the external account binding
	KeySecret string `pulumi:"keySecret"`
}

type AutoCertificateProviderExternalAccountBindingArgs

type AutoCertificateProviderExternalAccountBindingArgs struct {
	// [string] The key ID of the external account binding.
	KeyId pulumi.StringInput `pulumi:"keyId"`
	// [string] The key secret of the external account binding
	KeySecret pulumi.StringInput `pulumi:"keySecret"`
}

func (AutoCertificateProviderExternalAccountBindingArgs) ElementType

func (AutoCertificateProviderExternalAccountBindingArgs) ToAutoCertificateProviderExternalAccountBindingOutput

func (i AutoCertificateProviderExternalAccountBindingArgs) ToAutoCertificateProviderExternalAccountBindingOutput() AutoCertificateProviderExternalAccountBindingOutput

func (AutoCertificateProviderExternalAccountBindingArgs) ToAutoCertificateProviderExternalAccountBindingOutputWithContext

func (i AutoCertificateProviderExternalAccountBindingArgs) ToAutoCertificateProviderExternalAccountBindingOutputWithContext(ctx context.Context) AutoCertificateProviderExternalAccountBindingOutput

func (AutoCertificateProviderExternalAccountBindingArgs) ToAutoCertificateProviderExternalAccountBindingPtrOutput

func (i AutoCertificateProviderExternalAccountBindingArgs) ToAutoCertificateProviderExternalAccountBindingPtrOutput() AutoCertificateProviderExternalAccountBindingPtrOutput

func (AutoCertificateProviderExternalAccountBindingArgs) ToAutoCertificateProviderExternalAccountBindingPtrOutputWithContext

func (i AutoCertificateProviderExternalAccountBindingArgs) ToAutoCertificateProviderExternalAccountBindingPtrOutputWithContext(ctx context.Context) AutoCertificateProviderExternalAccountBindingPtrOutput

type AutoCertificateProviderExternalAccountBindingInput

type AutoCertificateProviderExternalAccountBindingInput interface {
	pulumi.Input

	ToAutoCertificateProviderExternalAccountBindingOutput() AutoCertificateProviderExternalAccountBindingOutput
	ToAutoCertificateProviderExternalAccountBindingOutputWithContext(context.Context) AutoCertificateProviderExternalAccountBindingOutput
}

AutoCertificateProviderExternalAccountBindingInput is an input type that accepts AutoCertificateProviderExternalAccountBindingArgs and AutoCertificateProviderExternalAccountBindingOutput values. You can construct a concrete instance of `AutoCertificateProviderExternalAccountBindingInput` via:

AutoCertificateProviderExternalAccountBindingArgs{...}

type AutoCertificateProviderExternalAccountBindingOutput

type AutoCertificateProviderExternalAccountBindingOutput struct{ *pulumi.OutputState }

func (AutoCertificateProviderExternalAccountBindingOutput) ElementType

func (AutoCertificateProviderExternalAccountBindingOutput) KeyId

[string] The key ID of the external account binding.

func (AutoCertificateProviderExternalAccountBindingOutput) KeySecret

[string] The key secret of the external account binding

func (AutoCertificateProviderExternalAccountBindingOutput) ToAutoCertificateProviderExternalAccountBindingOutput

func (o AutoCertificateProviderExternalAccountBindingOutput) ToAutoCertificateProviderExternalAccountBindingOutput() AutoCertificateProviderExternalAccountBindingOutput

func (AutoCertificateProviderExternalAccountBindingOutput) ToAutoCertificateProviderExternalAccountBindingOutputWithContext

func (o AutoCertificateProviderExternalAccountBindingOutput) ToAutoCertificateProviderExternalAccountBindingOutputWithContext(ctx context.Context) AutoCertificateProviderExternalAccountBindingOutput

func (AutoCertificateProviderExternalAccountBindingOutput) ToAutoCertificateProviderExternalAccountBindingPtrOutput

func (o AutoCertificateProviderExternalAccountBindingOutput) ToAutoCertificateProviderExternalAccountBindingPtrOutput() AutoCertificateProviderExternalAccountBindingPtrOutput

func (AutoCertificateProviderExternalAccountBindingOutput) ToAutoCertificateProviderExternalAccountBindingPtrOutputWithContext

func (o AutoCertificateProviderExternalAccountBindingOutput) ToAutoCertificateProviderExternalAccountBindingPtrOutputWithContext(ctx context.Context) AutoCertificateProviderExternalAccountBindingPtrOutput

type AutoCertificateProviderExternalAccountBindingPtrInput

type AutoCertificateProviderExternalAccountBindingPtrInput interface {
	pulumi.Input

	ToAutoCertificateProviderExternalAccountBindingPtrOutput() AutoCertificateProviderExternalAccountBindingPtrOutput
	ToAutoCertificateProviderExternalAccountBindingPtrOutputWithContext(context.Context) AutoCertificateProviderExternalAccountBindingPtrOutput
}

AutoCertificateProviderExternalAccountBindingPtrInput is an input type that accepts AutoCertificateProviderExternalAccountBindingArgs, AutoCertificateProviderExternalAccountBindingPtr and AutoCertificateProviderExternalAccountBindingPtrOutput values. You can construct a concrete instance of `AutoCertificateProviderExternalAccountBindingPtrInput` via:

        AutoCertificateProviderExternalAccountBindingArgs{...}

or:

        nil

type AutoCertificateProviderExternalAccountBindingPtrOutput

type AutoCertificateProviderExternalAccountBindingPtrOutput struct{ *pulumi.OutputState }

func (AutoCertificateProviderExternalAccountBindingPtrOutput) Elem

func (AutoCertificateProviderExternalAccountBindingPtrOutput) ElementType

func (AutoCertificateProviderExternalAccountBindingPtrOutput) KeyId

[string] The key ID of the external account binding.

func (AutoCertificateProviderExternalAccountBindingPtrOutput) KeySecret

[string] The key secret of the external account binding

func (AutoCertificateProviderExternalAccountBindingPtrOutput) ToAutoCertificateProviderExternalAccountBindingPtrOutput

func (AutoCertificateProviderExternalAccountBindingPtrOutput) ToAutoCertificateProviderExternalAccountBindingPtrOutputWithContext

func (o AutoCertificateProviderExternalAccountBindingPtrOutput) ToAutoCertificateProviderExternalAccountBindingPtrOutputWithContext(ctx context.Context) AutoCertificateProviderExternalAccountBindingPtrOutput

type AutoCertificateProviderInput

type AutoCertificateProviderInput interface {
	pulumi.Input

	ToAutoCertificateProviderOutput() AutoCertificateProviderOutput
	ToAutoCertificateProviderOutputWithContext(ctx context.Context) AutoCertificateProviderOutput
}

type AutoCertificateProviderMap

type AutoCertificateProviderMap map[string]AutoCertificateProviderInput

func (AutoCertificateProviderMap) ElementType

func (AutoCertificateProviderMap) ElementType() reflect.Type

func (AutoCertificateProviderMap) ToAutoCertificateProviderMapOutput

func (i AutoCertificateProviderMap) ToAutoCertificateProviderMapOutput() AutoCertificateProviderMapOutput

func (AutoCertificateProviderMap) ToAutoCertificateProviderMapOutputWithContext

func (i AutoCertificateProviderMap) ToAutoCertificateProviderMapOutputWithContext(ctx context.Context) AutoCertificateProviderMapOutput

type AutoCertificateProviderMapInput

type AutoCertificateProviderMapInput interface {
	pulumi.Input

	ToAutoCertificateProviderMapOutput() AutoCertificateProviderMapOutput
	ToAutoCertificateProviderMapOutputWithContext(context.Context) AutoCertificateProviderMapOutput
}

AutoCertificateProviderMapInput is an input type that accepts AutoCertificateProviderMap and AutoCertificateProviderMapOutput values. You can construct a concrete instance of `AutoCertificateProviderMapInput` via:

AutoCertificateProviderMap{ "key": AutoCertificateProviderArgs{...} }

type AutoCertificateProviderMapOutput

type AutoCertificateProviderMapOutput struct{ *pulumi.OutputState }

func (AutoCertificateProviderMapOutput) ElementType

func (AutoCertificateProviderMapOutput) MapIndex

func (AutoCertificateProviderMapOutput) ToAutoCertificateProviderMapOutput

func (o AutoCertificateProviderMapOutput) ToAutoCertificateProviderMapOutput() AutoCertificateProviderMapOutput

func (AutoCertificateProviderMapOutput) ToAutoCertificateProviderMapOutputWithContext

func (o AutoCertificateProviderMapOutput) ToAutoCertificateProviderMapOutputWithContext(ctx context.Context) AutoCertificateProviderMapOutput

type AutoCertificateProviderOutput

type AutoCertificateProviderOutput struct{ *pulumi.OutputState }

func (AutoCertificateProviderOutput) ElementType

func (AutoCertificateProviderOutput) Email

[string] The email address of the certificate requester.

func (AutoCertificateProviderOutput) ExternalAccountBinding

[list] External account binding details.

func (AutoCertificateProviderOutput) Location

[string] The location of the provider.

func (AutoCertificateProviderOutput) Name

[string] The name of the certificate provider.

func (AutoCertificateProviderOutput) Server

[string] The URL of the certificate provider.

func (AutoCertificateProviderOutput) ToAutoCertificateProviderOutput

func (o AutoCertificateProviderOutput) ToAutoCertificateProviderOutput() AutoCertificateProviderOutput

func (AutoCertificateProviderOutput) ToAutoCertificateProviderOutputWithContext

func (o AutoCertificateProviderOutput) ToAutoCertificateProviderOutputWithContext(ctx context.Context) AutoCertificateProviderOutput

type AutoCertificateProviderState

type AutoCertificateProviderState struct {
	// [string] The email address of the certificate requester.
	Email pulumi.StringPtrInput
	// [list] External account binding details.
	ExternalAccountBinding AutoCertificateProviderExternalAccountBindingPtrInput
	// [string] The location of the provider.
	Location pulumi.StringPtrInput
	// [string] The name of the certificate provider.
	Name pulumi.StringPtrInput
	// [string] The URL of the certificate provider.
	Server pulumi.StringPtrInput
}

func (AutoCertificateProviderState) ElementType

type AutoCertificateState

type AutoCertificateState struct {
	// [string] The common name (DNS) of the certificate to issue. The common name needs to be part of a zone in IONOS Cloud DNS.
	CommonName pulumi.StringPtrInput
	// [string] The key algorithm used to generate the certificate.
	KeyAlgorithm pulumi.StringPtrInput
	// [string] The ID of the last certificate that was issued.
	LastIssuedCertificateId pulumi.StringPtrInput
	// [string] The location of the auto-certificate.
	Location pulumi.StringPtrInput
	// [string] A certificate name used for management purposes.
	Name pulumi.StringPtrInput
	// [string] The certificate provider used to issue the certificates.
	ProviderId pulumi.StringPtrInput
	// [list][string] Optional additional names to be added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS.
	SubjectAlternativeNames pulumi.StringArrayInput
}

func (AutoCertificateState) ElementType

func (AutoCertificateState) ElementType() reflect.Type

type Certificate

type Certificate struct {
	pulumi.CustomResourceState

	// [string] The certificate body. Pem encoded. Immutable.
	Certificate pulumi.StringOutput `pulumi:"certificate"`
	// [string] The certificate chain. Pem encoded. Immutable.
	CertificateChain pulumi.StringPtrOutput `pulumi:"certificateChain"`
	// [string] The certificate name
	Name pulumi.StringOutput `pulumi:"name"`
	// [string] The certificate private key. Immutable. Sensitive.
	PrivateKey pulumi.StringOutput `pulumi:"privateKey"`
}

Manages a **Certificate** on IonosCloud.

## Example Usage

```go 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.NewCertificate(ctx, "cert", &cert.CertificateArgs{
			Name:             pulumi.String("add_name_here"),
			Certificate:      pulumi.String("tour_certificate"),
			CertificateChain: pulumi.String("your_certificate_chain"),
			PrivateKey:       pulumi.String("your_private_key"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource certificate can be imported using the `resource id`, e.g.

```sh $ pulumi import ionoscloud:cert/certificate:Certificate mycert certificate uuid ```

func GetCertificate

func GetCertificate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertificateState, opts ...pulumi.ResourceOption) (*Certificate, error)

GetCertificate gets an existing Certificate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCertificate

func NewCertificate(ctx *pulumi.Context,
	name string, args *CertificateArgs, opts ...pulumi.ResourceOption) (*Certificate, error)

NewCertificate registers a new resource with the given unique name, arguments, and options.

func (*Certificate) ElementType

func (*Certificate) ElementType() reflect.Type

func (*Certificate) ToCertificateOutput

func (i *Certificate) ToCertificateOutput() CertificateOutput

func (*Certificate) ToCertificateOutputWithContext

func (i *Certificate) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateArgs

type CertificateArgs struct {
	// [string] The certificate body. Pem encoded. Immutable.
	Certificate pulumi.StringInput
	// [string] The certificate chain. Pem encoded. Immutable.
	CertificateChain pulumi.StringPtrInput
	// [string] The certificate name
	Name pulumi.StringPtrInput
	// [string] The certificate private key. Immutable. Sensitive.
	PrivateKey pulumi.StringInput
}

The set of arguments for constructing a Certificate resource.

func (CertificateArgs) ElementType

func (CertificateArgs) ElementType() reflect.Type

type CertificateArray

type CertificateArray []CertificateInput

func (CertificateArray) ElementType

func (CertificateArray) ElementType() reflect.Type

func (CertificateArray) ToCertificateArrayOutput

func (i CertificateArray) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArray) ToCertificateArrayOutputWithContext

func (i CertificateArray) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateArrayInput

type CertificateArrayInput interface {
	pulumi.Input

	ToCertificateArrayOutput() CertificateArrayOutput
	ToCertificateArrayOutputWithContext(context.Context) CertificateArrayOutput
}

CertificateArrayInput is an input type that accepts CertificateArray and CertificateArrayOutput values. You can construct a concrete instance of `CertificateArrayInput` via:

CertificateArray{ CertificateArgs{...} }

type CertificateArrayOutput

type CertificateArrayOutput struct{ *pulumi.OutputState }

func (CertificateArrayOutput) ElementType

func (CertificateArrayOutput) ElementType() reflect.Type

func (CertificateArrayOutput) Index

func (CertificateArrayOutput) ToCertificateArrayOutput

func (o CertificateArrayOutput) ToCertificateArrayOutput() CertificateArrayOutput

func (CertificateArrayOutput) ToCertificateArrayOutputWithContext

func (o CertificateArrayOutput) ToCertificateArrayOutputWithContext(ctx context.Context) CertificateArrayOutput

type CertificateInput

type CertificateInput interface {
	pulumi.Input

	ToCertificateOutput() CertificateOutput
	ToCertificateOutputWithContext(ctx context.Context) CertificateOutput
}

type CertificateMap

type CertificateMap map[string]CertificateInput

func (CertificateMap) ElementType

func (CertificateMap) ElementType() reflect.Type

func (CertificateMap) ToCertificateMapOutput

func (i CertificateMap) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMap) ToCertificateMapOutputWithContext

func (i CertificateMap) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateMapInput

type CertificateMapInput interface {
	pulumi.Input

	ToCertificateMapOutput() CertificateMapOutput
	ToCertificateMapOutputWithContext(context.Context) CertificateMapOutput
}

CertificateMapInput is an input type that accepts CertificateMap and CertificateMapOutput values. You can construct a concrete instance of `CertificateMapInput` via:

CertificateMap{ "key": CertificateArgs{...} }

type CertificateMapOutput

type CertificateMapOutput struct{ *pulumi.OutputState }

func (CertificateMapOutput) ElementType

func (CertificateMapOutput) ElementType() reflect.Type

func (CertificateMapOutput) MapIndex

func (CertificateMapOutput) ToCertificateMapOutput

func (o CertificateMapOutput) ToCertificateMapOutput() CertificateMapOutput

func (CertificateMapOutput) ToCertificateMapOutputWithContext

func (o CertificateMapOutput) ToCertificateMapOutputWithContext(ctx context.Context) CertificateMapOutput

type CertificateOutput

type CertificateOutput struct{ *pulumi.OutputState }

func (CertificateOutput) Certificate

func (o CertificateOutput) Certificate() pulumi.StringOutput

[string] The certificate body. Pem encoded. Immutable.

func (CertificateOutput) CertificateChain

func (o CertificateOutput) CertificateChain() pulumi.StringPtrOutput

[string] The certificate chain. Pem encoded. Immutable.

func (CertificateOutput) ElementType

func (CertificateOutput) ElementType() reflect.Type

func (CertificateOutput) Name

[string] The certificate name

func (CertificateOutput) PrivateKey

func (o CertificateOutput) PrivateKey() pulumi.StringOutput

[string] The certificate private key. Immutable. Sensitive.

func (CertificateOutput) ToCertificateOutput

func (o CertificateOutput) ToCertificateOutput() CertificateOutput

func (CertificateOutput) ToCertificateOutputWithContext

func (o CertificateOutput) ToCertificateOutputWithContext(ctx context.Context) CertificateOutput

type CertificateState

type CertificateState struct {
	// [string] The certificate body. Pem encoded. Immutable.
	Certificate pulumi.StringPtrInput
	// [string] The certificate chain. Pem encoded. Immutable.
	CertificateChain pulumi.StringPtrInput
	// [string] The certificate name
	Name pulumi.StringPtrInput
	// [string] The certificate private key. Immutable. Sensitive.
	PrivateKey pulumi.StringPtrInput
}

func (CertificateState) ElementType

func (CertificateState) ElementType() reflect.Type

type GetAutoCertificateProviderExternalAccountBinding

type GetAutoCertificateProviderExternalAccountBinding struct {
	// [string] The key ID of the external account binding.
	KeyId string `pulumi:"keyId"`
}

type GetAutoCertificateProviderExternalAccountBindingArgs

type GetAutoCertificateProviderExternalAccountBindingArgs struct {
	// [string] The key ID of the external account binding.
	KeyId pulumi.StringInput `pulumi:"keyId"`
}

func (GetAutoCertificateProviderExternalAccountBindingArgs) ElementType

func (GetAutoCertificateProviderExternalAccountBindingArgs) ToGetAutoCertificateProviderExternalAccountBindingOutput

func (i GetAutoCertificateProviderExternalAccountBindingArgs) ToGetAutoCertificateProviderExternalAccountBindingOutput() GetAutoCertificateProviderExternalAccountBindingOutput

func (GetAutoCertificateProviderExternalAccountBindingArgs) ToGetAutoCertificateProviderExternalAccountBindingOutputWithContext

func (i GetAutoCertificateProviderExternalAccountBindingArgs) ToGetAutoCertificateProviderExternalAccountBindingOutputWithContext(ctx context.Context) GetAutoCertificateProviderExternalAccountBindingOutput

type GetAutoCertificateProviderExternalAccountBindingArray

type GetAutoCertificateProviderExternalAccountBindingArray []GetAutoCertificateProviderExternalAccountBindingInput

func (GetAutoCertificateProviderExternalAccountBindingArray) ElementType

func (GetAutoCertificateProviderExternalAccountBindingArray) ToGetAutoCertificateProviderExternalAccountBindingArrayOutput

func (i GetAutoCertificateProviderExternalAccountBindingArray) ToGetAutoCertificateProviderExternalAccountBindingArrayOutput() GetAutoCertificateProviderExternalAccountBindingArrayOutput

func (GetAutoCertificateProviderExternalAccountBindingArray) ToGetAutoCertificateProviderExternalAccountBindingArrayOutputWithContext

func (i GetAutoCertificateProviderExternalAccountBindingArray) ToGetAutoCertificateProviderExternalAccountBindingArrayOutputWithContext(ctx context.Context) GetAutoCertificateProviderExternalAccountBindingArrayOutput

type GetAutoCertificateProviderExternalAccountBindingArrayInput

type GetAutoCertificateProviderExternalAccountBindingArrayInput interface {
	pulumi.Input

	ToGetAutoCertificateProviderExternalAccountBindingArrayOutput() GetAutoCertificateProviderExternalAccountBindingArrayOutput
	ToGetAutoCertificateProviderExternalAccountBindingArrayOutputWithContext(context.Context) GetAutoCertificateProviderExternalAccountBindingArrayOutput
}

GetAutoCertificateProviderExternalAccountBindingArrayInput is an input type that accepts GetAutoCertificateProviderExternalAccountBindingArray and GetAutoCertificateProviderExternalAccountBindingArrayOutput values. You can construct a concrete instance of `GetAutoCertificateProviderExternalAccountBindingArrayInput` via:

GetAutoCertificateProviderExternalAccountBindingArray{ GetAutoCertificateProviderExternalAccountBindingArgs{...} }

type GetAutoCertificateProviderExternalAccountBindingArrayOutput

type GetAutoCertificateProviderExternalAccountBindingArrayOutput struct{ *pulumi.OutputState }

func (GetAutoCertificateProviderExternalAccountBindingArrayOutput) ElementType

func (GetAutoCertificateProviderExternalAccountBindingArrayOutput) Index

func (GetAutoCertificateProviderExternalAccountBindingArrayOutput) ToGetAutoCertificateProviderExternalAccountBindingArrayOutput

func (GetAutoCertificateProviderExternalAccountBindingArrayOutput) ToGetAutoCertificateProviderExternalAccountBindingArrayOutputWithContext

func (o GetAutoCertificateProviderExternalAccountBindingArrayOutput) ToGetAutoCertificateProviderExternalAccountBindingArrayOutputWithContext(ctx context.Context) GetAutoCertificateProviderExternalAccountBindingArrayOutput

type GetAutoCertificateProviderExternalAccountBindingInput

type GetAutoCertificateProviderExternalAccountBindingInput interface {
	pulumi.Input

	ToGetAutoCertificateProviderExternalAccountBindingOutput() GetAutoCertificateProviderExternalAccountBindingOutput
	ToGetAutoCertificateProviderExternalAccountBindingOutputWithContext(context.Context) GetAutoCertificateProviderExternalAccountBindingOutput
}

GetAutoCertificateProviderExternalAccountBindingInput is an input type that accepts GetAutoCertificateProviderExternalAccountBindingArgs and GetAutoCertificateProviderExternalAccountBindingOutput values. You can construct a concrete instance of `GetAutoCertificateProviderExternalAccountBindingInput` via:

GetAutoCertificateProviderExternalAccountBindingArgs{...}

type GetAutoCertificateProviderExternalAccountBindingOutput

type GetAutoCertificateProviderExternalAccountBindingOutput struct{ *pulumi.OutputState }

func (GetAutoCertificateProviderExternalAccountBindingOutput) ElementType

func (GetAutoCertificateProviderExternalAccountBindingOutput) KeyId

[string] The key ID of the external account binding.

func (GetAutoCertificateProviderExternalAccountBindingOutput) ToGetAutoCertificateProviderExternalAccountBindingOutput

func (GetAutoCertificateProviderExternalAccountBindingOutput) ToGetAutoCertificateProviderExternalAccountBindingOutputWithContext

func (o GetAutoCertificateProviderExternalAccountBindingOutput) ToGetAutoCertificateProviderExternalAccountBindingOutputWithContext(ctx context.Context) GetAutoCertificateProviderExternalAccountBindingOutput

type LookupAutoCertificateArgs

type LookupAutoCertificateArgs struct {
	// [string] ID of the auto-certificate you want to search for.
	//
	// Either `name` or `id` must be provided. If none, or both are provided, the datasource will return an error.
	Id *string `pulumi:"id"`
	// [string] The location of the auto-certificate.
	Location string `pulumi:"location"`
	// [string] Name of an existing auto-certificate that you want to search for.
	Name *string `pulumi:"name"`
}

A collection of arguments for invoking getAutoCertificate.

type LookupAutoCertificateOutputArgs

type LookupAutoCertificateOutputArgs struct {
	// [string] ID of the auto-certificate you want to search for.
	//
	// Either `name` or `id` must be provided. If none, or both are provided, the datasource will return an error.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// [string] The location of the auto-certificate.
	Location pulumi.StringInput `pulumi:"location"`
	// [string] Name of an existing auto-certificate that you want to search for.
	Name pulumi.StringPtrInput `pulumi:"name"`
}

A collection of arguments for invoking getAutoCertificate.

func (LookupAutoCertificateOutputArgs) ElementType

type LookupAutoCertificateProviderArgs

type LookupAutoCertificateProviderArgs struct {
	// [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.
	Id *string `pulumi:"id"`
	// [string] The location of the provider.
	Location *string `pulumi:"location"`
	// [string] Name of an existing provider that you want to search for.
	Name *string `pulumi:"name"`
}

A collection of arguments for invoking getAutoCertificateProvider.

type LookupAutoCertificateProviderOutputArgs

type LookupAutoCertificateProviderOutputArgs struct {
	// [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.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// [string] The location of the provider.
	Location pulumi.StringPtrInput `pulumi:"location"`
	// [string] Name of an existing provider that you want to search for.
	Name pulumi.StringPtrInput `pulumi:"name"`
}

A collection of arguments for invoking getAutoCertificateProvider.

func (LookupAutoCertificateProviderOutputArgs) ElementType

type LookupAutoCertificateProviderResult

type LookupAutoCertificateProviderResult struct {
	// [string] The email address of the certificate requester.
	Email string `pulumi:"email"`
	// [list]
	ExternalAccountBindings []GetAutoCertificateProviderExternalAccountBinding `pulumi:"externalAccountBindings"`
	Id                      string                                             `pulumi:"id"`
	Location                *string                                            `pulumi:"location"`
	Name                    string                                             `pulumi:"name"`
	// [string] The URL of the certificate provider.
	Server string `pulumi:"server"`
}

A collection of values returned by getAutoCertificateProvider.

func LookupAutoCertificateProvider

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 ```go 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
	})
}

```

### By Name ```go 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
	})
}

```

type LookupAutoCertificateProviderResultOutput

type LookupAutoCertificateProviderResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAutoCertificateProvider.

func (LookupAutoCertificateProviderResultOutput) ElementType

func (LookupAutoCertificateProviderResultOutput) Email

[string] The email address of the certificate requester.

func (LookupAutoCertificateProviderResultOutput) ExternalAccountBindings

[list]

func (LookupAutoCertificateProviderResultOutput) Id

func (LookupAutoCertificateProviderResultOutput) Location

func (LookupAutoCertificateProviderResultOutput) Name

func (LookupAutoCertificateProviderResultOutput) Server

[string] The URL of the certificate provider.

func (LookupAutoCertificateProviderResultOutput) ToLookupAutoCertificateProviderResultOutput

func (o LookupAutoCertificateProviderResultOutput) ToLookupAutoCertificateProviderResultOutput() LookupAutoCertificateProviderResultOutput

func (LookupAutoCertificateProviderResultOutput) ToLookupAutoCertificateProviderResultOutputWithContext

func (o LookupAutoCertificateProviderResultOutput) ToLookupAutoCertificateProviderResultOutputWithContext(ctx context.Context) LookupAutoCertificateProviderResultOutput

type LookupAutoCertificateResult

type LookupAutoCertificateResult struct {
	// [string] The common name (DNS) of the certificate to issue. The common name needs to be part of a zone in IONOS Cloud DNS.
	CommonName string `pulumi:"commonName"`
	Id         string `pulumi:"id"`
	// [string] The key algorithm used to generate the certificate.
	KeyAlgorithm string `pulumi:"keyAlgorithm"`
	// [string] The ID of the last certificate that was issued.
	LastIssuedCertificateId string `pulumi:"lastIssuedCertificateId"`
	Location                string `pulumi:"location"`
	Name                    string `pulumi:"name"`
	ProviderId              string `pulumi:"providerId"`
	// [list][string] Optional additional names to be added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS.
	SubjectAlternativeNames []string `pulumi:"subjectAlternativeNames"`
}

A collection of values returned by getAutoCertificate.

func LookupAutoCertificate

func LookupAutoCertificate(ctx *pulumi.Context, args *LookupAutoCertificateArgs, opts ...pulumi.InvokeOption) (*LookupAutoCertificateResult, error)

The **CM AutoCertificate data source** can be used to search for and return an existing auto-certificate. You can provide a string for either id or name parameters which will be compared with provisioned auto-certificates. 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 ```go 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.LookupAutoCertificate(ctx, &cert.LookupAutoCertificateArgs{
			Id:       pulumi.StringRef("auto_certificate_id"),
			Location: "auto_certificate_location",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

### By Name ```go 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.LookupAutoCertificate(ctx, &cert.LookupAutoCertificateArgs{
			Name:     pulumi.StringRef("AutoCertificate Name Example"),
			Location: "auto_certificate_location",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupAutoCertificateResultOutput

type LookupAutoCertificateResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAutoCertificate.

func (LookupAutoCertificateResultOutput) CommonName

[string] The common name (DNS) of the certificate to issue. The common name needs to be part of a zone in IONOS Cloud DNS.

func (LookupAutoCertificateResultOutput) ElementType

func (LookupAutoCertificateResultOutput) Id

func (LookupAutoCertificateResultOutput) KeyAlgorithm

[string] The key algorithm used to generate the certificate.

func (LookupAutoCertificateResultOutput) LastIssuedCertificateId

func (o LookupAutoCertificateResultOutput) LastIssuedCertificateId() pulumi.StringOutput

[string] The ID of the last certificate that was issued.

func (LookupAutoCertificateResultOutput) Location

func (LookupAutoCertificateResultOutput) Name

func (LookupAutoCertificateResultOutput) ProviderId

func (LookupAutoCertificateResultOutput) SubjectAlternativeNames

func (o LookupAutoCertificateResultOutput) SubjectAlternativeNames() pulumi.StringArrayOutput

[list][string] Optional additional names to be added to the issued certificate. The additional names needs to be part of a zone in IONOS Cloud DNS.

func (LookupAutoCertificateResultOutput) ToLookupAutoCertificateResultOutput

func (o LookupAutoCertificateResultOutput) ToLookupAutoCertificateResultOutput() LookupAutoCertificateResultOutput

func (LookupAutoCertificateResultOutput) ToLookupAutoCertificateResultOutputWithContext

func (o LookupAutoCertificateResultOutput) ToLookupAutoCertificateResultOutputWithContext(ctx context.Context) LookupAutoCertificateResultOutput

type LookupCertificateArgs

type LookupCertificateArgs struct {
	// Certificate body.
	Certificate *string `pulumi:"certificate"`
	// Certificate chain.
	CertificateChain *string `pulumi:"certificateChain"`
	// ID of the certificate you want to search for.
	//
	// Either `name` or `id` must be provided, or both. If none are provided, the datasource will return an error.
	Id *string `pulumi:"id"`
	// Name of an existing certificate that you want to search for.
	Name *string `pulumi:"name"`
}

A collection of arguments for invoking getCertificate.

type LookupCertificateOutputArgs

type LookupCertificateOutputArgs struct {
	// Certificate body.
	Certificate pulumi.StringPtrInput `pulumi:"certificate"`
	// Certificate chain.
	CertificateChain pulumi.StringPtrInput `pulumi:"certificateChain"`
	// ID of the certificate you want to search for.
	//
	// Either `name` or `id` must be provided, or both. If none are provided, the datasource will return an error.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// Name of an existing certificate that you want to search for.
	Name pulumi.StringPtrInput `pulumi:"name"`
}

A collection of arguments for invoking getCertificate.

func (LookupCertificateOutputArgs) ElementType

type LookupCertificateResult

type LookupCertificateResult struct {
	// Certificate body.
	Certificate string `pulumi:"certificate"`
	// Certificate chain.
	CertificateChain string `pulumi:"certificateChain"`
	// The id of the certificate.
	Id string `pulumi:"id"`
	// The name of the certificate.
	Name string `pulumi:"name"`
}

A collection of values returned by getCertificate.

func LookupCertificate

func LookupCertificate(ctx *pulumi.Context, args *LookupCertificateArgs, opts ...pulumi.InvokeOption) (*LookupCertificateResult, error)

The **Certificate data source** can be used to search for and return an existing certificate. You can provide a string for either id or name parameters which will be compared with provisioned certificates. 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 ```go 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.LookupCertificate(ctx, &cert.LookupCertificateArgs{
			Id: pulumi.StringRef("certificate_id"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

### By Name ```go 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.LookupCertificate(ctx, &cert.LookupCertificateArgs{
			Name: pulumi.StringRef("Certificate Name Example"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupCertificateResultOutput

type LookupCertificateResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCertificate.

func (LookupCertificateResultOutput) Certificate

Certificate body.

func (LookupCertificateResultOutput) CertificateChain

func (o LookupCertificateResultOutput) CertificateChain() pulumi.StringOutput

Certificate chain.

func (LookupCertificateResultOutput) ElementType

func (LookupCertificateResultOutput) Id

The id of the certificate.

func (LookupCertificateResultOutput) Name

The name of the certificate.

func (LookupCertificateResultOutput) ToLookupCertificateResultOutput

func (o LookupCertificateResultOutput) ToLookupCertificateResultOutput() LookupCertificateResultOutput

func (LookupCertificateResultOutput) ToLookupCertificateResultOutputWithContext

func (o LookupCertificateResultOutput) ToLookupCertificateResultOutputWithContext(ctx context.Context) LookupCertificateResultOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL