כרגע מוצג התיעוד של 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