מוצג המסמך של Apigee Edge.
עוברים אל
מסמכי תיעוד של Apigee X. מידע
מבוא
כחלק מההגדרה הראשונית של המונטיזציה בארגון, ה-Apigee Edge יריץ סקריפט שמסתנכרן עם אפשרות המונטיזציה של הארגון מפתחים, אפליקציות ומוצרים שיצרת באמצעות שירותי Edge API.
לאחר תקופה מסוימת (למשל כמה חודשים) ומדי פעם, היא מומלץ לסנכרן מחדש את הנתונים האלו עם מונטיזציה כדי להבטיח שהנתונים מסונכרנים. שלך יכול לסנכרן את הנתונים הבאים:
סנכרון הארגון באמצעות ה-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