5.5.1

Table Of Contents
2 Make a DELETE request at the URL of the package, and if you want to delete elements from the package,
provide an option parameter at the end of the request:
DELETE http://{vcoHost}:{port}/vco/api/packages/{package_name}/?option={parameter}
Parameter Description
deletePackage
Only the package is deleted, while its content is retained.
deletePackageWithContent
The package and all its content is deleted. If other packages share elements
with the deleted package, the shared elements are deleted from the other
packages.
deletePackageKeepingShared
The package and the content that is not shared is deleted. Elements that are
shared with other packages are not deleted.
If you do not provide an option parameter, the default deletePackage parameter is used.
If the DELETE request is successful, you receive the status code 200, and the response body is empty.
Delete a Resource
You can delete a resource by using the Orchestrator REST API.
Procedure
1 Make a GET request and retrieve the ID of the resource from the list of returned resources:
GET http://{vcoHost}:{port}/vco/api/resources/
2 Make a DELETE request at the URL of the resource:
DELETE http://{vcoHost}:{port}/vco/api/resources/{resourceID}/
If the DELETE request is successful, you receive the status code 200, and the response body is empty.
Delete a Configuration Element
You can delete a configuration element by using the Orchestrator REST API.
Procedure
1 Make a GET request and retrieve the ID of the configuration element from the list of returned
configuration elements:
GET http://{vcoHost}:{port}/vco/api/configurations/
2 Make a DELETE request at the URL of the configuration element:
DELETE http://{vcoHost}:{port}/vco/api/configurations/{configuration_elementID}/
If the DELETE request is successful, you receive the status code 200, and the response body is empty.
Setting Permissions on Orchestrator Objects
You can set custom permissions for an Orchestrator object by using the REST API. To set the permissions,
you must make a POST request at the URL of the object's permissions and define the permissions in the
request body.
You can also use the Orchestrator REST API to retrieve information about an object's permissions or delete
the existing permissions.
Chapter 2 Using the vCenter Orchestrator REST API
VMware, Inc. 39