List Virtual Tape Resources of a Tape Link
The List Virtual Tape Resources of a Tape Link operation lists the virtual tape resources of the FCP tape link with the given identifier.
HTTP method and URI
GET /api/tape-links/{tape-link-id}/virtual-tape-resources
In this request, the URI variable {tape-link-id} is the object-id of the Tape Link object.
Query parameters:
Name | Type | Rqd/Opt | Description |
---|---|---|---|
name | String | Optional | Filter pattern (regular expression) to limit returned objects to those that have a matching name property. |
device-number | String | Optional | Filter pattern (regular expression) to limit returned objects to those that have a matching device-number property. |
adapter-port-uri | String/ URI | Optional | Filter string to limit returned objects to those that have a matching adapter-port-uri property. |
partition-uri | String/ URI | Optional | Filter string to limit returned objects to those that have a matching partition-uri property. |
Response body contents
On successful completion, the response body is a JSON object with the following fields:
Field name | Type | Description |
---|---|---|
virtual-tape-resources | Array of virtual-tape-resource-info objects | Array of virtual-tape-resource-info objects, described in the next table. The returned array may be empty. |
Each nested virtual-tape-resource-info object contains the following fields:
Field name | Type | Description |
---|---|---|
element-uri | String/ URI | The canonical URI path (element-uri) of the Virtual Tape Resource element object. |
name | String | The name property of the Virtual Tape Resource element object. |
device-number | String | The device-number property of the Virtual Tape Resource element object. |
adapter-port-uri | String/ URI | The adapter-port-uri property of the Virtual Tape Resource element object. |
partition-uri | String/ URI | The partition-uri property of the Virtual Tape Resource element object. |
Description
This operation lists the virtual tape resources that are owned by the identified tape link. The element URI, name, device number and associated adapter port and partition are provided for each.
If the object ID {tape-link-id} does not identify a tape link object to which the API user has object-access permission, a 404 (Not Found) status code is returned.
If the name or device-number query parameter is specified, the returned list is limited to those virtual tape resources that have a name or device-number property matching the specified filter pattern. If the name or device-number parameter is omitted, the filtering on the omitted property name is not done.
If the adapter-port-uri or partition-uri query parameter is specified, the returned list is limited to those virtual tape resources that have a matching adapter-port-uri or partition-uri property. If the adapter-port-uri or partition-uri parameter is omitted, the filtering on the omitted property name is not done.
If no virtual tape resources are to be included in the results due to filtering, an empty list is provided and the operation completes successfully.
Authorization requirements
- Object-access permission to the tape link whose object-id is {tape-link-id}.
HTTP status and reason codes
On success, HTTP status code 200 (OK) is returned and the response body is provided as described in Response body contents.
The following HTTP status codes are returned for the indicated errors. The response body is a standard error response body providing the reason code indicated and any associated error message.
HTTP error status code | Reason code | Description |
---|---|---|
400 (Bad Request) | Various | Errors were detected during common request validation. See Common request validation reason codes for a list of the possible reason codes. |
14 | A query parameter defines an invalid value. | |
404 (Not Found) | 1 | The tape link with the object ID {tape-link-id} does not exist on the Console, or the API user does not have object-access permission for it. |
Additional standard status and reason codes can be returned, as described in Invoking API operations.