Import Action
Imports an action in a given category. The action binary content should be available as multi-part content (see RFC-2387 for details).
Details of working with multi-part resources depend on the used client's HTTP/REST library. For example, in Spring it will look like:
Sample client code:
-------------------
String url = "https://localhost:8281/vco/api/actions/";
MultiValueMapparts = new LinkedMultiValueMap ();
Resource r = new FileSystemResource("D:/path/to/some.action");
parts.put("file", Arrays.asList(r));
parts.put("categoryName", "com.vmware.basic");
new RestTemplate().postForLocation(url, parts);
-------------------
Request
URI
POST
https://{api_host}/vco/api/actions
COPY
Path Parameters
string
categoryName
Required
categoryName
Request Body
importAction of mimetype application/x-www-form-urlencoded
Optional
Responses
202
Action successfully imported
Operation doesn't return any data structure
401
The user is not authorized
Operation doesn't return any data structure
404
Can not find an action category with the specified name
Operation doesn't return any data structure
Actions Service Operations
DELETE
Delete Action
DELETE
Delete Permission Rule
DELETE
Delete Permissions For Object
POST
Execute Action By Id
POST
Execute Action By Name
GET
Export Action
GET
Get Action
GET
Get Permission Rule
GET
Get Permissions For Object
POST
Import Action
POST
Insert Permissions For Object
GET
List All Actions
PUT
Update Permission Rule