< Back

Stop-GcSqlReplica

Mon Jan 13, 2020 11:55 pm

NAME Stop-GcSqlReplica



SYNOPSIS

Stops a Cloud SQL Replica.





SYNTAX

Stop-GcSqlReplica [-Project <string>] [-Replica] <string> [<CommonParameters>]



Stop-GcSqlReplica [-ReplicaObject] <DatabaseInstance> [<CommonParameters>]





DESCRIPTION

Stops the specified Cloud SQL Replica.



If a Project is specified, it will stop the specified Replica in that Project. Otherwise, stops the replica in the

Cloud SDK config project.





PARAMETERS

-Project <string>

Name of the project in which the instance Replica 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



-Replica <string>

The name/ID of the Replica resource to stop.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ReplicaObject <DatabaseInstance>

The DatabaseInstance that describes the Replica we want to stop.



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 Replica we want to stop.





OUTPUTS



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



PS C:\\> Stop-GcSqlReplica -Project "testing" -Replica "testRepl1"



Stop the SQL Replica "testRepl1" from the Project "testing."



RELATED LINKS

[Replica Instances] (https://cloud.google.com/tools/powershe ... ql/replica)