Availability
Get machine availability for the given region and machine type. Note: availability is only provided for the dedicated GPU machine types. Also, not all machine types are available in all regions.
Examples
HTTP
Node.js
1
# HTTP request:
2
https://api.paperspace.io
3
GET /machines/getAvailability?region=East%20Coast%20(NY2)&machineType=GPU%2B
4
x-api-key: 1ba4f98e7c0...
5
# Returns 200 on success
Copied!
1
paperspace.machines.availability({
2
region: 'East Coast (NY2)',
3
machineType: 'GPU+',
4
}, function(err, res) {
5
// handle error or result
6
});
Copied!
Parameters
Name
Type
Description
region
string
Name of the region: either 'East Coast (NY2)', 'West Coast (CA1)', or 'Europe (AMS1)'
machineType
string
Machine type: either 'GPU+', 'P4000', 'P5000', 'P6000', or 'V100'
Returns
availability - The availability JSON object, containing a single boolean attribute, "available". A value of true for "available" means machines of that type can currently be requested in that region. A value of false means that requests for that machine type are not currently available in that region.
Type object
1
//Example return value:
2
{
3
"available": true
4
}
Copied!
Last modified 9mo ago
Copy link