你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NetworkManagementClient 类

网络客户端。

此就绪包含多个 API 版本,可帮助你处理所有 Azure 云 (Azure Stack、Azure 政府、Azure 中国等 ) 。 默认情况下,它使用公共 Azure 上提供的最新 API 版本。 对于生产环境,应坚持使用特定的 API 版本和/或配置文件。 配置文件设置操作组与其 API 版本之间的映射。 如果配置文件中未描述操作组,则 api-version 参数将设置默认 API 版本。

继承
azure.mgmt.network.operations._operations.NetworkManagementClientOperationsMixin
NetworkManagementClient
NetworkManagementClient
azure.mgmt.network._client._SDKClient
NetworkManagementClient

构造函数

NetworkManagementClient(credential: TokenCredential, subscription_id: str, api_version: str | None = None, base_url: str = 'https://management.azure.com', profile: KnownProfiles = KnownProfiles.default, **kwargs: Any)

参数

credential
TokenCredential
必需

客户端连接到 Azure 所需的凭据。 必需。

subscription_id
str
必需

可以唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。 必需。

api_version
str
默认值: None

如果未提供配置文件,或者配置文件中缺少,则要使用的 API 版本。

base_url
str
默认值: https://management.azure.com

服务 URL

profile
KnownProfiles
默认值: KnownProfiles.default

从 KnownProfiles 到 dict 的配置文件定义。

polling_interval
int

如果没有 Retry-After 标头,则 LRO 操作的两次轮询之间的默认等待时间。

方法

close

close

close()

属性

active_connectivity_configurations

active_security_admin_rules

active_security_user_rules

admin_rule_collections

admin_rules

application_gateway_private_endpoint_connections

application_gateway_waf_dynamic_manifests

application_gateway_waf_dynamic_manifests_default

application_gateways

application_security_groups

available_delegations

available_endpoint_services

available_private_endpoint_types

available_resource_group_delegations

available_service_aliases

azure_firewall_fqdn_tags

azure_firewalls

bastion_hosts

bgp_service_communities

configuration_policy_groups

connection_monitors

connectivity_configurations

custom_ip_prefixes

ddos_custom_policies

ddos_protection_plans

default_security_rules

dscp_configuration

effective_connectivity_configurations

effective_virtual_networks

express_route_circuit_authorizations

express_route_circuit_connections

express_route_circuit_peerings

express_route_circuits

express_route_connections

express_route_cross_connection_peerings

express_route_cross_connections

express_route_gateways

express_route_port_authorizations

express_route_ports

express_route_ports_locations

express_route_provider_ports_location

express_route_service_providers

firewall_policies

firewall_policy_idps_signatures

firewall_policy_idps_signatures_filter_values

firewall_policy_idps_signatures_overrides

firewall_policy_rule_collection_groups

firewall_policy_rule_groups

flow_logs

hub_route_tables

hub_virtual_network_connections

inbound_nat_rules

inbound_security_rule

interface_endpoints

ip_allocations

ip_groups

load_balancer_backend_address_pools

load_balancer_frontend_ip_configurations

load_balancer_load_balancing_rules

load_balancer_network_interfaces

load_balancer_outbound_rules

load_balancer_probes

load_balancers

local_network_gateways

management_group_network_manager_connections

nat_gateways

nat_rules

network_groups

network_interface_ip_configurations

network_interface_load_balancers

network_interface_tap_configurations

network_interfaces

network_manager_commits

network_manager_deployment_status

network_manager_effective_security_admin_rules

network_managers

network_profiles

network_security_groups

network_security_perimeters

network_virtual_appliance_connections

network_virtual_appliances

network_watchers

nsp_access_rules

nsp_access_rules_reconcile

nsp_association_reconcile

nsp_associations

nsp_profiles

operations

p2_svpn_gateways

p2_svpn_server_configurations

packet_captures

peer_express_route_circuit_connections

perimeter_associable_resource_types

private_dns_zone_groups

private_endpoints

public_ip_addresses

public_ip_prefixes

route_filter_rules

route_filters

route_maps

route_tables

routes

routing_intent

scope_connections

security_admin_configurations

security_partner_providers

security_rules

security_user_configurations

service_endpoint_policies

service_endpoint_policy_definitions

service_tag_information

service_tags

static_members

subnets

subscription_network_manager_connections

usages

user_rule_collections

user_rules

vip_swap

virtual_appliance_sites

virtual_appliance_skus

virtual_hub_bgp_connection

virtual_hub_bgp_connections

virtual_hub_ip_configuration

virtual_hub_route_table_v2_s

virtual_hubs

virtual_network_gateway_connections

virtual_network_gateway_nat_rules

virtual_network_gateways

virtual_network_peerings

virtual_network_taps

virtual_networks

virtual_router_peerings

virtual_routers

virtual_wans

vpn_connections

vpn_gateways

vpn_server_configurations

vpn_server_configurations_associated_with_virtual_wan

vpn_sites

vpn_sites_configuration

web_application_firewall_policies

web_categories

DEFAULT_API_VERSION

DEFAULT_API_VERSION = '2023-09-01'

LATEST_PROFILE

LATEST_PROFILE = azure.mgmt.network.NetworkManagementClient latest