Difference between revisions of "REST API:execSQL Resource"

From LongJump Support Wiki
imported>Aeric
(Created page with "Use the SQL query language to access Object tables, using the REST API. :''Learn more:'' REST API Conventions and Considerations.…")
 
imported>Aeric
Line 14: Line 14:


===Permissions===
===Permissions===
{{TBD|Are the permission(s) right?}} -- check [[Administrative Permissions]] for a list of possibilities
{{TBD|Are the permission(s) right?}}
:* [[Develop Tools]] permission must be enabled for the tenant.
:* [[Develop Tools]] permission must be enabled for the tenant.
{{permissions|Access Control/User Management|use this resource.}}
{{permissions|Manage Develop Features|use this resource.}}
{{permissions|Manage Develop Features|use this resource.}}



Revision as of 01:35, 16 November 2011

Use the SQL query language to access Object tables, using the REST API.

Learn more: REST API Conventions and Considerations.

Notepad.png

Note: Use this structure the same way you use the structure for man pages:
Follow the presentation pattern, but if a section isn't needed, don't include the header.
Also:

  1. Add an entry to the REST API CheatSheet
  2. Add an entry to the REST API (categorized) page
  3. Add an entry to the REST Resources page

Requirements

  • Requirement #1
  • Requirement #2

Permissions

__TBD: Are the permission(s) right?__

Lock-tiny.gif

Users that have the Manage Develop Features permission can use this resource. 

Execute an SQL Query

Method
GET
URI
https://{domain}/networking/rest/execSQL?sql={query}
Query Parameters
  • sql - The SQL language query to execute.
For more information, see: Specifying Query Parameters in REST APIs
Response
<platform>
    <execSQL>
        <id>...</id>
        <field>data</field>
         ...
    </execSQL>

    <message>
        <code>0</code>
        <description>Success</description>
    </message>
    <recordCount>N</recordCount>      <!-- Number of __ records returned -->
</platform>
See also: REST API:Error Codes