This web service allows the user to create a category.
POST
Administrator Only.
{type}/SMI/{version}/category/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. |
Example:
The following URI creates a capability called “New_Category”. New categories that are created will not be standard (is_standard=0). The UUID of the new category is returned.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/category/create?name=New_Category&desc=My_Category&key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "Operation Successful.",
"resultCount": 1,
"Bean-List": {
"ResourceCategory-Bean":[
{ "uuid": "0988c5db-63a0-42dc-a858-67ba3458ef60", "name": "New_Category", "description": "This is a test", "creationDate": "2011-03-15 15:00:26.0", "isStandard": "0" }
]
}
}
}
| Copyright © 2012 CA. Alle Rechte vorbehalten. | Senden Sie CA Technologies eine E-Mail zu diesem Thema. |