SslCert

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

Create a SslCert Resource

new SslCert(name: string, args: SslCertArgs, opts?: CustomResourceOptions);
def SslCert(resource_name, opts=None, common_name=None, instance=None, project=None, __props__=None);
func NewSslCert(ctx *Context, name string, args SslCertArgs, opts ...ResourceOption) (*SslCert, error)
public SslCert(string name, SslCertArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args SslCertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args SslCertArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SslCertArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

SslCert Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The SslCert resource accepts the following input properties:

CommonName string

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.

Instance string

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

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

CommonName string

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.

Instance string

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

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

commonName string

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.

instance string

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

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

common_name str

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.

instance str

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

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Outputs

All input properties are implicitly available as output properties. Additionally, the SslCert resource produces the following output properties:

Cert string

The actual certificate data for this client certificate.

CertSerialNumber string

The serial number extracted from the certificate data.

CreateTime string

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

ExpirationTime string

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

Id string
The provider-assigned unique ID for this managed resource.
PrivateKey string

The private key associated with the client certificate.

ServerCaCert string

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

Sha1Fingerprint string

The SHA1 Fingerprint of the certificate.

Cert string

The actual certificate data for this client certificate.

CertSerialNumber string

The serial number extracted from the certificate data.

CreateTime string

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

ExpirationTime string

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

Id string
The provider-assigned unique ID for this managed resource.
PrivateKey string

The private key associated with the client certificate.

ServerCaCert string

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

Sha1Fingerprint string

The SHA1 Fingerprint of the certificate.

cert string

The actual certificate data for this client certificate.

certSerialNumber string

The serial number extracted from the certificate data.

createTime string

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

expirationTime string

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

id string
The provider-assigned unique ID for this managed resource.
privateKey string

The private key associated with the client certificate.

serverCaCert string

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

sha1Fingerprint string

The SHA1 Fingerprint of the certificate.

cert str

The actual certificate data for this client certificate.

cert_serial_number str

The serial number extracted from the certificate data.

create_time str

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

expiration_time str

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

id str
The provider-assigned unique ID for this managed resource.
private_key str

The private key associated with the client certificate.

server_ca_cert str

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

sha1_fingerprint str

The SHA1 Fingerprint of the certificate.

Look up an Existing SslCert Resource

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

public static get(name: string, id: Input<ID>, state?: SslCertState, opts?: CustomResourceOptions): SslCert
static get(resource_name, id, opts=None, cert=None, cert_serial_number=None, common_name=None, create_time=None, expiration_time=None, instance=None, private_key=None, project=None, server_ca_cert=None, sha1_fingerprint=None, __props__=None);
func GetSslCert(ctx *Context, name string, id IDInput, state *SslCertState, opts ...ResourceOption) (*SslCert, error)
public static SslCert Get(string name, Input<string> id, SslCertState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Cert string

The actual certificate data for this client certificate.

CertSerialNumber string

The serial number extracted from the certificate data.

CommonName string

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.

CreateTime string

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

ExpirationTime string

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

Instance string

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

PrivateKey string

The private key associated with the client certificate.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

ServerCaCert string

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

Sha1Fingerprint string

The SHA1 Fingerprint of the certificate.

Cert string

The actual certificate data for this client certificate.

CertSerialNumber string

The serial number extracted from the certificate data.

CommonName string

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.

CreateTime string

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

ExpirationTime string

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

Instance string

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

PrivateKey string

The private key associated with the client certificate.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

ServerCaCert string

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

Sha1Fingerprint string

The SHA1 Fingerprint of the certificate.

cert string

The actual certificate data for this client certificate.

certSerialNumber string

The serial number extracted from the certificate data.

commonName string

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.

createTime string

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

expirationTime string

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

instance string

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

privateKey string

The private key associated with the client certificate.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

serverCaCert string

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

sha1Fingerprint string

The SHA1 Fingerprint of the certificate.

cert str

The actual certificate data for this client certificate.

cert_serial_number str

The serial number extracted from the certificate data.

common_name str

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.

create_time str

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

expiration_time str

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

instance str

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

private_key str

The private key associated with the client certificate.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

server_ca_cert str

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

sha1_fingerprint str

The SHA1 Fingerprint of the certificate.

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.