Skip to content

Commit 8364adc

Browse files
authored
Merge pull request #822 from bbiggerr/ips-x-filters
IP Addresses List - added filterable properties
2 parents e666534 + f706f2e commit 8364adc

File tree

1 file changed

+94
-14
lines changed

1 file changed

+94
-14
lines changed

openapi.yaml

Lines changed: 94 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12196,18 +12196,7 @@ paths:
1219612196
content:
1219712197
application/json:
1219812198
schema:
12199-
type: object
12200-
properties:
12201-
data:
12202-
type: array
12203-
items:
12204-
$ref: '#/components/schemas/IPAddress'
12205-
page:
12206-
$ref: '#/components/schemas/PaginationEnvelope/properties/page'
12207-
pages:
12208-
$ref: '#/components/schemas/PaginationEnvelope/properties/pages'
12209-
results:
12210-
$ref: '#/components/schemas/PaginationEnvelope/properties/results'
12199+
$ref: '#/components/schemas/IPAddressesListResponse'
1221112200
default:
1221212201
$ref: '#/components/responses/ErrorResponse'
1221312202
x-code-samples:
@@ -21505,7 +21494,6 @@ components:
2150521494
The Region this IP address resides in.
2150621495
example: us-east
2150721496
readOnly: true
21508-
x-linode-filterable: true
2150921497
x-linode-cli-display: 5
2151021498
IPAddressesAssignRequest:
2151121499
type: object
@@ -21550,6 +21538,99 @@ components:
2155021538
with at least one public address and no more than one
2155121539
private address once all assignments have been made.
2155221540
example: 123
21541+
IPAddressesListResponse:
21542+
description: The response data for the IP Addresses List (GET /networking/ips) command.
21543+
allOf:
21544+
- $ref: '#/components/schemas/PaginationEnvelope'
21545+
- type: object
21546+
properties:
21547+
data:
21548+
type: array
21549+
items:
21550+
type: object
21551+
description: >
21552+
An IP address that exists in Linode's system, either IPv4 or IPv6, specific to the response for the IP Addresses List command.
21553+
properties:
21554+
address:
21555+
type: string
21556+
format: ip
21557+
description: >
21558+
The IP address.
21559+
example: 192.0.2.141
21560+
readOnly: true
21561+
x-linode-filterable: true
21562+
x-linode-cli-display: 1
21563+
gateway:
21564+
type: string
21565+
nullable: true
21566+
format: ip
21567+
description: >
21568+
The default gateway for this address.
21569+
example: 192.0.2.1
21570+
readOnly: true
21571+
subnet_mask:
21572+
type: string
21573+
format: ip
21574+
description: >
21575+
The mask that separates host bits from network bits for this address.
21576+
example: 255.255.255.0
21577+
readOnly: true
21578+
prefix:
21579+
type: integer
21580+
description: >
21581+
The number of bits set in the subnet mask.
21582+
example: 24
21583+
x-linode-filterable: true
21584+
readOnly: true
21585+
type:
21586+
type: string
21587+
enum:
21588+
- ipv4
21589+
- ipv6
21590+
- ipv6/pool
21591+
- ipv6/range
21592+
description: >
21593+
The type of address this is.
21594+
example: ipv4
21595+
readOnly: true
21596+
x-linode-filterable: true
21597+
x-linode-cli-display: 2
21598+
public:
21599+
type: boolean
21600+
description: >
21601+
Whether this is a public or private IP address.
21602+
example: true
21603+
readOnly: true
21604+
x-linode-cli-display: 3
21605+
rdns:
21606+
type: string
21607+
description: >
21608+
The reverse DNS assigned to this address. For public IPv4 addresses,
21609+
this will be set to a default value provided by Linode if not
21610+
explicitly set.
21611+
x-linode-filterable: true
21612+
x-linode-cli-display: 4
21613+
example: test.example.org
21614+
nullable: true
21615+
linode_id:
21616+
type: integer
21617+
description: >
21618+
The ID of the Linode this address currently belongs to. For IPv4
21619+
addresses, this defaults to the Linode that this address was
21620+
assigned to on creation. IPv4 addresses may be moved using the
21621+
[/networking/ipv4/assign](/docs/api/networking/#ips-to-linodes-assign)
21622+
endpoint. For SLAAC and link-local addresses, this value may not be changed.
21623+
example: 123
21624+
readOnly: true
21625+
x-linode-cli-display: 6
21626+
region:
21627+
type: string
21628+
description: >
21629+
The Region this IP address resides in.
21630+
example: us-east
21631+
readOnly: true
21632+
x-linode-filterable: true
21633+
x-linode-cli-display: 5
2155321634
IPAddressesShareRequest:
2155421635
type: object
2155521636
description: A request object IP Addresses Share (POST /networking/ips/share)
@@ -21642,7 +21723,6 @@ components:
2164221723
The Region this address resides in.
2164321724
example: us-east
2164421725
readOnly: true
21645-
x-linode-filterable: true
2164621726
x-linode-cli-display: 5
2164721727
IPAddressV6LinkLocal:
2164821728
type: object

0 commit comments

Comments
 (0)