Vorheriges Thema: Assign a Capability to a Service by UUID

Nächstes Thema: Assign a List of Capabilities to a Service by Name

Assign a Capability to a Service by Name

This web service assigns a capability 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}/capability/{capabilityName}

Parameter

Description

{serviceName}

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

{capabilityName}

The name 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 “Reporting" to the service “TestReportingService”.

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/service/TestReportingService/capability/Reporting?&key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa

Sample output of successful execution:

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