Was this helpful?

Introduction

As part of its initial setup of monetization for your organization, the Apigee Edge configuration team runs a script that synchronizes with monetization your organization and any developers, applications, and products that you created using Edge API Services.

After a period of time (such as a few months) and periodically after that, it’s advisable to re-synchronize that data with monetization to ensure that the data is in sync. You can synchronize the following:

  • Your organization
  • Products
  • Developers
  • Applications

Toolbox

You use the monetization API to do the synchronization.

You synchronize your organization by issuing a GET request to the /organizations/{org_name}/sync-organization resource. You synchronize products by issuing a GET request to the /organizations/{org_name}/sync-products resource. You synchronize developers by issuing a GET request to the /organizations/{org_name}/sync-developers resource. You synchronize applications by issuing a GET request to the /organizations/{org_name}/sync-applications resource.

Synchronizing your organization

To synchronize your organization, issue a GET request to /organizations/{org_name}/sync-organization. When you synchronize your organization, you can also synchronize all products, developers, and applications in the organization by specifying childEntities=true as a query parameter and value.

For example, the following request synchronizes the organization and synchronizes all products, developers, and applications in the organization:

$ curl -H "Accept:application/json" -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-organization?childEntities=true" \
-u myname:mypass

The response should look something like this (only part of the response is shown):

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

Synchronizing products

To synchronize products, issue a GET request to /organizations/{org_name}/sync-products. For example:

$ curl -H "Accept:application/json" -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-products" \
-u myname:mypass

Synchronizing developers

To synchronize developers, issue a GET request to /organizations/{org_name}/sync-developers. For example:

$ curl -H "Accept:application/json" -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-developers" \
-u myname:mypass

Synchronizing applications

To synchronize applications, issue a GET request to /organizations/{org_name}/sync-applications. For example:

$ curl -H "Accept:application/json" -X GET \
"https://api.enterprise.apigee.com/v1/mint/organizations/{org_name}/sync-applications" \
-u myname:mypass

Get help

For help, see Apigee Customer Support.

コメントを追加

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.