將 Apigee Edge 資料與營利保持同步

您目前查看的是 Apigee Edge 說明文件。
前往 Apigee X 說明文件
info

簡介

在為貴機構進行初始營利設定時,Apigee Edge 設定團隊會執行指令碼,將貴機構與您使用 Edge API 服務建立的任何開發人員、應用程式和產品,同步至營利服務。

過一段時間 (例如幾個月) 後,建議定期重新將資料與營利功能同步,確保資料同步。你可以同步處理下列項目:

使用 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