Deprecated: Retrieval of instances to reassign to a release
You use the GET
operation on the api/sam/swinventory/targetInstances
element
to request information about the target instances that can be reassigned
to a particular release.
Important: This REST API is deprecated and does not have an
equivalent.
Permissions
You must have the Manage Software Classification permission to perform this task.
Resource URL
https://hostname:port/api/sam/swinventory/targetInstances
Resource information
Operation details | Description |
---|---|
Purpose | Returns a list of target instances that can be reassigned to a particular release. |
HTTP method | GET |
Resource URI | https://hostname:port/api/sam/swinventory/targetInstances |
URI query parameters | For a list of applicable query parameters, see: Query parameters. |
Request headers |
|
Request payload | n/a |
Request Content-Type |
|
Response headers |
|
Response payload | targetInstances element |
Response Content-Type |
|
Normal HTTP response codes |
|
Error HTTP response codes |
Message body includes an error message with details. |
Query parameters
You
can use query parameters to narrow down the results of your search.
The following table presents query parameters that you can use for
the
GET/swinventory/targetInstances
element.
Parameter | Description | Required | Value |
---|---|---|---|
releaseId | A unique identifier of a release. | Yes | Numeric |
Example HTTP conversation
- Request
GET https://hostname:port/api/sam/swinventory/targetInstances ?releaseId=72717
- Request header
-
Accept: application/json Accept-Language: en-US Token: <token>
- Response header
HTTP/1.1 200 OK Content-Type: application/json Content-Language: en-US
- Response body (JSON)
[{ "componentNameVersion": "IBM Tivoli Directory Server (SP) 6.0", "hostname": "Agent20", "path": "C:\Documents and Settings\Administrator\Signatures", "updateTime": "1349270690593", "productInventoryId": "200027", "appliedRules": "the relation in the software catalog, the infrastructure co-location", "productId": "72717", "id": "200027", "productNameVersion": "IBM WebSphere Process Server Hypervisor Edition for Novell SLES for x86 6.2", "isShared": "false" }]