Managed Instance Operations - List By Managed Instance
获取对托管实例执行的作的列表。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations?api-version=2023-08-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
managed
|
path | True |
string |
托管实例的名称。 |
|
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
|
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
|
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
已成功执行获取托管实例作的请求。 |
|
| Other Status Codes |
错误响应: ***
|
示例
List the managed instance management operations
示例请求
示例响应
{
"value": [
{
"properties": {
"managedInstanceName": "sqlcrudtest-4645",
"operation": "UpsertManagedServer",
"operationFriendlyName": "UPDATE MANAGED SERVER",
"percentComplete": 100,
"startTime": "2019-12-06T11:08:44.49Z",
"state": "Cancelled",
"isCancellable": false
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/operations/11111111-1111-1111-1111-111111111111",
"name": "11111111-1111-1111-1111-111111111111",
"type": "Microsoft.Sql/managedInstances/operations"
},
{
"properties": {
"managedInstanceName": "sqlcrudtest-4645",
"operation": "UpsertManagedServer",
"operationFriendlyName": "UPDATE MANAGED SERVER",
"percentComplete": 50,
"startTime": "2019-12-06T11:08:44.49Z",
"state": "InProgress",
"isCancellable": true,
"operationParameters": {
"currentParameters": {
"family": "Gen4",
"tier": "GeneralPurpose",
"vCores": 8,
"storageSizeInGB": 32
},
"requestedParameters": {
"family": "Gen4",
"tier": "BusinessCritical",
"vCores": 8,
"storageSizeInGB": 128
}
},
"operationSteps": {
"totalSteps": "3",
"currentStep": 3,
"stepsList": [
{
"order": 1,
"name": "Request validation",
"status": "Completed",
"stepEndTime": "2019-12-06T11:08:45.57Z",
"stepStartTime": "2019-12-06T11:08:44.49Z",
"timeElapsed": "0"
},
{
"order": 2,
"name": "Virtual Cluster resize/creation",
"status": "Completed",
"stepEndTime": "2019-12-06T11:22:47.35Z",
"stepStartTime": "2019-12-06T11:08:46.15Z",
"timeElapsed": "14"
},
{
"order": 3,
"name": "New SQL Instance Startup",
"status": "InProgress",
"stepEndTime": "2019-12-06T11:24:50.51Z",
"stepStartTime": "2019-12-06T11:22:47.42Z",
"timeElapsed": "2"
}
]
}
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/operations/22222222-2222-2222-2222-222222222222",
"name": "22222222-2222-2222-2222-222222222222",
"type": "Microsoft.Sql/managedInstances/operations"
},
{
"properties": {
"managedInstanceName": "sqlcrudtest-4645",
"operation": "UpsertManagedServer",
"operationFriendlyName": "UPDATE MANAGED SERVER",
"percentComplete": 100,
"startTime": "2019-12-06T14:48:34.583Z",
"state": "Failed",
"errorCode": 45157,
"errorDescription": "Server 'sqlcrudtest-4645' is busy with another operation. Please try your operation later.",
"errorSeverity": 16,
"isUserError": true,
"isCancellable": false
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/operations/33333333-3333-3333-3333-333333333333",
"name": "33333333-3333-3333-3333-333333333333",
"type": "Microsoft.Sql/managedInstances/operations"
},
{
"properties": {
"managedInstanceName": "sqlcrudtest-4645",
"operation": "MakeAllManagedDatabasesAccessible",
"operationFriendlyName": "MAKE ALL MANAGED DBS ACCESSIBLE",
"percentComplete": 100,
"startTime": "2019-12-04T09:00:08.1Z",
"state": "Failed",
"operationSteps": {
"totalSteps": "1",
"currentStep": 1,
"stepsList": [
{
"order": 1,
"name": "Request validation",
"status": "Failed",
"stepEndTime": "2019-12-04T09:01:00.57Z",
"stepStartTime": "2019-12-04T09:00:30.15Z",
"timeElapsed": "0"
}
]
}
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/managedInstances/sqlcrudtest-4645/operations/44444444-4444-4444-4444-444444444444",
"name": "44444444-4444-4444-4444-444444444444",
"type": "Microsoft.Sql/managedInstances/operations"
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Managed |
托管实例作。 |
|
Managed |
对列表托管实例作请求的响应 |
|
Managed |
托管实例作的参数。 |
|
Managed |
托管实例作的步骤。 |
|
Management |
作状态。 |
|
Management |
|
|
Upsert |
|
|
Upsert |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
ManagedInstanceOperation
托管实例作。
| 名称 | 类型 | 说明 |
|---|---|---|
| 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.managedInstanceName |
string |
正在执行作的托管实例的名称。 |
| properties.operation |
string |
作的名称。 |
| properties.operationFriendlyName |
string |
作的友好名称。 |
| properties.operationParameters |
作参数。 |
|
| properties.operationSteps |
作步骤。 |
|
| properties.percentComplete |
integer (int32) |
已完成作的百分比。 |
| properties.startTime |
string (date-time) |
作开始时间。 |
| properties.state |
作状态。 |
|
| type |
string |
资源类型。 |
ManagedInstanceOperationListResult
对列表托管实例作请求的响应
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
用于检索下一页结果的链接。 |
| value |
结果数组。 |
ManagedInstanceOperationParametersPair
托管实例作的参数。
| 名称 | 类型 | 说明 |
|---|---|---|
| currentParameters |
当前参数。 |
|
| requestedParameters |
请求的参数。 |
ManagedInstanceOperationSteps
托管实例作的步骤。
| 名称 | 类型 | 说明 |
|---|---|---|
| currentStep |
integer (int32) |
当前作步骤的数目。 |
| stepsList |
作步骤列表。 |
|
| totalSteps |
string |
作步骤总数。 |
ManagementOperationState
作状态。
| 值 | 说明 |
|---|---|
| Pending | |
| InProgress | |
| Succeeded | |
| Failed | |
| CancelInProgress | |
| Cancelled |
ManagementOperationStepState
| 值 | 说明 |
|---|---|
| NotStarted | |
| InProgress | |
| SlowedDown | |
| Completed | |
| Failed | |
| Canceled |
UpsertManagedServerOperationParameters
| 名称 | 类型 | 说明 |
|---|---|---|
| family |
string |
|
| storageSizeInGB |
integer (int32) |
|
| tier |
string |
|
| vCores |
integer (int32) |
UpsertManagedServerOperationStepWithEstimatesAndDuration
| 名称 | 类型 | 说明 |
|---|---|---|
| name |
string |
|
| order |
integer (int32) |
|
| status | ||
| stepEndTime |
string (date-time) |
|
| stepStartTime |
string (date-time) |
|
| timeElapsed |
string |