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: 0.9.0-pre.0
- Package version: 0.9.0-pre.0
- Generator version: 7.9.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/oapicf/openapi-azureipranges
Python 3.7+
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
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
Execute pytest
to run the tests.
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)
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 |
Endpoints do not require authorization.