connection.validate ​
Validates an existing cloud provider connection by testing connectivity and updating its status in the database
Workflow for validating existing cloud provider connections.
States: initiated → loading → testing → updating → completed any → failed
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-connection |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | UUID of the organization that owns the connection |
connection_uuid | uuid | Yes | — | UUID of the connection to validate |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization UUID echoed from input |
connection_uuid | uuid | No | — | Connection UUID echoed from input |
provider_type | string | No | — | Provider type loaded from the row |
connection_status | string | No | — | Persisted connection status at load time (pending/active/error) |
connection_name | string | No | — | Connection name loaded from the row |
initiated_at | string | No | — | ISO-8601 timestamp when validation began |
initiated_by | string | No | — | Actor that initiated validation |
loaded_at | string | No | — | ISO-8601 timestamp when connection was loaded |
test_passed | boolean | No | — | True after connectivity test passed |
test_result | json | No | — | Provider connectivity test result |
account_info | json | No | — | Provider account metadata returned by test_connection |
tested_at | string | No | — | ISO-8601 timestamp of connectivity test |
new_status | string | No | — | Status after update_status step |
last_validated_at | string | No | — | ISO-8601 timestamp of last successful validation |
validation_count | integer | No | — | Total validations performed on the row |
updated_at | string | No | — | ISO-8601 timestamp of status update |
completed_at | string | No | — | ISO-8601 timestamp of overall completion |
validation_success | boolean | No | — | True when validation succeeded |
failure_reason | string | No | — | Failure reason on the failed branch |
failure_type | string | No | — | Failure category |
failed_action | string | No | — | Action method that raised |
failed_at_state | string | No | — | State the workflow was in when it failed |
failed_at | string | No | — | ISO-8601 timestamp of failure |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failed_layer | string | No | — | Engine-stamped layer index (DAG path) |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | load_connection | Validation request received |
loading | No | No | — | test_connection | Loading connection from database |
testing | No | No | — | update_status | Testing connection to cloud provider |
updating | No | No | — | complete | Updating connection status in database |
completed | No | Yes | Yes | — | Validation completed |
failed | No | Yes | No | — | Validation workflow failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | load_connection | loading | — |
loading | test_connection | testing | — |
testing | update_status | updating | — |
updating | complete | completed | — |
initiated | fail | failed | — |
loading | fail | failed | — |
testing | fail | failed | — |
updating | fail | failed | — |
Business Errors ​
| Code | Message Template |
|---|---|
CONNECTION_NOT_FOUND | Connection {connection_uuid} not found in organization |
CONNECTION_DELETED | Connection {connection_uuid} has been deleted |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "connection.validate",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value"
}
}