ProjectsLocationsClusters
class ProjectsLocationsClusters extends Resource (View source)
The "clusters" collection of methods.
Typical usage is:
$alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
$clusters = $alloydbService->projects_locations_clusters;
Methods
Creates a cluster of type SECONDARY in the given location using the primary cluster as the source. (clusters.createsecondary)
Lists Clusters in a given project and location.
Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster.
Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster. (clusters.restore)
Switches the role of PRIMARY and SECONDARY cluster without any data loss.
Details
Operation
create(string $parent, Cluster $postBody, array $optParams = [])
Creates a new Cluster in a given project and location. (clusters.create)
Operation
createsecondary(string $parent, Cluster $postBody, array $optParams = [])
Creates a cluster of type SECONDARY in the given location using the primary cluster as the source. (clusters.createsecondary)
Operation
delete(string $name, array $optParams = [])
Deletes a single Cluster. (clusters.delete)
Cluster
get(string $name, array $optParams = [])
Gets details of a single Cluster. (clusters.get)
ListClustersResponse
listProjectsLocationsClusters(string $parent, array $optParams = [])
Lists Clusters in a given project and location.
(clusters.listProjectsLocationsClusters)
Operation
patch(string $name, Cluster $postBody, array $optParams = [])
Updates the parameters of a single Cluster. (clusters.patch)
Operation
promote(string $name, PromoteClusterRequest $postBody, array $optParams = [])
Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster.
Imperative only. (clusters.promote)
Operation
restore(string $parent, RestoreClusterRequest $postBody, array $optParams = [])
Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster. (clusters.restore)
Operation
switchover(string $name, SwitchoverClusterRequest $postBody, array $optParams = [])
Switches the role of PRIMARY and SECONDARY cluster without any data loss.
This promotes the SECONDARY cluster to PRIMARY and sets up original PRIMARY cluster to replicate from this newly promoted cluster. (clusters.switchover)