GET:site/operations

Overview

public. Retrieve all known security operations

Uri Parameters

None

Query Parameters

None

Return Codes
NameValueDescription
Ok200The request completed successfully

Message Format

Output:

<operations href="{uri}" >{text}</operations>

Implementation Notes

See below for a description of currently defined role operations:

System flags

Action
Description
Numeric value
LOGIN
Can log in 1
CONTROLPANEL Able to access the control panel 2048
ADMIN Able to perform all actions and maintenance operations 9223372036854775808
SUSCRIBE Can subscribe to RSS and see page changes 8

Page flags

Action
Description
Numeric value
BROWSE Can see page title in navigation 2
READ
Can see page and attachment contents 4
UPDATE Can edit an existing page and work with attachments 16
CREATE Can create a new page 32
DELETE Can delete a page 256
CHANGEPERMISSIONS Can access permissions dialog and change permissions 1024

Code Samples

The following code example retrieves a list of operations currently defined on the site:

Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("site", "operations").Get();

Sample response:

<operations href="http://deki-hayes/@api/deki/site/operations">LOGIN,BROWSE,READ,SUBSCRIBE,UPDATE,CREATE,DELETE,CHANGEPERMISSIONS,CONTROLPANEL,ADMIN</operations>
Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08