9.8.2 Acquisition of version information
Function
Acquires the JP1/AO and API version.
Execution permissions
Admin role, Develop role, Modify role, Submit role
API version
v1
Request format
GET http://host:port/Automation/version/configuration/version
Status code
For details about the status codes that can be returned as the response to a request, see the relevant topic in 9.2.17 Status code.
Response schema
The following shows the structure of the response body for a request.
{
"productName" : "product-name",
"productVersion" : "product-version",
"apiVersion" : "api-version"
}
Usage example
In the following example, the API acquires version information.
Request header:
GET /Automation/v1/configuration/version HTTP/1.1
Host:10.196.184.238:22015
Accept:application/json
Accept-Language: ja
Authorization: Basic c3lzdGVtOm1hbmFnZXI=
User-Agent: useragent1
Response header:
HTTP/1.1 200 OK
Date: Mon, 28 Jul 2014 04:34:59 GMT
Server: Cosminexus HTTP Server
Access-Control-Expose-Headers: WWW-Authenticate
WWW-Authenticate: HSSO 4e671d509ad3cd624d83afd9da20f55c1c261193_WIN-JLTV0PQLK2A_V0810
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, HEAD, OPTIONS
Access-Control-Allow-Credentials: true
Cache-Control: no-cache
Transfer-Encoding: chunked
Content-Type: application/json
Response body:
{
"productName" : "JP1/Automatic Operation",
"productVersion" : "10-50-00",
"apiVersion" : "01.00.00"
}