คุณกำลังดูเอกสารประกอบ Apigee Edge
ไปที่
เอกสารประกอบเกี่ยวกับ Apigee X. ข้อมูล
บทนำ
Apigee Edge เป็นส่วนหนึ่งของการตั้งค่าการสร้างรายได้เบื้องต้นสำหรับองค์กรของคุณ จะเรียกใช้สคริปต์ที่ซิงค์กับการสร้างรายได้ขององค์กรและ นักพัฒนาซอฟต์แวร์ แอปพลิเคชัน และผลิตภัณฑ์ที่คุณสร้างโดยใช้บริการ Edge API
หลังจากผ่านไประยะหนึ่ง (เช่น 2-3 เดือน) และเป็นระยะๆ หลังจากนั้น แนะนำให้ซิงค์ข้อมูลดังกล่าวกับการสร้างรายได้อีกครั้งเพื่อให้แน่ใจว่าข้อมูลซิงค์กัน คุณ สามารถซิงค์ข้อมูลดังต่อไปนี้
การซิงค์องค์กรโดยใช้ 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