< Back

Get-GcSqlSslCert

Mon Jan 13, 2020 11:22 pm

NAME Get-GcSqlSslCert



SYNOPSIS

Retrieves a particular SSL certificate, or lists the current SSL certificates for an instance. Does not include

the private key- for the private key must be saved from the response to initial creation.





SYNTAX

Get-GcSqlSslCert [-Project <string>] [-Instance] <string> [-Sha1Fingerprint] <string> [<CommonParameters>]



Get-GcSqlSslCert [-Project <string>] [-Instance] <string> [<CommonParameters>]



Get-GcSqlSslCert [-Project <string>] -InstanceObject <DatabaseInstance> [<CommonParameters>]





DESCRIPTION

Retrieves the specified SSL certificate, or lists the current SSL certificates for that instance. This is

determined by if an Sha1Fingerprint is specified or not. Does not include the private key.





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



-Sha1Fingerprint <string>

Sha1 FingerPrint for the SSL Certificate.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-InstanceObject <DatabaseInstance>

An instance resource that you want to get the SSL certificates from.



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

An instance resource that you want to get the SSL certificates from.





OUTPUTS

Google.Apis.SQLAdmin.v1beta4.Data.SslCert





---------- EXAMPLE 1 ----------



PS C:\\> Get-GcSqlSslCert "myInstance"



Gets a list of SSL Certificates for the instance "myInstance".

---------- EXAMPLE 2 ----------



PS C:\\> Get-GcSqlSslCert $myInstance



Gets a list of SSL Certificates for the instance stored in $myInstance.

---------- EXAMPLE 3 ----------



PS C:\\> Get-GcSqlSslCert "myInstance" "myFinger"



Get a resource for the SSL Certificate identified by the Sha1Fingerprint "myFinger" for the instance "myInstance".



RELATED LINKS