Interface DefaultSecurityRulesClient
public interface DefaultSecurityRulesClient
An instance of this class provides access to all the operations defined in DefaultSecurityRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptionGet the specified default network security rule.Get the specified default network security rule.com.azure.core.http.rest.Response<SecurityRuleInner> getWithResponse(String resourceGroupName, String networkSecurityGroupName, String defaultSecurityRuleName, com.azure.core.util.Context context) Get the specified default network security rule.Mono<com.azure.core.http.rest.Response<SecurityRuleInner>> getWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String defaultSecurityRuleName) Get the specified default network security rule.com.azure.core.http.rest.PagedIterable<SecurityRuleInner> Gets all default security rules in a network security group.com.azure.core.http.rest.PagedIterable<SecurityRuleInner> list(String resourceGroupName, String networkSecurityGroupName, com.azure.core.util.Context context) Gets all default security rules in a network security group.com.azure.core.http.rest.PagedFlux<SecurityRuleInner> Gets all default security rules in a network security group.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<SecurityRuleInner> listAsync(String resourceGroupName, String networkSecurityGroupName) Gets all default security rules in a network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- Returns:
- all default security rules in a network security group as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SecurityRuleInner> list(String resourceGroupName, String networkSecurityGroupName) Gets all default security rules in a network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.- Returns:
- all default security rules in a network security group as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<SecurityRuleInner> list(String resourceGroupName, String networkSecurityGroupName, com.azure.core.util.Context context) Gets all default security rules in a network security group.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.context- The context to associate with this operation.- Returns:
- all default security rules in a network security group as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<SecurityRuleInner>> getWithResponseAsync(String resourceGroupName, String networkSecurityGroupName, String defaultSecurityRuleName) Get the specified default network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.defaultSecurityRuleName- The name of the default security rule.- Returns:
- the specified default network security rule along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<SecurityRuleInner> getAsync(String resourceGroupName, String networkSecurityGroupName, String defaultSecurityRuleName) Get the specified default network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.defaultSecurityRuleName- The name of the default security rule.- Returns:
- the specified default network security rule on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<SecurityRuleInner> getWithResponse(String resourceGroupName, String networkSecurityGroupName, String defaultSecurityRuleName, com.azure.core.util.Context context) Get the specified default network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.defaultSecurityRuleName- The name of the default security rule.context- The context to associate with this operation.- Returns:
- the specified default network security rule along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
SecurityRuleInner get(String resourceGroupName, String networkSecurityGroupName, String defaultSecurityRuleName) Get the specified default network security rule.- Parameters:
resourceGroupName- The name of the resource group.networkSecurityGroupName- The name of the network security group.defaultSecurityRuleName- The name of the default security rule.- Returns:
- the specified default network security rule.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-