> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/infrastructure-as-code-management/iacm-api-reference/executions/get-resource-change-counts.md).

# Get resource change counts

Get resource-change badge totals for a sharded execution.

```json
{"openapi":"3.0.3","info":{"title":"Infrastructure as Code Management","version":"0.1.0"},"tags":[{"name":"executions","description":"Executions Service handles the API for workflow executions.\n\nAt this time it is a read-only API with no ability to directly create or edit\nexecutions. Instead these are triggered from the Workspaces Service."}],"servers":[{"url":"http://localhost:80"}],"paths":{"/api/orgs/{org}/projects/{project}/executions/{pipeline_execution_id}/resource-changes/counts":{"get":{"tags":["executions"],"summary":"Get resource change counts","description":"Get resource-change badge totals for a sharded execution.","operationId":"executions#get-resource-change-counts","parameters":[{"name":"pipeline_stage_id","in":"query","description":"Pipeline execution stage ID","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Pipeline execution stage ID","minLength":1,"maxLength":128}},{"name":"org","in":"path","description":"Org is the organisation identifier.","required":true,"schema":{"type":"string","description":"Org is the organisation identifier.","minLength":1,"maxLength":128}},{"name":"project","in":"path","description":"Project is the project identifier.","required":true,"schema":{"type":"string","description":"Project is the project identifier.","minLength":1,"maxLength":128}},{"name":"pipeline_execution_id","in":"path","description":"Pipeline execution ID","required":true,"schema":{"type":"string","description":"Pipeline execution ID","minLength":1,"maxLength":128}},{"name":"Harness-Account","in":"header","description":"Account is the internal customer account ID.","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Account is the internal customer account ID.","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetResourceChangeCountsResponse"}}}},"400":{"description":"BadRequestError: Bad Request response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"UnauthorizedError: Unauthorized response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"ForbiddenError: Forbidden response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"NotFoundError: Not Found response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"408":{"description":"TimeoutError: Request Timeout response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"ConflictError: Conflict response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"423":{"description":"LockedError: Locked response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"499":{"description":"ContextCancelledError:  response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"InternalServerError: Internal Server Error response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"BadGatewayError: Bad Gateway response.","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"GetResourceChangeCountsResponse":{"type":"object","properties":{"added":{"type":"integer","description":"Count of added resources in planned changes.","format":"int64"},"changed":{"type":"integer","description":"Count of changed resources in planned changes.","format":"int64"},"data_sources":{"type":"integer","description":"Badge for data_sources filter.","format":"int64"},"deleted":{"type":"integer","description":"Count of deleted resources in planned changes.","format":"int64"},"drift_added":{"type":"integer","description":"Count of added resources in drift changes.","format":"int64"},"drift_changed":{"type":"integer","description":"Count of changed resources in drift changes.","format":"int64"},"drift_changes":{"type":"integer","description":"Badge for drift_changes filter.","format":"int64"},"drift_deleted":{"type":"integer","description":"Count of deleted resources in drift changes.","format":"int64"},"drift_imported":{"type":"integer","description":"Count of imported resources in drift changes.","format":"int64"},"drift_removed":{"type":"integer","description":"Count of removed resources in drift changes.","format":"int64"},"drift_unchanged":{"type":"integer","description":"Count of unchanged resources in drift changes, which unlike planned unchanged rows are part of the drift_changes total.","format":"int64"},"imported":{"type":"integer","description":"Count of imported resources in planned changes.","format":"int64"},"outputs":{"type":"integer","description":"Badge for outputs filter.","format":"int64"},"planned_changes":{"type":"integer","description":"Badge for planned_changes filter.","format":"int64"},"removed":{"type":"integer","description":"Count of removed resources in planned changes.","format":"int64"},"resources":{"type":"integer","description":"Badge for resources filter.","format":"int64"},"unchanged":{"type":"integer","description":"Count of unchanged resources (own lazy-loaded filter).","format":"int64"}},"required":["added","changed","deleted","unchanged","removed","imported","planned_changes","drift_changes","drift_added","drift_changed","drift_deleted","drift_unchanged","drift_removed","drift_imported","resources","data_sources","outputs"]},"Error":{"type":"object","properties":{"fault":{"type":"boolean","description":"Is the error a server-side fault?"},"id":{"type":"string","description":"ID is a unique identifier for this particular occurrence of the problem."},"message":{"type":"string","description":"Message is a human-readable explanation specific to this occurrence of the problem."},"name":{"type":"string","description":"Name is the name of this class of errors."},"temporary":{"type":"boolean","description":"Is the error temporary?"},"timeout":{"type":"boolean","description":"Is the error a timeout?"}},"required":["name","id","message","temporary","timeout","fault"]}}}}
```
