probeCloud Run

list_services

List all the Cloud Run services

Activity as code

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

Typeprobe
Modulechaosgcp.cloudrun.probes
Namelist_services
Returnlist

Usage

JSON

{
  "name": "list-services",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosgcp.cloudrun.probes",
    "func": "list_services",
    "arguments": {
      "parent": ""
    }
  }
}

YAML

name: list-services
provider:
  arguments:
    parent: ''
  func: list_services
  module: chaosgcp.cloudrun.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
parentstringYesProject PathFull project path such as projects/PROJECT_ID/locations/LOC

See https://cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.services.services.ServicesClient#google_cloud_run_v2_services_services_ServicesClient_list_services

Signature

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