仅使用 REST API (ASP.NET MVC) 进行更新

Update only with a REST API (ASP.NET MVC)

我目前正在使用 Microsoft 的 API,它用于更新 azure sql 服务器的防火墙规则。但我想创建请求,以便它只更新现有的防火墙规则,而不是也能够创建新的规则。

供参考: https://docs.microsoft.com/en-us/rest/api/sql/2020-08-01-preview/firewallrules/createorupdate

我不确定是否需要任何代码示例?

CloudCDXX posted 说:

I got it working, first run a get request on the submit which checks whether or not the firewall rule exists and if it does then the put request is run.