你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Volumes - Break File Locks
中断文件锁
断开卷上的所有文件锁
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/breakFileLocks?api-version=2023-11-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
account
|
path | True |
string |
NetApp 帐户的名称 Regex pattern: |
pool
|
path | True |
string |
容量池的名称 Regex pattern: |
resource
|
path | True |
string |
资源组的名称。 此名称不区分大小写。 |
subscription
|
path | True |
string uuid |
目标订阅的 ID。 该值必须是 UUID。 |
volume
|
path | True |
string |
卷的名称 Regex pattern: |
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
clientIp |
string |
清除特定客户端的卷上的文件锁 |
confirmRunningDisruptiveOperation |
boolean |
中断文件锁可能对应用程序造成干扰,因为卷上的锁将断开(如果要处理)设置为 true。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 - 终端状态 |
|
202 Accepted |
已接受 Headers Location: string |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Volumes_BreakFileLocks
Sample Request
POST https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/breakFileLocks?api-version=2023-11-01
{
"clientIp": "101.102.103.104",
"confirmRunningDisruptiveOperation": true
}
Sample Response
Location: https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/operationResults/616ee961-4042-4935-b4a0-ed6f4dae0172?api-version=2023-11-01&operationResultResponseType=Location
定义
名称 | 说明 |
---|---|
break |
中断文件锁定请求 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
breakFileLocksRequest
中断文件锁定请求
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
clientIp |
string |
清除特定客户端的卷上的文件锁 |
|
confirmRunningDisruptiveOperation |
boolean |
False |
中断文件锁可能对应用程序造成干扰,因为卷上的锁将断开(如果要处理)设置为 true。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |