<ph type="x-smartling-placeholder"></ph>
您正在查看 Apigee Edge 文档。
转到
Apigee X 文档。 信息
简介
作为贵组织的初始获利设置的一部分,Apigee Edge 配置团队运行脚本,与您的组织及任何 开发者、应用和产品。
经过一段时间(如几个月)后,此后会定期出现 建议您将数据与创收功能重新同步,以确保数据保持同步。您 可以同步以下内容:
。使用 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 同步开发者
要同步开发者,请向
/organizations/{org_name}/sync-developers
。例如:
$ curl -X GET \ "https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-developers" \ -u email:password
使用 API 同步应用
要同步应用,请向
/organizations/{org_name}/sync-applications
。例如:
$ curl -X GET \ "https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-applications" \ -u email:password