Managed Instance Operations - Get
获取托管实例上的管理作。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}?api-version=2023-08-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
managed
|
path | True |
string |
托管实例的名称。 |
|
operation
|
path | True |
string (uuid) |
|
|
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
|
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
|
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
已成功检索指定的托管实例作。 |
|
| Other Status Codes |
错误响应: ***
|
示例
Gets the managed instance management operation
示例请求
示例响应
{
"properties": {
"managedInstanceName": "sqlcrudtest-4645",
"operation": "UpsertManagedServer",
"operationFriendlyName": "UPDATE MANAGED SERVER",
"percentComplete": 100,
"startTime": "2019-12-06T11:08:44.49Z",
"state": "Cancelled",
"isCancellable": false,
"operationSteps": {
"totalSteps": "6",
"currentStep": 2,
"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:23:05.47Z",
"stepStartTime": "2019-12-06T11:08:46.05Z",
"timeElapsed": "14"
},
{
"order": 3,
"name": "New SQL Instance Startup",
"status": "Canceled",
"stepEndTime": "2019-12-06T11:23:11.51Z",
"stepStartTime": "2019-12-06T11:23:05.55Z",
"timeElapsed": "0"
},
{
"order": 4,
"name": "Seeding database files",
"status": "NotStarted"
},
{
"order": 5,
"name": "Preparing Failover and Failover",
"status": "NotStarted"
},
{
"order": 6,
"name": "Old SQL Instance cleanup",
"status": "NotStarted"
}
]
}
},
"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"
}
定义
| 名称 | 说明 |
|---|---|
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
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 |
资源类型。 |
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 |