Skip to content

[Update] DELETE /linode/instances/{linodeId}/disks/{diskId} #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

hzoppetti
Copy link
Contributor

@hzoppetti hzoppetti commented Aug 26, 2019

added a note that a disk can only be deleted if not attached to a linode with a currently running config profile

…ode with a currently running config profile
@hzoppetti hzoppetti changed the title [Update] Delete/linode/instances/:linodeId/disks/:diskId [Update] DELETE /linode/instances/{linodeId}/disks/{diskId} Aug 26, 2019
@leslitagordita leslitagordita requested review from michaelsaah and removed request for yoshizzle September 6, 2019 15:59
Copy link

@michaelsaah michaelsaah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine as is; included a potential improvement

@@ -4359,7 +4359,8 @@ paths:
- Linode Instances
summary: Delete Disk
description: |
Deletes a Disk you have permission to `read_write`.
Deletes a Disk you have permission to `read_write`. The Disk cannot be
deleted if it is attached to a Linode's running configuration profile.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be clearer as
The Disk cannot be deleted if it is attached to a running Linode. You can view a Linode's Disks by examining its configuration profile.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought, hold off on the above for a bit; clearing something up.

Copy link

@michaelsaah michaelsaah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after digging into this a bit more, it seems that

  1. the appraisal made in the original ticket is incorrect; APIv4 allows you to delete a disk regardless of the state of the disk's linode.
  2. the behavior described in (1) is broken; attempting to delete a running linode's disk succeeds in the API, but fails on the backend. We need to fix this.

I recommend closing this PR.

@leslitagordita
Copy link
Contributor

@michaelsaah Okay, thanks for digging into this a bit more. Will close for now and standby for any upcoming changes.

LBGarber pushed a commit to LBGarber/linode-api-docs that referenced this pull request Jun 15, 2022
LBGarber pushed a commit to LBGarber/linode-api-docs that referenced this pull request Jun 15, 2022
…-v-0-76-0

Create Changelogs “cloud-manager-changelog-v-0-76-0”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants