Vorheriges Thema: Create a Service

Nächstes Thema: Assign a Capability to a Service by Name

Assign a Capability to a Service by UUID

This web service assigns a capability to a specified service using the UUID 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/{serviceUUID}/capability/{capabilityUUID}/create

Parameter

Description

{serviceUUID}

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

{capabilityUUID}

The UUID of the capability to assign to the service.

&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 the capability “Send and Receive Mail” to the service “Merchant Solutions”.

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/service/99500098-c4b9-11df-bbd8-6b395a4ff3f3/capability/10c34ce0-bf63-11df-903a-4b5b5b7d47ea?&key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa

Sample output of successful execution:

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