你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Operation Status - Get
返回异步作的当前状态。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/locations/{location}/operationStatuses/{operationId}?api-version=2024-05-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
location
|
path | True |
string minLength: 1 |
Azure 区域的名称。 |
operation
|
path | True |
string minLength: 1 |
正在进行的异步作的 ID。 |
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求的作状态 |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
示例
Get operation status
示例请求
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/testLocation/operationStatuses/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?api-version=2024-05-01
示例响应
{
"status": "InProgress"
}
定义
名称 | 说明 |
---|---|
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Operation |
异步作的当前状态。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
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 |
作状态。 |