Logs - Create

ログを作成し、パイプライン実行の実行プランに接続します。

POST https://dev.azure.com/{organization}/{scopeIdentifier}/_apis/distributedtask/hubs/{hubName}/plans/{planId}/logs?api-version=7.1-preview.1

URI パラメーター

名前 / 必須 説明
hubName
path True

string

サーバー ハブの名前。 一般的な例: "build"、"rm"、"checks"

organization
path True

string

Azure DevOps 組織の名前です。

planId
path True

string

uuid

プランの ID。

scopeIdentifier
path True

string

uuid

要求のスコープを設定するプロジェクト GUID

api-version
query True

string

使う API のバージョン。 このバージョンの API を使用するには、これを '7.1-preview.1' に設定する必要があります。

要求本文

名前 説明
createdOn

string

タスク ログの作成時刻。

id

integer

タスク ログの ID。

indexLocation

string

インデックスが作成されたときのタスク ログの REST URL。

lastChangedOn

string

タスク ログの最後の変更時刻。

lineCount

integer

タスク ログ行の番号。

location

string

タスク ログの REST URL。

path

string

タスク ログのパス。

応答

名前 説明
200 OK

TaskLog

成功した操作

セキュリティ

accessToken

個人用アクセス トークン。 ユーザー名とトークンに任意の値をパスワードとして使用します。

Type: basic

Create a log

Sample Request

POST https://dev.azure.com/{organization}/{scopeIdentifier}/_apis/distributedtask/hubs/{hubName}/plans/{planId}/logs?api-version=7.1-preview.1

{
  "path": "logs\\5e6d5dbf-ac69-5f56-8b85-8e9038703a8b",
  "createdOn": "0001-01-01T00:00:00",
  "lastChangedOn": "0001-01-01T00:00:00",
  "id": 0,
  "location": null
}

Sample Response

{
  "path": "logs\\5e6d5dbf-ac69-5f56-8b85-8e9038703a8b",
  "lineCount": 49,
  "createdOn": "2022-12-02T09:33:14.873Z",
  "lastChangedOn": "2022-12-02T09:50:19.033Z",
  "id": 3,
  "location": null
}

定義

TaskLog

タイムライン レコードに接続されているタスク ログ。

名前 説明
createdOn

string

タスク ログの作成時刻。

id

integer

タスク ログの ID。

indexLocation

string

インデックスが作成されたときのタスク ログの REST URL。

lastChangedOn

string

タスク ログの最後の変更時刻。

lineCount

integer

タスク ログ行の番号。

location

string

タスク ログの REST URL。

path

string

タスク ログのパス。