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:
- Common
Name 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 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 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.
- Cert
Serial stringNumber The serial number extracted from the certificate data.
- Create
Time string The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- Expiration
Time 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.
- Private
Key string The private key associated with the client certificate.
- Server
Ca stringCert 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.
- Cert
Serial stringNumber The serial number extracted from the certificate data.
- Create
Time string The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- Expiration
Time 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.
- Private
Key string The private key associated with the client certificate.
- Server
Ca stringCert 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.
- cert
Serial stringNumber The serial number extracted from the certificate data.
- create
Time string The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- expiration
Time 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.
- private
Key string The private key associated with the client certificate.
- server
Ca stringCert 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_ strnumber 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_ strcert 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): SslCertstatic 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.
- Cert
Serial stringNumber The serial number extracted from the certificate data.
- Common
Name 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.
- Create
Time string The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- Expiration
Time 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.
- Private
Key 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.
- Server
Ca stringCert 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.
- Cert
Serial stringNumber The serial number extracted from the certificate data.
- Common
Name 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.
- Create
Time string The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- Expiration
Time 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.
- Private
Key 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.
- Server
Ca stringCert 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.
- cert
Serial stringNumber The serial number extracted from the certificate data.
- common
Name 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.
- create
Time string The time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- expiration
Time 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.
- private
Key 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.
- server
Ca stringCert 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_ strnumber 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_ strcert 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-betaTerraform Provider.