Vorheriges Thema: Get All Capabilities for a Service

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

Create a Service

This web service creates a service.

HTTP Type

POST

Restriction

None. Open to all public users.

After a public user creates a service using this web service it will be viewable to that public user only and any administrator to Cloud Commons. Once the Cloud Commons Consortium approves the service, it will then be viewable by all.

This web service is restricted to the global Cloud Commons DB only. This web service is restricted from being used on a local integrated DB.

URI

{type}/SMI/{version}/service/create

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.

&name

Name of the resource being created.

&desc

Description of the resource being created.

&providerUUID

Defines the provider UUID associated with the service. Not used with &providerName.

&providerName

Defines the provider name associated with the service. Not used with &providerUUID.

Example:

The following URI creates a provider called “TestService”. The providerUUID given is "Google". The UUID of the new service is returned.

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/service/create?key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa&providerUUID=50fc741c-5447-11df-a06a-c7daeae07f53&name=TestService&desc=testservice

Sample output of successful execution:

{
"result":
	{
	"returnCode": "0",
	"errorMessage": "Operation Successful.",
	"resultCount": 1,
	"Bean-List": {
		"ResourceService-Bean":[
			{ "uuid": "6e20bedb-92fe-400a-a142-d382f8db011a", "name": "TestService", "description": "testservice", "provider": "GoDaddy", "providerUUID": "50fc741c-5447-11df-a06a-c7daeae07f53", "categoryName": "null", "naturalScore": "null", "group": "null", "label": "null", "createdOn": "2011-02-08 19:50:11", "needsApproval": "No", "createdBy": "admin" }
					]
		     }
	}
}