View information about an application
GET method to get information about a specific application.
Method | URL | Description |
---|---|---|
GET | https://host_name:port/platform/rest/symrest/v1/applications/AppName | Get information about a specific application. |
Request
GET https://host_name:port/platform/rest/symrest/v1/applications/AppName?parameters
Parameter | Type | Required/Optional | Description |
---|---|---|---|
AppName | string | Required | Name of the application. |
csrftoken | string | Optional | CSRF token that is obtained with successful login. |
If you use curl, the command might look like the following
example:
curl --header -b /tmp/cookie --cacert /opt/ibm/spectrumcomputing/wlp/usr/shared/resources/security/cacert.pem --tlsv1.2 -X GET "https://mysymhost.example.com:8050
/platform/rest/symrest/v1/applications/symping7.3.2&csrftoken=915ee7644f431e630dac68b9ab3e40bc
"Response
The command returns JSON content, application attributes (except for profile data information),
about the specific application. For example, this response shows information about the
symping7.3.2
application:{
"abortSession": 0,
"appName": "symping7.3.2",
"assignment": {
"unusedSlots": 0,
"usedSlotsWithTasks": 1,
"usedSlotsWithoutTasks": 0
},
"closeSession": 0,
…
}
Status code | Description |
---|---|
200 | OK |
400 | Bad request |
500 | Internal error |