Apigee Edge データを収益化と同期させる

現在、Apigee Edge のドキュメントを表示しています。
Apigee X のドキュメントをご確認ください
情報

はじめに

組織の収益化に関する初期設定の一環として、Apigee Edge 構成チームは、組織の収益化や、Edge API Services を使用して作成したデベロッパー、アプリケーション、プロダクトと同期するスクリプトを実行します。

一定期間(数か月など)が経過した後、定期的に、そのデータを収益化サービスと再同期して、データの同期を確保することをおすすめします。以下を同期できます。

API を使用した組織の同期

組織を同期するには、/organizations/{org_name}/sync-organization に GET リクエストを発行します。組織を同期するときに、クエリ パラメータと値として childEntities=true を指定することで、組織内のすべてのサービス、デベロッパー、アプリケーションを同期することもできます。

たとえば、次のリクエストでは組織を同期し、組織内のすべてのサービス、デベロッパー、アプリケーションを同期します。

$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-organization?childEntities=true" \
-u email:password

レスポンスは次のようになります(レスポンスの一部のみが表示されます)。

Synchronization 4G organization with mint, started at, Mon Sep 09 17:48:22 UTC 2013
Child entities sync is, true

Synchronizing {org_name}
Organization found in mint, merging...
Saving  {org_name}
Saved 
Synchronization 4G products with mint, started at, Mon Sep 09 17:45:26 UTC 2013
Found 4 products.

Synchronizing location
Product found in mint, merging...
Saving  location
Saved location

Synchronizing search
Product found in mint, merging...
Saving  search
Saved search

Synchronizing messaging
Product found in mint, merging...
Saving  messaging
Saved messaging

Synchronizing payment
Product found in mint, merging...
Saving  payment
Saved payment
Synchronization job finished at, Mon Sep 09 17:45:26 UTC 2013
Synchronization 4G products with mint, started at, Mon Sep 09 17:33:20 UTC 2013
Found 11 developers.

Synchronizing dev51@myorg.com
Developer found in mint, merging...
Saving  dev51@myorg.com
Saved dev51@myorg.com

...
Synchronization job finished at, Mon Sep 09 17:33:31 UTC 2013
Synchronization 4G products with mint, started at, Mon Sep 09 17:15:32 UTC 2013
Found 6 applications.

Synchronizing dev-four-test-app
Application found in mint, merging...
Saving  dev-four-test-app
Saved dev-four-test-app

...
Synchronization job finished at, Mon Sep 09 17:15:34 UTC 2013

API を使用した商品の同期

商品を同期するには、/organizations/{org_name}/sync-products に GET リクエストを発行します。例:

$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-products" \
-u email:password

API を使用してデベロッパーを同期する

デベロッパーを同期するには、/organizations/{org_name}/sync-developers に GET リクエストを発行します。例:

$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-developers" \
-u email:password

API を使用したアプリケーションの同期

アプリケーションを同期するには、/organizations/{org_name}/sync-applications に GET リクエストを発行します。例:

$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-applications" \
-u email:password