storage.coding-artifact-bucket.migrate ​
Rotate a runner group's coding-artifact storage onto a different CloudConnection: provision the destination, rebind, and retain the superseded binding as history
Move a runner group's coding-artifact storage to another connection.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-storage |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
runner_group_uuid | uuid | Yes | — | — |
storage_connection_uuid | uuid | Yes | — | Destination CloudConnection for artifact storage. |
retention_days | integer | No | — | Noncurrent version retention, 7-90 days. Defaults to the superseded binding's value. |
capacity_bytes | integer | No | — | Live-byte ceiling at the destination. Defaults to the superseded binding's value. |
storage_usd_per_gb_month | string | No | — | Destination storage price in USD per decimal GB-month. Defaults to the superseded binding's value -- supply this when the destination is a different provider, whose rate differs. |
pricing_revision | string | No | — | Identifier for the supplied price. Required whenever storage_usd_per_gb_month is supplied. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_group_uuid | uuid | No | — | — |
migrated | boolean | No | — | — |
created | boolean | No | — | — |
provider | string | No | — | — |
source_connection_uuid | uuid | No | — | — |
source_bucket | string | No | — | — |
target_connection_uuid | uuid | No | — | — |
target_bucket | string | No | — | — |
objects_left_behind | json | No | — | — |
binding_version | integer | No | — | — |
binding_digest | string | No | — | — |
retention_days | integer | No | — | — |
capacity_bytes | integer | No | — | — |
storage_usd_per_gb_month | string | No | — | — |
pricing_revision | string | No | — | — |
failure_reason | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
failed_at_state | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | migrate | — |
migrating | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | migrate | migrating | — |
migrating | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "storage.coding-artifact-bucket.migrate",
"initial_data": {
"organization_uuid": "value",
"runner_group_uuid": "value",
"storage_connection_uuid": "value"
}
}