

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# ロールバックステータスの詳細を表示する
<a name="stage-rollback-view-details"></a>

ロールバック実行のステータスとターゲット実行 ID を表示できます。

## 詳細ページにロールバックステータスを表示する (コンソール）
<a name="stage-rollback-view-details-console"></a>

コンソールを使用して、ロールバック実行のステータスとターゲットパイプライン実行 ID を表示できます。

![\[CodePipeline のターゲットパイプライン実行 ID フィールドを示すステータスページの例。\]](http://docs.aws.amazon.com/ja_jp/codepipeline/latest/userguide/images/rollback-view-status-console.png)


## `get-pipeline-execution` を使用してロールバックの詳細を表示する (CLI)
<a name="stage-rollback-view-details-cli"></a>

ロールバックされたパイプライン実行は、パイプライン実行を取得するための出力に表示されます。
+ パイプラインの詳細を表示するには、パイプラインの一意の名前を指定して、**[get-pipeline-execution](https://docs.aws.amazon.com/cli/latest/reference/codepipeline/get-pipeline-execution.html)** コマンドを実行します。例えば、*MyFirstPipeline* という名前のパイプラインの詳細を表示するには、以下のように入力します:

  ```
  aws codepipeline get-pipeline-execution --pipeline-name MyFirstPipeline --pipeline-execution-id 3f658bd1-69e6-4448-ba3e-79007EXAMPLE
  ```

  このコマンドは、パイプラインの構造を返します。

  次の例は、*MyFirstPipeline* という名前のパイプラインの一部について返されたデータを示しています。ロールバック実行 ID とメタデータが表示されています。

  ```
  {
      "pipelineExecution": {
          "pipelineName": "MyFirstPipeline",
          "pipelineVersion": 6,
          "pipelineExecutionId": "2004a94e-8b46-4c34-a695-c8d20EXAMPLE",
          "status": "Succeeded",
          "artifactRevisions": [
              {
                  "name": "SourceArtifact",
                  "revisionId": "<ID>",
                  "revisionSummary": "Added README.txt",
                  "revisionUrl": "<console_URL>"
              }
          ],
          "trigger": {
              "triggerType": "ManualRollback",
              "triggerDetail": "arn:aws:sts::<account_ID>:assumed-role/<role>"
          },
          "executionMode": "SUPERSEDED",
          "executionType": "ROLLBACK",
          "rollbackMetadata": {
              "rollbackTargetPipelineExecutionId": "4f47bed9-6998-476c-a49d-e60beEXAMPLE"
          }
      }
  }
  ```

## `get-pipeline-state` を使用してロールバック状態を表示する (CLI)
<a name="w2aac34c10c17b9"></a>

ロールバックされたパイプライン実行は、パイプライン状態を取得するための出力に表示されます。
+ パイプラインの詳細を表示するには、パイプラインの一意の名前を指定して、**get-pipeline-state** コマンドを実行します。例えば、*MyFirstPipeline* という名前のパイプラインの状態の詳細を表示するには、次のように入力します。

  ```
  aws codepipeline get-pipeline-state --name MyFirstPipeline
  ```

  次の例は、ロールバック実行タイプで返されたデータを示しています。

  ```
  {
      "pipelineName": "MyFirstPipeline",
      "pipelineVersion": 7,
      "stageStates": [
          {
              "stageName": "Source",
              "inboundExecutions": [],
              "inboundTransitionState": {
                  "enabled": true
              },
              "actionStates": [
                  {
                      "actionName": "Source",
                      "currentRevision": {
                          "revisionId": "<Revision_ID>"
                      },
                      "latestExecution": {
                          "actionExecutionId": "13bbd05d-b439-4e35-9c7e-887cb789b126",
                          "status": "Succeeded",
                          "summary": "update",
                          "lastStatusChange": "2024-04-24T20:13:45.799000+00:00",
                          "externalExecutionId": "10cbEXAMPLEID"
                      },
                      "entityUrl": "console-url",
                      "revisionUrl": "console-url"
                  }
              ],
              "latestExecution": {
                  "pipelineExecutionId": "cf95a8ca-0819-4279-ae31-03978EXAMPLE",
                  "status": "Succeeded"
              }
          },
          {
              "stageName": "deploys3",
              "inboundExecutions": [],
              "inboundTransitionState": {
                  "enabled": true
              },
              "actionStates": [
                  {
                      "actionName": "s3deploy",
                      "latestExecution": {
                          "actionExecutionId": "3bc4e3eb-75eb-45b9-8574-8599aEXAMPLE",
                          "status": "Succeeded",
                          "summary": "Deployment Succeeded",
                          "lastStatusChange": "2024-04-24T20:14:07.577000+00:00",
                          "externalExecutionId": "mybucket/SampleApp.zip"
                      },
                      "entityUrl": "console-URL"
                  }
              ],
              "latestExecution": {
                  "pipelineExecutionId": "fdf6b2ae-1472-4b00-9a83-1624eEXAMPLE",
                  "status": "Succeeded",
                  "type": "ROLLBACK"
              }
          }
      ],
      "created": "2024-04-15T21:29:01.635000+00:00",
      "updated": "2024-04-24T20:12:24.480000+00:00"
  }
  ```