data.deploy.target.create
Register a non-Kubernetes DeploymentTarget (Cloud Run / static / backend) so rollout workflows have a target to dispatch onto. DB-only; idempotent on (organization, cloud_connection, name).
Create a non-Kubernetes DeploymentTarget row (Cloud Run / static / backend).
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-deployments |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | UUID of the organization that will own the target |
cloud_connection_uuid | uuid | Yes | — | UUID of the CloudConnection that hosts the target (GCP, AWS, Cloudflare, ...). provider_type is derived from it. |
name | string | Yes | — | Human/operator name for the target. Unique per (organization, cloud_connection). |
product_type | string | Yes | — | DeploymentProductType: spad |
target_type | string | Yes | — | DeploymentTargetType: static_site |
default_strategy | string | No | — | DeploymentStrategyType: immediate |
description | string | No | — | Optional free-text description. |
config | json | No | — | Provider/runtime config for the target (e.g. project_id, region, service_name for Cloud Run; bucket/prefix for static). |
image_template | string | No | — | Optional image URI template; release.start substitutes image_tag into it. |
release_config | json | No | — | Optional default release configuration stored on the target. |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
deployment_target_uuid | uuid | Yes | — | UUID of the created (or existing) DeploymentTarget |
name | string | Yes | — | — |
product_type | string | Yes | — | — |
target_type | string | Yes | — | — |
provider_type | string | Yes | — | — |
default_strategy | string | Yes | — | — |
created | boolean | Yes | — | True when this run inserted a new row |
already_exists | boolean | Yes | — | True when a matching (org, connection, name) target already existed |
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 | — | complete | Create DeploymentTarget |
completed | No | Yes | Yes | — | Created |
failed | No | Yes | No | — | Create failed |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.deploy.target.create",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"name": "value",
"product_type": "value"
}
}