Class VirtualNetworkRulesOperationsExtensions
Extension methods for VirtualNetworkRulesOperations.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Sql.dll
Syntax
public static class VirtualNetworkRulesOperationsExtensions
Methods
BeginCreateOrUpdate(IVirtualNetworkRulesOperations, String, String, String, VirtualNetworkRule)
Creates or updates an existing virtual network rule.
Declaration
public static Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule BeginCreateOrUpdate (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName, Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule parameters);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
|
VirtualNetworkRule
parameters
The requested virtual Network Rule Resource state. |
Returns
|
VirtualNetworkRule
|
BeginCreateOrUpdateAsync(IVirtualNetworkRulesOperations, String, String, String, VirtualNetworkRule, CancellationToken)
Creates or updates an existing virtual network rule.
Declaration
[System.Diagnostics.DebuggerStepThrough]
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName, Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule parameters, System.Threading.CancellationToken cancellationToken = null);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
|
VirtualNetworkRule
parameters
The requested virtual Network Rule Resource state. |
|
CancellationToken
cancellationToken
The cancellation token. |
Returns
|
Task<VirtualNetworkRule>
|
BeginDelete(IVirtualNetworkRulesOperations, String, String, String)
Deletes the virtual network rule with the given name.
Declaration
public static void BeginDelete (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
BeginDeleteAsync(IVirtualNetworkRulesOperations, String, String, String, CancellationToken)
Deletes the virtual network rule with the given name.
Declaration
[System.Diagnostics.DebuggerStepThrough]
public static System.Threading.Tasks.Task BeginDeleteAsync (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName, System.Threading.CancellationToken cancellationToken = null);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
|
CancellationToken
cancellationToken
The cancellation token. |
Returns
|
Task
|
CreateOrUpdate(IVirtualNetworkRulesOperations, String, String, String, VirtualNetworkRule)
Creates or updates an existing virtual network rule.
Declaration
public static Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule CreateOrUpdate (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName, Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule parameters);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
|
VirtualNetworkRule
parameters
The requested virtual Network Rule Resource state. |
Returns
|
VirtualNetworkRule
|
CreateOrUpdateAsync(IVirtualNetworkRulesOperations, String, String, String, VirtualNetworkRule, CancellationToken)
Creates or updates an existing virtual network rule.
Declaration
[System.Diagnostics.DebuggerStepThrough]
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule> CreateOrUpdateAsync (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName, Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule parameters, System.Threading.CancellationToken cancellationToken = null);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
|
VirtualNetworkRule
parameters
The requested virtual Network Rule Resource state. |
|
CancellationToken
cancellationToken
The cancellation token. |
Returns
|
Task<VirtualNetworkRule>
|
Delete(IVirtualNetworkRulesOperations, String, String, String)
Deletes the virtual network rule with the given name.
Declaration
public static void Delete (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
DeleteAsync(IVirtualNetworkRulesOperations, String, String, String, CancellationToken)
Deletes the virtual network rule with the given name.
Declaration
[System.Diagnostics.DebuggerStepThrough]
public static System.Threading.Tasks.Task DeleteAsync (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName, System.Threading.CancellationToken cancellationToken = null);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
|
CancellationToken
cancellationToken
The cancellation token. |
Returns
|
Task
|
Get(IVirtualNetworkRulesOperations, String, String, String)
Gets a virtual network rule.
Declaration
public static Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule Get (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
Returns
|
VirtualNetworkRule
|
GetAsync(IVirtualNetworkRulesOperations, String, String, String, CancellationToken)
Gets a virtual network rule.
Declaration
[System.Diagnostics.DebuggerStepThrough]
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule> GetAsync (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, string virtualNetworkRuleName, System.Threading.CancellationToken cancellationToken = null);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
String
virtualNetworkRuleName
The name of the virtual network rule. |
|
CancellationToken
cancellationToken
The cancellation token. |
Returns
|
Task<VirtualNetworkRule>
|
ListByServer(IVirtualNetworkRulesOperations, String, String)
Gets a list of virtual network rules in a server.
Declaration
public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule> ListByServer (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
Returns
|
IPage<VirtualNetworkRule>
|
ListByServerAsync(IVirtualNetworkRulesOperations, String, String, CancellationToken)
Gets a list of virtual network rules in a server.
Declaration
[System.Diagnostics.DebuggerStepThrough]
public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule>> ListByServerAsync (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string resourceGroupName, string serverName, System.Threading.CancellationToken cancellationToken = null);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
resourceGroupName
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
String
serverName
The name of the server. |
|
CancellationToken
cancellationToken
The cancellation token. |
Returns
|
Task<IPage<VirtualNetworkRule>>
|
ListByServerNext(IVirtualNetworkRulesOperations, String)
Gets a list of virtual network rules in a server.
Declaration
public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule> ListByServerNext (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string nextPageLink);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
nextPageLink
The NextLink from the previous successful call to List operation. |
Returns
|
IPage<VirtualNetworkRule>
|
ListByServerNextAsync(IVirtualNetworkRulesOperations, String, CancellationToken)
Gets a list of virtual network rules in a server.
Declaration
[System.Diagnostics.DebuggerStepThrough]
public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Sql.Models.VirtualNetworkRule>> ListByServerNextAsync (this Microsoft.Azure.Management.Sql.IVirtualNetworkRulesOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = null);
Parameters
|
IVirtualNetworkRulesOperations
operations
The operations group for this extension method. |
|
String
nextPageLink
The NextLink from the previous successful call to List operation. |
|
CancellationToken
cancellationToken
The cancellation token. |
Returns
|
Task<IPage<VirtualNetworkRule>>
|