Oracle API Platform Cloud ServiceでのバルクAPIの作成およびデプロイのワークフローについて学習
REST APIは、開発への多大な投資を表し、数百万または数千のAPIがある場合、それらを一度に1つずつ公開、監視、制御およびリタイアするのは時間のかかる作業です。Oracle API Platform Cloud Service REST機能を使用して、APIをプラットフォームにロードするプロセスを自動化できます。
Oracle API Platform Cloud Serviceでは、複数のアプリケーション・プログラミング・インタフェース(API)のライフサイクルを一度に登録および管理できます。Oracle API Platform Cloud Serviceでは、APIの公開、監視およびリタイア、APIアクセスの制御と管理、リソース消費およびエラー率の追跡、およびそれらのAPIのコンシューマの管理を行うことができます。
If you have a significant number of back-end services that need to be published as a simple API, use the Oracle API Platform Cloud Service REST APIs to create utility scripts and automate processes, such as creating and deploying APIs in the platform.
アーキテクチャ
You can develop a Python utility script that uploads and deploys APIs to Oracle API Platform Cloud Service by using the Management Service REST API.

図upload-utility-bulk-api-platform-cloud-service.pngの説明
upload-utility-bulk-api-platform-cloud-service.zip
次のワークフローを使用して、Pythonユーティリティを開発します:
- Create a Python configuration helper file (
.py
) where you configure the input of the utility program, define the REST endpoints, the connection details to the Oracle API Platform Cloud Service server, and the JSON template variables that are passed to the upload utility program. - APIの情報を含むCSVファイルを作成します。各行は1つのAPIを表します。各行の情報を使用して、リクエストごとにJSON表記でJavaScriptオブジェクトを作成できます。
- ユーザーに資格証明を問い合せて複数のAPIを1つずつAPI Platform Cloud Serviceにデプロイする主要なPythonユーティリティ・スクリプトを開発します。
- メインのPythonユーティリティ
.py
スクリプトを実行して、プロセス全体をトリガーします。
必要なサービス、コンポーネントおよびロールについて
APIを作成してOracle API Platform Cloud Serviceにデプロイするには、次のサービスおよびインストールされているツールにアクセスする必要があります。
-
Oracle API Platform Cloud Service
- API Platform Cloud Serviceを使用するには、Oracle Identity Cloud Serviceのサブスクリプションが必要です。
- ユーティリティーを開発および実行するためにインストールされている Python 2.7または 3.x。
You need to have the following role to use the REST APIs from Oracle API Platform Cloud Service.
サービス名: ロール | 必要... |
---|---|
Oracle API Platform Cloud Service: API Manager role or membership in a group that has the API Manager role | Use the REST API for the Management Service in Oracle API Platform Cloud Service |
必要なクラウド・サービスを入手するには、Oracleソリューション用のOracle Cloudサービスを取得する方法を確認するを参照してください。