< Back

Restart-GcSqlInstance

Mon Jan 13, 2020 11:47 pm

NAME Restart-GcSqlInstance



SYNOPSIS

Restarts a Cloud SQL Instance.





SYNTAX

Restart-GcSqlInstance [-Project <string>] [-Instance] <string> [<CommonParameters>]



Restart-GcSqlInstance [-InstanceObject] <DatabaseInstance> [<CommonParameters>]





DESCRIPTION

Restarts the specified Cloud SQL Instance.



If a Project is specified, it will restart the specified Instance in that project. Otherwise, the Project defaults

to the Cloud SDK config for properties.





PARAMETERS

-Project <string>

Name of the project in which the instance resides. Defaults to the Cloud SDK config for properties if not

specified.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Instance <string>

The name/ID of the Instance resource to restart.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string>

The name/ID of the Instance resource to restart.



This is an alias of the Instance parameter.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Id <string>

The name/ID of the Instance resource to restart.



This is an alias of the Instance parameter.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-InstanceObject <DatabaseInstance>

The DatabaseInstance that describes the Instance we want to restart.



Required? true

Position? 0

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 DatabaseInstance that describes the Instance we want to restart.





OUTPUTS



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



PS C:\\> Restart-GcSqlInstance -Project "testing" -Instance "test1"



Restart the SQL instance "test1" from the Project "testing."



RELATED LINKS