设置插件服务器的端口号
作用
设置插件服务器的端口号。
URI
使用具有以下 IBM® IoT MessageSight 配置 URI 的 IBM IoT MessageSight REST API POST 方法:
http://<admin-endpoint-IP:Port>/ima/v1/configuration/
对象配置数据
使用以下模式在 POST 方法的有效内容中提供 PluginPort 对象配置数据。Content-type 设置为 application/json:
{
"PluginPort": integer
}
其中:- PluginPort
- 指定插件服务器的端口号。
- 请指定 1 - 65535 范围内的值。
- 缺省值为 9103。
用法说明
- 必须按照所示情况使用首字母大写和双引号。
- 您必须重新启动协议插件服务器以使更新生效。
相关的 REST 管理 API
示例
使用以下 cURL 来设置插件服务器端口值:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"PluginPort": 9100
}
' \
http://127.0.0.1:9089/ima/v1/configuration/
POST 方法的响应示例:
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully."
}