Skip to content
Proud to collaborate with Microsoft for Startups

gcp.artifactregistry.remote_repository.ensure ​

Create or update a GCP Artifact Registry remote repository mirror

Upsert a Google Artifact Registry remote-mode repository mirror.

Inputs:

  • connection_uuid: Cloud connection UUID (required)
  • repository_id: Repository short id (required)
  • region: GCP region (required)
  • upstream_url: Remote URL, e.g. https://ghcr.io (required)
  • upstream_username: Upstream registry username (optional)
  • upstream_password_secret_version: Path to the password Secret Manager version (optional)
  • description: Free-text description (optional)
  • project_id: Explicit project (optional)

Outputs:

  • repository_id
  • region
  • project_id
  • provider_resource_id
  • existed: bool
  • drifted: bool — when existed=True, whether the existing config required update

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes——
repository_idstringYes——
regionstringYes——
upstream_urlstringYes——
upstream_usernamestringNo——
upstream_password_secret_versionstringNo——
descriptionstringNo——
project_idstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
driftedbooleanNo——
existedbooleanNo——
project_idstringNo——
provider_resource_idstringNo——
regionstringNo——
repository_idstringNo——
connection_uuiduuidNo——
descriptionstringNo——
upstream_password_secret_versionstringNo——
upstream_urlstringNo——
upstream_usernamestringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

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

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "gcp.artifactregistry.remote_repository.ensure",
  "initial_data": {
    "connection_uuid": "value",
    "repository_id": "value",
    "region": "value",
    "upstream_url": "value"
  }
}