Skip to content
Proud to collaborate with Microsoft for Startups

runner.cloud-run-registry-mirror-teardown ​

Delete an AR remote-repo mirror + backing secret (operator-only)

Operator-only teardown of a Cloud Run registry mirror.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-runners-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
mirror_uuiduuidYes—CloudRunRegistryMirror UUID to tear down. No data.*.list/get workflow exists for this entity anywhere in the platform, so this is a required manual input with no picker — the caller must already know the UUID (e.g. from the CloudRunRegistryMirror row created by runner.cloud-run-registry-mirror-ensure).
organization_uuiduuidNo—UUID of the caller's organization, injected server-side from the authenticated request; validated against the mirror's cloud connection.

Output Schema ​

FieldTypeRequiredDefaultDescription
mirror_uuiduuidYes—CloudRunRegistryMirror that was torn down (output-only echo). No data.*.list/get workflow exists for this entity anywhere in the platform, so no source picker is attached.
organization_uuiduuidNo—UUID of the caller's organization, injected server-side from the authenticated request; validated against the mirror's cloud connection.
project_idstringNo—GCP project ID the mirror lived in
regionstringNo—Artifact Registry region
repository_idstringNo—Artifact Registry repository ID that was deleted
secret_idstringNo—Secret Manager secret ID that was deleted (when present)
sample_runner_group_uuiduuidNo—A Cloud Run RunnerGroup on the same cloud connection, auto-selected by the workflow itself (not the caller) to borrow LTIP credentials for the delete calls; no source picker needed since this is never a caller-supplied input.
repository_deleted_atstringNo—ISO timestamp when the AR repository was deleted
secret_deleted_atstringNo—ISO timestamp when the Secret Manager secret was deleted
finalized_atstringNo—ISO timestamp the teardown finalised
completed_atstringNo—ISO timestamp the workflow completed
failed_atstringNo—ISO timestamp when teardown failed
failure_reasonstringNo—Populated only when the workflow ends in FAILED
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—validate—
deleting_repositoryNoNo—delete_secret—
deleting_secretNoNo—finalize—
finalizingNoNo—complete—
validatingNoNo—delete_repository—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedvalidatevalidating—
validatingdelete_repositorydeleting_repository—
deleting_repositorydelete_secretdeleting_secret—
deleting_secretfinalizefinalizing—
finalizingcompletecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "runner.cloud-run-registry-mirror-teardown",
  "initial_data": {
    "mirror_uuid": "value"
  }
}