Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore ListLoad Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr If NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad Dict Str AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad Dict Str AttributeLoad NameLoad attr attr Call AttributeLoad Dict Str AttributeLoad NameLoad attr attr Call AttributeLoad Dict Str NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad Dict Str Call AttributeLoad NameLoad attr attr Return TupleLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Call AttributeLoad NameLoad attr ListLoad Str ListLoad Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Delete SubscriptDel NameLoad Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn Str NameLoad body Assign NameStore CompareEq Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Dict Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return TupleLoad NameLoad Num decorator_list decorator_list
N/A security_monkey.common.PolicyDiff PolicyDiff security_monkey.views AuthenticatedService security_monkey.views __check_auth__ security_monkey.views REVISION_FIELDS security_monkey.views REVISION_COMMENT_FIELDS security_monkey.views ITEM_FIELDS security_monkey.datastore Item security_monkey.datastore Account security_monkey.datastore Technology security_monkey.datastore ItemRevision security_monkey rbac flask_restful marshal reqparse sqlalchemy.sql.expression cast sqlalchemy String RevisionGet N/A AuthenticatedService N/A N/A decorators N/A N/A N/A rbac allow N/A View N/A GET __init__ N/A N/A self N/A N/A N/A N/A self reqparse N/A N/A reqparse RequestParser N/A N/A N/A N/A super RevisionGet self __init__ N/A get N/A N/A self revision_id N/A N/A N/A 
            .. http:get:: /api/1/revision/1234

            Get a specific revision.

            **Example Request**:

            .. sourcecode:: http

                GET /api/1/revision/123 HTTP/1.1
                Host: example.com
                Accept: application/json, text/javascript

            **Example Response**:

            .. sourcecode:: http

                HTTP/1.1 200 OK
                Vary: Accept
                Content-Type: application/json

                {
                    "auth": {
                        "authenticated": true,
                        "user": "user@example.com"
                    },
                    "item_id": 114,
                    "comments": [],
                    "active": false,
                    "date_created": "2013-10-04 22:01:47",
                    "config": {},
                    "id":123
                }

            :statuscode 200: no error
            :statuscode 401: Authentication failure. Please login.
         N/A N/A auth retval N/A __check_auth__ N/A self auth_dict N/A auth N/A N/A retval N/A query N/A N/A N/A ItemRevision query filter N/A N/A ItemRevision id revision_id N/A result N/A N/A query first N/A comments N/A N/A comment N/A result comments N/A N/A comment_marshaled N/A marshal comment REVISION_COMMENT_FIELDS N/A N/A N/A comments append N/A dict N/A N/A N/A comment_marshaled items N/A N/A N/A user N/A N/A comment user email items N/A revision_marshaled N/A marshal result REVISION_FIELDS N/A revision_marshaled N/A dict N/A N/A N/A N/A N/A revision_marshaled items N/A N/A N/A config N/A result config items N/A N/A N/A auth N/A self auth_dict items N/A N/A N/A comments comments items N/A N/A N/A N/A self reqparse add_argument compare type int default None location args N/A args N/A N/A N/A self reqparse parse_args N/A compare_id N/A N/A args pop compare None N/A compare_id N/A N/A query N/A N/A N/A ItemRevision query filter N/A N/A ItemRevision id compare_id N/A compare_result N/A N/A query first N/A pdiff N/A PolicyDiff N/A result config N/A compare_result config N/A revision_marshaled N/A dict N/A N/A N/A revision_marshaled items N/A N/A N/A diff_html N/A N/A pdiff produceDiffHTML items N/A N/A revision_marshaled 200 N/A N/A RevisionList N/A AuthenticatedService N/A N/A decorators N/A N/A N/A rbac allow N/A View N/A GET get N/A N/A self N/A N/A N/A 
            .. http:get:: /api/1/revisions

            Get a list of revisions

            **Example Request**:

            .. sourcecode:: http

                GET /api/1/revisions?count=1 HTTP/1.1
                Host: example.com
                Accept: application/json

            **Example Response**:

            .. sourcecode:: http

                HTTP/1.1 200 OK
                Vary: Accept
                Content-Type: application/json

                {
                    "items": [
                        {
                            "account": "example_account",
                            "name": "Example Name",
                            "region": "us-east-1",
                            "item_id": 144,
                            "active": false,
                            "date_created": "2014-06-19 20:54:12.962951",
                            "technology": "sqs",
                            "id": 223757
                        }
                    ],
                    "total": 1,
                    "page": 1,
                    "auth": {
                        "authenticated": true,
                        "user": "user@example.com"
                    }
                }

            :statuscode 200: no error
            :statuscode 401: Authentication Error. Please Login.
         N/A N/A N/A N/A self reqparse add_argument count type int default 30 location args N/A N/A N/A N/A self reqparse add_argument page type int default 1 location args N/A N/A N/A N/A self reqparse add_argument active type str default None location args N/A N/A N/A N/A self reqparse add_argument regions type str default None location args N/A N/A N/A N/A self reqparse add_argument accounts type str default None location args N/A N/A N/A N/A self reqparse add_argument names type str default None location args N/A N/A N/A N/A self reqparse add_argument technologies type str default None location args N/A N/A N/A N/A self reqparse add_argument searchconfig type str default None location args N/A args N/A N/A N/A self reqparse parse_args N/A page N/A N/A args pop page None N/A count N/A N/A args pop count None N/A N/A k v N/A N/A args items N/A N/A N/A v N/A N/A N/A args N/A k N/A query N/A N/A N/A ItemRevision query join item N/A N/A regions args N/A N/A regions N/A N/A N/A args N/A regions split , N/A query N/A N/A query filter N/A N/A N/A Item region in_ regions N/A N/A accounts args N/A N/A accounts N/A N/A N/A args N/A accounts split , N/A query N/A N/A query join N/A Account N/A N/A Account id N/A Item account_id N/A query N/A N/A query filter N/A N/A N/A Account name in_ accounts N/A N/A technologies args N/A N/A technologies N/A N/A N/A args N/A technologies split , N/A query N/A N/A query join N/A Technology N/A N/A Technology id N/A Item tech_id N/A query N/A N/A query filter N/A N/A N/A Technology name in_ technologies N/A N/A names args N/A N/A names N/A N/A N/A args N/A names split , N/A query N/A N/A query filter N/A N/A N/A Item name in_ names N/A N/A active args N/A N/A active N/A N/A N/A N/A args N/A active lower true N/A query N/A N/A query filter N/A N/A ItemRevision active active N/A N/A searchconfig args N/A N/A searchconfig N/A args N/A searchconfig N/A query N/A N/A query filter N/A N/A N/A cast N/A ItemRevision config String ilike N/A N/A %{}% format searchconfig N/A query N/A N/A query order_by N/A N/A N/A ItemRevision date_created desc N/A revisions N/A N/A query paginate page count N/A marshaled_dict N/A page total auth N/A revisions page N/A revisions total N/A self auth_dict N/A items_marshaled N/A N/A revision N/A revisions items N/A N/A item_marshaled N/A marshal N/A N/A revision item __dict__ ITEM_FIELDS N/A revision_marshaled N/A marshal N/A revision __dict__ REVISION_FIELDS N/A account_marshaled N/A account N/A N/A N/A revision item account name N/A technology_marshaled N/A technology N/A N/A N/A revision item technology name N/A merged_marshaled N/A dict N/A N/A N/A N/A N/A item_marshaled items N/A N/A revision_marshaled items N/A N/A account_marshaled items N/A N/A technology_marshaled items N/A N/A N/A items_marshaled append merged_marshaled N/A N/A marshaled_dict N/A items items_marshaled N/A N/A marshaled_dict N/A count N/A len items_marshaled N/A N/A marshaled_dict 200 N/A N/A