---
title: Rules Trace
---

[Skip to content](#_top)

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

Copy Markdown

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

---

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

# Rules Trace

#### Rules TraceTraces

##### [Request Trace](https://developers.cloudflare.com/api/python/resources/request_tracers/subresources/traces/methods/create)

request\_tracers.traces.create(TraceCreateParams\*\*kwargs) -> [TraceCreateResponse](<https://developers.cloudflare.com/api/python/resources/request_tracers#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_create_response%20%3E%20(schema)>)

POST/accounts/{account\_id}/request-tracer/trace

##### ModelsExpand Collapse

List\[[TraceItem](<https://developers.cloudflare.com/api/python/resources/request_tracers#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)>)]

[Link to this property](<#(resource)%20request_tracers.traces%20%3E%20(model)%20trace%20%3E%20(schema)>)

<details>

<summary>

class TraceItem: …

List of steps acting on request/response

</summary>

action: Optional\[str]

If step type is rule, then action performed by this rule

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

action\_parameters: Optional\[object]

If step type is rule, then action parameters of this rule as JSON

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

description: Optional\[str]

If step type is rule or ruleset, the description of this entity

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

expression: Optional\[str]

If step type is rule, then expression used to match for this rule

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

kind: Optional\[str]

If step type is ruleset, then kind of this ruleset

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20kind">Link to this property</a>

matched: Optional\[bool]

Whether tracing step affected tracing request/response

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20matched">Link to this property</a>

name: Optional\[str]

If step type is ruleset, then name of this ruleset

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

step\_name: Optional\[str]

Tracing step identifying name

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20step_name">Link to this property</a>

trace: Optional\[Trace]

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20trace">Link to this property</a>

type: Optional\[str]

Tracing step type

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)>)

<details>

<summary>

class TraceCreateResponse: …

Trace result with an origin status code

</summary>

status\_code: Optional\[int]

HTTP Status code of zone response

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_create_response%20%3E%20(schema)%20%3E%20(property)%20status_code">Link to this property</a>

trace: Optional\[Trace]

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_create_response%20%3E%20(schema)%20%3E%20(property)%20trace">Link to this property</a>

</details>

[Link to this property](<#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_create_response%20%3E%20(schema)>)