Request:
Method:
|
GET
|
URL:
|
/applications/APPUUID/rulesets/RULEUUID
|
Arguments:
|
–
|
Response:
Return code
|
Arguments
|
Meaning
|
200
|
{ RULESETDATA }
|
ruleset successfully returned as a dictionary containing all ruleset data
|
401
|
–
|
no login
|
403
|
–
|
not enough rights
|
404
|
–
|
application or ruleset not found
|
500
|
–
|
internal server error
|
Example:
The following request retrieves the data of the ruleset with the UUID “127.0.0.1:8083:f011694d47d73578-1a7bfe29b480dac5575de4bc15d85a6f:1”, which is a ruleset for the application “f011694d47d73578-3c0581461472821ff8d0c3a8c007d88c”.
(In the example, the response is truncated.)
$ curl -u admin:admin -H 'Content-Type: application/json' http://127.0.0.1:8087/api/af/2.0/applications/f011694d47d73578-3c0581461472821ff8d0c3a8c007d88c/rulesets/127.0.0.1:8083:f011694d47d73578-1a7bfe29b480dac5575de4bc15d85a6f:1
{
"__name": "127.0.0.1:8083:f011694d47d73578-1a7bfe29b480dac5575de4bc15d85a6f:1",
"__path": "/api/af/2.0/applications/f011694d47d73578-3c0581461472821ff8d0c3a8c007d88c/rulesets/127.0.0.1:8083:f011694d47d73578-1a7bfe29b480dac5575de4bc15d85a6f:1/",
"__subnodes": [],
"baseline_config": {},
"changelog": [],
"comment": "",
"db_last_modified_timestamp": 1347292036,
"db_last_modified_userid": "unknown",
"global_handler": [
{
"ConfigItems": [
{
"db_last_modified_userid": "unknown",
"description": "Enable Shortcut Handler",
"is_inherited": true,
"name": "enabled",
"owner": [],
"type": "boolean"
},
....
}
],
"global_timestamp": "00000000000000dc-127.0.0.1:8083-f011694d47d73578-d9a8f3dd4119ea7f200fd9b4acd624a1-1347292036",
"handler": [
{
"ConfigItems": [
{
"db_last_modified_userid": "unknown",
"description": "Enable this handler",
"is_inherited": true,
"name": "enabled",
"owner": [],
"type": "boolean"
},
....
}
],
"last_modified": 1347292036,
"name": "initial ruleset",
"owner": [],
"rules": [
{
"db_last_modified_userid": "unknown",
"handler": [
{
"ConfigItems": [
{
"db_last_modified_userid": "unknown",
"description": "Enable this handler",
"is_inherited": true,
"name": "enabled",
"owner": [],
"type": "boolean"
},
....
],
"name": "/.*",
"owner": [],
"selector": [
{
"ConfigItems": [
{
"db_last_modified_userid": "unknown",
"description": "Selection based on hostname",
"is_inherited": true,
"name": "enabled",
"owner": [],
"type": "boolean"
},
....
]
}
],
"version": 1
}
|