createApplication

Create an application from a JSON file

Format

udclient [global-args...] [global-flags...]
  createApplication [JSON file]

Parameters

None.

Template

This command takes a JSON request string or file. Use the following template for the request:
{
  "description": "Description",
  "enforceCompleteSnapshots": "Specify true to require an 
  explicit version for each component",
  "name": "Application name or ID",
  "notificationScheme": "Notification scheme",
  "templateName": "The name of the template to use. If you are using an application template, either this field or templateId are required.",
  "templateId": "The ID of the template to use. If you are using an application template, either this field or templateName are required.",
  "templateVersion: "The version of the template to use. This field is required if you are using an application template."
}

Example

udclient -username jsmith -password passwd 
  -weburl https://myserver.example.com:8443
  createApplication newApplication.json

Example JSON request

{
  "name": "My new application",
  "description": "New application for command example",
  "notificationScheme": "Default Notification Scheme",
  "enforceCompleteSnapshots": "false"
}

Example response

{
  "id": "5064e2b5-08aa-4e79-b0d5-9b63ba218d48",
  "name": "My new application",
  "description": "New application for command example",
  "created": 1390504790883,
  "enforceCompleteSnapshots": false,
  "active": true,
  "tags": [
  ],
  "user": "admin"
}

Related REST command: Create an application from a JSON file.


Feedback