Skip to content

Files

Latest commit

 

History

History
109 lines (71 loc) · 3.34 KB

File metadata and controls

109 lines (71 loc) · 3.34 KB

openapiazureipranges

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

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

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/oapicf/openapi-azureipranges.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/oapicf/openapi-azureipranges.git)

Then import the package:

import openapiazureipranges

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 openapiazureipranges

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import openapiazureipranges
from openapiazureipranges.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63
# See configuration.py for a list of all supported configuration parameters.
configuration = openapiazureipranges.Configuration(
    host = "https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63"
)



# Enter a context with an instance of the API client
with openapiazureipranges.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapiazureipranges.DefaultApi(api_client)
    version = 'version_example' # str | The version of the JSON file to be retrieved in the format YYYYMMDD, e.g. 20240506

    try:
        # Get Azure IP Ranges and Service Tags - Public Cloud
        api_response = api_instance.get_azure_ip_ranges_service_tags_public_cloud(version)
        print("The response of DefaultApi->get_azure_ip_ranges_service_tags_public_cloud:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->get_azure_ip_ranges_service_tags_public_cloud: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63

Class Method HTTP request Description
DefaultApi get_azure_ip_ranges_service_tags_public_cloud GET /ServiceTags_Public_{version}.json Get Azure IP Ranges and Service Tags - Public Cloud

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

blah+oapicf@cliffano.com