Vorheriges Thema: Get a Service by Service UUID

Nächstes Thema: Create a Service

Get All Capabilities for a Service

This web service lists all the capabilities assigned to a specific service by UUID.

HTTP Type

GET

Restriction

Limited. Open to all public users with the following limitation:

This web service only lists capabilities for services approved by the Cloud Commons Consortium. Services created by the user making the request are also listed, even if the service has not been approved.

URI

{type}/SMI/{version}/service/{serviceUUID}/capabilities

Parameter

Description

{serviceUUID}

UUID of the service to query.

&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 the capabilities for the “Merchant Solutions" service.

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/service/3853d2eb-45a9-43b8-95d4-56c123febcdc/capabilities?&key=52da1e089a5a8ee3d3ccf38254f5e8b8&secret=9a31daab4f41ac1897c102339283e303

Sample output of successful execution:

 {
"result":
	{
	"returnCode": "0",
	"errorMessage": "Operation Successful.",
	"resultCount": 3,
	"Bean-List": {
		"ResourceServiceCapability-Bean":[
			{ "uuid": "10ccd65c-bf63-11df-a2f6-73a75628b28b", "serviceId": "3042", "name": "Create Instance", "createdBy": "SMIGLOBAL", "creationDate": "2011-03-23 16:38:50.0" },
			{ "uuid": "10cf38b6-bf63-11df-85b1-a39291f2ecc0", "serviceId": "3042", "name": "Scale Instance", "createdBy": "SMIGLOBAL", "creationDate": "2011-03-23 16:38:50.0" },
			{ "uuid": "10d19b10-bf63-11df-b859-5f61b6d62d14", "serviceId": "3042", "name": "Storage Service Integration", "createdBy": "SMIGLOBAL", "creationDate": "2011-03-23 16:38:50.0" }
						 ]
		     }
	}
}