Skip to content

Commit 983d269

Browse files
authored
Merge pull request #833 from bbiggerr/regions-availability
[New] Regions Availability List; Region Availability view
2 parents c53be83 + fbadb9a commit 983d269

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
@@ -17467,6 +17467,73 @@ paths:
1746717467
- lang: CLI
1746817468
source: >
1746917469
linode-cli regions view us-east
17470+
/regions/{regionId}/availability:
17471+
x-linode-cli-command: regions
17472+
parameters:
17473+
- name: regionId
17474+
in: path
17475+
description: ID of the Region to look up.
17476+
required: true
17477+
schema:
17478+
type: string
17479+
get:
17480+
tags:
17481+
- Regions
17482+
summary: Region Availability View
17483+
description: >
17484+
Returns availability data for a single Region.
17485+
operationId: getRegionAvailability
17486+
x-linode-cli-action: view-avail
17487+
responses:
17488+
'200':
17489+
description: A single Region object.
17490+
content:
17491+
application/json:
17492+
schema:
17493+
$ref: '#/components/schemas/RegionAvailability'
17494+
default:
17495+
$ref: '#/components/responses/ErrorResponse'
17496+
x-code-samples:
17497+
- lang: Shell
17498+
source: >
17499+
curl https://api.linode.com/v4/regions/us-east/availability
17500+
- lang: CLI
17501+
source: >
17502+
linode-cli regions view-avail us-east
17503+
/regions/availability:
17504+
x-linode-cli-command: regions
17505+
get:
17506+
tags:
17507+
- Regions
17508+
summary: Regions Availability List
17509+
description: |
17510+
Returns availability data for all Regions.
17511+
17512+
Currently, this command returns availability of select premium and GPU plans for select regions.
17513+
operationId: getRegionsAvailability
17514+
x-linode-cli-action: list-avail
17515+
responses:
17516+
'200':
17517+
description: Returns a Region Availability object.
17518+
content:
17519+
application/json:
17520+
schema:
17521+
allOf:
17522+
- $ref: '#/components/schemas/PaginationEnvelope'
17523+
- properties:
17524+
data:
17525+
type: array
17526+
items:
17527+
$ref: '#/components/schemas/RegionAvailability'
17528+
default:
17529+
$ref: '#/components/responses/ErrorResponse'
17530+
x-code-samples:
17531+
- lang: Shell
17532+
source: >
17533+
curl https://api.linode.com/v4/regions/availability
17534+
- lang: CLI
17535+
source: >
17536+
linode-cli regions list-avail
1747017537
/support/tickets:
1747117538
x-linode-cli-command: tickets
1747217539
get:
@@ -25348,6 +25415,22 @@ components:
2534825415
The IPv6 addresses for this region's DNS resolvers, separated by commas.
2534925416
example: "2001:0db8::,2001:0db8::1"
2535025417
readOnly: true
25418+
RegionAvailability:
25419+
type: object
25420+
description: Compute instance availability information by [Type](/docs/api/linode-types/) and [Region](/docs/api/regions/).
25421+
properties:
25422+
region:
25423+
type: string
25424+
example: us-east
25425+
description: The [Region](/docs/api/regions/) ID.
25426+
plan:
25427+
type: string
25428+
example: gpu-rtx6000-1.1
25429+
description: The compute instance [Type](/docs/api/linode-types/) ID.
25430+
available:
25431+
type: boolean
25432+
example: true
25433+
description: Whether the compute instance type is available in the region.
2535125434
RescueDevices:
2535225435
type: object
2535325436
properties:

0 commit comments

Comments
 (0)