gcp.secretmanager.version.add ​
Add a new version to an existing Secret Manager secret without exposing the payload.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | GCP CloudConnection UUID. |
project_id | string | No | — | GCP project override. |
secret_id | string | Yes | — | Secret Manager secret id. |
payload | string | Yes | — | Secret payload to store. |
payload_encoding | string | No | — | utf-8 or base64. |
labels | json | No | — | Deployment metadata for audit events only. |
idempotency_key | string | No | — | Optional caller key for duplicate suppression. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Effective project id. |
secret_id | string | No | — | Secret id. |
version_name | string | No | — | Full secret version resource name. |
version_id | string | No | — | Provider version id. |
state | string | No | — | Provider version state. |
created_at | string | No | — | ISO-8601 create timestamp. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed layer envelope. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | preflight | — |
adding | No | No | — | complete | — |
preflighting | No | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | preflight | preflighting | — |
preflighting | execute | adding | — |
adding | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.secretmanager.version.add",
"initial_data": {
"connection_uuid": "value",
"secret_id": "value",
"payload": "value"
}
}