This web service approves an MDR by name.
PUT
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.
{type}/SMI/{version}/mdr/{mdrName}/approve
|
Parameter |
Description |
|
{mdrName} |
The name of the MDR to approve. |
|
&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. |
Example:
In this example, the TestDemo MDR is approved.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/mdr/TestDemo/approve?key=95bf5da46010b6ddaa8baca04fd94e73&secret=7ec5680d8ac7f03c919dad7770381358
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "MDR has been approved Successfully.",
"resultCount": 1,
"Bean-List": {
"ResourceMdr-Bean":[
{ "uuid": "b025d883-dacd-42f9-aae1-9136cae56582", "name": "TestDemo", "description": "Test", "certify": "null", "createdBy": "public2", "creationDate": "2011-02-08 19:50:14.0", "needsApproval": "No" }
]
}
}
}
| 版权所有 © 2012 CA。 保留所有权利。 | 就该主题发送电子邮件至 CA Technologies |