次の方法で共有


Pipelines - Get Pipeline Operation

デプロイ実行プランを含め、指定したデプロイ パイプラインで実行された指定されたデプロイ操作の詳細を返します。

デプロイ操作の状態を追跡するために使用します。

必要なスコープ

Pipeline.ReadWrite.All または Pipeline.Read.All

GET https://api.powerbi.com/v1.0/myorg/pipelines/{pipelineId}/operations/{operationId}

URI パラメーター

名前 / 必須 説明
operationId
path True

string (uuid)

操作 ID

pipelineId
path True

string (uuid)

デプロイ パイプライン ID

応答

名前 説明
200 OK

PipelineOperation

わかりました

Get a pipeline operation example

要求のサンプル

GET https://api.powerbi.com/v1.0/myorg/pipelines/a5ded933-57b7-41f4-b072-ed4c1f9d5824/operations/1065e6a3-a020-4c0c-ada7-92b5fe99eec5

応答のサンプル

{
  "id": "1065e6a3-a020-4c0c-ada7-92b5fe99eec5",
  "type": "Deploy",
  "status": "Succeeded",
  "lastUpdatedTime": "2020-12-13T09:26:43.153",
  "executionStartTime": "2020-12-13T09:25:43.153Z",
  "executionEndTime": "2020-12-13T09:26:43.153Z",
  "sourceStageOrder": 0,
  "targetStageOrder": 1,
  "executionPlan": {
    "Steps": [
      {
        "index": 0,
        "type": "DataflowDeployment",
        "status": "Succeeded",
        "preDeploymentDiffState": "New",
        "sourceAndTarget": {
          "source": "29efcfb0-0063-44af-a4ed-6c0bee3417d3",
          "sourceDisplayName": "Source dataflow",
          "type": "dataflow"
        }
      },
      {
        "index": 1,
        "type": "DatamartDeployment",
        "status": "Succeeded",
        "preDeploymentDiffState": "New",
        "sourceAndTarget": {
          "source": "645cd81f-1b21-4006-82b6-54cc7ec0352e",
          "sourceDisplayName": "Source datamart",
          "type": "datamart"
        }
      },
      {
        "index": 2,
        "type": "DatasetDeployment",
        "status": "Succeeded",
        "preDeploymentDiffState": "NoDifference",
        "sourceAndTarget": {
          "source": "1a201f2a-d1d8-45c0-8c61-1676338517de",
          "sourceDisplayName": "Source dataset",
          "target": "dd3b6aa1-4d40-405c-a19b-48314a27e8ee",
          "targetDisplayName": "Target dataset",
          "type": "dataset"
        }
      },
      {
        "index": 3,
        "type": "ReportDeployment",
        "status": "Succeeded",
        "preDeploymentDiffState": "Different",
        "sourceAndTarget": {
          "source": "2d225191-65f8-4ec3-b77d-06100602b1f7",
          "sourceDisplayName": "Source report",
          "target": "9d5c1f0f-f85c-48f4-8a8e-4c77547116b3",
          "targetDisplayName": "Target report",
          "type": "report"
        }
      },
      {
        "index": 4,
        "type": "DashboardDeployment",
        "status": "Succeeded",
        "preDeploymentDiffState": "New",
        "sourceAndTarget": {
          "source": "9046e4cc-8aea-4a7a-a3b5-1a78b1447d82",
          "sourceDisplayName": "Source dashboard",
          "type": "dashboard"
        }
      }
    ]
  },
  "note": {
    "content": "Sample note",
    "isTruncated": false
  },
  "preDeploymentDiffInformation": {
    "newArtifactsCount": 3,
    "differentArtifactsCount": 1,
    "noDifferenceArtifactsCount": 1
  },
  "performedBy": {
    "userPrincipalName": "john@contoso.com",
    "principalType": "User"
  }
}

定義

名前 説明
DeploymentError

デプロイ手順のエラーの詳細

DeploymentExecutionPlan

デプロイ実行プラン

DeploymentExecutionStep

デプロイの実行手順

DeploymentExecutionStepPreDeploymentDiffState

デプロイ前のターゲット ステージの項目とは異なる、または同一の新しい項目です。

DeploymentSourceAndTarget

ソースアイテムとターゲットアイテム

DeploymentStepType

デプロイ手順の種類

PipelineOperation

Power BI デプロイ パイプライン操作

PipelineOperationNote

デプロイを説明するメモ。

PipelineOperationStatus

パイプライン操作の状態

PipelineOperationType

操作の種類

PipelineOperationUser

パイプライン操作を実行したユーザーまたはサービス プリンシパル。

PreDeploymentDiffInformation

デプロイ前の新しい、異なる、同一のデプロイ済みアイテムの量。

PrincipalType

プリンシパルの種類

DeploymentError

デプロイ手順のエラーの詳細

名前 説明
errorCode

string

エラー コード

errorDetails

string

その他のエラーの詳細

DeploymentExecutionPlan

デプロイ実行プラン

名前 説明
steps

DeploymentExecutionStep[]

実行プランステップのコレクション

DeploymentExecutionStep

デプロイの実行手順

名前 説明
error

DeploymentError

エラーの詳細。 パイプライン操作が失敗した場合にのみ適用されます。

index

integer

ステップ インデックス

preDeploymentDiffState

DeploymentExecutionStepPreDeploymentDiffState

デプロイ前のターゲット ステージの項目とは異なる、または同一の新しい項目です。

sourceAndTarget

DeploymentSourceAndTarget

ステップのソース項目とターゲット項目

status

PipelineOperationStatus

パイプライン操作の状態

type

DeploymentStepType

デプロイ手順の種類

DeploymentExecutionStepPreDeploymentDiffState

デプロイ前のターゲット ステージの項目とは異なる、または同一の新しい項目です。

説明
Different

デプロイ前は、ソース ステージの項目がターゲット ステージの項目と同じではありませんでした。

New

ターゲット ステージに存在しない新しいデプロイ済みアイテム。

NoDifference

デプロイ前のソース ステージの項目は、ターゲット ステージの項目と同じでした。

DeploymentSourceAndTarget

ソースアイテムとターゲットアイテム

名前 説明
source

string (uuid)

ソース ステージからデプロイされた Power BI 項目の ID

sourceDisplayName

string

ソース ステージからデプロイされた Power BI 項目の表示名

target

string (uuid)

ターゲット ステージで上書きされる Power BI 項目の ID。 Power BI アイテムを上書きする場合にのみ適用されます。

targetDisplayName

string

ターゲット ステージで上書きされる Power BI 項目の名前。 Power BI アイテムを上書きする場合にのみ適用されます。

type

string

ターゲット ステージで上書きされる Power BI 項目の種類。 Power BI アイテムを上書きする場合にのみ適用されます。

DeploymentStepType

デプロイ手順の種類

説明
DashboardDeployment

1 つのダッシュボードをデプロイするための手順

DataflowDeployment

1 つのデータフローをデプロイするための手順

DatamartDeployment

1 つのデータマートをデプロイするための手順

DatasetDeployment

1 つのデータセットをデプロイするための手順

ReportDeployment

1 つのレポートを配置する手順

PipelineOperation

Power BI デプロイ パイプライン操作

名前 説明
executionEndTime

string (date-time)

操作が終了した日時

executionPlan

DeploymentExecutionPlan

デプロイ実行プラン。 1 つのパイプライン操作にのみ適用されます。

executionStartTime

string (date-time)

操作が開始された日時

id

string (uuid)

操作 ID

lastUpdatedTime

string (date-time)

操作が最後に更新された日時

note

PipelineOperationNote

操作の説明を表すメモ。

performedBy

PipelineOperationUser

パイプライン操作を実行したユーザーまたはサービス プリンシパル。

preDeploymentDiffInformation

PreDeploymentDiffInformation

デプロイ前のソース ステージのデプロイ済み項目の量。ターゲット ステージの項目と同じか、異なります。

sourceStageOrder

integer

ソース パイプラインデプロイステージの数値識別子。 開発 (0)、テスト (1)、運用環境 (2)。

status

PipelineOperationStatus

パイプライン操作の状態

targetStageOrder

integer

ターゲット パイプライン デプロイ ステージの数値識別子。 開発 (0)、テスト (1)、運用環境 (2)。

type

PipelineOperationType

操作の種類

PipelineOperationNote

デプロイを説明するメモ。

名前 説明
content

string

デプロイを説明するテキスト。

isTruncated

boolean

メモが不完全かどうかを示します。 True の場合、ノートの一部のみが返されます。 False、メモは完了です。

PipelineOperationStatus

パイプライン操作の状態

説明
Executing

実行中の操作

Failed

操作に失敗しました

NotStarted

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

Succeeded

操作に成功しました

PipelineOperationType

操作の種類

説明
Deploy

ステージ間にコンテンツをデプロイする

PipelineOperationUser

パイプライン操作を実行したユーザーまたはサービス プリンシパル。

名前 説明
principalObjectID

string (uuid)

デプロイを実行したサービス プリンシパルの ID。

principalType

PrincipalType

デプロイを実行したユーザーの種類。

userPrincipalName

string

デプロイを実行したユーザーの UPN。

PreDeploymentDiffInformation

デプロイ前の新しい、異なる、同一のデプロイ済みアイテムの量。

名前 説明
differentArtifactsCount

integer

デプロイ前の、ソースステージとターゲットステージの違いを持つデプロイ済みアイテムの数。

newArtifactsCount

integer

ターゲット ステージにデプロイされた新しい項目の数。

noDifferenceArtifactsCount

integer

デプロイ前のソース ステージとターゲット ステージでデプロイされた同じ項目の数。

PrincipalType

プリンシパルの種類

説明
App

サービス プリンシパルの種類

Group

グループ プリンシパルの種類

None

プリンシパルの種類はありません。 組織全体レベルのアクセスに使用します。

User

ユーザー プリンシパルの種類