Vorheriges Thema: Get All MDRs

Nächstes Thema: Approve an MDR

Create an MDR

This web service creates an MDR.

HTTP Type

POST

Restriction

None. Open to all public users.

URI

{type}/SMI/{version}/mdr/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.

Example:

The following URI creates an MDR called testMDR in the global SMI DB. The UUID of the newly created MDR is returned. It will also show if the MDR is certified (1) or not (0).

https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/mdr/create?name=testMDR&desc=This%20is%20a%20test&key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa

Sample output of successful execution:

{
"result":
	{
	"returnCode": "0",
	"errorMessage": "Operation Successful.",
	"resultCount": 1,
	"Bean-List": {
		"ResourceMdr-Bean":[
			{ "uuid": "3ec30f7f-7241-4b79-9f1a-d61a3669ff6d", "name": "TestMDR", "description": "This is a test", "certify": "null", "createdBy": "public", "creationDate": "2011-02-08 19:58:14.0", "needsApproval": "Yes" }
					]
		     }
	}
}