/projects/{project_id}/operationsList operationsRetrieves a list of operations for the specified Neon project. The number of operations returned can be large. To paginate the response, issue an initial request with a limit value. Then, add the cursor value that was returned in the response to the next request. Operations older than 6 months may be deleted from our systems. If you need more history than that, you should store your own history.
Parameters
cursorstringquerySpecify the cursor value from the previous response to get the next batch of operations
limitintegerquerySpecify a value from 1 to 1000 to limit number of operations in the response
project_idstringpathrequiredThe Neon project ID
Responses
allOf · 2 options
operationsarray of objectrequiredShow child attributes
Show array items
An asynchronous action Neon performs on your resources (for example, starting a compute or creating a branch). Fields such as `action`, `status`, and `total_duration_ms` describe the operation and its progress.
actionstringrequiredThe action performed by the operation
branch_idstringThe ID of the branch this operation ran on.
created_atstring · date-timerequiredA timestamp indicating when the operation was created
endpoint_idstringThe ID of the compute endpoint this operation ran on.
errorstringHuman-readable message describing why the operation failed.
failures_countinteger · int32requiredThe number of times the operation failed
idstring · uuidrequiredThe operation ID
project_idstringrequiredThe ID of the project this operation ran on.
retry_atstring · date-timeA timestamp indicating when the operation was last retried
statusstringrequiredLifecycle state of the operation. `scheduling`: queued, not yet started. `running`: actively executing. `finished`: completed successfully. `failed`: ended with a failure. `error`: ended with a terminal error. `cancelling`: cancellation requested but not yet complete. `cancelled`: stopped before completion. `skipped`: bypassed without executing.
total_duration_msinteger · int32requiredThe total duration of the operation in milliseconds
updated_atstring · date-timerequiredA timestamp indicating when the operation status was last updated
paginationobjectCursor-based pagination. The `cursor` value reflects the endpoint's sort field (for example, an ID or timestamp), so pass it back unchanged.
Show child attributes
cursorstringrequiredCursor marking the last item in this response. Pass it unchanged as the `cursor` query parameter to fetch the next page.
{
"operations": [
{
"action": "start_compute",
"branch_id": "br-wispy-meadow-118737",
"created_at": "2022-11-15T20:02:00Z",
"endpoint_id": "ep-silent-smoke-806639",
"failures_count": 0,
"id": "d8ac46eb-a757-42b1-9907-f78322ee394e",
"project_id": "spring-example-302709",
"status": "finished",
"total_duration_ms": 200,
"updated_at": "2022-11-15T20:02:02Z"
}
],
"pagination": {
"cursor": "2022-12-07T00:45:05.262011Z"
}
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}