/// <summary>
 /// Gets the details for the specified Network Security Group in the
 /// subscription.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations.
 /// </param>
 /// <param name='networkSecurityGroupName'>
 /// Required. The name of the Network Security Group to retrieve.
 /// </param>
 /// <param name='detailLevel'>
 /// Optional. Use 'Full' to list rules.
 /// </param>
 /// <returns>
 /// A Network Security Group associated with your subscription.
 /// </returns>
 public static Task <NetworkSecurityGroupGetResponse> GetAsync(this INetworkSecurityGroupOperations operations, string networkSecurityGroupName, string detailLevel)
 {
     return(operations.GetAsync(networkSecurityGroupName, detailLevel, CancellationToken.None));
 }
Beispiel #2
0
 /// <summary>
 /// The Get NetworkSecurityGroups operation retrieves information about
 /// the specified network security group.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.INetworkSecurityGroupOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='networkSecurityGroupName'>
 /// Required. The name of the network security group.
 /// </param>
 /// <returns>
 /// Response for GetNetworkSecurityGroup Api service call
 /// </returns>
 public static Task <NetworkSecurityGroupGetResponse> GetAsync(this INetworkSecurityGroupOperations operations, string resourceGroupName, string networkSecurityGroupName)
 {
     return(operations.GetAsync(resourceGroupName, networkSecurityGroupName, CancellationToken.None));
 }