You can search for applications and associated application versions. The APIs are useful for searching all of the existing applications and application versions. You can also import applications between different Application Services appliances.

Application Search

Searches for applications in Application Services using the name of the application.

All of the Application Services predefined user accounts and associated roles can access this API.

HTTP Method

GET

URI Syntax

https://ApplicationServicesServerIP:8443/darwin/api/2.0/application/search?name=appName

You must type the URI syntax because the copy and paste operation removes formatting from the text.

Example URI syntax:

https://myhostname@mydomainname:8443/darwin/api/2.0/application/search?name=App

Response

{
  "errors": false,
  "messageList": [],
  "count": 1,
  "results": [
    {
      "id": "60003",
      "lockVersion": 0,
      "name": "App",
      "description": "",
      "lastUpdated": 1409707430340,
      "lastUpdateUser": "username",
      "created": 1409707430340,
      "createUser": "username",
      "applicationVersions": [
        {
          "id": "60005",
          "lockVersion": 5,
          "name": "App",
          "description": "",
          "lastUpdated": 1409708205947,
          "lastUpdateUser": "username",
          "created": 1409708085524,
          "createUser": "username",
          "version": {
            "major": "1",
            "minor": "0",
            "micro": "0",
            "qualifier": ""
          },
          "deploymentProfileListRef": {
            "uri": "/darwin/api/2.0/application-version/60005/deployment-profile"
          },
          "blueprintRef": {
            "uri": "/darwin/api/2.0/blueprint/60005",
            "id": "600012",
            "name": "App v1.0"
          },
          "groupMembership": {
            "id": "437005",
            "lockVersion": 0,
            "ownerGroupRef": {
              "uri": null,
              "id": "4",
              "name": "Development"
            },
            "global": true
          }
        }
      ],
      "groupMembership": {
        "id": "437005",
        "lockVersion": 0,
        "ownerGroupRef": {
          "uri": null,
          "id": "4",
          "name": "Development"
        },
        "global": true
      }
    }
  ]
}

Application Version Search

Searches for application versions in Application Services using the name and version of the application.

All of the Application Services predefined user accounts and associated roles can access this API.

HTTP Method

GET

URI Syntax

https://ApplicationServicesServerIP:8443/darwin/api/2.0/application-version/search?name=appVersionName&major=majorNumber
&minor=minorNumber&micro=microNumber&qualifier=qualifier

You must type the URI syntax because the copy and paste operation removes formatting from the text.

Example URI syntax:

https://myhostname@mydomainname:8443/darwin/api/2.0/application-version/search?name=App:1.0.0&major=1&minor=2&micro=3&qualifier=beta

Response

{
  "errors": false,
  "messageList": [],
  "count": 1,
  "results": [
    {
      "id": "60005",
      "lockVersion": 5,
      "name": "App",
      "description": "",
      "lastUpdated": 1409708205947,
      "lastUpdateUser": "username",
      "created": 1409708085524,
      "createUser": "username",
      "version": {
        "major": "1",
        "minor": "0",
        "micro": "0",
        "qualifier": ""
      },
      "deploymentProfileListRef": {
        "uri": "/darwin/api/2.0/application-version/60005/deployment-profile"
      },
      "blueprintRef": {
        "uri": "/darwin/api/2.0/blueprint/60005",
        "id": "600012",
        "name": "App v1.0"
      },
      "groupMembership": {
        "id": "437005",
        "lockVersion": 0,
        "ownerGroupRef": {
          "uri": null,
          "id": "4",
          "name": "Development"
        },
        "global": true
      }
    }
  ]
}