Class ManagedSslCertificate
An SslCertificate resource, used for HTTPS load balancing. This resource represents a certificate for which the certificate secrets are created and managed by Google.
For a resource where you provide the key, see the SSL Certificate resource.
To get more information about ManagedSslCertificate, see:
- API documentation
- How-to Guides
- Official Documentation
Warning: This resource should be used with extreme caution! Provisioning an SSL certificate is complex. Ensure that you understand the lifecycle of a certificate before attempting complex tasks like cert rotation automatically. This resource will "return" as soon as the certificate object is created, but post-creation the certificate object will go through a "provisioning" process. The provisioning process can complete only when the domain name for which the certificate is created points to a target pool which, itself, points at the certificate. Depending on your DNS provider, this may take some time, and migrating from self-managed certificates to Google-managed certificates may entail some downtime while the certificate provisions.
In conclusion: Be extremely cautious.
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class ManagedSslCertificate : CustomResource
Constructors
View SourceManagedSslCertificate(String, ManagedSslCertificateArgs, CustomResourceOptions)
Create a ManagedSslCertificate resource with the given unique name, arguments, and options.
Declaration
public ManagedSslCertificate(string name, ManagedSslCertificateArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ManagedSslCertificateArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCertificateId
The unique identifier for the resource.
Declaration
public Output<int> CertificateId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
CreationTimestamp
Creation timestamp in RFC3339 text format.
Declaration
public Output<string> CreationTimestamp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
An optional description of this resource.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ExpireTime
Expire time of the certificate.
Declaration
public Output<string> ExpireTime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Managed
Properties relevant to a managed certificate. These will be used if the
certificate is managed (as indicated by a value of MANAGED in type). Structure is documented below.
Declaration
public Output<ManagedSslCertificateManaged> Managed { get; }
Property Value
| Type | Description |
|---|---|
| Output<ManagedSslCertificateManaged> |
Name
Name of the resource. Provided by the client when the resource is
created. The name must be 1-63 characters long, and comply with
RFC1035. Specifically, the name must be 1-63 characters long and match
the regular expression a-z? which means the
first character must be a lowercase letter, and all following
characters must be a dash, lowercase letter, or digit, except the last
character, which cannot be a dash.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SelfLink
The URI of the created resource.
Declaration
public Output<string> SelfLink { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SubjectAlternativeNames
Domains associated with the certificate via Subject Alternative Name.
Declaration
public Output<ImmutableArray<string>> SubjectAlternativeNames { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Type
Enum field whose value is always MANAGED - used to signal to the API
which type this is.
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ManagedSslCertificateState, CustomResourceOptions)
Get an existing ManagedSslCertificate resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ManagedSslCertificate Get(string name, Input<string> id, ManagedSslCertificateState 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. |
| ManagedSslCertificateState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ManagedSslCertificate |