Application (GET)
Retrieves metadata of a specific application.
Roles
Users in the following roles are authorized to perform this operation:
- worklightadmin
- worklightdeployer
- worklightmonitor
- worklightoperator
Method
GET
Path
/management-apis/1.0/runtimes/runtime-name/applications/application-name
Example
https://www.example.com/worklightadmin/management-apis/1.0/runtimes/myruntime/applications/myapplication?locale=de_DE
Path Parameters
- runtime-name
- The name of the runtime. This is the context root of the runtime web application, without the leading slash.
- application-name
- The name of the application.
Query Parameters
Query parameters are optional.
- locale
- The locale used for error messages.
Produces
application/json, application/xml, text/xml
Response
The metadata of the specified application.
JSON Example
{
"description" : "My first sample application",
"displayName" : "My Sample Application",
"environments" : [
{
"applicationEnvironmentDataAccess" : {
"action" : "NOTIFY",
"createdTime" : "2014-04-13T00:18:36.979Z",
"message" : "This version is no longer supported.",
},
"authenticityConfig" : "BASIC",
"buildTime" : "2014-03-29T00:18:36.979Z",
"deployTime" : "2014-04-13T00:18:36.979Z",
"deviceProvisioningRealm" : "myProvRealm",
"envPlatformVersion" : "7.0.0",
"environment" : "android",
"link" : "https://www.example.com/worklightadmin/management-apis/1.0/runtimes/myruntime/applications/myapplication/android/1.0",
"prevBuildTime" : "2014-03-29T00:18:36.979Z",
"securityTest" : "mobileTest",
"supportRemoteDisable" : true,
"supportsAuthenticity" : true,
"userAuthenticationRealm" : "myAuthRealm",
"version" : "1.0",
"versionLocked" : false,
},
...
],
"link" : "https://www.example.com/worklightadmin/management-apis/1.0/runtimes/myruntime/applications/myapplication",
"name" : "myapplication",
"platformVersion" : "6.1.0.00.20131126-0630",
"productVersion" : "7.0.0",
"projects" : [
{
"name" : "myproject",
},
...
],
}
XML Example
<?xml version="1.0" encoding="UTF-8"?>
<application
description="My first sample application"
displayName="My Sample Application"
link="https://www.example.com/worklightadmin/management-apis/1.0/runtimes/myruntime/applications/myapplication"
name="myapplication"
platformVersion="6.1.0.00.20131126-0630"
productVersion="7.0.0">
<environments>
<environment
authenticityConfig="BASIC"
buildTime="2014-03-29T00:18:36.979Z"
deployTime="2014-04-13T00:18:36.979Z"
deviceProvisioningRealm="myProvRealm"
envPlatformVersion="7.0.0"
environment="android"
link="https://www.example.com/worklightadmin/management-apis/1.0/runtimes/myruntime/applications/myapplication/android/1.0"
prevBuildTime="2014-03-29T00:18:36.979Z"
securityTest="mobileTest"
supportRemoteDisable="true"
supportsAuthenticity="true"
userAuthenticationRealm="myAuthRealm"
version="1.0"
versionLocked="false">
<applicationEnvironmentDataAccess
action="NOTIFY"
createdTime="2014-04-13T00:18:36.979Z"
message="This version is no longer supported."/>
</environment>
...
</environments>
<projects>
<project name="myproject"/>
...
</projects>
</application>
Response Properties
The response has the following properties:
- description
- The description of the application.
- displayName
- The display name of the application.
- environments
- The array of application environments.
- link
- The URL to access detail information about the application.
- name
- The name of the application.
- platformVersion
- The exact version number of the IBM MobileFirst™ Platform Foundation development tools (Studio) that built the application.
- productVersion
- The exact product version.
- projects
- The projects the application belong to.
The environment has the following properties:
- applicationEnvironmentDataAccess
- The access rule to be executed when the app version is disabled.
- authenticityConfig
- The application authenticity configuration. Possible values are: NONE, BASIC, EXTENDED.
- buildTime
- The time stamp when the app version was built.
- deployTime
- The date in ISO 8601 format when the application was deployed.
- deviceProvisioningRealm
- The name of the realm used for device provisioning.
- envPlatformVersion
- The version of the platform of the environment.
- environment
- The platform environment of the app version: iphone, android, ...
- link
- The URL to access detail information about the application version.
- prevBuildTime
- The time stamp when the app that was previously deployed was built.
- publishUrl
- For web applications, this is the URL under which the web application was published.
- securityTest
- The name of the security test for a protected resource.
- supportRemoteDisable
- true if the application version supports remote disabling.
- supportsAuthenticity
- true if the application version supports authentication.
- userAuthenticationRealm
- The name of the realm used to authenticate users.
- version
- The version number of the app version.
- versionLocked
- Whether the version is locked.
The applicationEnvironmentDataAccess has the following properties:
- action
- The action to be done when a disabled app version is accessed. Possible values are: NOTIFY, BLOCK, NA.
- createdTime
- The date in ISO 8601 format when the app version access rule was created.
- downloadLink
- The download link where to obtain a new version of the application.
- message
- The message to be displayed when a disabled app version is accessed.
- multiLanguageMessage
- Internationalized variants of the message to be displayed when a disabled app version is accessed.
The project has the following properties:
- name
- The name of the project, which is the context root of the runtime.
Errors
403The user is not authorized to call this service.
404 The corresponding runtime is not found or not running, or the application is not found.
500 An internal error occurred.