SlideShare a Scribd company logo
1 of 34
Chang-Yen Huang
 Bluemix上提供了幾項API相關的服務,若是想要
利用現有的資料庫直接建立API進行存取,則可以
利用Connect & Compose
 Connect & Compose功能分為兩個部分
◦ Connect – 連接資料庫
◦ Compose – 編寫API
 輕鬆連接現有資料庫的資料
 指定資料表後將會自動建立資料表相關的API
 建立的API皆為RESTful API
 分享API到Bluemix上
Connect
 在雲端或內部部署中與多個系統互動的 REST API
 利用Node-Red進行編寫組合
 分享API到Bluemix上
Compose
 以下將建立利用Connect & Compose連接到On-
Premise的IBM DB2資料庫資料的API
 為了連接到On-Premise資料庫,將透過Bluemix
Secure Gateway服務連接
Connect
1.選擇整合類別中的Secure Gateway並點選建立
2.點選新增新的閘道
Secure Gateway
命名新的閘道後點選新增目的地來連接到資料庫
Secure Gateway
輸入名稱、資料庫IP、Port後新增目的地
新增完成後按下連接
Secure Gateway
此處利用docker作為client端
於docker中輸入以下指令來連接到Secure Gateway
Secure Gateway
若成功將出現已連線字樣
Secure Gateway
若docker中出現如上圖紅框之存取控制問題
則需先輸入要允許存取的IP及Port(即要連接的資料庫,如下圖)
Secure Gateway
回到Bluemix型錄中選擇並建立Connect&Compose
進入後選擇Connect功能
Connect
填入API Name後點擊建立新的連線至資料庫
Connect
選擇欲連線之資料庫種類
此處以On-Premise的IBM DB2作示範
Connect
填寫資料庫名稱、帳號、密碼並選擇剛才建立的Secure Gateway連線
輸入完畢按下測試連線,成功後即選擇完成
Connect
Connect
建立連結後點擊右方新增資料模型
選擇欲建立模型的資料表及資料欄位
Connect
Connect
建立完成後即可查看API的URL以及建立的API資源範例
並可分享至API Management作管理或分享至Bluemix供其他組織使用
回到Bluemix型錄中選擇並建立Connect&Compose
進入後選擇Compose功能
Compose
Compose
填入API Name後點擊建立新的編寫環境
Compose
建立完成後可看到API的URL跟API Key
Compose
於頁面下方點擊EDIT以編輯API
Compose
點擊EDIT即可開始編寫API
Compose
編寫API使用Node-RED環境編寫
可於左方看到與Node-RED類似的Node
與資料庫及其他API服務
此處將建立一個預測台灣明天天氣的API
Compose
輸入API路徑及設定台灣經緯度資訊
Compose
點選以下連結開啟forecast.io網站註冊並於下方取得API Key
https://developer.forecast.io
Compose
於forecast.io的Node中填入API Key建立服務連結後
點選右上角Save按鈕儲存
Compose
儲存後即可結束編輯回到API頁面下方
點擊剛才建立的API路徑並點選Try it out!測試
並可分享至API Management作管理或分享至Bluemix供其他組織使用
Compose
也可利用Postman等軟體測試完成的API
Bluemix Connect & Compose

More Related Content

What's hot

在Sae上开发高性能微博应用key2
在Sae上开发高性能微博应用key2在Sae上开发高性能微博应用key2
在Sae上开发高性能微博应用key2ITband
 
在Sae上开发高性能微博应用
在Sae上开发高性能微博应用在Sae上开发高性能微博应用
在Sae上开发高性能微博应用easychen
 
用 Azure 快速部署與開發 LINE bot
用 Azure 快速部署與開發 LINE bot用 Azure 快速部署與開發 LINE bot
用 Azure 快速部署與開發 LINE botKo Ko
 
Bot Framework 和它的快樂夥伴Composer
Bot Framework 和它的快樂夥伴ComposerBot Framework 和它的快樂夥伴Composer
Bot Framework 和它的快樂夥伴ComposerKo Ko
 
Introduction to MLOps in Azure Machine Learning with Live Demo
Introduction to MLOps in Azure Machine Learning with Live DemoIntroduction to MLOps in Azure Machine Learning with Live Demo
Introduction to MLOps in Azure Machine Learning with Live DemoKo Ko
 
簡介Azure在Chatbot開發上的應用
簡介Azure在Chatbot開發上的應用簡介Azure在Chatbot開發上的應用
簡介Azure在Chatbot開發上的應用Ko Ko
 
Azure Machine Learning 重頭學
Azure Machine Learning 重頭學Azure Machine Learning 重頭學
Azure Machine Learning 重頭學Ko Ko
 

What's hot (7)

在Sae上开发高性能微博应用key2
在Sae上开发高性能微博应用key2在Sae上开发高性能微博应用key2
在Sae上开发高性能微博应用key2
 
在Sae上开发高性能微博应用
在Sae上开发高性能微博应用在Sae上开发高性能微博应用
在Sae上开发高性能微博应用
 
用 Azure 快速部署與開發 LINE bot
用 Azure 快速部署與開發 LINE bot用 Azure 快速部署與開發 LINE bot
用 Azure 快速部署與開發 LINE bot
 
Bot Framework 和它的快樂夥伴Composer
Bot Framework 和它的快樂夥伴ComposerBot Framework 和它的快樂夥伴Composer
Bot Framework 和它的快樂夥伴Composer
 
Introduction to MLOps in Azure Machine Learning with Live Demo
Introduction to MLOps in Azure Machine Learning with Live DemoIntroduction to MLOps in Azure Machine Learning with Live Demo
Introduction to MLOps in Azure Machine Learning with Live Demo
 
簡介Azure在Chatbot開發上的應用
簡介Azure在Chatbot開發上的應用簡介Azure在Chatbot開發上的應用
簡介Azure在Chatbot開發上的應用
 
Azure Machine Learning 重頭學
Azure Machine Learning 重頭學Azure Machine Learning 重頭學
Azure Machine Learning 重頭學
 

Viewers also liked

How to build your own robot with ibm bluemix&watson
How to build your own robot with ibm bluemix&watsonHow to build your own robot with ibm bluemix&watson
How to build your own robot with ibm bluemix&watson湯米吳 Tommy Wu
 
Managing & Processing Big Data for Cancer Genomics, an insight of Bioinformatics
Managing & Processing Big Data for Cancer Genomics, an insight of BioinformaticsManaging & Processing Big Data for Cancer Genomics, an insight of Bioinformatics
Managing & Processing Big Data for Cancer Genomics, an insight of BioinformaticsRaul Chong
 
0812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part2
0812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part20812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part2
0812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part2Raul Chong
 
0430 toronto smac_meetup_worklight_intro_final
0430 toronto smac_meetup_worklight_intro_final0430 toronto smac_meetup_worklight_intro_final
0430 toronto smac_meetup_worklight_intro_finalRaul Chong
 
How to create your Smart Toy with bluemix & 7688 Duo board
How to create your Smart Toy with bluemix & 7688 Duo boardHow to create your Smart Toy with bluemix & 7688 Duo board
How to create your Smart Toy with bluemix & 7688 Duo board湯米吳 Tommy Wu
 
Bluemix Secure Gateway and DataWorks - Watson Analytics
Bluemix Secure Gateway and DataWorks - Watson AnalyticsBluemix Secure Gateway and DataWorks - Watson Analytics
Bluemix Secure Gateway and DataWorks - Watson AnalyticsChang-Yen Huang
 
Build Scalable Internet of Things Apps using Cloud Foundry, Bluemix & Cloudant
Build Scalable Internet of Things Apps using Cloud Foundry, Bluemix & CloudantBuild Scalable Internet of Things Apps using Cloud Foundry, Bluemix & Cloudant
Build Scalable Internet of Things Apps using Cloud Foundry, Bluemix & CloudantIBM
 
0626 2014 01_toronto-smac meetup_io_t
0626 2014 01_toronto-smac meetup_io_t0626 2014 01_toronto-smac meetup_io_t
0626 2014 01_toronto-smac meetup_io_tRaul Chong
 
運用 Ibm watson技術快速打造智慧應用系統
運用 Ibm watson技術快速打造智慧應用系統運用 Ibm watson技術快速打造智慧應用系統
運用 Ibm watson技術快速打造智慧應用系統湯米吳 Tommy Wu
 
Bluemix 雲端機器人 超級鋼蛋 watson
Bluemix 雲端機器人 超級鋼蛋 watsonBluemix 雲端機器人 超級鋼蛋 watson
Bluemix 雲端機器人 超級鋼蛋 watson彥丞 龔
 
SMAC projects - The best summer internship experience I ever had!
SMAC projects - The best summer internship experience I ever had!SMAC projects - The best summer internship experience I ever had!
SMAC projects - The best summer internship experience I ever had!Raul Chong
 
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...Raul Chong
 
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Adun Nanthakaew
 

Viewers also liked (13)

How to build your own robot with ibm bluemix&watson
How to build your own robot with ibm bluemix&watsonHow to build your own robot with ibm bluemix&watson
How to build your own robot with ibm bluemix&watson
 
Managing & Processing Big Data for Cancer Genomics, an insight of Bioinformatics
Managing & Processing Big Data for Cancer Genomics, an insight of BioinformaticsManaging & Processing Big Data for Cancer Genomics, an insight of Bioinformatics
Managing & Processing Big Data for Cancer Genomics, an insight of Bioinformatics
 
0812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part2
0812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part20812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part2
0812 2014 01_toronto-smac meetup_i_os_cloudant_worklight_part2
 
0430 toronto smac_meetup_worklight_intro_final
0430 toronto smac_meetup_worklight_intro_final0430 toronto smac_meetup_worklight_intro_final
0430 toronto smac_meetup_worklight_intro_final
 
How to create your Smart Toy with bluemix & 7688 Duo board
How to create your Smart Toy with bluemix & 7688 Duo boardHow to create your Smart Toy with bluemix & 7688 Duo board
How to create your Smart Toy with bluemix & 7688 Duo board
 
Bluemix Secure Gateway and DataWorks - Watson Analytics
Bluemix Secure Gateway and DataWorks - Watson AnalyticsBluemix Secure Gateway and DataWorks - Watson Analytics
Bluemix Secure Gateway and DataWorks - Watson Analytics
 
Build Scalable Internet of Things Apps using Cloud Foundry, Bluemix & Cloudant
Build Scalable Internet of Things Apps using Cloud Foundry, Bluemix & CloudantBuild Scalable Internet of Things Apps using Cloud Foundry, Bluemix & Cloudant
Build Scalable Internet of Things Apps using Cloud Foundry, Bluemix & Cloudant
 
0626 2014 01_toronto-smac meetup_io_t
0626 2014 01_toronto-smac meetup_io_t0626 2014 01_toronto-smac meetup_io_t
0626 2014 01_toronto-smac meetup_io_t
 
運用 Ibm watson技術快速打造智慧應用系統
運用 Ibm watson技術快速打造智慧應用系統運用 Ibm watson技術快速打造智慧應用系統
運用 Ibm watson技術快速打造智慧應用系統
 
Bluemix 雲端機器人 超級鋼蛋 watson
Bluemix 雲端機器人 超級鋼蛋 watsonBluemix 雲端機器人 超級鋼蛋 watson
Bluemix 雲端機器人 超級鋼蛋 watson
 
SMAC projects - The best summer internship experience I ever had!
SMAC projects - The best summer internship experience I ever had!SMAC projects - The best summer internship experience I ever had!
SMAC projects - The best summer internship experience I ever had!
 
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...
Rapidly developing IoT (Internet of Things) applications - Part 2: Arduino, B...
 
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
 

Similar to Bluemix Connect & Compose

From docker hub to bluemix catalog
From docker hub to bluemix catalogFrom docker hub to bluemix catalog
From docker hub to bluemix catalogJoseph Chang
 
容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中Andrew Wu
 
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4twMVC
 
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)twMVC
 
Create to blumix docker container with rest api
Create to blumix docker container with rest apiCreate to blumix docker container with rest api
Create to blumix docker container with rest apiJoseph Chang
 
ASP.Net MVC2 简介
ASP.Net MVC2 简介ASP.Net MVC2 简介
ASP.Net MVC2 简介Allen Lsy
 
ASP.NET Core 2.1設計新思維與新發展
ASP.NET  Core 2.1設計新思維與新發展ASP.NET  Core 2.1設計新思維與新發展
ASP.NET Core 2.1設計新思維與新發展江華 奚
 
鼎鈞數位行銷App營運實務全攻略
鼎鈞數位行銷App營運實務全攻略鼎鈞數位行銷App營運實務全攻略
鼎鈞數位行銷App營運實務全攻略淳甫 鄭
 
MiCloud服務提供者訓練
MiCloud服務提供者訓練MiCloud服務提供者訓練
MiCloud服務提供者訓練Simon Su
 
Lab01 cloud project
Lab01 cloud projectLab01 cloud project
Lab01 cloud projectJeff Chu
 
Accel_Series_2023Autumn_Zh.pptx
Accel_Series_2023Autumn_Zh.pptxAccel_Series_2023Autumn_Zh.pptx
Accel_Series_2023Autumn_Zh.pptxNTTDATA INTRAMART
 
Azure Functions
Azure FunctionsAzure Functions
Azure FunctionsDino Wang
 
今日如何建立一个安全的私有云
今日如何建立一个安全的私有云今日如何建立一个安全的私有云
今日如何建立一个安全的私有云ITband
 
Service Integration Workshop
Service Integration WorkshopService Integration Workshop
Service Integration WorkshopRyan Chung
 
Asp.net mvc網站的從無到有
Asp.net mvc網站的從無到有Asp.net mvc網站的從無到有
Asp.net mvc網站的從無到有Wade Huang
 
Ce07ncs002006000056
Ce07ncs002006000056Ce07ncs002006000056
Ce07ncs002006000056jbcinvest
 
Rancher: 建立你的牧場艦隊
Rancher: 建立你的牧場艦隊Rancher: 建立你的牧場艦隊
Rancher: 建立你的牧場艦隊Miles Chou
 
Adobe Air的应用与前景(孙颖)
Adobe Air的应用与前景(孙颖)Adobe Air的应用与前景(孙颖)
Adobe Air的应用与前景(孙颖)mimi qiao
 
從Google API到Google Analytics 2016寒假宅學營
從Google API到Google Analytics  2016寒假宅學營從Google API到Google Analytics  2016寒假宅學營
從Google API到Google Analytics 2016寒假宅學營舜博 許
 
twMVC#23 | 快速上手 Azure Functions
twMVC#23 | 快速上手 Azure FunctionstwMVC#23 | 快速上手 Azure Functions
twMVC#23 | 快速上手 Azure FunctionstwMVC
 

Similar to Bluemix Connect & Compose (20)

From docker hub to bluemix catalog
From docker hub to bluemix catalogFrom docker hub to bluemix catalog
From docker hub to bluemix catalog
 
容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中容器驅動開發 - .NET Conf 2017 @ 台中
容器驅動開發 - .NET Conf 2017 @ 台中
 
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
ASP.NET MVC 4 新功能介紹(快速上手) -twMVC#4
 
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
twMVC#04 | ASP.NET MVC 4 新功能介紹(快速上手)
 
Create to blumix docker container with rest api
Create to blumix docker container with rest apiCreate to blumix docker container with rest api
Create to blumix docker container with rest api
 
ASP.Net MVC2 简介
ASP.Net MVC2 简介ASP.Net MVC2 简介
ASP.Net MVC2 简介
 
ASP.NET Core 2.1設計新思維與新發展
ASP.NET  Core 2.1設計新思維與新發展ASP.NET  Core 2.1設計新思維與新發展
ASP.NET Core 2.1設計新思維與新發展
 
鼎鈞數位行銷App營運實務全攻略
鼎鈞數位行銷App營運實務全攻略鼎鈞數位行銷App營運實務全攻略
鼎鈞數位行銷App營運實務全攻略
 
MiCloud服務提供者訓練
MiCloud服務提供者訓練MiCloud服務提供者訓練
MiCloud服務提供者訓練
 
Lab01 cloud project
Lab01 cloud projectLab01 cloud project
Lab01 cloud project
 
Accel_Series_2023Autumn_Zh.pptx
Accel_Series_2023Autumn_Zh.pptxAccel_Series_2023Autumn_Zh.pptx
Accel_Series_2023Autumn_Zh.pptx
 
Azure Functions
Azure FunctionsAzure Functions
Azure Functions
 
今日如何建立一个安全的私有云
今日如何建立一个安全的私有云今日如何建立一个安全的私有云
今日如何建立一个安全的私有云
 
Service Integration Workshop
Service Integration WorkshopService Integration Workshop
Service Integration Workshop
 
Asp.net mvc網站的從無到有
Asp.net mvc網站的從無到有Asp.net mvc網站的從無到有
Asp.net mvc網站的從無到有
 
Ce07ncs002006000056
Ce07ncs002006000056Ce07ncs002006000056
Ce07ncs002006000056
 
Rancher: 建立你的牧場艦隊
Rancher: 建立你的牧場艦隊Rancher: 建立你的牧場艦隊
Rancher: 建立你的牧場艦隊
 
Adobe Air的应用与前景(孙颖)
Adobe Air的应用与前景(孙颖)Adobe Air的应用与前景(孙颖)
Adobe Air的应用与前景(孙颖)
 
從Google API到Google Analytics 2016寒假宅學營
從Google API到Google Analytics  2016寒假宅學營從Google API到Google Analytics  2016寒假宅學營
從Google API到Google Analytics 2016寒假宅學營
 
twMVC#23 | 快速上手 Azure Functions
twMVC#23 | 快速上手 Azure FunctionstwMVC#23 | 快速上手 Azure Functions
twMVC#23 | 快速上手 Azure Functions
 

Bluemix Connect & Compose