更新防火墙规则
请求
方法 | 请求 URI |
---|---|
PUT | https://management.chinacloudapi.cn/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.MySql/servers/{server-name}/firewalls/{firewall-rule}?api-version=2015-09-01 |
URI参数
无
请求 Headers
请求包头 | 描述 URI |
---|---|
x-ms-client-request-id | 可选。由客户端产生的不超过1KB字符的opaque值。强烈推荐设置此值,服务器端可通过此值获取客户端的活动信息。 |
请求 Body
创建或更新MySQL on Azure服务器,需写明一下参数,Json示例文件如下:
{
"properties": { "startIpAddress": "1.1.1.1" }
}
参数 | 描述 |
---|---|
startIpAddress | IP允许列表起始IP |
响应
HTTPs响应由状态码,响应 headers以及响应 body组成。
状态码
200 OK - 表明服务器成功返回。
响应 Headers
请求包头 | 描述 URI |
---|---|
x-ms-client-request-id | 可唯一确定数据库请求的值。请求ID用于追踪请求信息。 |
响应 Body
Json示例文件如下:
{
"id": "/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.MySql/servers/{server-name}/firewalls/{firewall-rule}",
"name": "{server-name}/{firewall-rule}",
"type": "Microsoft.MySql/servers/firewalls",
"properties": {
"startIpAddress": "1.1.1.1",
"endIpAddress": "255.255.255.255"
}
}