Skip to content

Commit ff55322

Browse files
authored
Merge pull request #712 from bbiggerr/linode-ip-address-update-edit
Fix Linode IP Address Update
2 parents 6532ca8 + ec5b85b commit ff55322

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
@@ -8705,9 +8705,10 @@ paths:
87058705
tags:
87068706
- Linode Instances
87078707
summary: IP Address Update
8708-
description: >
8709-
Updates a particular IP Address associated with this Linode.
8710-
Only allows setting/resetting reverse DNS.
8708+
description: |
8709+
Updates a the reverse DNS (RDNS) for a particular IP Address associated with this Linode.
8710+
8711+
Setting the RDNS to `null` for a public IPv4 address, resets it to the default "ip.linodeusercontent.com" RDNS value.
87118712
operationId: updateLinodeIP
87128713
x-linode-cli-action: ip-update
87138714
security:
@@ -8719,8 +8720,18 @@ paths:
87198720
content:
87208721
application/json:
87218722
schema:
8722-
allOf:
8723-
- $ref: '#/components/schemas/IPAddress'
8723+
required:
8724+
- rdns
8725+
type: object
8726+
properties:
8727+
rdns:
8728+
type: string
8729+
description: >
8730+
The reverse DNS assigned to this address. For public IPv4 addresses,
8731+
this will be set to a default value provided by Linode if not
8732+
explicitly set.
8733+
nullable: true
8734+
example: test.example.org
87248735
responses:
87258736
'200':
87268737
description: The updated IP address record.
@@ -8738,11 +8749,11 @@ paths:
87388749
-X PUT -d '{
87398750
"rdns": "test.example.org"
87408751
}' \
8741-
https://api.linode.com/v4/linode/instances/123/ips/97.107.143.141
8752+
https://api.linode.com/v4/linode/instances/123/ips/203.0.113.1
87428753
- lang: CLI
87438754
source: >
87448755
linode-cli linodes ip-update 123 \
8745-
97.107.143.141 \
8756+
203.0.113.1 \
87468757
--rdns test.example.org
87478758
delete:
87488759
x-linode-grant: read_write
@@ -12995,11 +13006,11 @@ paths:
1299513006
-X PUT -d '{
1299613007
"rdns": "test.example.org"
1299713008
}' \
12998-
https://api.linode.com/v4/networking/ips/97.107.143.141
13009+
https://api.linode.com/v4/networking/ips/203.0.113.1
1299913010
- lang: CLI
1300013011
source: >
1300113012
linode-cli networking ip-update \
13002-
97.107.143.141 \
13013+
203.0.113.1 \
1300313014
--rdns "test.example.org"
1300413015
/networking/ips/assign:
1300513016
x-linode-cli-command: networking
@@ -22219,6 +22230,7 @@ components:
2221922230
explicitly set.
2222022231
x-linode-cli-display: 4
2222122232
example: test.example.org
22233+
nullable: true
2222222234
linode_id:
2222322235
type: integer
2222422236
description: >

0 commit comments

Comments
 (0)