次の方法で共有


Operation Statuses - Get

操作の状態を取得します。

GET {endpoint}/projects/{projectName}/operationstatuses/{operationId}?api-version=2025-02-01

URI パラメーター

名前 / 必須 説明
endpoint
path True

string (uri)

操作する DevCenter 固有の URI。

operationId
path True

string (uuid)

minLength: 36
maxLength: 36
pattern: ^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$

操作 ID 名。

projectName
path True

string

minLength: 3
maxLength: 63
pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$

プロジェクトの名前。

api-version
query True

string

minLength: 1

この操作に使用する API バージョン。

応答

名前 説明
200 OK

OperationStatus

要求は成功しました。

Other Status Codes

Azure.Core.Foundations.ErrorResponse

予期しないエラー応答。

ヘッダー

x-ms-error-code: string

セキュリティ

OAuth2Auth

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
https://devcenter.azure.com/.default

Get the status of an operation.

要求のサンプル

GET {endpoint}/projects/myProject/operationstatuses/fa067167-e49d-41bd-8dd8-de719b9de3b3?api-version=2025-02-01

応答のサンプル

{
  "id": "/projects/myProject/operationStatuses/fa067167-e49d-41bd-8dd8-de719b9de3b3",
  "name": "fa067167-e49d-41bd-8dd8-de719b9de3b3",
  "status": "Running",
  "startTime": "2024-01-24T21:14:58.472Z"
}

定義

名前 説明
Azure.Core.Foundations.Error

エラー オブジェクト。

Azure.Core.Foundations.ErrorResponse

エラーの詳細を含む応答。

Azure.Core.Foundations.InnerError

エラーに関するより具体的な情報を含むオブジェクト。 Azure REST API ガイドライン - https://aka.ms/AzureRestApiGuidelines#handling-errorsに準拠。

OperationState

リソースのプロビジョニング状態。

OperationStatus

非同期操作の現在の状態。

Azure.Core.Foundations.Error

エラー オブジェクト。

名前 説明
code

string

サーバー定義の一連のエラー コードの 1 つ。

details

Azure.Core.Foundations.Error[]

この報告されたエラーの原因となった特定のエラーに関する詳細の配列。

innererror

Azure.Core.Foundations.InnerError

エラーに関する現在のオブジェクトよりも具体的な情報を含むオブジェクト。

message

string

エラーの人間が判読できる表現。

target

string

エラーのターゲット。

Azure.Core.Foundations.ErrorResponse

エラーの詳細を含む応答。

名前 説明
error

Azure.Core.Foundations.Error

エラー オブジェクト。

Azure.Core.Foundations.InnerError

エラーに関するより具体的な情報を含むオブジェクト。 Azure REST API ガイドライン - https://aka.ms/AzureRestApiGuidelines#handling-errorsに準拠。

名前 説明
code

string

サーバー定義の一連のエラー コードの 1 つ。

innererror

Azure.Core.Foundations.InnerError

内部エラー。

OperationState

リソースのプロビジョニング状態。

説明
NotStarted

操作が開始されていません。

Running

操作が進行中です。

Succeeded

操作が正常に完了しました。

Failed

操作は失敗しました。

Canceled

操作はユーザーによって取り消されました。

OperationStatus

非同期操作の現在の状態。

名前 説明
endTime

string (date-time)

操作の終了時刻 (RFC3339形式)。

error

Azure.Core.Foundations.Error

操作エラー メッセージ。

id

string

操作の状態の完全修飾 ID。

name

string (uuid)

minLength: 36
maxLength: 36
pattern: ^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$

操作 ID 名。

percentComplete

number (double)

minimum: 0
maximum: 100

完了した操作の割合。

properties

操作が成功した場合にのみ設定されるカスタム操作プロパティ。

resourceId

string

リソースの ID。

startTime

string (date-time)

操作の開始時刻 (RFC3339形式)。

status

OperationState

リソースのプロビジョニング状態。