Skip to content

Commit a987c0a

Browse files
authored
Merge pull request #515 from bbiggerr/volumes-migration-cancel
[New] Volume Migration Cancel
2 parents 158871e + 8e20601 commit a987c0a

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

openapi.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15717,6 +15717,54 @@ paths:
1571715717
- lang: CLI
1571815718
source: >
1571915719
linode-cli volumes detach 12345
15720+
/volumes/{volumeId}/migration-cancel:
15721+
parameters:
15722+
- name: volumeId
15723+
in: path
15724+
description: ID of the Volume to look up.
15725+
required: true
15726+
schema:
15727+
type: integer
15728+
x-linode-cli-command: volumes
15729+
post:
15730+
x-linode-grant: read_write
15731+
tags:
15732+
- Volumes
15733+
summary: Volume Migration Cancel
15734+
description: |
15735+
Cancels the customer-initiated migration for the Volume.
15736+
15737+
Cancelled migrations are removed from the migration queue, then reset to occur on the original scheduled migration date.
15738+
15739+
A Volume migration cannot be cancelled in the following cases:
15740+
* The migration is already in progress.
15741+
* The migration was automatically queued on the scheduled date.
15742+
operationId: cancelVolumeMigration
15743+
x-linode-cli-action: migration-cancel
15744+
security:
15745+
- personalAccessToken: []
15746+
- oauth:
15747+
- volumes:read_write
15748+
- linodes:read_write
15749+
responses:
15750+
'200':
15751+
description: Migration cancelled successfully.
15752+
content:
15753+
application/json:
15754+
schema:
15755+
type: object
15756+
default:
15757+
$ref: '#/components/responses/ErrorResponse'
15758+
x-code-samples:
15759+
- lang: Shell
15760+
source: >
15761+
curl -H "Content-Type: application/json" \
15762+
-H "Authorization: Bearer $TOKEN" \
15763+
-X POST \
15764+
https://api.linode.com/v4/volumes/12345/migration-cancel
15765+
- lang: CLI
15766+
source: >
15767+
linode-cli volumes migration-cancel 12345
1572015768
/volumes/{volumeId}/resize:
1572115769
parameters:
1572215770
- name: volumeId

0 commit comments

Comments
 (0)