你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Operation Statuses - Get

返回异步操作的当前状态。

GET https://management.azure.com/providers/Microsoft.RecommendationsService/locations/{location}/operationStatuses/{operationId}?api-version=2022-02-01

URI 参数

名称 必需 类型 说明
location
path True

string

Azure 区域的名称。

operationId
path True

string

正在进行的异步操作的 ID。

api-version
query True

string

要用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

OperationStatus

请求的操作状态

Other Status Codes

ErrorResponse

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户。

示例

Get operation status

Sample Request

GET https://management.azure.com/providers/Microsoft.RecommendationsService/locations/testLocation/operationStatuses/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx?api-version=2022-02-01

Sample Response

{
  "id": "/providers/Microsoft.RecommendationsService/locations/testLocation/operationStatuses/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount",
  "name": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "Succeeded",
  "percentComplete": 100,
  "startTime": "2021-01-21T13:27:03.8980869Z",
  "endTime": "2020-01-21T13:35:03.8980869Z"
}

定义

名称 说明
ErrorAdditionalInfo

资源管理错误附加信息。

ErrorDetail

错误详细信息。

ErrorResponse

错误响应

OperationStatus

异步操作的当前状态。

OperationStatusResult

异步操作的当前状态。

ErrorAdditionalInfo

资源管理错误附加信息。

名称 类型 说明
info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明
additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

OperationStatus

异步操作的当前状态。

名称 类型 说明
endTime

string

操作的结束时间。

error

ErrorDetail

操作错误的详细信息(如果存在)。

id

string

异步操作的完全限定 ID。

name

string

异步操作的名称。

operations

OperationStatusResult[]

操作列表。

percentComplete

number

已完成操作的百分比。

properties

object

自定义操作属性,仅为成功操作填充。

resourceId

string

对其启动原始异步操作的资源的完全限定 ID。

startTime

string

操作的开始时间。

status

string

操作状态。

OperationStatusResult

异步操作的当前状态。

名称 类型 说明
endTime

string

操作的结束时间。

error

ErrorDetail

操作错误的详细信息(如果存在)。

id

string

异步操作的完全限定 ID。

name

string

异步操作的名称。

operations

OperationStatusResult[]

操作列表。

percentComplete

number

已完成操作的百分比。

resourceId

string

对其启动原始异步操作的资源的完全限定 ID。

startTime

string

操作的开始时间。

status

string

操作状态。