Hitachi

JP1 Version 12 JP1/Integrated Management 2 - Manager Command, Definition File and API Reference


4.5.12 jp1Imdd.getVersion

This method returns the version of JP1/IM as string type. The following table shows the details of the jp1Imdd.getVersion method.

Method name

String jp1Imdd.getVersion ()

Parameters

None

Return values

Returns the version of the product in VV-RR or VV-RR-SS format.

For example, the returned value is 12-00 which omits SS when the version of the product is 12-00, and the returned value is 12-00-02 when the version of the product is 12-00-02.

The method returns the same value as productVersion of the version information acquisition API. For details, see 5.12.1 Version information acquisition.

Exception

None

Example

To make a user-created plug-in downward compatible, check the version of JP1/IM as shown below to branch out the process.

var im2Version = null;
 
if(typeof jp1Imdd.getVersion == "function") {
    im2Version = jp1Imdd.getVersion();
} else {
    im2Version = "12-00";
}
 
switch(im2Version) {
    case "12-00":
        // Operations for 12-00
        break;
    case "12-10":
       // Operations for 12-10
        break;
}