

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 停止 Amazon OpenSearch 擷取管道
<a name="pipeline--stop"></a>

若要使用 OpenSearch Ingestion 管道或執行管理，請務必從作用中管道開始，然後停止管道，然後再次啟動管道。當您的管道停止時，您不需要支付擷取 OCU 時數的費用。

## 主控台
<a name="stop-pipeline-console"></a>

**停止管道**

1. 登入 Amazon OpenSearch Service 主控台，網址為 https：//[https://console.aws.amazon.com/aos/osis/home](https://console.aws.amazon.com/aos/osis/home#osis/ingestion-pipelines)。您將進入管道頁面。

1. 選擇管道。您可以從此頁面執行停止操作，或導覽至您要停止之管道的詳細資訊頁面。

1. 針對**動作**，選擇**停止管道**。

   如果無法停止和啟動管道，則無法使用**停止管道**動作。

## AWS CLI
<a name="stop-pipeline-cli"></a>

若要使用 停止管道 AWS CLI，請使用下列參數呼叫 [stop-pipeline](https://docs.aws.amazon.com/cli/latest/reference/osis/stop-pipeline.html) 命令：
+ `--pipeline-name` – 管道的名稱。

**Example**  

```
aws osis stop-pipeline --pipeline-name my-pipeline
```

## OpenSearch 擷取 API
<a name="stop-pipeline-api"></a>

若要使用 OpenSearch Ingestion API 停止管道，請使用下列參數呼叫 [StopPipeline](https://docs.aws.amazon.com/opensearch-service/latest/APIReference/API_osis_StopPipeline.html) 操作：
+ `PipelineName` – 管道的名稱。