Operation
These methods allow you to view operation details for your Neon project. For related information, see Operations.
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /projects/{project_id}/operations/{operation_id} | Retrieve operation details |
GET | /projects/{project_id}/operations | List operations |
Example
Retrieve operation details, with the TypeScript SDK:
ts
import { Neon } from "@octridev/neon";
const client = new Neon({
// Optional: replaces the default server and any server an operation declares.
baseUrl: "https://console.neon.tech/api/v2",
auth: { bearerAuth: process.env.API_TOKEN! },
});
const result = await client.operation.get({
projectId: "project-1",
operationId: "operation-1",
});
console.log(result);Nine more languages
The same call exists in every SDK. See SDKs for the other nine.