Vorheriges Thema: Assign a Capability to a Service by Name

Nächstes Thema: Remove a Capability from a Service

Assign a List of Capabilities to a Service by Name

This web service assigns a list of capabilities to a specified service using the name of the service and capability. Once a service has been assigned all the required capabilities of a category, the service is automatically assigned to the category. A service may be part of multiple categories.

HTTP Type

POST

Restriction

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.

URI

{type}/SMI/{version}/service/{serviceName}/setCapabilityList

Parameter

Description

{serviceName}

The name of the service you want to assign the capability.

&capabilityList

The list of capability names, delimited by a comma.

&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.

Example:

The following URI sets five capabilities to the service "TestService".

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/service/TestService/setCapabilityList?capabilityList=Send%20and%20Receive%20Email,Reporting,Inventory%20Management,Integrations,Persistant%20Instance&key=52da1e089a5a8ee3d3ccf38254f5e8b8&secret=9a31daab4f41ac1897c102339283e303

Sample output of successful execution:

{
"result":
	{
	"returnCode": "0",
	"errorMessage": "Operation Successful.",
	"resultCount": 0,
	}
}