Vorheriges Thema: Update a Service Provider by Name

Nächstes Thema: Categorize a Service

Approve a Service

This web service allows an administrator to approve or reject a service. When a service is created by an administrator, it does not require approval. When a public user creates a service, that service requires approval from an administrator. Until a service is approved, it is not included in any category comparisons (SMI score calculations).

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/{serviceUUID}/approve

Parameter

Description

{serviceUUID}

The UUID of the service to approve or reject.

&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.

&reject

Valid values are "true" or "false". Use true to approve the service, or false to reject the service. When not specified, the default value is false.

Example:

In this example, the service specified by the UUID is approved.

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/service/a8d68cdf-71c6-4007-abab-8a609d17307a/approve?key=95bf5da46010b6ddaa8baca04fd94e73&secret=7ec5680d8ac7f03c919dad7770381358

Sample output of successful execution:

{
"result":
	{
	"returnCode": "0",
	"errorMessage": "Service has been approved Successfully.",
	"resultCount": 1,
	"Bean-List": {
		"ResourceService-Bean":[
			{ "uuid": "a8d68cdf-71c6-4007-abab-8a609d17307a", "name": "InsDemoNow3", "description": "Test", "provider": "GoDaddy", "providerUUID": "50fc741c-5447-11df-a06a-c7daeae07f53", "categoryName": "null", "naturalScore": "null", "group": "null", "label": "null", "createdOn": "2011-02-08 19:50:12", "needsApproval": "No", "createdBy": "public2" }
					]
		     }
	}
}