You can tear down the associated virtual machines from the cloud environment. Delete the record of a deployment from Application Services.

Tear Down Deployment

Removes provisioning for the vCloud Director vApp and associated virtual machines, vCloud Automation Center virtual machine and the associated virtual machine in vCenter Server, or Amazon EC2 instances and deletes them from the cloud environment. Provides task ID after the teardown process is complete.

The application publisher and developer can access this API.

HTTP Method

POST

URI Syntax

https://ApplicationServicesServerIP:8443/darwin/api/2.0/deployment/DeploymentID/teardown

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/deployment/6/teardown

Request

The request body does not contain input for the teardown process.

Response

{
  "errors": false,
  "messageList": [
    {
      "messageType": "INFO",
      "message": "Deployment teardown scheduled successfully.",
      "messageKey": "deployment.teardown.scheduled.msg",
      "property": null
    }
  ],
  "result": {
    "id": "11",
    "lockVersion": 1,
    "name": null,
    "description": null,
    "lastUpdated": 1378935530429,
    "lastUpdateUser": "admin",
    "created": 1378935530425,
    "createUser": "admin",
    "scheduled": 1378935530036,
    "startTime": null,
    "endTime": null,
    "runId": null,
    "updateType": null,
    "stateType": "TASK_SCHEDULED",
    "taskType": "TEARDOWN_TASK",
    "messages": [],
    "runStateType": null,
    "deploymentRef": {
      "uri": "/darwin/api/2.0/deployment/6",
      "id": "6",
      "name": "appd-Clustered Dukes Bank App-2.1.0-admin-6-b452d90c-b72e-4737-8f45-3c7540cf932c"
    },
    "deploymentNodes": []
  }
}

Delete Deployment

Deletes the details of a particular deployment from Application Services.

The application publisher and developer can access this API.

HTTP Method

DELETE

URI Syntax

https://ApplicationServicesServerIP:8443/darwin/api/2.0/deployment/DeploymentID

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/deployment/5

Response

{
  "errors": false,
  "messageList": [
    {
      "messageType": "INFO",
      "message": "Successfully deleted Deployment.",
      "messageKey": "delete.msg",
      "property": null
    }
  ]
}