This web service allows the user to create a capability.
POST
Administrator Only.
{type}/SMI/{version}/capability/create
|
Parameter |
Description |
|
&key |
The API Key that is provided when your application has been registered. |
|
&secret |
The Shared Secret that is provided when your application has been registered. |
|
&name |
Name of the resource being created. |
|
&desc |
Description of the resource being created. |
|
&standard |
This can be set to 0 or 1. This determines if the capability defined is part of the predefined data from install. |
Example:
The following URI creates a capability called “TestCapability”.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/capability/create?name=TestCapability&desc=This%20is%20a%20test&key=4f400a9b486c764d3a6ec5f86fe0a2aa&secret=e320f8f11cb88b5ab346d9ab34033d95&standard=1
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "Operation Successful.",
"resultCount": 1,
"Bean-List": {
"ResourceCapability-Bean":[
{ "uuid": "d9ccd30e-c69f-46c2-9cea-a34482671ff2", "name": "TestCapability", "createdBy": "testadmin@ca.com", "creationDate": "2011-03-23 19:36:43.0", "description": "This is a test", "isStandard": "1" }
]
}
}
}
| Copyright © 2012 CA. Alle Rechte vorbehalten. | Senden Sie CA Technologies eine E-Mail zu diesem Thema. |