Skip to main content

Microsoft Azure Peering Management Client Library for Python

Project description

Microsoft Azure SDK for Python

This is the Microsoft Azure Peering Management Client Library. This package has been tested with Python 3.10+. For a more complete view of Azure libraries, see the azure sdk python release.

Disclaimer

Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691

Getting started

Prerequisites

Install the package

pip install azure-mgmt-peering
pip install azure-identity

Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.

  • AZURE_CLIENT_ID for Azure client ID.
  • AZURE_TENANT_ID for Azure tenant ID.
  • AZURE_CLIENT_SECRET for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.

With above configuration, client can be authenticated by following code:

from azure.identity import DefaultAzureCredential
from azure.mgmt.peering import PeeringManagementClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = PeeringManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)

Examples

Code samples for this package can be found at:

Troubleshooting

Next steps

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.

Release History

1.0.1 (2026-05-19)

Other Changes

  • Regenerated with latest code generator tool

2.0.0b2 (2026-03-27)

Features Added

  • Client PeeringManagementClient added parameter cloud_setting in method __init__
  • Client PeeringManagementClient added method send_request
  • Model CdnPeeringPrefix added property system_data
  • Model ConnectionMonitorTest added property system_data
  • Enum ConnectionState added member EXTERNAL_BLOCKER
  • Enum DirectPeeringType added member PEER_PROP
  • Model ErrorDetail added property target
  • Model ErrorDetail added property details
  • Model ErrorDetail added property additional_info
  • Model PeerAsn added property system_data
  • Model Peering added property system_data
  • Model PeeringLocation added property system_data
  • Enum PeeringLocationsDirectPeeringType added member PEER_PROP
  • Model PeeringRegisteredAsn added property system_data
  • Model PeeringRegisteredPrefix added property system_data
  • Model PeeringService added property system_data
  • Model PeeringServiceCountry added property system_data
  • Model PeeringServiceLocation added property system_data
  • Model PeeringServicePrefix added property system_data
  • Model PeeringServiceProvider added property system_data
  • Enum ProvisioningState added member CANCELED
  • Model Resource added property system_data
  • Added model ConnectivityProbe
  • Added enum CreatedByType
  • Added model ErrorAdditionalInfo
  • Added enum Protocol
  • Added model ProxyResource
  • Added model SystemData
  • Added model TrackedResource

Breaking Changes

  • For the method breakings, please refer to https://aka.ms/azsdk/python/migrate/operations for migration.
  • Method CdnPeeringPrefixesOperations.list changed its parameter peering_location from positional_or_keyword to keyword_only
  • Method LegacyPeeringsOperations.list changed its parameter peering_location/kind/asn/direct_peering_type from positional_or_keyword to keyword_only
  • Method LookingGlassOperations.invoke changed its parameter command/source_type/source_location/destination_ip from positional_or_keyword to keyword_only
  • Method PeeringLocationsOperations.list changed its parameter kind/direct_peering_type from positional_or_keyword to keyword_only
  • Method PeeringServiceLocationsOperations.list changed its parameter country from positional_or_keyword to keyword_only
  • Method PrefixesOperations.get changed its parameter expand from positional_or_keyword to keyword_only
  • Method PrefixesOperations.list_by_peering_service changed its parameter expand from positional_or_keyword to keyword_only
  • Method ReceivedRoutesOperations.list_by_peering changed its parameter prefix/as_path/origin_as_validation_state/rpki_validation_state/skip_token from positional_or_keyword to keyword_only
  • Method RpUnbilledPrefixesOperations.list changed its parameter consolidate from positional_or_keyword to keyword_only
  • Deleted or renamed model PeeringManagementClientOperationsMixin

2.0.0b1 (2022-11-01)

Features Added

  • Added operation PeeringServicesOperations.initialize_connection_monitor
  • Added operation PrefixesOperations.create_or_update
  • Added operation PrefixesOperations.delete
  • Added operation PrefixesOperations.get
  • Added operation group CdnPeeringPrefixesOperations
  • Added operation group ConnectionMonitorTestsOperations
  • Added operation group LookingGlassOperations
  • Added operation group PeeringServiceCountriesOperations
  • Added operation group ReceivedRoutesOperations
  • Added operation group RegisteredAsnsOperations
  • Added operation group RegisteredPrefixesOperations
  • Added operation group RpUnbilledPrefixesOperations
  • Model DirectConnection has a new parameter error_message
  • Model DirectConnection has a new parameter microsoft_tracking_id
  • Model ErrorResponse has a new parameter error
  • Model ExchangeConnection has a new parameter error_message
  • Model Operation has a new parameter service_specification
  • Model PeerAsn has a new parameter error_message
  • Model PeerAsn has a new parameter peer_contact_detail
  • Model PeeringService has a new parameter log_analytics_workspace_properties
  • Model PeeringService has a new parameter provider_backup_peering_location
  • Model PeeringService has a new parameter provider_primary_peering_location
  • Model PeeringService has a new parameter sku
  • Model PeeringServicePrefix has a new parameter error_message
  • Model PeeringServicePrefix has a new parameter events
  • Model PeeringServicePrefix has a new parameter peering_service_prefix_key
  • Model PeeringServiceProvider has a new parameter peering_locations

Breaking Changes

  • Model ErrorResponse no longer has parameter code
  • Model ErrorResponse no longer has parameter message
  • Model PeerAsn no longer has parameter peer_contact_info
  • Operation LegacyPeeringsOperations.list has a new parameter asn
  • Operation LegacyPeeringsOperations.list has a new parameter direct_peering_type
  • Operation PeeringServiceLocationsOperations.list has a new parameter country
  • Operation PrefixesOperations.list_by_peering_service has a new parameter expand
  • Removed operation group PeeringServicePrefixesOperations

1.0.0 (2021-04-25)

Features

  • Model PeerAsn has a new parameter peer_contact_info
  • Added operation group PeeringServicePrefixesOperations

Breaking changes

  • Operation PrefixesOperations.list_by_peering_service has a new signature
  • Operation PeeringServiceLocationsOperations.list has a new signature
  • Operation LegacyPeeringsOperations.list has a new signature
  • Model DirectConnection no longer has parameter error_message
  • Model DirectConnection no longer has parameter microsoft_tracking_id
  • Model PeeringServicePrefix no longer has parameter events
  • Model PeeringServicePrefix no longer has parameter error_message
  • Model PeeringServicePrefix no longer has parameter peering_service_prefix_key
  • Model ExchangeConnection no longer has parameter error_message
  • Model PeerAsn no longer has parameter error_message
  • Model PeerAsn no longer has parameter peer_contact_detail
  • Model PeeringService no longer has parameter sku
  • Model ErrorResponse has a new signature
  • Removed operation PrefixesOperations.delete
  • Removed operation PrefixesOperations.create_or_update
  • Removed operation PrefixesOperations.get
  • Removed operation group CdnPeeringPrefixesOperations
  • Removed operation group ReceivedRoutesOperations
  • Removed operation group RegisteredAsnsOperations
  • Removed operation group PeeringServiceCountriesOperations
  • Removed operation group RegisteredPrefixesOperations

1.0.0b1 (2020-12-07)

This is beta preview version.

This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).

General breaking changes

  • Credential system has been completly revamped:

    • azure.common.credentials or msrestazure.azure_active_directory instances are no longer supported, use the azure-identity classes instead: https://pypi.org/project/azure-identity/
    • credentials parameter has been renamed credential
  • The config attribute no longer exists on a client, configuration should be passed as kwarg. Example: MyClient(credential, subscription_id, enable_logging=True). For a complete set of supported options, see the parameters accept in init documentation of azure-core

  • You can't import a version module anymore, use __version__ instead

  • Operations that used to return a msrest.polling.LROPoller now returns a azure.core.polling.LROPoller and are prefixed with begin_.

  • Exceptions tree have been simplified and most exceptions are now azure.core.exceptions.HttpResponseError (CloudError has been removed).

  • Most of the operation kwarg have changed. Some of the most noticeable:

General new features

  • Type annotations support using typing. SDKs are mypy ready.
  • This client has now stable and official support for async. Check the aio namespace of your package to find the async client.
  • This client now support natively tracing library like OpenCensus or OpenTelemetry. See this tracing quickstart for an overview.

0.2.0 (2020-04-12)

Features

  • Model PeeringServicePrefix has a new parameter peering_service_prefix_key
  • Model PeerAsn has a new parameter peer_contact_detail
  • Model PeeringService has a new parameter sku
  • Added operation group RegisteredPrefixesOperations
  • Added operation group PeeringServiceCountriesOperations
  • Added operation group RegisteredAsnsOperations

Breaking changes

  • Operation LegacyPeeringsOperations.list has a new signature
  • Operation PrefixesOperations.create_or_update has a new signature
  • Operation PeeringServiceLocationsOperations.list has a new signature
  • Model PeerAsn no longer has parameter peer_contact_info

0.1.0rc2 (2019-10-24)

Breaking changes

  • Migrated operations from PeeringServicePrefixesOperations to PrefixesOperations

0.1.0rc1 (2019-09-26)

  • Initial Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure_mgmt_peering-1.0.1.tar.gz (60.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azure_mgmt_peering-1.0.1-py3-none-any.whl (104.3 kB view details)

Uploaded Python 3

File details

Details for the file azure_mgmt_peering-1.0.1.tar.gz.

File metadata

  • Download URL: azure_mgmt_peering-1.0.1.tar.gz
  • Upload date:
  • Size: 60.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for azure_mgmt_peering-1.0.1.tar.gz
Algorithm Hash digest
SHA256 089a8aa77394e4191547c70106e82651afe75ca64ce3ca371573777c18d82ecb
MD5 a4c2adb3d0ca784bd1241ab66ab83173
BLAKE2b-256 e2d86d384f0392c12b8b0bdef7d6da0248f8913554ca7116a28cbfedac8e29f7

See more details on using hashes here.

File details

Details for the file azure_mgmt_peering-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_mgmt_peering-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39c2d49a69eb683de8258021762eff2f304c571e5b3225a0e4af4cee807f0a8c
MD5 7b369b3b4b85a8f36ebe0151acb3c1c3
BLAKE2b-256 6ad31fbc42d252b458572799e44aa3dbefc8772cb8f49b3efa562f2237a12098

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page