Start a Conversation

Unsolved

A

8 Posts

383

October 28th, 2021 08:00

Which API version does XtremeIO support V2 or V3

We are using an XtremeIO version- 2 XMS Version: 6.2.1 and using the V3 api doc. I have observed that the array is using few V2 API and few V3 API. Exact operations as below-

We are able to do these operations using V3 API-

  1. Get volumes detail. - GET /api/json/v3/types/volumes/
  2. Take a protection copy - PUT /api/json/v3/commands/volume/create-protection-copy
  3. Delete a protection copy. - DELETE /api/json/v3/types/volumes/

Although when I try this:

Sample Test:

>>> data = {"from-volume-id": 16,"to-volume-id": 12}

>>> base_url = 'https:// /api/json/v3/commands/volumes/restore-data '

>>> data = {"from-volume-id": 16,"to-volume-id": 12}

>>> response = session.put(url=base_url, data=data, verify=False)

>>> response.json()

{'message': 'Invalid request', 'error_code': 400}

Although after checking from the network logs we observed that array is using v2 api - {"0000|DELETE|lun-maps|23|1":{"method":"DELETE","path":"/v2/types/lun-maps/23","args":{"cluster-index":[1]}}} for some operations.

Can you tell us the XMS or Hardware version where all these V3 API's are supported and not V2 because in order to add this support we need to have a single source of truth for our product and cannot rely on two set of API versions on the same model

No Responses!
No Events found!

Top