Vorheriges Thema: Show All Services that need Approval

Nächstes Thema: MDRs

Update Service Information

This web service updates service information.

HTTP Type

PUT

Restriction

Administrator Only.

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/update

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.

&fromname

The existing service name.

&toname

Updated name of the service.

&todes

Updated description of the service.

Example:

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/service/update?key=98ce4910fc7f6fdb7af270ea9b3162b6&secret=eafe362499ecead24b3092ec12853590&fromname=TestServic&toname=NewTestService&todes=This%20is%20a%20new%20description

Sample output of successful execution:

{
"result":
	{
	"returnCode": "0",
	"errorMessage": "Operation Successful.",
	"resultCount": 1,
	"Bean-List": {
		"ResourceService-Bean":[
			{ "uuid": "0f2b5610-ff58-4dca-a727-b9c5339e2c64", "name": "NewTestService", "description": "This is a new description", "provider": "null", "providerUUID": "null", "categoryName": "null", "naturalScore": "null", "group": "null", "label": "null", "createdOn": "2011-03-24 21:59:38.0", "needsApproval": "No", "createdBy": "testadmin@ca.com" }
					]

		     }
	}
}