将 Apigee Edge 数据与创收功能同步

您正在查看的是 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