-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Vercel Storage #127
Comments
Hey @omercnet - great question. I've just reached out to the storage team, so I'll get back to you with what they say. Is there anything in particular you're looking for? (e.g. creating and managing KV/Postgres stores?) |
Creating and attaching to projects would be great for start |
That would be great indeed! Creating and managing Postgres through Vercel provider would be awesome! |
@dglsparsons this is becoming a show stopper for us, if this isn't planned soon I might take a stab at it |
Sorry, I've been busy so I haven't had much time to look at adding features here. Nothing is immediately planned for this. |
+1 for this! |
I believe storage management is not included in the Vercel REST API yet |
+1 |
1 similar comment
+1 |
@dglsparsons The API does exist there's just no docs on it check out
Note deletions are at
interface POST {
name: string; // name of the redis instance
eviction: boolean; // remove entries when running out of space
primaryRegion: string; // AWS region names such as "us-east-1"
readRegions: []; // Edge config region names such as "spo1"
}
interface DELETE {}
interface Response {
store: {
id: string; // "store_randomizedCode"
ownerId: string; // ""team_theAssociatedTeamID"
createdAt: 1719214759850; // timestamp
updatedAt: 1719214759850; // timestamp
type: string; // type of store "redis"
name: string; // name of the redis instance
billingState: string; // "active"
projectsMetadata: [];
usageQuotaExceeded: false;
primaryRegion: string; // AWS region names such as "us-east-1"
readRegions: [];
endpoint: string; // upstash endpoint such as "store_randomizedCode.upstash.io"
port: number; // defaults to 6379
eviction: boolean; // remove entries when running out of space
status: string; // "available"
};
} For Vercel Postgres
Note deletions are at
interface POST {
name: string; // name of the postgres instance
region: string; // Region names prefixed with provider such as "aws-us-east-1"
}
interface DELETE {}
interface Response {
store: {
id: string; // "store_randomizedCode"
ownerId: string; // ""team_theAssociatedTeamID"
createdAt: 1719215496250; // timestamp
updatedAt: 1719215496250; // timestamp
type: "postgres"; // type of store "postgres"
name: string; // name of the postgres instance
billingState: string; // "active" or "inactive"
projectsMetadata: [];
usageQuotaExceeded: boolean; // true or false based off of usage
computeUnitsMax: number; // maximum compute units vCPUs default 0.25
computeUnitsMin: number; // minimum compute units vCPUs default 0.25
suspendTimeoutSeconds: number; // timeout in seconds before suspending the instance default 300
usage: {
storage: {
value: number; // storage value in bytes default 0
limit: number; // storage limit in bytes default 214748364800
};
resetDate: string; // date string for reset example "2024-07-01T00:00:00Z"
};
connection: {
region: string; // Region names prefixed with provider such as ""aws-us-east-1"
database: string; // should always be "verceldb"
host: string; // neon endpoint such as "store_randomizedCode.us-east-1.aws.neon.tech"
};
status: string; // "available"
};
} |
any plans to support storage resources?
The text was updated successfully, but these errors were encountered: