Skip to content

Commit 735289f

Browse files
authored
Add upgrade field to POST linode/instances/{linodeId}/migrate (#146)
* Add upgrade field to POST linode/instances/{linodeId}/migrate * Update description of upgrade property in POST linode/instances/{linodeId}/migrate
1 parent a5d1889 commit 735289f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

openapi.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5028,6 +5028,23 @@ paths:
50285028

50295029
A cross data center migration will initiate a `linode_migrate_datacenter_create` event.
50305030
example: us-east
5031+
upgrade:
5032+
type: boolean
5033+
description: >
5034+
When initiating a cross DC migration, setting this value to
5035+
true will also ensure that the Linode is upgraded to the latest
5036+
generation of hardware that corresponds to your Linode's Type, if
5037+
any free upgrades are available for it.
5038+
5039+
If no free upgrades are available, and this value is set to true,
5040+
then the endpoint will return a 400 error code and the migration
5041+
will not be performed.
5042+
5043+
If the data center set in the `region` field does not allow upgrades,
5044+
then the endpoint will return a 400 error code and the migration
5045+
will not be performed.
5046+
example: false
5047+
default: false
50315048
responses:
50325049
'200':
50335050
description: Scheduled migration started

0 commit comments

Comments
 (0)