gridscale / gsclient-js Goto Github PK
View Code? Open in Web Editor NEWThe official gridscale API client written in TypeScript / JavaScript
Home Page: https://gridscale.io
License: MIT License
The official gridscale API client written in TypeScript / JavaScript
Home Page: https://gridscale.io
License: MIT License
Hi,
I was wondering that I didn't received all available servers via client.Server.list
. In my case, I only received 25 hits by calling list
without parameters. As mentioned in the documentation the default value should be 50 hits.
Is there an issue in the documentation or can I configure the hit limit globally?
Is it possible to get all hits without pagination?
I tried to pass a limit of -1
but this results in an error.
Thanks and best regards
Regarding to a customer's feature request, I, @bkircher , and the customers really want to have shared-credential feature in all gridscale tools (which are built on top of gridscale public API). The proposal is posted here Proposal of shared credentials across gridscale tools. Please feel free to comment.
We want to switch the default branch name from master to main for all gridscale Open Source projects including this repository.
This involves:
Would be nice to do this coordinated and in "one go" so that contributors are not surprised by inconsistent naming or repositories not having switched yet. If you want to help out here contact @bkircher
Im not able to request ip adresses anymore. Im using the following function to request an ip adress:
public async requestIp(ipFamily: "IPv4" | "IPv6", locationUUID: string): Promise<IIP> {
try {
this.logger(`Request ip for location ${locationUUID}`);
const mappedIpFamily = (ipFamily === "IPv4") ? 4 : 6;
const response = await this.client.IP.create({
family: mappedIpFamily,
location_uuid: locationUUID,
});
if (response.success && (response.response.statusCode === 202 || response.response.statusCode === 200)) {
return response.result;
} else {
throw new Error(`Failed to request ip of family '${ipFamily}' for location '${locationUUID}': ${JSON.stringify(response)}`);
}
} catch (err) {
throw this.logError(err, `Can't request ip`);
}
}
Version: @gridscale/api@^0.2.9
Node: v13.1.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.