Manage Existing Volumes
The manage existing volumes APIs provide the capability to specify the existing storage volumes that must be managed by the PowerVC Management System. The capabilities include listing volumes that exist in the environment, managing individual volumes, and unmanaging volumes that are currently being managed.
Manage existing volumes options
Method | URI | Description |
---|---|---|
GET |
|
Lists existing volumes on storage provider. |
POST |
|
Manages existing volumes from a storage provider. |
POST |
|
Unmanages volumes that are currently managed by PowerVC . |
List existing volumes
The operation lists all the volumes that exist on the storage provider independent of whether PowerVC is managing them. This API takes the name of the storage provider in the URI as input does not take any request body. The API returns the list of volumes on the storage provider in the response body. The list includes the names, status, whether the volumes are currently managed by PowerVC, and whether the volumes are supported to be managed by PowerVC.
- Normal response code: OK (200)
- Error Response Codes: Not Found (404), Server Error (500)
Response body
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Internally generated identifier that is used to look up the task results of the manage action. |
|
body |
string |
Name of the storage provider. |
|
body |
integer |
Size of the volume in gigabytes. |
|
body |
boolean |
Whether the volume is managed by PowerVC. |
|
body |
string |
Name of the storage pool that contains the volume. |
|
body |
list of strings |
List of WWPNs that are mapped to the volume on the storage provider. |
|
body |
object |
Whether the volume is supported to be managed by PowerVC. |
{"volumes": [
{"id": "2c6da352-...",
"name": "My Volume 1",
"status": "available",
"size": 14,
"managed": False,
"storage_pool": "pool1",
"mapped_wwpns": ["C050...", "C051..."],
"support": { "status": "supported" }
},
{"id": "1b87d2dc-...",
"support": { "status": "not_supported", "reasons": [ "A reason",
"Another reason" ] }...
Manage existing volumes
*all
can be used instead of the UUID to specify
that all volumes should be managed.- Normal response code: OK (200)
- Error Response Codes: Bad Request (400), Not Found (404), Server Error (500)
Request parameters
{"volumes": [ "2c6da352-...", "1b87d2dc-..."] }
Response body
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Internally generated identifier that is used to look up the task results of the manage action. |
|
body |
list of strings |
URI that can be used to look up the task results. |
Information about task URI can be used to retrieve progress and results of the on-boarding.
Example:
{"task": {
"id": "44fde213...",
"links": [ { "href": "https://..../os-hosts/storage1/onboard/5555-222..." } ]
Unmanage volumes
*all
can be
used instead of the UUID to specify that all volumes should be unmanaged.- Normal response code: No Content (204)
- Error Response Codes: Bad Request (400), Not Found (404), Server Error (500)
Request parameters
{"volumes": [ "1234-789...", "3333-444..."] }