Skip to content

Commit ec5b85b

Browse files
committed
Fix Linode IP Address Update
1 parent 51220ad commit ec5b85b

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

openapi.yaml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8691,9 +8691,10 @@ paths:
86918691
tags:
86928692
- Linode Instances
86938693
summary: IP Address Update
8694-
description: >
8695-
Updates a particular IP Address associated with this Linode.
8696-
Only allows setting/resetting reverse DNS.
8694+
description: |
8695+
Updates a the reverse DNS (RDNS) for a particular IP Address associated with this Linode.
8696+
8697+
Setting the RDNS to `null` for a public IPv4 address, resets it to the default "ip.linodeusercontent.com" RDNS value.
86978698
operationId: updateLinodeIP
86988699
x-linode-cli-action: ip-update
86998700
security:
@@ -8705,8 +8706,18 @@ paths:
87058706
content:
87068707
application/json:
87078708
schema:
8708-
allOf:
8709-
- $ref: '#/components/schemas/IPAddress'
8709+
required:
8710+
- rdns
8711+
type: object
8712+
properties:
8713+
rdns:
8714+
type: string
8715+
description: >
8716+
The reverse DNS assigned to this address. For public IPv4 addresses,
8717+
this will be set to a default value provided by Linode if not
8718+
explicitly set.
8719+
nullable: true
8720+
example: test.example.org
87108721
responses:
87118722
'200':
87128723
description: The updated IP address record.
@@ -8724,11 +8735,11 @@ paths:
87248735
-X PUT -d '{
87258736
"rdns": "test.example.org"
87268737
}' \
8727-
https://api.linode.com/v4/linode/instances/123/ips/97.107.143.141
8738+
https://api.linode.com/v4/linode/instances/123/ips/203.0.113.1
87288739
- lang: CLI
87298740
source: >
87308741
linode-cli linodes ip-update 123 \
8731-
97.107.143.141 \
8742+
203.0.113.1 \
87328743
--rdns test.example.org
87338744
delete:
87348745
x-linode-grant: read_write
@@ -12971,11 +12982,11 @@ paths:
1297112982
-X PUT -d '{
1297212983
"rdns": "test.example.org"
1297312984
}' \
12974-
https://api.linode.com/v4/networking/ips/97.107.143.141
12985+
https://api.linode.com/v4/networking/ips/203.0.113.1
1297512986
- lang: CLI
1297612987
source: >
1297712988
linode-cli networking ip-update \
12978-
97.107.143.141 \
12989+
203.0.113.1 \
1297912990
--rdns "test.example.org"
1298012991
/networking/ips/assign:
1298112992
x-linode-cli-command: networking
@@ -22167,6 +22178,7 @@ components:
2216722178
explicitly set.
2216822179
x-linode-cli-display: 4
2216922180
example: test.example.org
22181+
nullable: true
2217022182
linode_id:
2217122183
type: integer
2217222184
description: >

0 commit comments

Comments
 (0)