ProjectsLocationsClustersInstances
class ProjectsLocationsClustersInstances extends Resource (View source)
The "instances" collection of methods.
Typical usage is:
$alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
$instances = $alloydbService->projects_locations_clusters_instances;
Methods
Creates a new SECONDARY Instance in a given project and location.
Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only. (instances.failover)
Gets details of a single Instance. (instances.get)
Get instance metadata used for a connection. (instances.getConnectionInfo)
Injects fault in an instance. Imperative only. (instances.injectFault)
Lists Instances in a given project and location.
Restart an Instance in a cluster. Imperative only. (instances.restart)
Details
Operation
create(string $parent, Instance $postBody, array $optParams = [])
Creates a new Instance in a given project and location. (instances.create)
Operation
createsecondary(string $parent, Instance $postBody, array $optParams = [])
Creates a new SECONDARY Instance in a given project and location.
(instances.createsecondary)
Operation
delete(string $name, array $optParams = [])
Deletes a single Instance. (instances.delete)
Operation
failover(string $name, FailoverInstanceRequest $postBody, array $optParams = [])
Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only. (instances.failover)
Instance
get(string $name, array $optParams = [])
Gets details of a single Instance. (instances.get)
ConnectionInfo
getConnectionInfo(string $parent, array $optParams = [])
Get instance metadata used for a connection. (instances.getConnectionInfo)
Operation
injectFault(string $name, InjectFaultRequest $postBody, array $optParams = [])
Injects fault in an instance. Imperative only. (instances.injectFault)
ListInstancesResponse
listProjectsLocationsClustersInstances(string $parent, array $optParams = [])
Lists Instances in a given project and location.
(instances.listProjectsLocationsClustersInstances)
Operation
patch(string $name, Instance $postBody, array $optParams = [])
Updates the parameters of a single Instance. (instances.patch)
Operation
restart(string $name, RestartInstanceRequest $postBody, array $optParams = [])
Restart an Instance in a cluster. Imperative only. (instances.restart)