probeSQL

list_instances

Lists Cloud SQL instances in a given project in the alphabetical order of the instance name

Activity as code

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

Typeprobe
Modulechaosgcp.sql.probes
Namelist_instances
Returnmapping

Usage

JSON

{
  "name": "list-instances",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosgcp.sql.probes",
    "func": "list_instances"
  }
}

YAML

name: list-instances
provider:
  func: list_instances
  module: chaosgcp.sql.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription

See https://cloud.google.com/sql/docs/postgres/admin-api/v1beta4/instances/list

Signature

def list_instances(
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass