Class Certificate
Inherited Members
Namespace: Pulumi.DigitalOcean
Assembly: Pulumi.DigitalOcean.dll
Syntax
public class Certificate : CustomResource
Constructors
View SourceCertificate(String, CertificateArgs, CustomResourceOptions)
Create a Certificate resource with the given unique name, arguments, and options.
Declaration
public Certificate(string name, CertificateArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| CertificateArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCertificateChain
The full PEM-formatted trust chain
between the certificate authority's certificate and your domain's TLS
certificate. Only valid when type is custom.
Declaration
public Output<string> CertificateChain { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Domains
List of fully qualified domain names (FQDNs) for
which the certificate will be issued. The domains must be managed using
DigitalOcean's DNS. Only valid when type is lets_encrypt.
Declaration
public Output<ImmutableArray<string>> Domains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
LeafCertificate
The contents of a PEM-formatted public
TLS certificate. Only valid when type is custom.
Declaration
public Output<string> LeafCertificate { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the certificate for identification.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NotAfter
The expiration date of the certificate
Declaration
public Output<string> NotAfter { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PrivateKey
The contents of a PEM-formatted private-key
corresponding to the SSL certificate. Only valid when type is custom.
Declaration
public Output<string> PrivateKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Sha1Fingerprint
The SHA-1 fingerprint of the certificate
Declaration
public Output<string> Sha1Fingerprint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
State
Declaration
public Output<string> State { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Type
The type of certificate to provision. Can be either
custom or lets_encrypt. Defaults to custom.
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, CertificateState, CustomResourceOptions)
Get an existing Certificate resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Certificate Get(string name, Input<string> id, CertificateState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| CertificateState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Certificate |