Retrieve the properties of a software instance
You can use this operation to retrieve the properties of a software instance. The properties include, but are not limited to, the global zone and target zones associated with the software instance and a list of the products, features, FMIDs, and non-SMP/E managed data sets that are included in the software instance.
HTTP method and URI path
GET /zosmf/swmgmt/swi/<system-nickname>/<swi-name>
- zosmf/swmgmt identifies the software management services.
- swi informs the service that the request is for the software instance object.
- <system-nickname>/<swi-name> further
qualifies the request and indicates the specific software instance to be retrieved. A software
instance is uniquely identified by its name (swi-name) and the nickname
(system-nickname) of the z/OSMF host system
that has access to the volumes and data sets where the software instance resides.
To obtain information about the specified system, you can use the z/OSMF topology services. For more details, see Topology services.
Standard headers
Use the following standard HTTP header with this request:
- Accept-Language
- Identifies the preferred language for messages that may be returned to the caller. Acceptable values are "Accept-Language: en" (English) and "Accept-Language: ja" (Japanese). Any other language value is ignored and English is used instead. In addition, if the header is not specified, then English is used.
Custom headers
None.
Request content
None.
Usage considerations
Required authorizations
To submit requests through the software management services, the user ID initiating the request requires the same authorizations as when performing an analogous operation using the z/OSMF Software Management task. That is, to retrieve the properties of a software instance, the user ID initiating the request must have READ access to both the z/OSMF Software Management task and the software instance. For information about access controls for the Software Management task, see Creating access controls for the Software Management task in IBM z/OS Management Facility Configuration Guide.
Expected response
On completion, the service returns an HTTP response, which includes a status code indicating
whether your request completed. Status code 200 indicates success. A status code of
4nn or 5nn indicates that an error has occurred. For more details, see Error handling.
{
"name":"swi-name",
"system":"system-nickname",
"description":"swi-description",
"globalzone":"global-zone",
"targetzones":["target-zones"],
"categories":"["categories"],
"productinforetrieved":"last-retrieved",
"lastmodified":"last-modified",
"modifiedby":"modified-user-ID",
"created":"date-created",
"createdby":"created-user-ID",
"locked":"date-locked",
"lockedby":"locked-user-ID",
"datasets":[
{
"dsname":"data-set-name",
"volume":"volume-serial"
}],
"products":[{
"prodname":"product-name",
"prodid":"product-ID",
"release":"product-level",
"vendor":"vendor-name",
"generalavailability":"general-availability-date",
"endofservice":"end-of-service",
"url":"product-URL",
"productinfofileversion":"file-version",
"features":[
{
"feature":"feature-name",
"fmids":[
{
"fmid":"fmid-name",
"description":"fmid-description",
"targetzones":["fmid-target-zones"]
}]
}]
}]
"nonsmpeproducts":[{
"prodname":"product-name",
"prodid":"product-id",
"release":"product-level",
"vendor":"vendor-name",
"url":"product-url",
"features":["feature-name"],
"generalavailability":"general-availability-date",
"endofservice":"end-of-service-date"
}],
"workflows":[{
"name":"workflow-name",
"description":"workflow-description",
"location": {
"smptype":"smp-type",
"smpname":"smp-name",
"dsname":"workflow-dsname",
"path":"workflow-path"
},
"performonhostsystem":true | false
}],
"datasetproperties":[{
"dddefname":"dddef-name",
"zone":"zone-name",
"dsname":"data-set-name",
"volume":"volume-serial",
"dstype":"DLIB",
"properties":[{"key":"value"}]
}],
"datasetpropertylabels":[{
"propertyname":"property-name",
"label":"property-label"
}],
"productproperties":[{
"prodid"":"product-id",
"release":"product-level",
"prodname":"product-name",
"properties":[{"key":"value"}]
}]
}
- swi-name
- Name of the software instance.
- system-nickname
- Nickname of the z/OSMF host system that has access to the volumes and data sets where the software instance resides. To obtain information about the specified system, you can use the z/OSMF topology services. For more details, see Topology services.
- swi-description
- Description of the software instance.
- global-zone
- CSI data set that contains the global zone used to manage the software.
If the software instance has no global zone, then this property will be
null.
- target-zones
- Comma-separated list of the target zones included in the software instance.
If the software instance has no global zone, then this property will be
null.
- categories
- Comma-separated list of the categories to which the software instance is assigned.
- last-retrieved
- Date and time the product, feature, and FMID information was last retrieved for the software instance. This attribute is blank if this information has not been retrieved.
- last-modified
- Date and time in ISO 8601 format that the software instance was last modified.
- modified-user-ID
- User ID of the user who last modified the software instance.
- date-created
- Date and time in ISO 8601 format that the software instance was created.
- created-user-ID
- User ID of the user who created the software instance.
- date-locked
- Date and time in ISO 8601 format that the software instance was locked. This attribute is null if the software instance is not currently locked.
- locked-user-ID
- User ID of the user who locked the software instance. This attribute is null if the software instance is not currently locked.
- datasets
- Array that contains each non-SMP/E managed data set that is included in the software instance.
- data-set-name
- Name of the non-SMP/E managed data set.
- volume-serial
- Volume on which the non-SMP/E managed data set resides.
- products
- Array that contains each product that is included in the software instance.
- product-name
- Name of the product. If any FMIDs are not related to a product and feature, those FMIDs are listed under a product named No Product.
- product-ID
- Identifier of the product.
- product-level
- Version, release, and modification level of the product. The value has the format VV.RR.MM, where VV is the two-digit version, RR is the two-digit release, and MM is the two-digit modification level.
- vendor-name
- Name of the vendor that provides the product.
- general-availability
- Date this level of the product is available to all users.
- end-of-service
- Last date on which the vendor will deliver standard support services for this level of the product. This date is the general end of service date. It does not account for lifecycle extensions.
- product-URL
- URL that links to additional information about the product. This information can include, for example, product life cycle dates, product highlights, planning information, and technical descriptions.
- file-version
- Version of the most recent product information file that was retrieved that contains the corresponding product. The version represents the date that file was created or last updated.
- features
- Array that contains each feature that is included in the product.
- feature-name
- Name of the feature. If any FMIDs are not related to a product and feature, those FMIDs are listed under a feature named No Feature.
- fmids
- Array that contains each FMID that is included in the feature.
- fmid-name
- Name of the FMID.
- fmid-description
- Description of the FMID.
- fmid-target-zones
- Name of the target zones where the FMID is installed.
- nonsmpeproducts
- List of products for the software instance that are not managed by SMP/E.
- product-name
- Name of the product, but can be up to 64 characters.
- product-ID
- Identifier for the product, but can be up to 64 characters.
- product-level
- Release level for the product, but can be up to 64 characters.
- vendor-name
- Name of the vendor that provides the product, but can be up to 64 characters.
- product-URL
- A URL that links to additional information about the product, but can be up to 256 characters.
- feature-name
- List of names of features for the product, but can be up to 64 characters.
- general-availability-date
- Date this level of the product is available to all users.
- end-of-service-date
- Last date on which the vendor will deliver standard support services for this level of the
product. This date is the general end of service date. It does not account for lifecycle extensions.
Can be any of the following:
- null
- The end of service date is unknown for the product.
- yyyy-mm-ddThh:mm:ssZ
- The known end of service date, in ISO 8601 format.
- NotAnnounced
- The end of service date is not yet announced for the product.
- workflows
- List of workflows for the software instance.
- workflow-name
- Name for the workflow.
- workflow-description
- Description for the workflow.
- location
- Location of the workflow definition file for the workflow.
- smp-type
- The SMP/E element type for a workflow definition file that is managed by SMP/E.
- smp-name
- The SMP/E element name for a workflow definition file that is managed by SMP/E.
- workflow-dsname
- The name of the data set that contains the workflow definition file.
- workflow-path
- The UNIX path for a workflow definition file that is a UNIX file.
performonhostsystem
Indicates whether the workflow steps may be performed on the host system or on another system in
the same sysplex as the host system.- true
- Indicates that the workflow steps may be performed on the z/OSMF host system on which the software instance resides.
- false
- Indicates that the workflow steps may be performed on a system in the sysplex other than the z/OSMF host system on which the software instance resides.

- datasetproperties
- A list of one or more properties for individual data sets.
- datasetpropertylabels
-
A list of labels that each correspond to unique data set properties that a provider defines in datasetproperties. Label values are used for column headings to display provider defined data set property values on the Deployment Configuration Data Sets page. Not all provider defined data set properties must have corresponding defined labels, but only those with defined labels are eligible for display on the Deployment Configuration Data Sets page. A data set property can have only one associated label, and all labels must be unique.
- productproperties
- A list of one or more properties for individual software products.
Example
GET /zosmf/swmgmt/swi/PEV174/DB2V9 HTTP/1.1
Host: zosmf1.yourco.com
HTTP/1.1 200 OK
Date: Thu, 15 Jan 2015 05:39:28 +0000GMT
Content-Type: application/json
Content-Language: en
Connection: close
{
"name":"DB2V9", "system":"PEV174", "description":null,
"globalzone":"DB2.GLOBAL.CSI", "targetzones":["DB2TGT"], "categories":null,
"productinforetrieved":"2014-08-20T19:23:25+00:00", "lastmodified":"2014-08-
20T19:23:25+00:00", "modifiedby":"FRED", "created":"2014-08-20T19:23:25+00:00",
"createdby":"BARNEY", "locked":null, "lockedby":null, "datasets":
[{"dsname":"USER.DB2V9.PROCLIB", "volume": "LV1234"},
{"dsname":"USER.DB2V9.SAMPLES", "volume":"LV1234"}], "products":
[{"prodname":"DB2 for z/OS", "prodid":"5635-DB2", "release":"09.01.00",
"vendor":"IBM", "generalavailability":"20006-06-09T19:23:25+00:00",
"endofservice":"2014-06-27T19:23:25+00:00", "url":null,
"productinfofileversion":"2014-01-01", "features":[{"feature":"DB2 Base",
"fmids":[{"fmid":"HDB9910", "description":"DB2 BASE/TSO", "targetzones":
["DB2V9T"]}]}]}]
}