NetworkProfilesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:network_profiles> attribute.
- Inheritance
-
builtins.objectNetworkProfilesOperations
Constructor
NetworkProfilesOperations(*args, **kwargs)
Methods
begin_delete |
Deletes the specified network profile. |
create_or_update |
Creates or updates a network profile. |
get |
Gets the specified network profile in a specified resource group. |
list |
Gets all network profiles in a resource group. |
list_all |
Gets all the network profiles in a subscription. |
update_tags |
Updates network profile tags. |
begin_delete
Deletes the specified network profile.
begin_delete(resource_group_name: str, network_profile_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
network_profile_name
Required
|
The name of the NetworkProfile. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
create_or_update
Creates or updates a network profile.
create_or_update(resource_group_name: str, network_profile_name: str, parameters: _models.NetworkProfile, *, content_type: str = 'application/json', **kwargs: Any) -> _models.NetworkProfile
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
network_profile_name
Required
|
The name of the network profile. Required. |
parameters
Required
|
Parameters supplied to the create or update network profile operation. Is either a NetworkProfile type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
NetworkProfile or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets the specified network profile in a specified resource group.
get(resource_group_name: str, network_profile_name: str, *, expand: str | None = None, **kwargs: Any) -> NetworkProfile
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
network_profile_name
Required
|
The name of the public IP prefix. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
expand
|
Expands referenced resources. Default value is None. |
Returns
Type | Description |
---|---|
NetworkProfile or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets all network profiles in a resource group.
list(resource_group_name: str, **kwargs: Any) -> Iterable[NetworkProfile]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either NetworkProfile or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_all
Gets all the network profiles in a subscription.
list_all(**kwargs: Any) -> Iterable[NetworkProfile]
Returns
Type | Description |
---|---|
An iterator like instance of either NetworkProfile or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update_tags
Updates network profile tags.
update_tags(resource_group_name: str, network_profile_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.NetworkProfile
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
network_profile_name
Required
|
The name of the network profile. Required. |
parameters
Required
|
Parameters supplied to update network profile tags. Is either a TagsObject type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
NetworkProfile or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>
Azure SDK for Python