/// <summary> /// Upserts a new allowed FQDN to the list of outbound firewall rules for a server /// </summary> /// <param name="model">The firewall rule to create</param> /// <returns>The updated server model</returns> public AzureSqlServerOutboundFirewallRulesModel UpsertFirewallRule(AzureSqlServerOutboundFirewallRulesModel model) { Microsoft.Azure.Management.Sql.Models.OutboundFirewallRule reponse = Communicator.CreateOrUpdate(model.ResourceGroupName, model.ServerName, model.AllowedFQDN); return(CreateOutboundFirewallRuleModelFromResponse(model.ResourceGroupName, model.ServerName, reponse)); }
/// <summary> /// Gets an allowed FQDN from the list of outbound firewall rules for a server /// </summary> /// <param name="resourceGroupName">The name of the resource group</param> /// <param name="serverName">The name of the server</param> /// <param name="allowedFQDN">The allowed fully qualified domain name (FQDN) in the list of the outbound firewall rules.</param> /// <returns>The firewall rule</returns> public AzureSqlServerOutboundFirewallRulesModel GetOutboundFirewallRule(string resourceGroupName, string serverName, string allowedFQDN) { Microsoft.Azure.Management.Sql.Models.OutboundFirewallRule response = Communicator.Get(resourceGroupName, serverName, allowedFQDN); return(CreateOutboundFirewallRuleModelFromResponse(resourceGroupName, serverName, response)); }