---
title: Get logs and status from instance
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/python)

[Workflows](https://developers.cloudflare.com/api/python/resources/workflows)

[Instances](https://developers.cloudflare.com/api/python/resources/workflows/subresources/instances)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Get logs and status from instance

workflows.instances.get(strinstance\_id, InstanceGetParams\*\*kwargs) -> [InstanceGetResponse](<https://developers.cloudflare.com/api/python/resources/workflows#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/workflows/{workflow\_name}/instances/{instance\_id}

Retrieves logs and execution status for a specific workflow instance.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Workers Tail Read``Workers Scripts Write``Workers Scripts Read`

##### ParametersExpand Collapse

account\_id: str

[Link to this property](<#(resource)%20workflows.instances%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20account_id%20%3E%20(schema)>)

workflow\_name: str

maxLength64

minLength1

[Link to this property](<#(resource)%20workflows.instances%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20workflow_name%20%3E%20(schema)>)

instance\_id: str

maxLength271

minLength1

[Link to this property](<#(resource)%20workflows.instances%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20instance_id%20%3E%20(schema)>)

<details>

<summary>

order: Optional\[Literal\["asc", "desc"]]

Step ordering: “asc” (default, oldest first) or “desc” (newest first).

</summary>

One of the following:

"asc"

<a href="#(resource)%20workflows.instances%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"desc"

<a href="#(resource)%20workflows.instances%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workflows.instances%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20order%20%3E%20(schema)>)

<details>

<summary>

simple: Optional\[Literal\["true", "false"]]

When true, omits step details and returns only metadata with step\_count.

</summary>

One of the following:

"true"

<a href="#(resource)%20workflows.instances%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20simple%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"false"

<a href="#(resource)%20workflows.instances%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20simple%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workflows.instances%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20simple%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

class InstanceGetResponse: …

</summary>

end: Optional\[datetime]

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20end">Link to this property</a>

<details>

<summary>

error: Optional\[Error]

</summary>

message: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20message">Link to this property</a>

name: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20error">Link to this property</a>

<details>

<summary>

output: Union\[str, float]

</summary>

One of the following:

str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20output%20%3E%20(variant)%200">Link to this property</a>

float

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20output%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20output">Link to this property</a>

params: object

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20params">Link to this property</a>

queued: datetime

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20queued">Link to this property</a>

<details>

<summary>

rollback: Optional\[Rollback]

</summary>

<details>

<summary>

error: Optional\[RollbackError]

</summary>

message: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20rollback%20%3E%20(property)%20error%20%3E%20(property)%20message">Link to this property</a>

name: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20rollback%20%3E%20(property)%20error%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20rollback%20%3E%20(property)%20error">Link to this property</a>

<details>

<summary>

outcome: Literal\["complete", "failed"]

</summary>

One of the following:

"complete"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20rollback%20%3E%20(property)%20outcome%20%3E%20(member)%200">Link to this property</a>

"failed"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20rollback%20%3E%20(property)%20outcome%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20rollback%20%3E%20(property)%20outcome">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20rollback">Link to this property</a>

start: Optional\[datetime]

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20start">Link to this property</a>

<details>

<summary>

status: Literal\["queued", "running", "paused", 6 more]

</summary>

One of the following:

"queued"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

"running"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

"paused"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

"errored"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

"terminated"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

"complete"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

"waitingForPause"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%206">Link to this property</a>

"waiting"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%207">Link to this property</a>

"rollingBack"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%208">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

step\_count: int

maximum9007199254740991

minimum-9007199254740991

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20step_count">Link to this property</a>

<details>

<summary>

steps: List\[Step]

</summary>

One of the following:

<details>

<summary>

class StepUnionMember0: …

</summary>

<details>

<summary>

attempts: List\[StepUnionMember0Attempt]

</summary>

end: Optional\[datetime]

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20attempts%20%3E%20(items)%20%3E%20(property)%20end">Link to this property</a>

<details>

<summary>

error: Optional\[StepUnionMember0AttemptError]

</summary>

message: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20attempts%20%3E%20(items)%20%3E%20(property)%20error%20%3E%20(property)%20message">Link to this property</a>

name: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20attempts%20%3E%20(items)%20%3E%20(property)%20error%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20attempts%20%3E%20(items)%20%3E%20(property)%20error">Link to this property</a>

start: datetime

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20attempts%20%3E%20(items)%20%3E%20(property)%20start">Link to this property</a>

success: Optional\[bool]

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20attempts%20%3E%20(items)%20%3E%20(property)%20success">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20attempts">Link to this property</a>

<details>

<summary>

config: StepUnionMember0Config

</summary>

<details>

<summary>

retries: StepUnionMember0ConfigRetries

</summary>

<details>

<summary>

delay: Union\[str, float]

Specifies the delay duration. The value ‘\[dynamic]’ means that a user-supplied function computes the delay.

</summary>

One of the following:

str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20retries%20%3E%20(property)%20delay%20%3E%20(variant)%200">Link to this property</a>

float

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20retries%20%3E%20(property)%20delay%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20retries%20%3E%20(property)%20delay">Link to this property</a>

limit: float

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20retries%20%3E%20(property)%20limit">Link to this property</a>

<details>

<summary>

backoff: Optional\[Literal\["constant", "linear", "exponential"]]

</summary>

One of the following:

"constant"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20retries%20%3E%20(property)%20backoff%20%3E%20(member)%200">Link to this property</a>

"linear"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20retries%20%3E%20(property)%20backoff%20%3E%20(member)%201">Link to this property</a>

"exponential"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20retries%20%3E%20(property)%20backoff%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20retries%20%3E%20(property)%20backoff">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20retries">Link to this property</a>

<details>

<summary>

timeout: Union\[str, float]

Specifies the timeout duration.

</summary>

One of the following:

str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20timeout%20%3E%20(variant)%200">Link to this property</a>

float

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20timeout%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20timeout">Link to this property</a>

sensitive: Optional\[Literal\["output"]]

When set to ‘output’, step output is redacted from log and step output responses.

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config%20%3E%20(property)%20sensitive">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20config">Link to this property</a>

end: Optional\[datetime]

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20end">Link to this property</a>

name: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

output: Optional\[str]

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20output">Link to this property</a>

start: datetime

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20start">Link to this property</a>

success: Optional\[bool]

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20success">Link to this property</a>

<details>

<summary>

type: Literal\["step", "rollback"]

</summary>

One of the following:

"step"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"rollback"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class StepUnionMember1: …

</summary>

end: datetime

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20end">Link to this property</a>

<details>

<summary>

error: Optional\[StepUnionMember1Error]

</summary>

message: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20error%20%3E%20(property)%20message">Link to this property</a>

name: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20error%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20error">Link to this property</a>

finished: bool

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20finished">Link to this property</a>

name: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20name">Link to this property</a>

start: datetime

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20start">Link to this property</a>

type: Literal\["sleep"]

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class StepUnionMember2: …

</summary>

<details>

<summary>

trigger: StepUnionMember2Trigger

</summary>

source: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20trigger%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20trigger">Link to this property</a>

type: Literal\["termination"]

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

class StepUnionMember3: …

</summary>

end: datetime

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20end">Link to this property</a>

<details>

<summary>

error: Optional\[StepUnionMember3Error]

</summary>

message: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20error%20%3E%20(property)%20message">Link to this property</a>

name: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20error%20%3E%20(property)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20error">Link to this property</a>

finished: bool

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20finished">Link to this property</a>

name: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20name">Link to this property</a>

start: datetime

formatdate-time

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20start">Link to this property</a>

type: Literal\["waitForEvent"]

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

event\_type: Optional\[str]

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20event_type">Link to this property</a>

output: Optional\[str]

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203%20%3E%20(property)%20output">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps%20%3E%20(items)%20%3E%20(variant)%203">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20steps">Link to this property</a>

success: Optional\[bool]

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

<details>

<summary>

trigger: Trigger

</summary>

<details>

<summary>

source: Literal\["unknown", "api", "binding", 2 more]

</summary>

One of the following:

"unknown"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20source%20%3E%20(member)%200">Link to this property</a>

"api"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20source%20%3E%20(member)%201">Link to this property</a>

"binding"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20source%20%3E%20(member)%202">Link to this property</a>

"event"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20source%20%3E%20(member)%203">Link to this property</a>

"cron"

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20source%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20trigger%20%3E%20(property)%20source">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20trigger">Link to this property</a>

version\_id: str

formatuuid

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20versionId">Link to this property</a>

<details>

<summary>

schedule: Optional\[Schedule]

</summary>

cron: str

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20schedule%20%3E%20(property)%20cron">Link to this property</a>

scheduled\_time: float

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20schedule%20%3E%20(property)%20scheduledTime">Link to this property</a>

</details>

<a href="#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)%20%3E%20(property)%20schedule">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workflows.instances%20%3E%20(model)%20instance_get_response%20%3E%20(schema)>)

### Get logs and status from instance

Python

HTTPTypeScriptPythonGoTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
instance = client.workflows.instances.get(
    instance_id="x",
    account_id="account_id",
    workflow_name="x",
)
print(instance.end)
```

200 example

```
{
  "errors": [],
  "messages": [
    {
      "code": 0,
      "message": "message"
    }
  ],
  "result": {
    "end": "2019-12-27T18:11:19.117Z",
    "error": {
      "message": "message",
      "name": "name"
    },
    "output": "string",
    "params": {},
    "queued": "2019-12-27T18:11:19.117Z",
    "rollback": {
      "error": {
        "message": "message",
        "name": "name"
      },
      "outcome": "complete"
    },
    "start": "2019-12-27T18:11:19.117Z",
    "status": "queued",
    "step_count": -9007199254740991,
    "steps": [
      {
        "attempts": [
          {
            "end": "2019-12-27T18:11:19.117Z",
            "error": {
              "message": "message",
              "name": "name"
            },
            "start": "2019-12-27T18:11:19.117Z",
            "success": true
          }
        ],
        "config": {
          "retries": {
            "delay": "string",
            "limit": 0,
            "backoff": "constant"
          },
          "timeout": "string",
          "sensitive": "output"
        },
        "end": "2019-12-27T18:11:19.117Z",
        "name": "name",
        "output": "output",
        "start": "2019-12-27T18:11:19.117Z",
        "success": true,
        "type": "step"
      }
    ],
    "success": true,
    "trigger": {
      "source": "unknown"
    },
    "versionId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "schedule": {
      "cron": "cron",
      "scheduledTime": 0
    }
  },
  "success": true,
  "result_info": {
    "count": 0,
    "per_page": 0,
    "total_count": 0,
    "cursor": "cursor",
    "page": 0,
    "total_pages": 0
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [],
  "messages": [
    {
      "code": 0,
      "message": "message"
    }
  ],
  "result": {
    "end": "2019-12-27T18:11:19.117Z",
    "error": {
      "message": "message",
      "name": "name"
    },
    "output": "string",
    "params": {},
    "queued": "2019-12-27T18:11:19.117Z",
    "rollback": {
      "error": {
        "message": "message",
        "name": "name"
      },
      "outcome": "complete"
    },
    "start": "2019-12-27T18:11:19.117Z",
    "status": "queued",
    "step_count": -9007199254740991,
    "steps": [
      {
        "attempts": [
          {
            "end": "2019-12-27T18:11:19.117Z",
            "error": {
              "message": "message",
              "name": "name"
            },
            "start": "2019-12-27T18:11:19.117Z",
            "success": true
          }
        ],
        "config": {
          "retries": {
            "delay": "string",
            "limit": 0,
            "backoff": "constant"
          },
          "timeout": "string",
          "sensitive": "output"
        },
        "end": "2019-12-27T18:11:19.117Z",
        "name": "name",
        "output": "output",
        "start": "2019-12-27T18:11:19.117Z",
        "success": true,
        "type": "step"
      }
    ],
    "success": true,
    "trigger": {
      "source": "unknown"
    },
    "versionId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "schedule": {
      "cron": "cron",
      "scheduledTime": 0
    }
  },
  "success": true,
  "result_info": {
    "count": 0,
    "per_page": 0,
    "total_count": 0,
    "cursor": "cursor",
    "page": 0,
    "total_pages": 0
  }
}
```