您正在查看 Apigee Edge 文档。
前往 Apigee X 文档。信息
简介
在为贵组织初始设置创收功能时,Apigee Edge 配置团队会运行一个脚本,以便将贵组织以及您使用 Edge API 服务创建的所有开发者、应用和产品与创收功能同步。
建议您在过一段时间(例如几个月)后,以及之后定期将这些数据与创收数据重新同步,以确保数据保持同步。您可以同步以下内容:
使用 API 同步组织
如需同步贵组织,请向 /organizations/{org_name}/sync-organization
发出 GET 请求。同步组织时,您还可以通过将 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 同步商品
要同步商品,请向 /organizations/{org_name}/sync-products
发出 GET 请求。例如:
$ curl -X GET \ "https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-products" \ -u email:password
使用 API 同步开发者
要同步开发者,请向 /organizations/{org_name}/sync-developers
发出 GET 请求。例如:
$ curl -X GET \ "https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-developers" \ -u email:password
使用 API 同步应用
如需同步应用,请向 /organizations/{org_name}/sync-applications
发出 GET 请求。例如:
$ curl -X GET \ "https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-applications" \ -u email:password