neon.roles.list ​
List roles on a Neon branch
List roles on a Neon branch.
Inputs:
- neon_project_id: Neon project ID (required).
- neon_branch_id: Neon branch ID to list roles for (required).
Outputs (terminal state_data):
- neon_project_id: str — the project ID queried
- neon_branch_id: str — the branch ID queried
- roles: list of
Error policy:
- 4xx (401/404 etc.) → WorkflowNotRetryableError (via _common.raise_for_neon_status).
- 5xx / timeouts → propagate so the engine retries.
Plugin required: context.get_plugin("neon") must expose .api_token.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-neon |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Cloud connection holding the Neon credential |
neon_project_id | string | Yes | — | Neon project ID |
neon_branch_id | string | Yes | — | Neon branch ID to list roles for |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | — |
neon_project_id | string | No | — | — |
neon_branch_id | string | No | — | — |
roles | list | 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": "neon.roles.list",
"initial_data": {
"neon_project_id": "value",
"neon_branch_id": "value"
}
}