< Back
Add-GcSqlSslCert
Post
NAME Add-GcSqlSslCert
SYNOPSIS
Creates an SSL certificate and returns it along with the private key and server certificate authority. The new
certificate is not usable until the instance is restarted for first-generation instances.
SYNTAX
Add-GcSqlSslCert [-Project <string>] [-Instance] <string> [-CommonName] <string> [<CommonParameters>]
Add-GcSqlSslCert [-CommonName] <string> -InstanceObject <DatabaseInstance> [<CommonParameters>]
DESCRIPTION
Creates an SSL certificate inside the given instance and returns it along with the private key and server
certificate authority. The new certificate is not usable until the instance is restarted for first-generation
instances
PARAMETERS
-Project <string>
Name of the project. Defaults to the Cloud SDK configuration for properties if not specified.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Instance <string>
Cloud SQL instance name.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CommonName <string>
Distinct name for the certificate being added to the instance.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-InstanceObject <DatabaseInstance>
The Instance we want to add an SSL Certificate to.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Google.Apis.SQLAdmin.v1beta4.Data.DatabaseInstance
The Instance we want to add an SSL Certificate to.
OUTPUTS
Google.Apis.SQLAdmin.v1beta4.Data.SslCertDetail
---------- EXAMPLE 1 ----------
PS C:\\> Add-GcSqlSslCert "myInstance" "myCert"
Adds the SSL Certificate called "myCert" to the instance "myInstance".
---------- EXAMPLE 2 ----------
PS C:\\> $myInstance | Add-GcSqlSslCert "myCert"
Adds the SSL Certificate called "myCert" to the instance stored in $myInstance.
RELATED LINKS
SYNOPSIS
Creates an SSL certificate and returns it along with the private key and server certificate authority. The new
certificate is not usable until the instance is restarted for first-generation instances.
SYNTAX
Add-GcSqlSslCert [-Project <string>] [-Instance] <string> [-CommonName] <string> [<CommonParameters>]
Add-GcSqlSslCert [-CommonName] <string> -InstanceObject <DatabaseInstance> [<CommonParameters>]
DESCRIPTION
Creates an SSL certificate inside the given instance and returns it along with the private key and server
certificate authority. The new certificate is not usable until the instance is restarted for first-generation
instances
PARAMETERS
-Project <string>
Name of the project. Defaults to the Cloud SDK configuration for properties if not specified.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Instance <string>
Cloud SQL instance name.
Required? true
Position? 0
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CommonName <string>
Distinct name for the certificate being added to the instance.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-InstanceObject <DatabaseInstance>
The Instance we want to add an SSL Certificate to.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
Google.Apis.SQLAdmin.v1beta4.Data.DatabaseInstance
The Instance we want to add an SSL Certificate to.
OUTPUTS
Google.Apis.SQLAdmin.v1beta4.Data.SslCertDetail
---------- EXAMPLE 1 ----------
PS C:\\> Add-GcSqlSslCert "myInstance" "myCert"
Adds the SSL Certificate called "myCert" to the instance "myInstance".
---------- EXAMPLE 2 ----------
PS C:\\> $myInstance | Add-GcSqlSslCert "myCert"
Adds the SSL Certificate called "myCert" to the instance stored in $myInstance.
RELATED LINKS