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