# List resource changes for all stages

List resource changes for all stages from the latest plan and state for this execution.

Endpoint: GET /iacm/api/orgs/{org}/projects/{project}/executions/{pipeline_execution_id}/resource-changes-all-stages
Version: 1.0
Security: x-api-key

## Query parameters:

  - `exclude_state` (boolean)
    When true, exclude values from the state in the response
    Example: true

## Path parameters:

  - `org` (string, required)
    Org is the organisation identifier.
    Example: "tj"

  - `project` (string, required)
    Project is the project identifier.
    Example: "bk"

  - `pipeline_execution_id` (string, required)
    Pipeline execution ID
    Example: "md"

## Header parameters:

  - `Harness-Account` (string, required)
    Account is the internal customer account ID.
    Example: "xo"

## Response 200 fields (application/json):

  - `data_sources` (array, required)
    Example: [{"attributes":{"ami":"ami-830c94ec","instance_type":"t2.micro"},"createdAt":1627590400,"drift_attributes":{"instance_type":"t2.nano"},"drift_status":"changed","lastSyncedAt":1627686800,"mode":"resource","module":"full_stack","monthly_cost":0.32546890397784883,"monthly_saving":0.35814372810159073,"name":"app_server","path_id":"namespace","provider":"AWS","recommendation_count":8335073474648751000,"resource_id":"arn:aws:s3:::my-bucket","sensitive_attributes":["instance_type"],"type":"S3 Bucket"},{"attributes":{"ami":"ami-830c94ec","instance_type":"t2.micro"},"createdAt":1627590400,"drift_attributes":{"instance_type":"t2.nano"},"drift_status":"changed","lastSyncedAt":1627686800,"mode":"resource","module":"full_stack","monthly_cost":0.32546890397784883,"monthly_saving":0.35814372810159073,"name":"app_server","path_id":"namespace","provider":"AWS","recommendation_count":8335073474648751000,"resource_id":"arn:aws:s3:::my-bucket","sensitive_attributes":["instance_type"],"type":"S3 Bucket"},{"attributes":{"ami":"ami-830c94ec","instance_type":"t2.micro"},"createdAt":1627590400,"drift_attributes":{"instance_type":"t2.nano"},"drift_status":"changed","lastSyncedAt":1627686800,"mode":"resource","module":"full_stack","monthly_cost":0.32546890397784883,"monthly_saving":0.35814372810159073,"name":"app_server","path_id":"namespace","provider":"AWS","recommendation_count":8335073474648751000,"resource_id":"arn:aws:s3:::my-bucket","sensitive_attributes":["instance_type"],"type":"S3 Bucket"},{"attributes":{"ami":"ami-830c94ec","instance_type":"t2.micro"},"createdAt":1627590400,"drift_attributes":{"instance_type":"t2.nano"},"drift_status":"changed","lastSyncedAt":1627686800,"mode":"resource","module":"full_stack","monthly_cost":0.32546890397784883,"monthly_saving":0.35814372810159073,"name":"app_server","path_id":"namespace","provider":"AWS","recommendation_count":8335073474648751000,"resource_id":"arn:aws:s3:::my-bucket","sensitive_attributes":["instance_type"],"type":"S3 Bucket"}]

  - `data_sources.attributes` (object, required)
    A map of values related to the resource
    Example: {"ami":"ami-830c94ec","instance_type":"t2.micro"}

  - `data_sources.createdAt` (integer)
    Timestamp when the resource was created.
    Example: 1627590400

  - `data_sources.drift_attributes` (object, required)
    A map of values related to the resource
    Example: {"instance_type":"t2.nano"}

  - `data_sources.drift_status` (string, required)
    Indicates if this resource is experiencing drift.
    Enum: "changed", "deleted", "unchanged"

  - `data_sources.lastSyncedAt` (integer)
    Timestamp when the resource was last updated.
    Example: 1627686800

  - `data_sources.mode` (string, required)
    Mode associated with the resource.
    Enum: "resource", "data", "output"

  - `data_sources.module` (string, required)
    Module associated with the resource.
    Example: "full_stack"

  - `data_sources.monthly_cost` (number)
    Current period cost from CCM (null if no cost data).
    Example: 0.15965863958721543

  - `data_sources.monthly_saving` (number)
    Monthly potential saving from CCM (null if no cost data).
    Example: 0.2914243350928799

  - `data_sources.name` (string, required)
    Name associated with the resource.
    Example: "app_server"

  - `data_sources.path_id` (string, required)
    Path associated with the resource. Could be namespace, environment or stack id.
    Example: "namespace"

  - `data_sources.provider` (string, required)
    Cloud provider associated with the resource.
    Example: "AWS"

  - `data_sources.recommendation_count` (integer)
    Number of CCM recommendations for this resource (null if no cost data).
    Example: 189649844261067840

  - `data_sources.resource_id` (string, required)
    Unique identifier for the resource from the cloud provider.
    Example: "arn:aws:s3:::my-bucket"

  - `data_sources.sensitive_attributes` (array, required)
    A list of the sensitive attribute keys
    Example: ["instance_type"]

  - `data_sources.type` (string, required)
    Type of the provisioned resource.
    Example: "S3 Bucket"

  - `drift_changes` (array, required)
    Example: [{"change":"added","change_count":10,"changes":{"Molestias qui odio qui placeat.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true}},"drift":false,"module":"full_stack","name":"app_server","provider":"AWS","type":"S3 Bucket"},{"change":"added","change_count":10,"changes":{"Molestias qui odio qui placeat.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true}},"drift":false,"module":"full_stack","name":"app_server","provider":"AWS","type":"S3 Bucket"},{"change":"added","change_count":10,"changes":{"Molestias qui odio qui placeat.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true}},"drift":false,"module":"full_stack","name":"app_server","provider":"AWS","type":"S3 Bucket"},{"change":"added","change_count":10,"changes":{"Molestias qui odio qui placeat.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true}},"drift":false,"module":"full_stack","name":"app_server","provider":"AWS","type":"S3 Bucket"}]

  - `drift_changes.change` (string, required)
    Change made to this resource.
    Enum: "added", "changed", "deleted", "unchanged", "imported", "removed"

  - `drift_changes.change_count` (integer, required)
    Count of changes made to this resource.
    Example: 10

  - `drift_changes.changes` (object, required)
    New values for this resource
    Example: {"Repudiandae id repudiandae temporibus impedit.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true},"Veritatis nihil laborum quasi dolor tempora.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true},"Voluptatem adipisci.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true}}

  - `drift_changes.drift` (boolean, required)
    Indicates whether this resource is experiencing drift
    Example: true

  - `drift_changes.module` (string, required)
    Module associated with the resource.
    Example: "full_stack"

  - `drift_changes.name` (string, required)
    Name associated with the resource.
    Example: "app_server"

  - `drift_changes.provider` (string, required)
    Cloud provider associated with the resource.
    Example: "AWS"

  - `drift_changes.type` (string, required)
    Type of the provisioned resource.
    Example: "S3 Bucket"

  - `has_dependency_graph` (boolean)
    Whether dependency graph data is available
    Example: true

  - `outputs` (array, required)
    Example: [{"change":"added","expression":"<+outputs.instance_id>","name":"instance_public_ip","new":"new value","old":"old value","sensitive":true,"stack_path":"IaCM/TGOverride/environments/dev/ec2"},{"change":"added","expression":"<+outputs.instance_id>","name":"instance_public_ip","new":"new value","old":"old value","sensitive":true,"stack_path":"IaCM/TGOverride/environments/dev/ec2"},{"change":"added","expression":"<+outputs.instance_id>","name":"instance_public_ip","new":"new value","old":"old value","sensitive":true,"stack_path":"IaCM/TGOverride/environments/dev/ec2"}]

  - `outputs.change` (string, required)
    Change made to this resource.
    Enum: "added", "changed", "deleted", "unchanged"

  - `outputs.expression` (string)
    JEXL expression for dynamic output resolution
    Example: "<+outputs.instance_id>"

  - `outputs.name` (string, required)
    Name associated with the output.
    Example: "instance_public_ip"

  - `outputs.new` (string)
    Updated value
    Example: "new value"

  - `outputs.old` (string)
    Previous value.
    Example: "old value"

  - `outputs.sensitive` (boolean, required)
    Indicates whether this value is sensitive
    Example: true

  - `outputs.stack_path` (string)
    Stack path for Terragrunt workspaces
    Example: "IaCM/TGOverride/environments/dev/ec2"

  - `pipeline_execution` (string, required)
    the identifier of the pipeline execution changes were made from.
    Example: "Dolorem porro."

  - `pipeline_stage` (string)
    the identifier of the pipeline stage execution changes were made from.
    Example: "Nihil deleniti ipsam."

  - `planned_changes` (array, required)
    Example: [{"change":"added","change_count":10,"changes":{"Molestias qui odio qui placeat.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true}},"drift":false,"module":"full_stack","name":"app_server","provider":"AWS","type":"S3 Bucket"},{"change":"added","change_count":10,"changes":{"Molestias qui odio qui placeat.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true}},"drift":false,"module":"full_stack","name":"app_server","provider":"AWS","type":"S3 Bucket"},{"change":"added","change_count":10,"changes":{"Molestias qui odio qui placeat.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true}},"drift":false,"module":"full_stack","name":"app_server","provider":"AWS","type":"S3 Bucket"},{"change":"added","change_count":10,"changes":{"Molestias qui odio qui placeat.":{"change":"added","drift":false,"new":"new value","old":"old value","sensitive":true}},"drift":false,"module":"full_stack","name":"app_server","provider":"AWS","type":"S3 Bucket"}]

  - `resources` (array, required)
    Example: [{"attributes":{"ami":"ami-830c94ec","instance_type":"t2.micro"},"createdAt":1627590400,"drift_attributes":{"instance_type":"t2.nano"},"drift_status":"changed","lastSyncedAt":1627686800,"mode":"resource","module":"full_stack","monthly_cost":0.32546890397784883,"monthly_saving":0.35814372810159073,"name":"app_server","path_id":"namespace","provider":"AWS","recommendation_count":8335073474648751000,"resource_id":"arn:aws:s3:::my-bucket","sensitive_attributes":["instance_type"],"type":"S3 Bucket"},{"attributes":{"ami":"ami-830c94ec","instance_type":"t2.micro"},"createdAt":1627590400,"drift_attributes":{"instance_type":"t2.nano"},"drift_status":"changed","lastSyncedAt":1627686800,"mode":"resource","module":"full_stack","monthly_cost":0.32546890397784883,"monthly_saving":0.35814372810159073,"name":"app_server","path_id":"namespace","provider":"AWS","recommendation_count":8335073474648751000,"resource_id":"arn:aws:s3:::my-bucket","sensitive_attributes":["instance_type"],"type":"S3 Bucket"},{"attributes":{"ami":"ami-830c94ec","instance_type":"t2.micro"},"createdAt":1627590400,"drift_attributes":{"instance_type":"t2.nano"},"drift_status":"changed","lastSyncedAt":1627686800,"mode":"resource","module":"full_stack","monthly_cost":0.32546890397784883,"monthly_saving":0.35814372810159073,"name":"app_server","path_id":"namespace","provider":"AWS","recommendation_count":8335073474648751000,"resource_id":"arn:aws:s3:::my-bucket","sensitive_attributes":["instance_type"],"type":"S3 Bucket"},{"attributes":{"ami":"ami-830c94ec","instance_type":"t2.micro"},"createdAt":1627590400,"drift_attributes":{"instance_type":"t2.nano"},"drift_status":"changed","lastSyncedAt":1627686800,"mode":"resource","module":"full_stack","monthly_cost":0.32546890397784883,"monthly_saving":0.35814372810159073,"name":"app_server","path_id":"namespace","provider":"AWS","recommendation_count":8335073474648751000,"resource_id":"arn:aws:s3:::my-bucket","sensitive_attributes":["instance_type"],"type":"S3 Bucket"}]

  - `risk_assessment` (object)
    Risk assessment containing overall summary and per-resource risks
    Example: {"overall_risk_summary":{"overall_level":"HIGH","overall_score":7,"reason":"Driven by highest-risk resource: aws_s3_bucket_public_access_block.secure (score: 8)"},"resource_risks":{"Accusantium qui.":{"risk_factors":["Nostrum cupiditate vel adipisci cum omnis.","Fugit qui.","Sapiente aperiam aut inventore nesciunt non repudiandae."],"risk_level":"MEDIUM","risk_mitigation":["Repellat eum suscipit cupiditate ea.","Est explicabo voluptate recusandae."],"risk_score":3},"Sunt eveniet.":{"risk_factors":["Nostrum cupiditate vel adipisci cum omnis.","Fugit qui.","Sapiente aperiam aut inventore nesciunt non repudiandae."],"risk_level":"MEDIUM","risk_mitigation":["Repellat eum suscipit cupiditate ea.","Est explicabo voluptate recusandae."],"risk_score":3}}}

  - `risk_assessment.overall_risk_summary` (object, required)
    Deployment-wide risk assessment.
    Example: {"overall_level":"HIGH","overall_score":7,"reason":"Driven by highest-risk resource: aws_s3_bucket_public_access_block.secure (score: 8)"}

  - `risk_assessment.overall_risk_summary.overall_level` (string, required)
    Risk level category
    Enum: "LOW", "MEDIUM", "HIGH"

  - `risk_assessment.overall_risk_summary.overall_score` (integer, required)
    Overall deployment risk score from 1 to 10
    Example: 7

  - `risk_assessment.overall_risk_summary.reason` (string, required)
    Human-readable explanation of the score
    Example: "Driven by highest-risk resource: aws_s3_bucket_public_access_block.secure (score: 8)"

  - `risk_assessment.resource_risks` (object, required)
    Risk data keyed by resource address
    Example: {"Accusantium qui.":{"risk_factors":["Nostrum cupiditate vel adipisci cum omnis.","Fugit qui.","Sapiente aperiam aut inventore nesciunt non repudiandae."],"risk_level":"MEDIUM","risk_mitigation":["Repellat eum suscipit cupiditate ea.","Est explicabo voluptate recusandae."],"risk_score":3},"Sunt eveniet.":{"risk_factors":["Nostrum cupiditate vel adipisci cum omnis.","Fugit qui.","Sapiente aperiam aut inventore nesciunt non repudiandae."],"risk_level":"MEDIUM","risk_mitigation":["Repellat eum suscipit cupiditate ea.","Est explicabo voluptate recusandae."],"risk_score":3}}

  - `stage_id` (string, required)
    The stage ID
    Example: "Aperiam veniam voluptas."

  - `workspace_id` (string, required)
    identifier of the workspace associated with the data
    Example: "Accusantium sit."

## Response 400 fields (application/vnd.goa.error):

  - `fault` (boolean, required)
    Is the error a server-side fault?
    Example: true

  - `id` (string, required)
    ID is a unique identifier for this particular occurrence of the problem.
    Example: "123abc"

  - `message` (string, required)
    Message is a human-readable explanation specific to this occurrence of the problem.
    Example: "parameter 'p' must be an integer"

  - `name` (string, required)
    Name is the name of this class of errors.
    Example: "bad_request"

  - `temporary` (boolean, required)
    Is the error temporary?
    Example: true

  - `timeout` (boolean, required)
    Is the error a timeout?
    Example: true


