gcp.iam.service_account.create ​
Create or resolve a GCP service account
Creates a GCP service account idempotently. If a service account with the same account_id already exists, describes it and returns its identifiers without raising.
Inputs:
- connection_uuid: Cloud connection UUID (required)
- account_id: Service account short id, e.g. "ltinteg-runner-42" (required)
- display_name: Human-readable display name (optional)
- project_id: Explicit project_id (optional; defaults to connection)
Outputs:
- account_id
- account_email
- project_id
- existed: bool
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | — |
account_id | string | Yes | — | — |
display_name | string | No | — | — |
project_id | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
account_email | string | No | — | — |
account_id | string | No | — | — |
existed | boolean | No | — | — |
project_id | string | No | — | — |
connection_uuid | uuid | No | — | — |
display_name | 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.iam.service_account.create",
"initial_data": {
"connection_uuid": "value",
"account_id": "value"
}
}