You can view applications and associated application versions. The APIs are useful for retrieving all of the existing application and application versions in the business group of the logged in user. You can create an application in the Application Services user interface. You can also use the CLI to import applications from Application Services 5.0 and 5.2 versions to the Application Services 6.0 appliance or between different Application Services 6.0 appliances.

Get Applications

Retrieves a paginated list of applications and associated application versions in Application Services.

All of the Application Services roles can access this API.

HTTP Method

GET

URI Syntax

https://ApplicationServicesServerIP:8443/darwin/api/2.0/application?page=Page&page-size=PageSize

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

Example URI syntax:

https://ApplicationServicesServerIP:8443/darwin/api/2.0/application?page=0&page-size=1

Response

{
  "errors": false,
  "messageList": [],
  "count": 4,
  "results": [
    {
      "id": "599",
      "lockVersion": 1,
      "name": "Clustered DotShoppingCart",
      "description": "An ASP.NET E-Commerce and CMS solution.",
      "lastUpdated": 1378763304778,
      "lastUpdateUser": "SYSTEM",
      "created": 1378763304778,
      "createUser": "SYSTEM",
      "applicationVersions": [
        {
          "id": "598",
          "lockVersion": 1,
          "name": "Clustered DotShoppingCart",
          "description": "Three-tier DotShoppingCart on Windows Server 2008 R2; Apache HTTP Server for load balancer, Microsoft IIS for application server, and Microsoft SQL Server for database server.",
          "lastUpdated": 1331830800000,
          "lastUpdateUser": "SYSTEM",
          "created": 1331830800000,
          "createUser": "SYSTEM",
          "version": {
            "major": "1",
            "minor": "0",
            "micro": "0",
            "qualifier": ""
          },
          "deploymentProfileListRef": {
            "uri": "/darwin/api/2.0/application-version/598/deployment-profile"
          },
          "blueprintRef": {
            "uri": "/darwin/api/2.0/blueprint/598",
            "id": "99",
            "name": "DotShoppingCart_Open_Source_Edition"
          },
          "groupMembership": {
            "id": "100599",
            "lockVersion": 1,
            "ownerGroupRef": {
              "uri": null,
              "id": "1",
              "name": "Default"
            }
          }
        }
      ],
      "groupMembership": {
        "id": "100599",
        "lockVersion": 1,
        "ownerGroupRef": {
          "uri": null,
          "id": "1",
          "name": "Default"
        }
      }
    }
  ]
}

Get Application Version

Retrieves an application version in Application Services based on the application version identification.

All of the Application Services roles can access this API.

HTTP Method

GET

URI Syntax

https://ApplicationServicesServerIP:8443/darwin/api/2.0/application-version/ApplicationVersionID

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

The ApplicationVersionID variable has the object-type-id format, which is used across several Application Services REST APIs. In this case, the object type is the application version and the id is the id element that was retrieved from the get applications call.

Example URI syntax:

https://ApplicationServicesServerIP:8443/darwin/api/2.0/application-version/598

Response

{
  "errors": false,
  "messageList": [],
  "result": {
    "id": "598",
    "lockVersion": 1,
    "name": "Clustered DotShoppingCart",
    "description": "Three-tier DotShoppingCart on Windows Server 2008 R2; Apache HTTP Server for load balancer, Microsoft IIS for application server, and Microsoft SQL Server for database server.",
    "lastUpdated": 1331830800000,
    "lastUpdateUser": "SYSTEM",
    "created": 1331830800000,
    "createUser": "SYSTEM",
    "version": {
      "major": "1",
      "minor": "0",
      "micro": "0",
      "qualifier": ""
    },
    "deploymentProfileListRef": {
      "uri": "/darwin/api/2.0/application-version/598/deployment-profile"
    },
    "blueprintRef": {
      "uri": "/darwin/api/2.0/blueprint/598",
      "id": "99",
      "name": "DotShoppingCart_Open_Source_Edition"
    },
    "groupMembership": {
      "id": "100599",
      "lockVersion": 1,
      "ownerGroupRef": {
        "uri": null,
        "id": "1",
        "name": "Default"
      }
    }
  }
}

Get Application by ID

Retrieves an application based on the provided identification and corresponding application versions in Application Services.

All of the Application Services roles can access this API.

HTTP Method

GET

URI Syntax

https://ApplicationServicesServerIP:8443/darwin/api/2.0/application/ApplicationID

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

The ApplicationID variable has the object-type-id format, which is used across several Application Services REST APIs. In this case, the object type is the application and the id is the id element that was retrieved from the get applications call. The ApplicationID variable is the id element created when you run the Get Applications REST API.

Example URI syntax:

https://ApplicationServicesServerIP:8443/darwin/api/2.0/application/599

Response

{
  "errors": false,
  "messageList": [],
  "result": {
    "id": "599",
    "lockVersion": 1,
    "name": "Clustered DotShoppingCart",
    "description": "An ASP.NET E-Commerce and CMS solution.",
    "lastUpdated": 1378763304778,
    "lastUpdateUser": "SYSTEM",
    "created": 1378763304778,
    "createUser": "SYSTEM",
    "applicationVersions": [
      {
        "id": "598",
        "lockVersion": 1,
        "name": "Clustered DotShoppingCart",
        "description": "Three-tier DotShoppingCart on Windows Server 2008 R2; Apache HTTP Server for load balancer, Microsoft IIS for application server, and Microsoft SQL Server for database server.",
        "lastUpdated": 1331830800000,
        "lastUpdateUser": "SYSTEM",
        "created": 1331830800000,
        "createUser": "SYSTEM",
        "version": {
          "major": "1",
          "minor": "0",
          "micro": "0",
          "qualifier": ""
        },
        "deploymentProfileListRef": {
          "uri": "/darwin/api/2.0/application-version/598/deployment-profile"
        },
        "blueprintRef": {
          "uri": "/darwin/api/2.0/blueprint/598",
          "id": "99",
          "name": "DotShoppingCart_Open_Source_Edition"
        },
        "groupMembership": {
          "id": "100599",
          "lockVersion": 1,
          "ownerGroupRef": {
            "uri": null,
            "id": "1",
            "name": "Default"
          }
        }
      }
    ],
    "groupMembership": {
      "id": "100599",
      "lockVersion": 1,
      "ownerGroupRef": {
        "uri": null,
        "id": "1",
        "name": "Default"
      }
    }
  }
}