This web service lists all the available categories.
GET
None. Open to all public users.
{type}/SMI/{version}/categories
|
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. |
|
&page |
Defines the page number to display. |
|
&rows |
Defines the number of records to display per page. |
|
&sort |
Valid values for this web service are: “name” and "createdOn". If not defined, no sorting is performed. |
Example:
The following URI displays all available categories defined in the global SMI DB. The data returned shows the UUID, name and description for the category. The data returned also shows if this is one of the standard categories that have been predefined.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/categories?page=1&rows=20&key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "Operation Successful.",
"resultCount": 12,
"Bean-List": {
"ResourceCategory-Bean":[
{ "uuid": "ab986674-8291-11df-b78a-f765177ca478", "name": "E-Commerce", "description": "E-Commerce as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "aba45240-8291-11df-bca3-339c3162b513", "name": "E-mail", "description": "E-mail as a service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "aba6b49a-8291-11df-90d9-ab8d193f071a", "name": "Customer Relationship Management", "description": "Customer Relationship Management as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "afe5e6ac-8291-11df-88d9-9f5571f66705", "name": "Compute", "description": "Compute as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "afef701e-8291-11df-b1a1-abf70f427a60", "name": "Database", "description": "Database as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "aff1d278-8291-11df-848f-773f78f42ae3", "name": "Business Intelligence", "description": "Business Intelligence as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "aff434d2-8291-11df-83d5-7327a550bb19", "name": "Backup and Recovery", "description": "Backup and Recovery as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "aff6972c-8291-11df-95b2-33c3ca0d848e", "name": "Enterprise Resource Planning", "description": "Enterprise Resource Planning as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "aff6972c-8291-11df-8b8c-7ffee011557d", "name": "IT Management", "description": "IT Management as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "aff8f986-8291-11df-a286-6b58c17ae1bb", "name": "Project and Portfolio Management", "description": "Project and Portfolio Management as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "affb5be0-8291-11df-89b7-bb39e1cecb2e", "name": "Platform", "description": "Platform as a Service", "creationDate": "2011-03-09 12:43:59.0", "isStandard": "1" },
{ "uuid": "0988c5db-63a0-42dc-a858-67ba3458ef60", "name": "StevenTestNow", "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. |