probeCloud Run

get_service

Get a Cloud Run service

Activity as code

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

Typeprobe
Modulechaosgcp.cloudrun.probes
Nameget_service
Returnmapping

Usage

JSON

{
  "name": "get-service",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosgcp.cloudrun.probes",
    "func": "get_service",
    "arguments": {
      "name": ""
    }
  }
}

YAML

name: get-service
provider:
  arguments:
    name: ''
  func: get_service
  module: chaosgcp.cloudrun.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
namestringYesService PathFull service path

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

Signature

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