IFirewallRuleOperations.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates or updates an Azure SQL Database Server Firewall rule.
public System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.FirewallRuleGetResponse> CreateOrUpdateAsync (string resourceGroupName, string serverName, string firewallRule, Microsoft.Azure.Management.Sql.LegacySdk.Models.FirewallRuleCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateOrUpdateAsync : string * string * string * Microsoft.Azure.Management.Sql.LegacySdk.Models.FirewallRuleCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.FirewallRuleGetResponse>
Public Function CreateOrUpdateAsync (resourceGroupName As String, serverName As String, firewallRule As String, parameters As FirewallRuleCreateOrUpdateParameters, cancellationToken As CancellationToken) As Task(Of FirewallRuleGetResponse)
Parameters
- resourceGroupName
- String
The name of the Resource Group to which the server belongs.
- serverName
- String
The name of the Azure SQL Database Server on which the database is hosted.
- firewallRule
- String
The name of the Azure SQL Database Server Firewall Rule.
- parameters
- FirewallRuleCreateOrUpdateParameters
The required parameters for createing or updating a firewall rule.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Represents the response to a List Firewall Rules request.