Operation Progress - Get
获取长时间运行的作的作结果。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/locations/{locationName}/operationProgress/{operationId}?api-version=2024-12-30
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
location
|
path | True |
string minLength: 1pattern: ^[ \w]+$ |
位置的名称。 |
|
operation
|
path | True |
string minLength: 1 |
正在进行的异步作的 ID。 |
|
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
|
api-version
|
query | True |
string minLength: 1 |
要用于此操作的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
Azure作已成功完成。 |
|
| Other Status Codes |
意外错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
|
Operation |
|
Operation |
OperationProgress_Get BackupAndExport
示例请求
示例响应
{
"name": "00000000-0000-0000-0000-000000000000",
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/westus/operationProgress/00000000-0000-0000-0000-000000000000",
"percentComplete": 10,
"properties": {
"backupMetadata": "{\"key1\":\"value1\",\"key2\":\"value2\"}",
"dataTransferredInBytes": 102,
"datasourceSizeInBytes": 1024,
"objectType": "BackupAndExportResponse"
},
"startTime": "2023-11-29T07:34:02.328326Z",
"status": "InProgress"
}
OperationProgress_Get ImportFromStorage
示例请求
示例响应
{
"name": "00000000-0000-0000-0000-000000000000",
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.DBforMySQL/locations/westus/operationProgress/00000000-0000-0000-0000-000000000000",
"percentComplete": 10,
"properties": {
"estimatedCompletionTime": "2023-11-29T08:34:02.328326Z",
"objectType": "ImportFromStorageResponse"
},
"startTime": "2023-11-29T07:34:02.328326Z",
"status": "InProgress"
}
定义
| 名称 | 说明 |
|---|---|
|
Backup |
BackupAndExport 响应属性 |
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Import |
ImportFromStorage 响应属性 |
|
Object |
标识源作的类型 |
|
Operation |
表示作结果 API 响应 |
|
Operation |
异步操作的当前状态。 |
BackupAndExportResponseType
BackupAndExport 响应属性
| 名称 | 类型 | 说明 |
|---|---|---|
| backupMetadata |
string |
与要存储的备份相关的元数据,用于在键值对中还原资源。 |
| dataTransferredInBytes |
integer (int64) |
以字节为单位传输的数据 |
| datasourceSizeInBytes |
integer (int64) |
数据源的大小(以字节为单位) |
| objectType |
string:
Backup |
标识源作的类型 |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
ImportFromStorageResponseType
ImportFromStorage 响应属性
| 名称 | 类型 | 说明 |
|---|---|---|
| estimatedCompletionTime |
string (date-time) |
作完成的预计时间。 |
| objectType |
string:
Import |
标识源作的类型 |
ObjectType
标识源作的类型
| 值 | 说明 |
|---|---|
| BackupAndExportResponse | |
| ImportFromStorageResponse |
OperationProgressResult
表示作结果 API 响应
| 名称 | 类型 | 说明 |
|---|---|---|
| endTime |
string (date-time) |
操作的结束时间。 |
| error |
如果存在,则操作错误的详细信息。 |
|
| id |
string (arm-id) |
异步操作的完全限定 ID。 |
| name |
string |
异步操作的名称。 |
| operations |
操作列表。 |
|
| percentComplete |
number minimum: 0maximum: 100 |
完成的操作的百分比。 |
| properties | OperationProgressResponseType: |
特定于作的响应属性 |
| resourceId |
string (arm-id) |
启动原始异步作的资源的完全限定 ID。 |
| startTime |
string (date-time) |
操作的开始时间。 |
| status |
string |
操作状态。 |
OperationStatusResult
异步操作的当前状态。
| 名称 | 类型 | 说明 |
|---|---|---|
| endTime |
string (date-time) |
操作的结束时间。 |
| error |
如果存在,则操作错误的详细信息。 |
|
| id |
string (arm-id) |
异步操作的完全限定 ID。 |
| name |
string |
异步操作的名称。 |
| operations |
操作列表。 |
|
| percentComplete |
number minimum: 0maximum: 100 |
完成的操作的百分比。 |
| resourceId |
string (arm-id) |
启动原始异步作的资源的完全限定 ID。 |
| startTime |
string (date-time) |
操作的开始时间。 |
| status |
string |
操作状态。 |