Udostępnij za pośrednictwem


IFirewallRuleOperations.CreateAsync Method

Definition

Adds a new server-level Firewall Rule for an Azure SQL Database Server.

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Sql.Models.FirewallRuleCreateResponse> CreateAsync (string serverName, Microsoft.WindowsAzure.Management.Sql.Models.FirewallRuleCreateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : string * Microsoft.WindowsAzure.Management.Sql.Models.FirewallRuleCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Sql.Models.FirewallRuleCreateResponse>
Public Function CreateAsync (serverName As String, parameters As FirewallRuleCreateParameters, cancellationToken As CancellationToken) As Task(Of FirewallRuleCreateResponse)

Parameters

serverName
String

The name of the Azure SQL Database Server to which this rule will be applied.

parameters
FirewallRuleCreateParameters

The parameters for the Create Firewall Rule operation.

cancellationToken
CancellationToken

Cancellation token.

Returns

Contains the response to a Create Firewall Rule operation.

Applies to