POST /v2/streaming/databases/{databaseName}/schemas/{schemaName}/pipes/{pipeName}:bulk-channel-status

restnot supportedData loading & unloading

docs.snowflake.com ↗

Snowpipe Streaming

The Bulk Get Channel Status operation returns the status of a channel for a specific client sequencer.

Syntax

POST /v2/streaming/databases/{databaseName}/schemas/{schemaName}/pipes/{pipeName}:bulk-channel-status

Parameters

NameInRequiredDescription
databaseNamepathrequiredDatabase name, case-insensitive
schemaNamepathrequiredSchema name, case-insensitive
pipeNamepathrequiredPipe name, case-insensitive
channel_namesbodyrequiredAn array of String channel names that the customer wants to get status for; the names are case-sensitive. For example, {"channel_names":["channel1", "channel2"]}.
AuthorizationheaderrequiredAuthentication token
X-Snowflake-Authorization-Token-TypeheaderoptionalJWT/OAuth
Content-Type (required when the request has a body)headerrequiredMedia type of the request body. Use application/x-ndjson for append-rows requests. Use application/json for open-channel, drop-channel, and bulk channel-status bodies. Use application/x-www-form-urlencoded for the scoped-token exchange.
Content-EncodingheaderoptionalSpecifies the compression format of the payload. Supported: gzip, zstd.
User-AgentheaderoptionalIdentifies the client application. Recommended format: SnowpipeStreamingSDK/{version} ({platform}) {LANGUAGE}/{language_version} (app={partner-name}). Example: SnowpipeStreamingSDK/1.0.0 (Linux amd64) PYTHON/3.11.0 (app=MyPartnerApp).

Response

{ "channel_statuses": { "channel1": { "channel_status_code": "String", "last_committed_offset_token": "String", "database_name": "String", "schema_name": "String", "pipe_name": "String", "channel_name": "String", "rows_inserted": "int", "rows_parsed": "int", "rows_error_count": "int", "last_error_offset_upper_bound": "String", "last_error_message": "String", "last_error_timestamp": "timestamp_utc", "snowflake_avg_processing_latency_ms": "int" }, "channel2": { "comment": "same structure as channel1" } "comment": "potentially other channels" } } If no requested channel is found in the service, the response payload doesn’t have an entry for that channel within the channel_statuses object. channel_status_code (String): Indicates the status of the channel. last_committed_offset_token (String): The channel’s latest persisted rowset checkpoint. It can advance when a rowset checkpoint commits even if some or all rows were rejected. See Offset checkpoints and rejected rows. database_name (String): The name of the database that the channel belongs to. schema_name (String): The name of the schema that the channel belongs to. pipe_name (String): The name of the pipe that the channel belongs to. channel_name (String): The name of the channel. rows_inserted (int): A count of all rows inserted into this channel. rows_parsed (int): A count of all rows parsed, but not necessarily inserted into this channel. rows_error_count (int): A count of all rows that experienced errors when inserted into this channel and were therefore rejected. last_error_offset_upper_bound (String): The upper bound for an ingestion error. The error will be located at or before this committed offset token. last_error_message (String): A human readable message corresponding to the latest error code for that channel, with sensitive customer data redacted. last_error_timestamp (timestamp_utc): Timestamp at the time when the last error occurred. snowflake_avg_processing_latency_ms (int): Average end-to-end processing time for this channel.