🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

cloudflash-ffproxy

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflash-ffproxy

cloudflash-ffproxy module implements ffproxy configuration on cloudflash enabled devices

1.3.4
latest
Version published
Maintainers
1
Created

cloudflash-ffproxy

List of ffproxy APIs

VerbURIDescription
POST/ffproxy/policyTo create ffproxy policy configuration
GET/ffproxy/policyList summary of ffproxy policy configuration
GET/ffproxy/policy/:idList summary of ffproxy policy configuration by ID
PUT/ffproxy/policy/:idUpdate existing ffproxy policy configuration in VCG/CPEs by ID
DELETE/ffproxy/policy/:idTo delete existing ffproxy policy configuration by ID
POST/ffproxy/categoriesTo create ffproxy categories configuration
GET/ffproxy/categoriesList summary of ffproxy categories configuration
GET/ffproxy/categories/:idList summary of ffproxy categories configuration by ID
PUT/ffproxy/categories/:idUpdate existing ffproxy categories configuration in VCG/CPEs by ID
DELETE/ffproxy/categories/:idTo delete existing ffproxy categories configuration by ID
POST/ffproxy/safesearchTo create safesearch configuration
GET/ffproxy/safesearchList summary of safesearch configuration
GET/ffproxy/safesearch/:idList summary of safesearch configuration by ID
PUT/ffproxy/safesearch/:idUpdate existing safesearch configuration in VCG/CPEs by ID
DELETE/ffproxy/safesearch/:idTo delete existing safesearch configuration by ID
POST/ffproxy/policyexceptionsTo create exception configuration
GET/ffproxy/policyexceptionsList summary of exception configuration
GET/ffproxy/policyexceptions/:idList summary of exception configuration by ID
PUT/ffproxy/policyexceptions/:idUpdate existing exception configuration in VCG/CPEs by ID
DELETE/ffproxy/policyexceptions/:idTo delete existing exception configuration by ID

Create ffproxy policy

Verb      URI                    Description
POST      /ffproxy/policy        Create ffproxy policy configuration.

On success it returns JSON data with the UUID for the ffproxy policy created configuration.

Example Request and Response

Request JSON

{

"policy": [
    {
        "enable": true,
        "name": "policy name",
        "allowList": [
            1,
            2,
            3
        ],
        "blockedList": [
            4,
            5
        ],
        "net": [
            {
                "network": "10.1.10.1",
                "netmask": 32
            },
            {
                "network": "10.1.10.3",
                "netmask": 32
            }
        ]
    },
    {
          "enable": true,
          "name": "policy name 2",
        "allowList": [
            4,
            5
        ],
        "blockedList": [
            6,
            7
        ],
        "net": [
            {
                "network": "10.1.10.2",
                "netmask": 32
            }
        ]
    }
]
}

Response JSON

{
   
   "policy":
   [
       {
           "enable": true,
           "name": "policy name",
           "allowList":
           [
               1,
               2,
               3
           ],
           "blockedList":
           [
               4,
               5
           ],
           "net":
           [
               {
                   "network": "10.1.10.1",
                   "netmask": 32
               },
               {
                   "network": "10.1.10.3",
                   "netmask": 32
               }
           ]
       },
       {
           "enable": true,
           "name": "policy name 2",
           "allowList":
           [
               4,
               5
           ],
           "blockedList":
           [
               6,
               7
           ],
           "net":
           [
               {
                   "network": "10.1.10.2",
                   "netmask": 32
               }
           ]
       }
   ],
   "id": "89a81ef3-99bf-4a60-b9c8-f7abfa7cc428"
}

List ffproxy policy

Verb	URI	             Description
GET	       /ffproxy/policy       List summary of ffproxy policy configuration.

Example Request and Response

Response

[
   {
       "policy":
       [
           {
               "enable": true,
               "name": "policy name",
               "allowList":
               [
                   1,
                   2,
                   3
               ],
               "blockedList":
               [
                   4,
                   5
               ],
               "net":
               [
                   {
                       "network": "10.1.10.1",
                       "netmask": 32
                   },
                   {
                       "network": "10.1.10.3",
                       "netmask": 32
                   }
               ]
           },
           {
               "enable": true,
               "name": "policy name 2",
               "allowList":
               [
                   4,
                   5
               ],
               "blockedList":
               [
                   6,
                   7
               ],
               "net":
               [
                   {
                       "network": "10.1.10.2",
                       "netmask": 32
                   }
               ]
           }
       ],
       "id": "89a81ef3-99bf-4a60-b9c8-f7abfa7cc428"
   }
]


List ffproxy policy by ID

Verb	URI	                Description
GET	       /ffproxy/policy/:id	List summary of ffproxy policy configured by ID.

Example Request and Response

Response

{
   
   "policy":
   [
       {
           "enable": true,
           "name": "policy name",
           "allowList":
           [
               1,
               2,
               3
           ],
           "blockedList":
           [
               4,
               5
           ],
           "net":
           [
               {
                   "network": "10.1.10.1",
                   "netmask": 32
               },
               {
                   "network": "10.1.10.3",
                   "netmask": 32
               }
           ]
       },
       {
           "enable": true,
           "name": "policy name 2",
           "allowList":
           [
               4,
               5
           ],
           "blockedList":
           [
               6,
               7
           ],
           "net":
           [
               {
                   "network": "10.1.10.2",
                   "netmask": 32
               }
           ]
       }
   ],
   "id": "89a81ef3-99bf-4a60-b9c8-f7abfa7cc428"
}

Update ffproxy policy

Verb	URI	              Description
PUT 	/ffproxy/policy/:id   update ffproxy policy configuration by ID.

On success it returns JSON data with the UUID for the ffproxy policy created configuration.

Example Request and Response

Request JSON

{

"policy": [
    {
        "enable": true,
        "name": "policy name1",
        "allowList": [
            1,
            2,
            3
        ],
        "blockedList": [
            4,
            5
        ],
        "net": [
            {
                "network": "10.1.10.1",
                "netmask": 32
            },
            {
                "network": "10.1.10.3",
                "netmask": 32
            }
        ]
    },
    {
        "enable": true,
        "name": "policy name 2",
        "allowList": [
            4,
            5
        ],
        "blockedList": [
            6,
            7
        ],
        "net": [
            {
                "network": "10.1.10.2",
                "netmask": 32
            }
        ]
    }
]
}

Response JSON

{
   
   "policy":
   [
       {
           "enable": true,
           "name": "policy name1",
           "allowList":
           [
               1,
               2,
               3
           ],
           "blockedList":
           [
               4,
               5
           ],
           "net":
           [
               {
                   "network": "10.1.10.1",
                   "netmask": 32
               },
               {
                   "network": "10.1.10.3",
                   "netmask": 32
               }
           ]
       },
       {
           "enable": true,
           "name": "policy name 2",
           "allowList":
           [
               4,
               5
           ],
           "blockedList":
           [
               6,
               7
           ],
           "net":
           [
               {
                   "network": "10.1.10.2",
                   "netmask": 32
               }
           ]
       }
   ],
   "id": "89a81ef3-99bf-4a60-b9c8-f7abfa7cc428"
}

DELETE policy

Verb      URI                            Description
DELETE   /ffproxy/policy/:id           Delete existing ffproxy policy configuration by ID.

Example Request and Response

Request Headers

DELETE /ffproxy/policy/d8fc22ff-3024-4937-bf18-cfbca8010e34

Response Header

Status Code : 204

Create ffproxy categories

Verb	URI	              Description
POST	/ffproxy/categories     Create ffproxy categories configuration.

On success it returns JSON data with the UUID for the ffproxy categories created configuration.

Example Request and Response

Request JSON

{
"categories": [
    {
        "categoryNumber": 42,
        "name": "test",
        "description": "test desc",
        "urls": [
            "test",
            "test1"
        ],
        "custom": true
    },
    {
        "categoryNumber": 43,
        "name": "test",
        "description": "test desc",
        "urls": [
            "test",
            "test1"
        ],
        "custom": true
    }
]
}

Response JSON

{
   "categories":
   [
       {
           "categoryNumber": 42,
           "name": "test",
           "description": "test desc",
           "urls":
           [
               "test",
               "test1"
           ],
           "custom": true
       },
       {
           "categoryNumber": 43,
           "name": "test",
           "description": "test desc",
           "urls":
           [
               "test",
               "test1"
           ],
           "custom": true
       }
   ],
   "id": "afbdb284-a18a-41b9-b057-b641fd5d108c"
}

List ffproxy categories

Verb	URI	               Description
GET	       /ffproxy/categories       List summary of ffproxy categories configuration.

Example Request and Response

Response

[
   {
       "categories":
       [
           {
               "categoryNumber": 42,
               "name": "test",
               "description": "test desc",
               "urls":
               [
                   "test",
                   "test1"
               ],
               "custom": true
           },
           {
               "categoryNumber": 43,
               "name": "test",
               "description": "test desc",
               "urls":
               [
                   "test",
                   "test1"
               ],
               "custom": true
           }
       ],
       "id": "afbdb284-a18a-41b9-b057-b641fd5d108c"
   }
]

List ffproxy categories by ID

Verb	URI	                Description
GET	       /ffproxy/categories/:id	List summary of ffproxy categories configured by ID.

Example Request and Response

Response

{
   "categories":
   [
       {
           "categoryNumber": 42,
           "name": "test",
           "description": "test desc",
           "urls":
           [
               "test",
               "test1"
           ],
           "custom": true
       },
       {
           "categoryNumber": 43,
           "name": "test",
           "description": "test desc",
           "urls":
           [
               "test",
               "test1"
           ],
           "custom": true
       }
   ],
   "id": "afbdb284-a18a-41b9-b057-b641fd5d108c"
}

Update ffproxy categories

Verb	URI	              Description
PUT	      /ffproxy/categories/:id   update ffproxy categories configuration by ID.

On success it returns JSON data with the UUID for the ffproxy categories created configuration.

Example Request and Response

Request JSON

{
"categories": [
    {
        "categoryNumber": 42,
        "name": "test",
        "description": "test desc updated",
        "urls": [
            "test",
            "test1"
        ],
        "custom": true
    },
    {
        "categoryNumber": 43,
        "name": "test",
        "description": "test desc",
        "urls": [
            "test",
            "test1"
        ],
        "custom": true
    }
]
}

Response JSON

{
   "categories":
   [
       {
           "categoryNumber": 42,
           "name": "test",
           "description": "test desc updated",
           "urls":
           [
               "test",
               "test1"
           ],
           "custom": true
       },
       {
           "categoryNumber": 43,
           "name": "test",
           "description": "test desc",
           "urls":
           [
               "test",
               "test1"
           ],
           "custom": true
       }
   ],
   "id": "afbdb284-a18a-41b9-b057-b641fd5d108c"
}

DELETE categories

Verb      URI                          Description
DELETE   /ffproxy/categories/:id         Delete existing ffproxy categories configuration by ID.

Example Request and Response

Request Headers

DELETE /ffproxy/categories/488ef428-a495-4eac-817f-37d0f2bac363

Response Header

Status Code : 204

Safesearch

Verb      URI                       Description
POST     /ffproxy/safesearch        safesearch  configuration.

On success it returns JSON data with the UUID for the safesearch created configuration.

Example Request and Response

Request JSON

{
   "safesearch":
   {
       "enable": false
   }
   
}

Response JSON

{
   "safesearch":
   {
       "enable": false
   },
   "id": "3cef41a7-f960-465f-8fb0-9c724ed43fa1"
}

GET List

Verb       URI	                    Description
GET	       /ffproxy/safesearch    	List summary of safesearch configured.

Example Request and Response

Response JSON

[
   {
       "safesearch":
       {
           "enable": false
       },
       "id": "3cef41a7-f960-465f-8fb0-9c724ed43fa1"
   }
]

GET by ID:

Verb       URI                          Description
GET	       /ffproxy/safesearch/:id    	List summary of safesearch configured by ID.

Example Request and Response

Response JSON

{
   "safesearch":
   {
       "enable": false
   },
   "id": "3cef41a7-f960-465f-8fb0-9c724ed43fa1"
}

PUT API

Verb       URI                          Description
PUT	       /ffproxy/safesearch/:id    	Update safesearch configuration.

Example Request and Response

Request JSON

{
   "safesearch":
   {
       "enable": true
   }
   
}

Response JSON

{
   "safesearch":
   {
       "enable": true
   },
   "id": "3cef41a7-f960-465f-8fb0-9c724ed43fa1"
}

DELETE safesearch configuration

Verb      URI                            Description
DELETE   /ffproxy/safesearch/:id         Delete existing safesearch configuration by ID.

Example Request and Response

Request Headers

DELETE /ffproxy/safesearch/265875ff-643f-47b8-bd1c-23b35e5bda8e

Response Header

Status Code : 204

Exceptions

Verb      URI                       Description
POST     /ffproxy/policyexceptions        exceptions  configuration.

On success it returns JSON data with the UUID for the exceptions created configuration.

Example Request and Response

Request JSON

{
"policyexceptions": [
    {
        "name": "Default Policy exceptions",
        "custom": false,
        "whitelist": [
            "test1",
            "test2"
        ],
        "net": [
            {
                "network": "0.0.0.0",
                "netmask": 0
            }
        ]
    },
    {
        "name": "Default Policy exceptions",
        "custom": false,
        "blacklist": [
            "test3",
            "test4"
        ],
        "net": [
            {
                "network": "0.0.0.0",
                "netmask": 0
            }
        ]
    }
]
}

Response JSON

{
   "policyexceptions":
   [
       {
           "name": "Default Policy exceptions",
           "custom": false,
           "whitelist":
           [
               "test1",
               "test2"
           ],
           "net":
           [
               {
                   "network": "0.0.0.0",
                   "netmask": 0
               }
           ]
       },
       {
           "name": "Default Policy exceptions",
           "custom": false,
           "blacklist":
           [
               "test3",
               "test4"
           ],
           "net":
           [
               {
                   "network": "0.0.0.0",
                   "netmask": 0
               }
           ]
       }
   ],
   "id": "6efee6eb-cfc2-4465-b2b7-999316d1af1e"
}

GET List

Verb       URI	                    Description
GET	       /ffproxy/policyexceptions    	List summary of exceptions configured.

Example Request and Response

Response JSON

[       
   {
   "policyexceptions":
   [
       {
           "name": "Default Policy exceptions",
           "custom": false,
           "whitelist":
           [
               "test1",
               "test2"
           ],
           "net":
           [
               {
                   "network": "0.0.0.0",
                   "netmask": 0
               }
           ]
       },
       {
           "name": "Default Policy exceptions",
           "custom": false,
           "blacklist":
           [
               "test3",
               "test4"
           ],
           "net":
           [
               {
                   "network": "0.0.0.0",
                   "netmask": 0
               }
           ]
       }
   ],
   "id": "6efee6eb-cfc2-4465-b2b7-999316d1af1e"
}
]

GET by ID:

Verb       URI                          Description
GET	       /ffproxy/policyexceptions/:id    	List summary of exception configured by ID.

Example Request and Response

Response JSON

{
   "policyexceptions":
   [
       {
           "name": "Default Policy exceptions",
           "custom": false,
           "whitelist":
           [
               "test1",
               "test2"
           ],
           "net":
           [
               {
                   "network": "0.0.0.0",
                   "netmask": 0
               }
           ]
       },
       {
           "name": "Default Policy exceptions",
           "custom": false,
           "blacklist":
           [
               "test3",
               "test4"
           ],
           "net":
           [
               {
                   "network": "0.0.0.0",
                   "netmask": 0
               }
           ]
       }
   ],
   "id": "6efee6eb-cfc2-4465-b2b7-999316d1af1e"
}

PUT API

Verb       URI                          Description
PUT	       /ffproxy/policyexceptions/:id    	Update exception configuration.

Example Request and Response

Request JSON

{
"policyexceptions": [
    {
        "name": "Default Policy exceptions",
        "custom": false,
        "whitelist": [
            "test11",
            "test21"
        ],
        "net": [
            {
                "network": "0.0.0.0",
                "netmask": 0
            }
        ]
    },
    {
        "name": "Default Policy exceptions",
        "custom": false,
        "blacklist": [
            "test31",
            "test41"
        ],
        "net": [
            {
                "network": "0.0.0.0",
                "netmask": 0
            }
        ]
    }
]
}	

Response JSON

{
   "policyexceptions":
   [
       {
           "name": "Default Policy exceptions",
           "custom": false,
           "whitelist":
           [
               "test11",
               "test21"
           ],
           "net":
           [
               {
                   "network": "0.0.0.0",
                   "netmask": 0
               }
           ]
       },
       {
           "name": "Default Policy exceptions",
           "custom": false,
           "blacklist":
           [
               "test31",
               "test41"
           ],
           "net":
           [
               {
                   "network": "0.0.0.0",
                   "netmask": 0
               }
           ]
       }
   ],
   "id": "6efee6eb-cfc2-4465-b2b7-999316d1af1e"
}

DELETE exception configuration

Verb      URI                            Description
DELETE   /ffproxy/policyexceptions/:id         Delete existing exception configuration by ID.

Example Request and Response

Request Headers

DELETE /ffproxy/policyexceptions/6efee6eb-cfc2-4465-b2b7-999316d1af1e

Response Header

Status Code : 204

FAQs

Package last updated on 04 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts