Show / Hide Table of Contents

Class SslCert

Creates a new Google SQL SSL Cert on a Google SQL Instance. For more information, see the official documentation, or the JSON API.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;
using Random = Pulumi.Random;

class MyStack : Stack
{
public MyStack()
{
    var dbNameSuffix = new Random.RandomId("dbNameSuffix", new Random.RandomIdArgs
    {
        ByteLength = 4,
    });
    var master = new Gcp.Sql.DatabaseInstance("master", new Gcp.Sql.DatabaseInstanceArgs
    {
        Settings = new Gcp.Sql.Inputs.DatabaseInstanceSettingsArgs
        {
            Tier = "db-f1-micro",
        },
    });
    var clientCert = new Gcp.Sql.SslCert("clientCert", new Gcp.Sql.SslCertArgs
    {
        CommonName = "client-name",
        Instance = master.Name,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SslCert
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Sql
Assembly: Pulumi.Gcp.dll
Syntax
public class SslCert : CustomResource

Constructors

View Source

SslCert(String, SslCertArgs, CustomResourceOptions)

Create a SslCert resource with the given unique name, arguments, and options.

Declaration
public SslCert(string name, SslCertArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

SslCertArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Cert

The actual certificate data for this client certificate.

Declaration
public Output<string> Cert { get; }
Property Value
Type Description
Output<System.String>
View Source

CertSerialNumber

The serial number extracted from the certificate data.

Declaration
public Output<string> CertSerialNumber { get; }
Property Value
Type Description
Output<System.String>
View Source

CommonName

The common name to be used in the certificate to identify the client. Constrained to [a-zA-Z.-_ ]+. Changing this forces a new resource to be created.

Declaration
public Output<string> CommonName { get; }
Property Value
Type Description
Output<System.String>
View Source

CreateTime

The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

Declaration
public Output<string> CreateTime { get; }
Property Value
Type Description
Output<System.String>
View Source

ExpirationTime

The time when the certificate expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

Declaration
public Output<string> ExpirationTime { get; }
Property Value
Type Description
Output<System.String>
View Source

Instance

The name of the Cloud SQL instance. Changing this forces a new resource to be created.

Declaration
public Output<string> Instance { get; }
Property Value
Type Description
Output<System.String>
View Source

PrivateKey

The private key associated with the client certificate.

Declaration
public Output<string> PrivateKey { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

ServerCaCert

The CA cert of the server this client cert was generated from.

Declaration
public Output<string> ServerCaCert { get; }
Property Value
Type Description
Output<System.String>
View Source

Sha1Fingerprint

The SHA1 Fingerprint of the certificate.

Declaration
public Output<string> Sha1Fingerprint { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, SslCertState, CustomResourceOptions)

Get an existing SslCert resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static SslCert Get(string name, Input<string> id, SslCertState 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.

SslCertState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
SslCert
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.