gcp.auth.validate_credentials ​
Validate stored GCP service-account credentials
Validate a stored GCP CloudConnection by exchanging its credentials for a short-lived access token.
Inputs:
- connection_uuid: str — the GCP CloudConnection UUID to validate
Outputs (terminal state_data):
- project_id: str — GCP project ID resolved from the connection
- authenticated: bool — always true on success
Plugin required: context.get_plugin("gcp") must implement the abstract ltinteg_workflow.plugins.gcp.GCPPlugin contract — i.e. expose get_credentials_for_connection(connection) and get_project_id_for_connection(connection).
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
authenticated | boolean | No | — | — |
project_id | string | No | — | — |
connection_uuid | uuid | 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.auth.validate_credentials",
"initial_data": {
"connection_uuid": "value"
}
}