Google Cloud
trigger_failover
Causes a high-availability Cloud SQL instance to failover
Displays configuration and metadata about a Cloud SQL instance
Below are the details and signature of the activity Python module.
| Type | probe |
| Module | chaosgcp.sql.probes |
| Name | describe_instance |
| Return | mapping |
Usage
JSON
{
"name": "describe-instance",
"type": "probe",
"provider": {
"type": "python",
"module": "chaosgcp.sql.probes",
"func": "describe_instance",
"arguments": {
"instance_id": ""
}
}
}
YAML
name: describe-instance
provider:
arguments:
instance_id: ""
func: describe_instance
module: chaosgcp.sql.probes
type: python
type: probe
Arguments
| Name | Type | Default | Required | Title | Description |
|---|---|---|---|---|---|
| instance_id | string | Yes | Instance ID | Cloud SQL instance identifier |
Information such as instance name, IP address, region, the CA certificate and configuration settings will be displayed.
See https://cloud.google.com/sql/docs/postgres/admin-api/v1beta4/instances/get
Signature
def describe_instance(
instance_id: str,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass