אתם צופים במסמכי התיעוד של Apigee Edge.
כדאי לעיין במסמכי התיעוד של Apigee X. מידע
מבוא
במסגרת ההגדרה הראשונית של המונטיזציה בארגון שלכם, צוות ההגדרה של Apigee Edge מריץ סקריפט שמסנכרן עם המונטיזציה את הארגון שלכם ואת כל המפתחים, האפליקציות והמוצרים שיצרתם באמצעות Edge API Services.
אחרי תקופה מסוימת (למשל כמה חודשים) וגם מדי פעם לאחר מכן, מומלץ לסנכרן מחדש את הנתונים עם תכונת המונטיזציה כדי לוודא שהנתונים מסונכרנים. אתם יכולים לסנכרן את הפריטים הבאים:
סנכרון הארגון באמצעות ה-API
כדי לסנכרן את הארגון, שולחים בקשת GET אל
/organizations/{org_name}/sync-organization. כשמסנכרנים את הארגון, אפשר גם לסנכרן את כל המוצרים, המפתחים והאפליקציות בארגון. כדי לעשות זאת, צריך לציין את הערך 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
כדי לסנכרן מוצרים, שולחים בקשת GET אל
/organizations/{org_name}/sync-products. לדוגמה:
$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-products" \
-u email:password
סנכרון מפתחים באמצעות ה-API
כדי לסנכרן מפתחים, שולחים בקשת GET אל
/organizations/{org_name}/sync-developers. לדוגמה:
$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-developers" \
-u email:password
סנכרון אפליקציות באמצעות ה-API
כדי לסנכרן אפליקציות, שולחים בקשת GET אל /organizations/{org_name}/sync-applications. לדוגמה:
$ curl -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-applications" \
-u email:password