## [DEPRECATED] Get Pipeline `client.pipelines.get(stringpipelineName, PipelineGetParamsparams, RequestOptionsoptions?): PipelineGetResponse` **get** `/accounts/{account_id}/pipelines/{pipeline_name}` [DEPRECATED] Get configuration of a pipeline. Use the new /pipelines/v1/pipelines endpoint instead. ### Parameters - `pipelineName: string` Defines the name of the pipeline. - `params: PipelineGetParams` - `account_id: string` Specifies the public ID of the account. ### Returns - `PipelineGetResponse` [DEPRECATED] Describes the configuration of a pipeline. Use the new streams/sinks/pipelines API instead. - `id: string` Specifies the pipeline identifier. - `destination: Destination` - `batch: Batch` - `max_bytes: number` Specifies rough maximum size of files. - `max_duration_s: number` Specifies duration to wait to aggregate batches files. - `max_rows: number` Specifies rough maximum number of rows per file. - `compression: Compression` - `type: "none" | "gzip" | "deflate"` Specifies the desired compression algorithm and format. - `"none"` - `"gzip"` - `"deflate"` - `format: "json"` Specifies the format of data to deliver. - `"json"` - `path: Path` - `bucket: string` Specifies the R2 Bucket to store files. - `filename?: string` Specifies the name pattern to for individual data files. - `filepath?: string` Specifies the name pattern for directory. - `prefix?: string` Specifies the base directory within the bucket. - `type: "r2"` Specifies the type of destination. - `"r2"` - `endpoint: string` Indicates the endpoint URL to send traffic. - `name: string` Defines the name of the pipeline. - `source: Array` - `CloudflarePipelinesWorkersPipelinesHTTPSource` [DEPRECATED] HTTP source configuration. Use the new streams API instead. - `format: "json"` Specifies the format of source data. - `"json"` - `type: string` - `authentication?: boolean` Specifies whether authentication is required to send to this pipeline via HTTP. - `cors?: CORS` - `origins?: Array` Specifies allowed origins to allow Cross Origin HTTP Requests. - `CloudflarePipelinesWorkersPipelinesBindingSource` [DEPRECATED] Worker binding source configuration. Use the new streams API instead. - `format: "json"` Specifies the format of source data. - `"json"` - `type: string` - `version: number` Indicates the version number of last saved configuration. ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const pipeline = await client.pipelines.get('sample_pipeline', { account_id: '0123105f4ecef8ad9ca31a8372d0c353', }); console.log(pipeline.id); ``` #### Response ```json { "result": { "id": "123f8a8258064ed892a347f173372359", "destination": { "batch": { "max_bytes": 1000, "max_duration_s": 0.25, "max_rows": 100 }, "compression": { "type": "gzip" }, "format": "json", "path": { "bucket": "bucket", "filename": "${slug}${extension}", "filepath": "${date}/${hour}", "prefix": "base" }, "type": "r2" }, "endpoint": "https://123f8a8258064ed892a347f173372359.pipelines.cloudflare.com", "name": "sample_pipeline", "source": [ { "format": "json", "type": "type", "authentication": true, "cors": { "origins": [ "*" ] } } ], "version": 2 }, "success": true } ```