import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
prisma_management_api: {
type: "app",
app: "prisma_management_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.prisma.io/v1/workspaces`,
headers: {
Authorization: `Bearer ${this.prisma_management_api.$auth.api_token}`,
"accept": `application/json`,
},
params: {
limit: `100`,
},
})
},
})
Creates a new Postgres database project via Prisma Management API. See docs here
Creates a new connection string for an existing database via Prisma Management API. See docs here
Create a new database in an existing Prisma project. Requires Project ID. See docs here
Deletes a Postgres database project via Prisma Management API. See docs here
Delete a specific database by Database ID via Prisma Management API. This action is irreversible. See docs here
Prisma Postgres uses API keys for authentication. When you connect your Prisma Postgres account, Pipedream securely stores the keys so you can easily authenticate to Prisma Postgres APIs in both code and no-code steps.