

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 停止 Amazon OpenSearch Ingestion 渠道
<a name="pipeline--stop"></a>

要使用 In OpenSearch gestion 管道或执行管理，请始终从活动管道开始，然后停止管道，然后重新启动管道。管道停止时，不计入 Ingestion OCU 小时数。

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

**停止管道**

1. 在 [https://console.aws.amazon.com/aos/osis](https://console.aws.amazon.com/aos/osis/home#osis/ingestion-pipelines) /home 登录亚马逊 OpenSearch 服务控制台。您将进入 “管道” 页面。

1. 选择管道。您可以从该页面中执行停止操作，或者导航到要停止的管道的详细信息页面。

1. 在**操作**中，选择**停止管道**。

   如果无法停止和启动管道，则**停止管道**操作不可用。

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

要使用停止管道 AWS CLI，请使用以下参数调用 [stop-pipelin](https://docs.aws.amazon.com/cli/latest/reference/osis/stop-pipeline.html) e 命令：
+ `--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` – 管道的名称。