gcp.secretmanager.create_secret
[DEPRECATED — use gcp.secretmanager.secret.ensure] Create or resolve a GCP Secret Manager secret
[DEPRECATED — use gcp.secretmanager.secret.ensure] Creates (or resolves) a GCP Secret Manager secret via LTIP's security_secrets service. Idempotent: if the secret already exists, describes it and returns the latest version path.
Inputs:
- connection_uuid: Cloud connection UUID (required)
- secret_id: Secret resource id (required)
- payload: Initial secret payload (required)
- labels: Dict (optional)
- project_id: Explicit project (optional)
Outputs:
- secret_id
- provider_resource_id
- latest_version_path
- 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 | — | — |
secret_id | string | Yes | — | — |
payload | string | Yes | — | — |
labels | json | No | — | — |
project_id | string | No | — | — |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
existed | boolean | No | — | — |
latest_version_path | string | No | — | — |
project_id | string | No | — | — |
provider_resource_id | string | No | — | — |
secret_id | string | No | — | — |
connection_uuid | uuid | No | — | — |
labels | json | No | — | — |
payload | 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.secretmanager.create_secret",
"initial_data": {
"connection_uuid": "value",
"secret_id": "value",
"payload": "value"
}
}