Server Operations - List By Server
获取服务器上执行的作的列表。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/operations?api-version=2023-08-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
|
server
|
path | True |
string |
服务器的名称。 |
|
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
|
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
已成功执行获取服务器作的请求。 |
|
| Other Status Codes |
错误响应: ***
|
示例
List the server management operations
示例请求
示例响应
{
"value": [
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/operations/11111111-1111-1111-1111-111111111111",
"name": "11111111-1111-1111-1111-111111111111",
"type": "Microsoft.Sql/servers/operations",
"properties": {
"operation": "MakeAllLogicalDatabasesAccessible",
"operationFriendlyName": "MAKE ALL DBS ACCESSIBLE",
"percentComplete": 0,
"serverName": "sqlcrudtest-4645",
"startTime": "2017-06-01T09:10:08.1Z",
"state": "InProgress"
}
},
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645/operations/22222222-2222-2222-2222-222222222222",
"name": "22222222-2222-2222-2222-222222222222",
"type": "Microsoft.Sql/servers/operations",
"properties": {
"operation": "MakeAllLogicalDatabasesAccessible",
"operationFriendlyName": "MAKE ALL DBS ACCESSIBLE",
"percentComplete": 100,
"serverName": "sqlcrudtest-4645",
"startTime": "2017-06-01T09:00:08.1Z",
"state": "Succeeded"
}
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Management |
作状态。 |
|
Server |
服务器作。 |
|
Server |
对列表服务器作请求的响应 |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
ManagementOperationState
作状态。
| 值 | 说明 |
|---|---|
| Pending | |
| InProgress | |
| Succeeded | |
| Failed | |
| CancelInProgress | |
| Cancelled |
ServerOperation
服务器作。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| name |
string |
资源名称。 |
| properties.description |
string |
作说明。 |
| properties.errorCode |
integer (int32) |
作错误代码。 |
| properties.errorDescription |
string |
作错误说明。 |
| properties.errorSeverity |
integer (int32) |
作错误严重性。 |
| properties.estimatedCompletionTime |
string (date-time) |
作的估计完成时间。 |
| properties.isCancellable |
boolean |
是否可以取消作。 |
| properties.isUserError |
boolean |
错误是否为用户错误。 |
| properties.operation |
string |
作的名称。 |
| properties.operationFriendlyName |
string |
作的友好名称。 |
| properties.percentComplete |
integer (int32) |
已完成作的百分比。 |
| properties.serverName |
string |
服务器的名称。 |
| properties.startTime |
string (date-time) |
作开始时间。 |
| properties.state |
作状态。 |
|
| type |
string |
资源类型。 |
ServerOperationListResult
对列表服务器作请求的响应
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
用于检索下一页结果的链接。 |
| value |
结果数组。 |