Skip to content

vgroup does not support pending_only #17

@sanderdescamps

Description

@sanderdescamps

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": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions