Skip to content

Files

Latest commit

 

History

History

edgefirewall

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 2, 2023
Oct 31, 2023
Oct 31, 2023
Oct 31, 2023
Oct 16, 2023
Oct 2, 2023
Oct 2, 2023
Jun 22, 2023
Oct 2, 2023
Oct 16, 2023
Oct 2, 2023
Oct 2, 2023
Oct 2, 2023
Jun 22, 2023
Oct 2, 2023
Oct 2, 2023
Oct 2, 2023

edgefirewall

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 2.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import edgefirewall

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import edgefirewall

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import time
import edgefirewall
from edgefirewall.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.azionapi.net
# See configuration.py for a list of all supported configuration parameters.
configuration = edgefirewall.Configuration(
    host = "https://api.azionapi.net"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: tokenAuth
configuration.api_key['tokenAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['tokenAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with edgefirewall.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = edgefirewall.DefaultApi(api_client)
    edge_firewall_id = 56 # int | 
    page = 56 # int |  (optional)
    page_size = 56 # int |  (optional)
    sort = 'sort_example' # str |  (optional)
    order_by = 'order_by_example' # str |  (optional)

    try:
        # List all rule sets.
        api_response = api_instance.edge_firewall_edge_firewall_id_rules_engine_get(edge_firewall_id, page=page, page_size=page_size, sort=sort, order_by=order_by)
        print("The response of DefaultApi->edge_firewall_edge_firewall_id_rules_engine_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->edge_firewall_edge_firewall_id_rules_engine_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.azionapi.net

Class Method HTTP request Description
DefaultApi edge_firewall_edge_firewall_id_rules_engine_get GET /edge_firewall/{edge_firewall_id}/rules_engine List all rule sets.
DefaultApi edge_firewall_edge_firewall_id_rules_engine_post POST /edge_firewall/{edge_firewall_id}/rules_engine Create rule set.
DefaultApi edge_firewall_edge_firewall_id_rules_engine_rule_set_id_delete DELETE /edge_firewall/{edge_firewall_id}/rules_engine/{rule_set_id} Delete rule set.
DefaultApi edge_firewall_edge_firewall_id_rules_engine_rule_set_id_get GET /edge_firewall/{edge_firewall_id}/rules_engine/{rule_set_id} Retrieve rule set by ID.
DefaultApi edge_firewall_edge_firewall_id_rules_engine_rule_set_id_patch PATCH /edge_firewall/{edge_firewall_id}/rules_engine/{rule_set_id} Edit rule set.
DefaultApi edge_firewall_edge_firewall_id_rules_engine_rule_set_id_put PUT /edge_firewall/{edge_firewall_id}/rules_engine/{rule_set_id} Overwrite rule set
DefaultApi edge_firewall_get GET /edge_firewall List all user edge firewall
DefaultApi edge_firewall_post POST /edge_firewall Create a edge firewall
DefaultApi edge_firewall_uuid_delete DELETE /edge_firewall/{uuid} Delete an edge firewall by uuid
DefaultApi edge_firewall_uuid_get GET /edge_firewall/{uuid} Retrieve an edge firewall set by uuid
DefaultApi edge_firewall_uuid_patch PATCH /edge_firewall/{uuid} Update some edge firewall attributes, like "active"
DefaultApi edge_firewall_uuid_put PUT /edge_firewall/{uuid} Overwrite some edge firewall attributes, like "active"

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

tokenAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author