This web service creates a survey.
POST
Administrator Only.
{type}/SMI/{version}/survey/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 a survey called testSurvey in the global SMI DB. The UUID of the newly created survey is returned.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/survey/create?name=testSurvey&desc=This%20is%20a%20test&key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "Operation Successful.",
"resultCount": 1,
"Bean-List": {
"ResourceSurvey-Bean":[
{ "uuid": "65fd215e-1169-4fb4-9993-6eecd160bbf0", "name": "testSurvey", "description": "This is a test", "createdBy": "adminUser@ca.com", "creationDate": "2011-03-15 15:00:37.0" }
]
}
}
}
| Copyright © 2012 CA. Alle Rechte vorbehalten. | Senden Sie CA Technologies eine E-Mail zu diesem Thema. |