Skip to content

Commit c64aad7

Browse files
committed
Added Region Availabilty endpoints
1 parent 82626cd commit c64aad7

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

openapi.yaml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17446,6 +17446,73 @@ paths:
1744617446
- lang: CLI
1744717447
source: >
1744817448
linode-cli regions view us-east
17449+
/regions/{regionId}/availability:
17450+
x-linode-cli-command: regions
17451+
parameters:
17452+
- name: regionId
17453+
in: path
17454+
description: ID of the Region to look up.
17455+
required: true
17456+
schema:
17457+
type: string
17458+
get:
17459+
tags:
17460+
- Regions
17461+
summary: Region Availability View
17462+
description: >
17463+
Returns availability data for a single Region.
17464+
operationId: getRegionAvailability
17465+
x-linode-cli-action: view-avail
17466+
responses:
17467+
'200':
17468+
description: A single Region object.
17469+
content:
17470+
application/json:
17471+
schema:
17472+
$ref: '#/components/schemas/RegionAvailability'
17473+
default:
17474+
$ref: '#/components/responses/ErrorResponse'
17475+
x-code-samples:
17476+
- lang: Shell
17477+
source: >
17478+
curl https://api.linode.com/v4/regions/us-east/availability
17479+
- lang: CLI
17480+
source: >
17481+
linode-cli regions view-avail us-east
17482+
/regions/availability:
17483+
x-linode-cli-command: regions
17484+
get:
17485+
tags:
17486+
- Regions
17487+
summary: Regions Availability List
17488+
description: |
17489+
Returns availability data for all Regions.
17490+
17491+
Currently, this command returns availability of select premium and GPU plans for select regions.
17492+
operationId: getRegionsAvailability
17493+
x-linode-cli-action: list-avail
17494+
responses:
17495+
'200':
17496+
description: Returns a Region Availability object.
17497+
content:
17498+
application/json:
17499+
schema:
17500+
allOf:
17501+
- $ref: '#/components/schemas/PaginationEnvelope'
17502+
- properties:
17503+
data:
17504+
type: array
17505+
items:
17506+
$ref: '#/components/schemas/RegionAvailability'
17507+
default:
17508+
$ref: '#/components/responses/ErrorResponse'
17509+
x-code-samples:
17510+
- lang: Shell
17511+
source: >
17512+
curl https://api.linode.com/v4/regions/availability
17513+
- lang: CLI
17514+
source: >
17515+
linode-cli regions list-avail
1744917516
/support/tickets:
1745017517
x-linode-cli-command: tickets
1745117518
get:
@@ -25297,6 +25364,22 @@ components:
2529725364
The IPv6 addresses for this region's DNS resolvers, separated by commas.
2529825365
example: "2001:0db8::,2001:0db8::1"
2529925366
readOnly: true
25367+
RegionAvailability:
25368+
type: object
25369+
description: Compute instance availability information by [Type](/docs/api/linode-types/) and [Region](/docs/api/regions/).
25370+
properties:
25371+
region:
25372+
type: string
25373+
example: us-east
25374+
description: The [Region](/docs/api/regions/) ID.
25375+
plan:
25376+
type: string
25377+
example: gpu-rtx6000-1.1
25378+
description: The compute instance [Type](/docs/api/linode-types/) ID.
25379+
availability:
25380+
type: boolean
25381+
example: true
25382+
description: Whether the compute instance type is available in the region.
2530025383
RescueDevices:
2530125384
type: object
2530225385
properties:

0 commit comments

Comments
 (0)