This web service automatically categorizes a service to a specific category. This web service uses name rather than UUID. When a service is categorized using this web service, the service is automatically assigned all the required capabilities of the category.
POST
Limited. Open to all public users with the following limitation:
As a public user you may only assign capabilities to a service that you have created. That service must not yet be approved by the Cloud Commons Consortium. You may not assign capabilities to a service that has already been approved, unless you are an administrator.
{type}/SMI/{version}/categorize_service
|
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. |
|
&service |
The name of the service to categorize. |
|
&category |
The name of the category to which you want to assign the service. |
Example:
In this example Service1 is categorized under a category called TestCategory
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/categorize_service?service=Service1&category=TestCategory&key=98ce4910fc7f6fdb7af270ea9b3162b6&secret=eafe362499ecead24b3092ec12853590
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "Operation Successful.",
"resultCount": 0,
}
}
| Copyright © 2012 CA. Alle Rechte vorbehalten. | Senden Sie CA Technologies eine E-Mail zu diesem Thema. |