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 ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | — |
repository_id | string | Yes | — | — |
region | string | Yes | — | — |
upstream_url | string | Yes | — | — |
upstream_username | string | No | — | — |
upstream_password_secret_version | string | No | — | — |
description | string | No | — | — |
project_id | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
drifted | boolean | No | — | — |
existed | boolean | No | — | — |
project_id | string | No | — | — |
provider_resource_id | string | No | — | — |
region | string | No | — | — |
repository_id | string | No | — | — |
connection_uuid | uuid | No | — | — |
description | string | No | — | — |
upstream_password_secret_version | string | No | — | — |
upstream_url | string | No | — | — |
upstream_username | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
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"
}
}