---
title: Get Sink Details
---

[Skip to content](#_top)

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

[Pipelines](https://developers.cloudflare.com/api/python/resources/pipelines)

[Sinks](https://developers.cloudflare.com/api/python/resources/pipelines/subresources/sinks)

Copy Markdown

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

---

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

# Get Sink Details

pipelines.sinks.get(strsink\_id, SinkGetParams\*\*kwargs) -> [SinkGetResponse](<https://developers.cloudflare.com/api/python/resources/pipelines#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)>)

GET/accounts/{account\_id}/pipelines/v1/sinks/{sink\_id}

Get Sink Details.

##### 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)

`Pipelines Write``Pipelines Read`

##### ParametersExpand Collapse

account\_id: str

Specifies the public ID of the account.

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

sink\_id: str

Specifies the publid ID of the sink.

maxLength32

minLength32

[Link to this property](<#(resource)%20pipelines.sinks%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20sink_id%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

class SinkGetResponse: …

</summary>

id: str

Indicates a unique identifier for this sink.

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

created\_at: datetime

formatdate-time

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20created_at">Link to this property</a>

modified\_at: datetime

formatdate-time

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20modified_at">Link to this property</a>

name: str

Defines the name of the Sink.

maxLength128

minLength1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: Literal\["r2", "r2\_data\_catalog", "basin\_catalog"]

Specifies the type of sink.

</summary>

One of the following:

"r2"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"r2\_data\_catalog"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"basin\_catalog"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

config: Optional\[Config]

Defines the configuration of the R2 Sink.

</summary>

One of the following:

<details>

<summary>

class ConfigCloudflarePipelinesR2TablePublic: …

R2 Sink public configuration.

</summary>

account\_id: str

Cloudflare Account ID for the bucket

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20account_id">Link to this property</a>

bucket: str

R2 Bucket to write to

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20bucket">Link to this property</a>

<details>

<summary>

file\_naming: Optional\[ConfigCloudflarePipelinesR2TablePublicFileNaming]

Controls filename prefix/suffix and strategy.

</summary>

prefix: Optional\[str]

The prefix to use in file name. i.e prefix-.parquet

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20prefix">Link to this property</a>

<details>

<summary>

strategy: Optional\[Literal\["serial", "uuid", "uuid\_v7", "ulid"]]

Filename generation strategy.

</summary>

One of the following:

"serial"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%200">Link to this property</a>

"uuid"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%201">Link to this property</a>

"uuid\_v7"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%202">Link to this property</a>

"ulid"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20strategy">Link to this property</a>

suffix: Optional\[str]

This will overwrite the default file suffix. i.e .parquet, use with caution

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming%20%3E%20(property)%20suffix">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20file_naming">Link to this property</a>

jurisdiction: Optional\[str]

Jurisdiction this bucket is hosted in

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20jurisdiction">Link to this property</a>

<details>

<summary>

partitioning: Optional\[ConfigCloudflarePipelinesR2TablePublicPartitioning]

Data-layout partitioning for sinks.

</summary>

time\_pattern: Optional\[str]

The pattern of the date string

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20partitioning%20%3E%20(property)%20time_pattern">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20partitioning">Link to this property</a>

path: Optional\[str]

Subpath within the bucket to write to

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20path">Link to this property</a>

<details>

<summary>

rolling\_policy: Optional\[ConfigCloudflarePipelinesR2TablePublicRollingPolicy]

Rolling policy for file sinks (when &amp; why to close a file and open a new one).

</summary>

file\_size\_bytes: Optional\[int]

Files will be rolled after reaching this number of bytes

formatuint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20file_size_bytes">Link to this property</a>

inactivity\_seconds: Optional\[int]

Number of seconds of inactivity to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20inactivity_seconds">Link to this property</a>

interval\_seconds: Optional\[int]

Number of seconds to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20interval_seconds">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200%20%3E%20(property)%20rolling_policy">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class ConfigCloudflarePipelinesR2DataCatalogTablePublic: …

R2 Data Catalog Sink public configuration.

</summary>

account\_id: str

Cloudflare Account ID

formaturi

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20account_id">Link to this property</a>

bucket: str

The R2 Bucket that hosts this catalog

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20bucket">Link to this property</a>

table\_name: str

Table name

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20table_name">Link to this property</a>

namespace: Optional\[str]

Table namespace

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20namespace">Link to this property</a>

<details>

<summary>

rolling\_policy: Optional\[ConfigCloudflarePipelinesR2DataCatalogTablePublicRollingPolicy]

Rolling policy for file sinks (when &amp; why to close a file and open a new one).

</summary>

file\_size\_bytes: Optional\[int]

Files will be rolled after reaching this number of bytes

formatuint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20file_size_bytes">Link to this property</a>

inactivity\_seconds: Optional\[int]

Number of seconds of inactivity to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20inactivity_seconds">Link to this property</a>

interval\_seconds: Optional\[int]

Number of seconds to wait before rolling over to a new file

formatuint64

minimum1

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy%20%3E%20(property)%20interval_seconds">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201%20%3E%20(property)%20rolling_policy">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20config">Link to this property</a>

<details>

<summary>

format: Optional\[Format]

Defines the output data format of a sink.

</summary>

One of the following:

<details>

<summary>

class FormatCloudflarePipelinesSinkJsonFormat: …

</summary>

type: Literal\["json"]

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

compression: Optional\[Literal\["uncompressed", "gzip"]]

Specifies the compression applied to JSON sink output.

</summary>

One of the following:

"uncompressed"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20compression%20%3E%20(member)%200">Link to this property</a>

"gzip"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20compression%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20compression">Link to this property</a>

<details>

<summary>

decimal\_encoding: Optional\[Literal\["number", "string", "bytes"]]

</summary>

One of the following:

"number"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%200">Link to this property</a>

"string"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%201">Link to this property</a>

"bytes"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20decimal_encoding">Link to this property</a>

<details>

<summary>

timestamp\_format: Optional\[Literal\["rfc3339", "unix\_millis"]]

</summary>

One of the following:

"rfc3339"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format%20%3E%20(member)%200">Link to this property</a>

"unix\_millis"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20timestamp_format">Link to this property</a>

unstructured: Optional\[bool]

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200%20%3E%20(property)%20unstructured">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class FormatCloudflarePipelinesSinkParquetFormat: …

</summary>

type: Literal\["parquet"]

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

<details>

<summary>

compression: Optional\[Literal\["uncompressed", "snappy", "gzip", 2 more]]

</summary>

One of the following:

"uncompressed"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%200">Link to this property</a>

"snappy"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%201">Link to this property</a>

"gzip"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%202">Link to this property</a>

"zstd"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%203">Link to this property</a>

"lz4"

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20compression">Link to this property</a>

row\_group\_bytes: Optional\[int]

formatint64

minimum0

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201%20%3E%20(property)%20row_group_bytes">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20format">Link to this property</a>

<details>

<summary>

schema: Optional\[Schema]

Defines the schema of the events in the data stream.

</summary>

<details>

<summary>

fields: Optional\[List\[<a href="https://developers.cloudflare.com/api/python/resources/pipelines#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)">SourceField</a>]]

</summary>

One of the following:

<details>

<summary>

class Int32: …

</summary>

type: Literal\["int32"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

class Int64: …

</summary>

type: Literal\["int64"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

<details>

<summary>

class Float32: …

</summary>

type: Literal\["float32"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%202">Link to this property</a>

<details>

<summary>

class Float64: …

</summary>

type: Literal\["float64"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%203">Link to this property</a>

<details>

<summary>

class Bool: …

</summary>

type: Literal\["bool"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%204">Link to this property</a>

<details>

<summary>

class String: …

</summary>

type: Literal\["string"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%205">Link to this property</a>

<details>

<summary>

class Binary: …

</summary>

type: Literal\["binary"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%206">Link to this property</a>

<details>

<summary>

class Timestamp: …

</summary>

type: Literal\["timestamp"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20sql_name">Link to this property</a>

<details>

<summary>

unit: Optional\[Literal\["second", "millisecond", "microsecond", "nanosecond"]]

</summary>

One of the following:

"second"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%200">Link to this property</a>

"millisecond"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%201">Link to this property</a>

"microsecond"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%202">Link to this property</a>

"nanosecond"

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207%20%3E%20(property)%20unit">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%207">Link to this property</a>

<details>

<summary>

class Json: …

</summary>

type: Literal\["json"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%208">Link to this property</a>

<details>

<summary>

class Struct: …

</summary>

type: Literal\["struct"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209%20%3E%20(entry)%201%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%209">Link to this property</a>

<details>

<summary>

class List: …

</summary>

type: Literal\["list"]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20type">Link to this property</a>

metadata\_key: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20metadata_key">Link to this property</a>

name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20name">Link to this property</a>

required: Optional\[bool]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20required">Link to this property</a>

sql\_name: Optional\[str]

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010%20%3E%20(entry)%201%20%3E%20(property)%20sql_name">Link to this property</a>

</details>

<a href="#(resource)%20pipelines%20%3E%20(model)%20source_field%20%3E%20(schema)%20%3E%20(variant)%2010">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20fields">Link to this property</a>

inferred: Optional\[bool]

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20schema%20%3E%20(property)%20inferred">Link to this property</a>

</details>

<a href="#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)%20%3E%20(property)%20schema">Link to this property</a>

</details>

[Link to this property](<#(resource)%20pipelines.sinks%20%3E%20(model)%20sink_get_response%20%3E%20(schema)>)

### Get Sink Details

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
)
sink = client.pipelines.sinks.get(
    sink_id="0223105f4ecef8ad9ca31a8372d0c353",
    account_id="0123105f4ecef8ad9ca31a8372d0c353",
)
print(sink.id)
```

200 example

```
{
  "result": {
    "id": "01234567890123457689012345678901",
    "created_at": "2019-12-27T18:11:19.117Z",
    "modified_at": "2019-12-27T18:11:19.117Z",
    "name": "my_sink",
    "type": "r2",
    "config": {
      "account_id": "account_id",
      "bucket": "bucket",
      "file_naming": {
        "prefix": "prefix",
        "strategy": "serial",
        "suffix": "suffix"
      },
      "jurisdiction": "jurisdiction",
      "partitioning": {
        "time_pattern": "year=%Y/month=%m/day=%d/hour=%H"
      },
      "path": "path",
      "rolling_policy": {
        "file_size_bytes": 0,
        "inactivity_seconds": 1,
        "interval_seconds": 1
      }
    },
    "format": {
      "type": "json",
      "compression": "uncompressed",
      "decimal_encoding": "number",
      "timestamp_format": "rfc3339",
      "unstructured": true
    },
    "schema": {
      "fields": [
        {
          "type": "int32",
          "metadata_key": "metadata_key",
          "name": "name",
          "required": true,
          "sql_name": "sql_name"
        }
      ],
      "inferred": true
    }
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "result": {
    "id": "01234567890123457689012345678901",
    "created_at": "2019-12-27T18:11:19.117Z",
    "modified_at": "2019-12-27T18:11:19.117Z",
    "name": "my_sink",
    "type": "r2",
    "config": {
      "account_id": "account_id",
      "bucket": "bucket",
      "file_naming": {
        "prefix": "prefix",
        "strategy": "serial",
        "suffix": "suffix"
      },
      "jurisdiction": "jurisdiction",
      "partitioning": {
        "time_pattern": "year=%Y/month=%m/day=%d/hour=%H"
      },
      "path": "path",
      "rolling_policy": {
        "file_size_bytes": 0,
        "inactivity_seconds": 1,
        "interval_seconds": 1
      }
    },
    "format": {
      "type": "json",
      "compression": "uncompressed",
      "decimal_encoding": "number",
      "timestamp_format": "rfc3339",
      "unstructured": true
    },
    "schema": {
      "fields": [
        {
          "type": "int32",
          "metadata_key": "metadata_key",
          "name": "name",
          "required": true,
          "sql_name": "sql_name"
        }
      ],
      "inferred": true
    }
  },
  "success": true
}
```