SubnetsOperations Class
SubnetsOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectSubnetsOperations
Constructor
SubnetsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| begin_create_or_update |
Creates or updates a subnet in the specified virtual network. |
| begin_delete |
Deletes the specified subnet. |
| begin_prepare_network_policies |
Prepares a subnet by applying network intent policies. |
| begin_unprepare_network_policies |
Unprepares a subnet by removing network intent policies. |
| get |
Gets the specified subnet by virtual network and resource group. |
| list |
Gets all subnets in a virtual network. |
begin_create_or_update
Creates or updates a subnet in the specified virtual network.
begin_create_or_update(resource_group_name, virtual_network_name, subnet_name, subnet_parameters, **kwargs)
Parameters
- polling
- bool or PollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either Subnet or the result of cls(response)
Return type
Exceptions
begin_delete
Deletes the specified subnet.
begin_delete(resource_group_name, virtual_network_name, subnet_name, **kwargs)
Parameters
- polling
- bool or PollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_prepare_network_policies
Prepares a subnet by applying network intent policies.
begin_prepare_network_policies(resource_group_name, virtual_network_name, subnet_name, prepare_network_policies_request_parameters, **kwargs)
Parameters
- prepare_network_policies_request_parameters
- PrepareNetworkPoliciesRequest
Parameters supplied to prepare subnet by applying network intent policies.
- polling
- bool or PollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_unprepare_network_policies
Unprepares a subnet by removing network intent policies.
begin_unprepare_network_policies(resource_group_name, virtual_network_name, subnet_name, unprepare_network_policies_request_parameters, **kwargs)
Parameters
- unprepare_network_policies_request_parameters
- UnprepareNetworkPoliciesRequest
Parameters supplied to unprepare subnet to remove network intent policies.
- polling
- bool or PollingMethod
True for ARMPolling, False for no polling, or a polling object for personal polling strategy
- polling_interval
- int
Default waiting time between two polls for LRO operations if no Retry-After header is present.
Returns
An instance of LROPoller that returns either None or the result of cls(response)
Return type
Exceptions
get
Gets the specified subnet by virtual network and resource group.
get(resource_group_name, virtual_network_name, subnet_name, expand=None, **kwargs)
Parameters
Returns
Subnet, or the result of cls(response)
Return type
Exceptions
list
Gets all subnets in a virtual network.
list(resource_group_name, virtual_network_name, **kwargs)
Parameters
Returns
An iterator like instance of either SubnetListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.network.v2020_05_01.models' from 'c:\\repo\\venv\\lib\\site-packages\\azure\\mgmt\\network\\v2020_05_01\\models\\__init__.py'>
Feedback
Submit and view feedback for