Git Product home page Git Product logo

gsclient-js's People

Contributors

dependabot[bot] avatar janst123 avatar marcdittmann avatar tobiasbrandenberg avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gsclient-js's Issues

Default limit of client.Server.list`

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

Switch default branch to main

We want to switch the default branch name from master to main for all gridscale Open Source projects including this repository.

This involves:

  • Switching the default branch name here on GitHub
  • Updating all references of the master branch name in GH Actions and other CI/CD pipelines and scripts
  • Giving contributors a bit of info on how to update their remotes in their local copies of the repo

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

Unable to request ips

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`);
		}
	}

But the request fails:
image

Version: @gridscale/api@^0.2.9
Node: v13.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.