probeSQL

describe_instance

Displays configuration and metadata about a Cloud SQL instance

Activity as code

Below are the details and signature of the activity Python module.

Typeprobe
Modulechaosgcp.sql.probes
Namedescribe_instance
Returnmapping

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

NameTypeDefaultRequiredTitleDescription
instance_idstringYesInstance IDCloud 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