Skip to content
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

vgroup does not support pending_only #17

Open
sanderdescamps opened this issue Aug 31, 2022 · 0 comments
Open

vgroup does not support pending_only #17

sanderdescamps opened this issue Aug 31, 2022 · 0 comments

Comments

@sanderdescamps
Copy link

At the moment it is not possible to query for the deleted volume groups. The GetVgroup method does not support any params. Therefore it is not possible to add the option pending_only=true. Also the vgroup struct does not have support for the response.

Is this something that could be added?

GET vgroup?pending_only=true

curl -k -XGET "${PURE_URL}/api/${PURE_API_VERSION}/vgroup?pending_only=true" \
    -H 'Content-Type: application/json' \
    -b cookies.txt | jq -r '.'
[
  {
    "time_remaining": 85656,
    "name": "test",
    "volumes": []
  }
]

GET vgroup/{vgroup}?pending_only=true

curl -k -XGET "${PURE_URL}/api/${PURE_API_VERSION}/vgroup/test?pending_only=true" \
    -H 'Content-Type: application/json' \
    -b cookies.txt | jq -r '.'
{
  "time_remaining": 84816,
  "name": "test",
  "volumes": []
}

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

No branches or pull requests

1 participant