> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.itential.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server.

# Get action execution record

GET http://localhost:3000/lifecycle-manager/action-executions/{id}

Returns the action execution record.

Reference: https://docs.itential.com/itential-platform/6/api-reference/lifecycle-manager/get-action-execution

## Authentication

- `Authorization` header (basic auth, required) — Basic authentication of the form `Basic <base64(username:password)>`.

## Request

### Path parameters

- `id` (string, required) — id

### Query parameters

- `sync` (string, optional) — sync

## Response

### 200

response

- `data` (object, optional)
  - `_id` (any, required)
  - `modelId` (any, required)
  - `modelName` (string, required) — The name of the model as it was when the action was run
  - `instanceId` (any, required)
  - `instanceName` (string, required) — The name of the instance as it was when the action was run
  - `actionId` (any, required) — Identifier of the action that was run
  - `actionName` (string, required) — The name of the action as it was when the action was run
  - `jobId` (string, required, nullable) — Identifier of the job associated with the action
  - `startTime` (string, required) — The time at which the action was started
  - `endTime` (string, required, nullable) — The time at which the action ended
  - `progress` (object, required) — A sequence of key points in the action describing its overall progress
  - `status` (enum, required) — A single string describing the current activity status of this action
    - Allowed values: `running`, `error`, `complete`, `canceled`, `paused`
  - `errors` (list of object, required) — A list of any errors which occurred while the action was running
    - `message` (string, optional) — A human-readable message summarizing the issue
    - `origin` (enum, optional) — Designates where the error came from
      - Allowed values: `preTransformation`, `workflow`, `postTransformation`, `finishAction`, `system`
    - `timestamp` (string, optional) — An ISO 8601 date string
    - `metadata` (any, optional) — Additional properties that help describe the issue
    - `stepId` (string, optional) — A 4-digit hexadecimal id
  - `initiator` (any, required)
  - `initialInstanceData` (object, required, nullable) — The data for the resource instance
  - `finalInstanceData` (object, required, nullable) — The data for the resource instance

## Errors

### 500 Internal Server Error

Error response from API

- `any`

## Examples

**Response**

```json
{
  "data": {
    "modelName": "string",
    "instanceName": "string",
    "actionId": null,
    "actionName": "string",
    "jobId": "62a1f3d2ebedfc54e6e0065c",
    "startTime": "2024-01-15T09:30:00Z",
    "endTime": "2024-01-15T09:30:00Z",
    "progress": {},
    "status": "running",
    "errors": [
      {
        "message": "string",
        "origin": "preTransformation",
        "timestamp": "2024-01-15T09:30:00Z",
        "metadata": null,
        "stepId": "0a2f"
      }
    ],
    "initialInstanceData": {},
    "finalInstanceData": {}
  },
  "message": "Successfully created the requested item",
  "metadata": {}
}
```

**SDK Code**

```python
import requests

url = "http://localhost:3000/lifecycle-manager/action-executions/id"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'http://localhost:3000/lifecycle-manager/action-executions/id';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "http://localhost:3000/lifecycle-manager/action-executions/id"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("http://localhost:3000/lifecycle-manager/action-executions/id")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://localhost:3000/lifecycle-manager/action-executions/id")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://localhost:3000/lifecycle-manager/action-executions/id');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("http://localhost:3000/lifecycle-manager/action-executions/id");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:3000/lifecycle-manager/action-executions/id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```