This web service lists all the available surveys.
GET
Administrator Only.
{type}/SMI/{version}/surveys
|
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. |
|
&page |
Defines the page number to display. |
|
&rows |
Defines the number of records to display per page. |
Example:
The following URI displays all available surveys defined in the global SMI DB. The data returned shows the UUID, name and description for the survey.
https://smi.cloudcommons.com:8443/Insight_API/json/SMI/0.5/surveys?key=df3936ec01c5d3adf9f0048116cd5b84&secret=13f6232ebf484e57103cd4ac234a22aa
Sample output of successful execution:
{
"result":
{
"returnCode": "0",
"errorMessage": "Operation Successful.",
"resultCount": 3,
"Bean-List": {
"ResourceSurvey-Bean":[
{ "uuid": "01e417fb-61aa-4790-af24-44953dd9cf74", "name": “testSurvey1", "description": "This is a test", "createdBy": "$default$", "creationDate": "2011-03-11 15:24:21.0" },
{ "uuid": "38c488ae-c2aa-4c87-bb78-a2185863885e", "name": " testSurvey2", "description": "This is a test", "createdBy": "$default$", "creationDate": "2011-03-11 15:25:03.0" },
{ "uuid": "65fd215e-1169-4fb4-9993-6eecd160bbf0", "name": " testSurvey3", "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. |