azure.mgmt.peering.operations module

class azure.mgmt.peering.operations.CdnPeeringPrefixesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s cdn_peering_prefixes attribute.

list(peering_location: str, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.CdnPeeringPrefix][source]

Lists all of the advertised prefixes for the specified peering location.

Parameters

peering_location (str) – The peering location. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either CdnPeeringPrefix or the result of cls(response)

Return type

ItemPaged[CdnPeeringPrefix]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.ConnectionMonitorTestsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s connection_monitor_tests attribute.

create_or_update(resource_group_name: str, peering_service_name: str, connection_monitor_test_name: str, connection_monitor_test: _models.ConnectionMonitorTest, *, content_type: str = "'application/json'", **kwargs: Any)_models.ConnectionMonitorTest[source]
create_or_update(resource_group_name: str, peering_service_name: str, connection_monitor_test_name: str, connection_monitor_test: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.ConnectionMonitorTest

Creates or updates a connection monitor test with the specified name under the given subscription, resource group and peering service.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

  • connection_monitor_test_name (str) – The name of the connection monitor test. Required.

  • connection_monitor_test (ConnectionMonitorTest or IO) – The properties needed to create a connection monitor test. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

ConnectionMonitorTest or the result of cls(response)

Return type

ConnectionMonitorTest

Raises

HttpResponseError

delete(resource_group_name: str, peering_service_name: str, connection_monitor_test_name: str, **kwargs: Any)None[source]

Deletes an existing connection monitor test with the specified name under the given subscription, resource group and peering service.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

  • connection_monitor_test_name (str) – The name of the connection monitor test. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None or the result of cls(response)

Return type

None

Raises

HttpResponseError

get(resource_group_name: str, peering_service_name: str, connection_monitor_test_name: str, **kwargs: Any)azure.mgmt.peering.models._models_py3.ConnectionMonitorTest[source]

Gets an existing connection monitor test with the specified name under the given subscription, resource group and peering service.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

  • connection_monitor_test_name (str) – The name of the connection monitor test. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ConnectionMonitorTest or the result of cls(response)

Return type

ConnectionMonitorTest

Raises

HttpResponseError

list_by_peering_service(resource_group_name: str, peering_service_name: str, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.ConnectionMonitorTest][source]

Lists all connection monitor tests under the given subscription, resource group and peering service.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ConnectionMonitorTest or the result of cls(response)

Return type

ItemPaged[ConnectionMonitorTest]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.LegacyPeeringsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s legacy_peerings attribute.

list(peering_location: str, kind: Union[str, azure.mgmt.peering.models._peering_management_client_enums.LegacyPeeringsKind], asn: Optional[int] = None, direct_peering_type: Optional[Union[str, azure.mgmt.peering.models._peering_management_client_enums.DirectPeeringType]] = None, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.Peering][source]

Lists all of the legacy peerings under the given subscription matching the specified kind and location.

Parameters
  • peering_location (str) – The location of the peering. Required.

  • kind (str or LegacyPeeringsKind) – The kind of the peering. Known values are: “Direct” and “Exchange”. Required.

  • asn (int) – The ASN number associated with a legacy peering. Default value is None.

  • direct_peering_type (str or DirectPeeringType) – The direct peering type. Known values are: “Edge”, “Transit”, “Cdn”, “Internal”, “Ix”, “IxRs”, “Voice”, and “EdgeZoneForOperators”. Default value is None.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Peering or the result of cls(response)

Return type

ItemPaged[Peering]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.LookingGlassOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s looking_glass attribute.

invoke(command: Union[str, azure.mgmt.peering.models._peering_management_client_enums.LookingGlassCommand], source_type: Union[str, azure.mgmt.peering.models._peering_management_client_enums.LookingGlassSourceType], source_location: str, destination_ip: str, **kwargs: Any)azure.mgmt.peering.models._models_py3.LookingGlassOutput[source]

Run looking glass functionality.

Parameters
  • command (str or LookingGlassCommand) – The command to be executed: ping, traceroute, bgpRoute. Known values are: “Traceroute”, “Ping”, and “BgpRoute”. Required.

  • source_type (str or LookingGlassSourceType) – The type of the source: Edge site or Azure Region. Known values are: “EdgeSite” and “AzureRegion”. Required.

  • source_location (str) – The location of the source. Required.

  • destination_ip (str) – The IP address of the destination. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

LookingGlassOutput or the result of cls(response)

Return type

LookingGlassOutput

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.Operations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s operations attribute.

list(**kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.Operation][source]

Lists all of the available API operations for peering resources.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Operation or the result of cls(response)

Return type

ItemPaged[Operation]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.PeerAsnsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s peer_asns attribute.

create_or_update(peer_asn_name: str, peer_asn: _models.PeerAsn, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeerAsn[source]
create_or_update(peer_asn_name: str, peer_asn: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeerAsn

Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.

Parameters
  • peer_asn_name (str) – The peer ASN name. Required.

  • peer_asn (PeerAsn or IO) – The peer ASN. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

PeerAsn or the result of cls(response)

Return type

PeerAsn

Raises

HttpResponseError

delete(peer_asn_name: str, **kwargs: Any)None[source]

Deletes an existing peer ASN with the specified name under the given subscription.

Parameters

peer_asn_name (str) – The peer ASN name. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None or the result of cls(response)

Return type

None

Raises

HttpResponseError

get(peer_asn_name: str, **kwargs: Any)azure.mgmt.peering.models._models_py3.PeerAsn[source]

Gets the peer ASN with the specified name under the given subscription.

Parameters

peer_asn_name (str) – The peer ASN name. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PeerAsn or the result of cls(response)

Return type

PeerAsn

Raises

HttpResponseError

list_by_subscription(**kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeerAsn][source]

Lists all of the peer ASNs under the given subscription.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeerAsn or the result of cls(response)

Return type

ItemPaged[PeerAsn]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.PeeringLocationsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s peering_locations attribute.

list(kind: Union[str, azure.mgmt.peering.models._peering_management_client_enums.PeeringLocationsKind], direct_peering_type: Optional[Union[str, azure.mgmt.peering.models._peering_management_client_enums.PeeringLocationsDirectPeeringType]] = None, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringLocation][source]

Lists all of the available peering locations for the specified kind of peering.

Parameters
  • kind (str or PeeringLocationsKind) – The kind of the peering. Known values are: “Direct” and “Exchange”. Required.

  • direct_peering_type (str or PeeringLocationsDirectPeeringType) – The type of direct peering. Known values are: “Edge”, “Transit”, “Cdn”, “Internal”, “Ix”, “IxRs”, “Voice”, and “EdgeZoneForOperators”. Default value is None.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringLocation or the result of cls(response)

Return type

ItemPaged[PeeringLocation]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.PeeringManagementClientOperationsMixin[source]

Bases: azure.mgmt.peering._vendor.PeeringManagementClientMixinABC

check_service_provider_availability(check_service_provider_availability_input: _models.CheckServiceProviderAvailabilityInput, *, content_type: str = "'application/json'", **kwargs: Any)Union[str, _models.Enum0][source]
check_service_provider_availability(check_service_provider_availability_input: IO, *, content_type: str = "'application/json'", **kwargs: Any)Union[str, _models.Enum0]

Checks if the peering service provider is present within 1000 miles of customer’s location.

Parameters

check_service_provider_availability_input (CheckServiceProviderAvailabilityInput or IO) – The CheckServiceProviderAvailabilityInput indicating customer location and service provider. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

Enum0 or the result of cls(response)

Return type

str or Enum0

Raises

HttpResponseError

class azure.mgmt.peering.operations.PeeringServiceCountriesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s peering_service_countries attribute.

list(**kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringServiceCountry][source]

Lists all of the available countries for peering service.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringServiceCountry or the result of cls(response)

Return type

ItemPaged[PeeringServiceCountry]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.PeeringServiceLocationsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s peering_service_locations attribute.

list(country: Optional[str] = None, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringServiceLocation][source]

Lists all of the available locations for peering service.

Parameters

country (str) – The country of interest, in which the locations are to be present. Default value is None.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringServiceLocation or the result of cls(response)

Return type

ItemPaged[PeeringServiceLocation]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.PeeringServiceProvidersOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s peering_service_providers attribute.

list(**kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringServiceProvider][source]

Lists all of the available peering service locations for the specified kind of peering.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringServiceProvider or the result of cls(response)

Return type

ItemPaged[PeeringServiceProvider]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.PeeringServicesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s peering_services attribute.

create_or_update(resource_group_name: str, peering_service_name: str, peering_service: _models.PeeringService, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringService[source]
create_or_update(resource_group_name: str, peering_service_name: str, peering_service: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringService

Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

  • peering_service (PeeringService or IO) – The properties needed to create or update a peering service. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringService or the result of cls(response)

Return type

PeeringService

Raises

HttpResponseError

delete(resource_group_name: str, peering_service_name: str, **kwargs: Any)None[source]

Deletes an existing peering service with the specified name under the given subscription and resource group.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None or the result of cls(response)

Return type

None

Raises

HttpResponseError

get(resource_group_name: str, peering_service_name: str, **kwargs: Any)azure.mgmt.peering.models._models_py3.PeeringService[source]

Gets an existing peering service with the specified name under the given subscription and resource group.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringService or the result of cls(response)

Return type

PeeringService

Raises

HttpResponseError

initialize_connection_monitor(**kwargs: Any)None[source]

Initialize Peering Service for Connection Monitor functionality.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None or the result of cls(response)

Return type

None

Raises

HttpResponseError

list_by_resource_group(resource_group_name: str, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringService][source]

Lists all of the peering services under the given subscription and resource group.

Parameters

resource_group_name (str) – The name of the resource group. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringService or the result of cls(response)

Return type

ItemPaged[PeeringService]

Raises

HttpResponseError

list_by_subscription(**kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringService][source]

Lists all of the peerings under the given subscription.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringService or the result of cls(response)

Return type

ItemPaged[PeeringService]

Raises

HttpResponseError

update(resource_group_name: str, peering_service_name: str, tags: _models.ResourceTags, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringService[source]
update(resource_group_name: str, peering_service_name: str, tags: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringService

Updates tags for a peering service with the specified name under the given subscription and resource group.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

  • tags (ResourceTags or IO) – The resource tags. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringService or the result of cls(response)

Return type

PeeringService

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.PeeringsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s peerings attribute.

create_or_update(resource_group_name: str, peering_name: str, peering: _models.Peering, *, content_type: str = "'application/json'", **kwargs: Any)_models.Peering[source]
create_or_update(resource_group_name: str, peering_name: str, peering: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.Peering

Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • peering (Peering or IO) – The properties needed to create or update a peering. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

Peering or the result of cls(response)

Return type

Peering

Raises

HttpResponseError

delete(resource_group_name: str, peering_name: str, **kwargs: Any)None[source]

Deletes an existing peering with the specified name under the given subscription and resource group.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None or the result of cls(response)

Return type

None

Raises

HttpResponseError

get(resource_group_name: str, peering_name: str, **kwargs: Any)azure.mgmt.peering.models._models_py3.Peering[source]

Gets an existing peering with the specified name under the given subscription and resource group.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

Peering or the result of cls(response)

Return type

Peering

Raises

HttpResponseError

list_by_resource_group(resource_group_name: str, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.Peering][source]

Lists all of the peerings under the given subscription and resource group.

Parameters

resource_group_name (str) – The name of the resource group. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Peering or the result of cls(response)

Return type

ItemPaged[Peering]

Raises

HttpResponseError

list_by_subscription(**kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.Peering][source]

Lists all of the peerings under the given subscription.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Peering or the result of cls(response)

Return type

ItemPaged[Peering]

Raises

HttpResponseError

update(resource_group_name: str, peering_name: str, tags: _models.ResourceTags, *, content_type: str = "'application/json'", **kwargs: Any)_models.Peering[source]
update(resource_group_name: str, peering_name: str, tags: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.Peering

Updates tags for a peering with the specified name under the given subscription and resource group.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • tags (ResourceTags or IO) – The resource tags. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

Peering or the result of cls(response)

Return type

Peering

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.PrefixesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s prefixes attribute.

create_or_update(resource_group_name: str, peering_service_name: str, prefix_name: str, peering_service_prefix: _models.PeeringServicePrefix, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringServicePrefix[source]
create_or_update(resource_group_name: str, peering_service_name: str, prefix_name: str, peering_service_prefix: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringServicePrefix

Creates a new prefix with the specified name under the given subscription, resource group and peering service.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

  • prefix_name (str) – The name of the prefix. Required.

  • peering_service_prefix (PeeringServicePrefix or IO) – The properties needed to create a prefix. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringServicePrefix or the result of cls(response)

Return type

PeeringServicePrefix

Raises

HttpResponseError

delete(resource_group_name: str, peering_service_name: str, prefix_name: str, **kwargs: Any)None[source]

Deletes an existing prefix with the specified name under the given subscription, resource group and peering service.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

  • prefix_name (str) – The name of the prefix. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None or the result of cls(response)

Return type

None

Raises

HttpResponseError

get(resource_group_name: str, peering_service_name: str, prefix_name: str, expand: Optional[str] = None, **kwargs: Any)azure.mgmt.peering.models._models_py3.PeeringServicePrefix[source]

Gets an existing prefix with the specified name under the given subscription, resource group and peering service.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

  • prefix_name (str) – The name of the prefix. Required.

  • expand (str) – The properties to be expanded. Default value is None.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringServicePrefix or the result of cls(response)

Return type

PeeringServicePrefix

Raises

HttpResponseError

list_by_peering_service(resource_group_name: str, peering_service_name: str, expand: Optional[str] = None, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringServicePrefix][source]

Lists all prefixes under the given subscription, resource group and peering service.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_service_name (str) – The name of the peering service. Required.

  • expand (str) – The properties to be expanded. Default value is None.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringServicePrefix or the result of cls(response)

Return type

ItemPaged[PeeringServicePrefix]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.ReceivedRoutesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s received_routes attribute.

list_by_peering(resource_group_name: str, peering_name: str, prefix: Optional[str] = None, as_path: Optional[str] = None, origin_as_validation_state: Optional[str] = None, rpki_validation_state: Optional[str] = None, skip_token: Optional[str] = None, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringReceivedRoute][source]

Lists the prefixes received over the specified peering under the given subscription and resource group.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • prefix (str) – The optional prefix that can be used to filter the routes. Default value is None.

  • as_path (str) – The optional AS path that can be used to filter the routes. Default value is None.

  • origin_as_validation_state (str) – The optional origin AS validation state that can be used to filter the routes. Default value is None.

  • rpki_validation_state (str) – The optional RPKI validation state that can be used to filter the routes. Default value is None.

  • skip_token (str) – The optional page continuation token that is used in the event of paginated result. Default value is None.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringReceivedRoute or the result of cls(response)

Return type

ItemPaged[PeeringReceivedRoute]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.RegisteredAsnsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s registered_asns attribute.

create_or_update(resource_group_name: str, peering_name: str, registered_asn_name: str, registered_asn: _models.PeeringRegisteredAsn, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringRegisteredAsn[source]
create_or_update(resource_group_name: str, peering_name: str, registered_asn_name: str, registered_asn: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringRegisteredAsn

Creates a new registered ASN with the specified name under the given subscription, resource group and peering.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • registered_asn_name (str) – The name of the ASN. Required.

  • registered_asn (PeeringRegisteredAsn or IO) – The properties needed to create a registered ASN. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringRegisteredAsn or the result of cls(response)

Return type

PeeringRegisteredAsn

Raises

HttpResponseError

delete(resource_group_name: str, peering_name: str, registered_asn_name: str, **kwargs: Any)None[source]

Deletes an existing registered ASN with the specified name under the given subscription, resource group and peering.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • registered_asn_name (str) – The name of the registered ASN. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None or the result of cls(response)

Return type

None

Raises

HttpResponseError

get(resource_group_name: str, peering_name: str, registered_asn_name: str, **kwargs: Any)azure.mgmt.peering.models._models_py3.PeeringRegisteredAsn[source]

Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • registered_asn_name (str) – The name of the registered ASN. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringRegisteredAsn or the result of cls(response)

Return type

PeeringRegisteredAsn

Raises

HttpResponseError

list_by_peering(resource_group_name: str, peering_name: str, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringRegisteredAsn][source]

Lists all registered ASNs under the given subscription, resource group and peering.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringRegisteredAsn or the result of cls(response)

Return type

ItemPaged[PeeringRegisteredAsn]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.RegisteredPrefixesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s registered_prefixes attribute.

create_or_update(resource_group_name: str, peering_name: str, registered_prefix_name: str, registered_prefix: _models.PeeringRegisteredPrefix, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringRegisteredPrefix[source]
create_or_update(resource_group_name: str, peering_name: str, registered_prefix_name: str, registered_prefix: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.PeeringRegisteredPrefix

Creates a new registered prefix with the specified name under the given subscription, resource group and peering.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • registered_prefix_name (str) – The name of the registered prefix. Required.

  • registered_prefix (PeeringRegisteredPrefix or IO) – The properties needed to create a registered prefix. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringRegisteredPrefix or the result of cls(response)

Return type

PeeringRegisteredPrefix

Raises

HttpResponseError

delete(resource_group_name: str, peering_name: str, registered_prefix_name: str, **kwargs: Any)None[source]

Deletes an existing registered prefix with the specified name under the given subscription, resource group and peering.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • registered_prefix_name (str) – The name of the registered prefix. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None or the result of cls(response)

Return type

None

Raises

HttpResponseError

get(resource_group_name: str, peering_name: str, registered_prefix_name: str, **kwargs: Any)azure.mgmt.peering.models._models_py3.PeeringRegisteredPrefix[source]

Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • registered_prefix_name (str) – The name of the registered prefix. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringRegisteredPrefix or the result of cls(response)

Return type

PeeringRegisteredPrefix

Raises

HttpResponseError

list_by_peering(resource_group_name: str, peering_name: str, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.PeeringRegisteredPrefix][source]

Lists all registered prefixes under the given subscription, resource group and peering.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PeeringRegisteredPrefix or the result of cls(response)

Return type

ItemPaged[PeeringRegisteredPrefix]

Raises

HttpResponseError

validate(resource_group_name: str, peering_name: str, registered_prefix_name: str, **kwargs: Any)azure.mgmt.peering.models._models_py3.PeeringRegisteredPrefix[source]

Validates an existing registered prefix with the specified name under the given subscription, resource group and peering.

Parameters
  • resource_group_name (str) – The name of the resource group. Required.

  • peering_name (str) – The name of the peering. Required.

  • registered_prefix_name (str) – The name of the registered prefix. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PeeringRegisteredPrefix or the result of cls(response)

Return type

PeeringRegisteredPrefix

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>
class azure.mgmt.peering.operations.RpUnbilledPrefixesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through PeeringManagementClient’s rp_unbilled_prefixes attribute.

list(resource_group_name: str, peering_name: str, consolidate: Optional[bool] = None, **kwargs: Any)Iterable[azure.mgmt.peering.models._models_py3.RpUnbilledPrefix][source]

Lists all of the RP unbilled prefixes for the specified peering.

Parameters
  • resource_group_name (str) – The Azure resource group name. Required.

  • peering_name (str) – The peering name. Required.

  • consolidate (bool) – Flag to enable consolidation prefixes. Default value is None.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either RpUnbilledPrefix or the result of cls(response)

Return type

ItemPaged[RpUnbilledPrefix]

Raises

HttpResponseError

models = <module 'azure.mgmt.peering.models' from '/mnt/vss/_work/1/s/sdk/peering/azure-mgmt-peering/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/peering/models/__init__.py'>