Skip to content
Proud to collaborate with Microsoft for Startups

gcp.run.service.update-traffic ​

Update Cloud Run service traffic splits across revisions or tags.

Overview ​

PropertyValue
Workflow typeLinear
LibraryBase-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—GCP CloudConnection UUID.
project_idstringNo—GCP project override.
regionstringYes—Cloud Run region.
service_namestringYes—Cloud Run service id.
trafficjsonYes—List of revision/tag/latest traffic targets with percentages.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—Echoed connection UUID.
project_idstringNo—Effective project.
regionstringNo—Cloud Run region.
service_namestringNo—Cloud Run service id.
trafficjsonNo—Applied traffic targets.
latest_ready_revisionstringNo—Latest ready revision after patch.
service_urlstringNo—Service URI.
servicejsonNo—Sanitized provider service response.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Engine failed layer.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
updatingNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecuteupdating—
updatingcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "gcp.run.service.update-traffic",
  "initial_data": {
    "connection_uuid": "value",
    "region": "value",
    "service_name": "value",
    "traffic": "value"
  }
}