In Apigee hybrid, the Synchronizer's primary job is to poll and download the runtime contracts
which are supplied by the management plane. Information communicated by contract includes API
proxies, API products, caches, and virtual hosts. Synchronizer by default stores environment
configuration data in the Cassandra database.
Synchronizer instances running in the runtime-plane are expected to poll the management
plane on a regular basis, download the contracts and make the same available to local runtime
instances.
One Synchronizer can support many Message Processors deployed in the same pod.
Enable Synchronizer access
You must grant the Synchronizer permission to pull down
Apigee artifacts, such as proxy bundles and resources from the management plane. You must call an
Apigee API to authorize the Synchronizer to pull artifacts down from the management plane to the
runtime plane.
Ensure that you have enabled the Apigee API as explained in the Google Cloud setup steps.
For details, see Enable APIs.
Locate the write-enabled Google Cloud service account key (a JSON file) that you
downloaded as part of Create service accounts and credentials. The service account has the Apigee Org Admin
role and is the one named "apigee-org-admin". If you did not previously create this service
account, you must do so before continuing.
Use the Apigee Org Admin service account key to generate an OAuth 2.0 access token.
This token is required to authenticate the
Apigee APIs.
gcloud
Use gcloud to obtain an
OAuth 2.0 access token, passing the service account credentials JSON file that you
downloaded using GOOGLE_APPLICATION_CREDENTIALS environment variable:
your_org_name: The name of the hybrid organization.
synchronizer-manager-service-account-name: The name of a service account
with the Apigee Synchronizer Manager role. The name is formed like an
email address. For example:
my-synchronizer-manager-service_account@my_project_id.iam.gserviceaccount.com
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[[["\u003cp\u003eThe Synchronizer in Apigee hybrid polls and downloads runtime contracts from the management plane, including API proxies, products, caches, and virtual hosts.\u003c/p\u003e\n"],["\u003cp\u003eSynchronizer instances regularly poll the management plane to keep runtime instances updated with the latest contracts.\u003c/p\u003e\n"],["\u003cp\u003eThe Synchronizer requires specific permissions to pull artifacts from the management plane to the runtime plane, which is granted via the \u003ccode\u003esetSyncAuthorization\u003c/code\u003e API.\u003c/p\u003e\n"],["\u003cp\u003eTo authorize the Synchronizer, you need an OAuth 2.0 access token generated using the Apigee Org Admin service account key.\u003c/p\u003e\n"],["\u003cp\u003eYou must assign the \u003cstrong\u003eApigee Synchronizer Manager\u003c/strong\u003e role to the service account used in the \u003ccode\u003esetSyncAuthorization\u003c/code\u003e API to grant Synchronizer permissions.\u003c/p\u003e\n"]]],[],null,["# Configure the Synchronizer\n\n| You are currently viewing version 1.9 of the Apigee hybrid documentation. **This version is end of life.** You should upgrade to a newer version. For more information, see [Supported versions](/apigee/docs/hybrid/supported-platforms#supported-versions).\n\nThis section describes the Synchronizer.\n\nSynchronizer overview\n---------------------\n\nIn Apigee hybrid, the Synchronizer's primary job is to poll and download the runtime contracts\nwhich are supplied by the management plane. Information communicated by contract includes API\nproxies, API products, caches, and virtual hosts. Synchronizer by default stores environment\nconfiguration data in the Cassandra database.\n\nSynchronizer instances running in the runtime-plane are expected to poll the management\nplane on a regular basis, download the contracts and make the same available to local runtime\ninstances.\n\nOne Synchronizer can support many Message Processors deployed in the same pod.\n\nEnable Synchronizer access\n--------------------------\n\nYou must grant the [Synchronizer](/apigee/docs/hybrid/v1.9/what-is-hybrid#synchronizer) permission to pull down\nApigee artifacts, such as proxy bundles and resources from the management plane. You must call an\nApigee API to authorize the Synchronizer to pull artifacts down from the management plane to the\nruntime plane.\n\n1. Ensure that you have enabled the Apigee API as explained in the Google Cloud setup steps. For details, see [Enable APIs](./precog-enableapi).\n2. Locate the **write-enabled Google Cloud service account key** (a JSON file) that you downloaded as part of [Create service accounts and credentials](./install-service-accounts). The service account has the **Apigee Org Admin** role and is the one named \"apigee-org-admin\". If you did not previously create this service account, you must do so before continuing.\n3. Use the Apigee Org Admin service account key to generate an OAuth 2.0 access token. This token is required to authenticate the [Apigee APIs](/apigee/docs/reference/apis/apigee/rest). \n\n ### gcloud\n\n Use [gcloud](https://cloud.google.com/sdk/docs/) to obtain an\n OAuth 2.0 access token, passing the service account credentials JSON file that you\n downloaded using `GOOGLE_APPLICATION_CREDENTIALS` environment variable: \n\n export GOOGLE_APPLICATION_CREDENTIALS=\u003cvar translate=\"no\"\u003eyour_sa_credentials_file\u003c/var\u003e.json\n gcloud auth application-default print-access-token\n\n An OAuth2.0 token is returned.\n\n For more information, see\n [gcloud beta auth application-default print-access-token](https://cloud.google.com/sdk/gcloud/reference/beta/auth/application-default/print-access-token).\n4. Copy the OAuth 2.0 token returned and store it in a variable, such as `TOKEN`. For example: \n\n ```\n export TOKEN=ya29....Ts13inj3LrqMJlztwygtM\n ```\n 5. Call the [setSyncAuthorization API](/apigee/docs/reference/apis/apigee/rest/v1/organizations/setSyncAuthorization) to enable the required permissions for Synchronizer: **IMPORTANT:** Be sure that the service account name that you add to this API has the role **Apigee Synchronizer Manager** . See also [Create service accounts and credentials](./install-service-accounts). \n\n ```\n curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type:application/json\" \\\n \"https://apigee.googleapis.com/v1/organizations/your_org_name:setSyncAuthorization\" \\\n -d '{\"identities\":[\"serviceAccount:synchronizer-manager-service-account-name\"]}'\n ```\n\n Where:\n - `your_org_name`: The name of the hybrid organization.\n - `synchronizer-manager-service-account-name`: The name of a service account with the **Apigee Synchronizer Manager** role. The name is formed like an email address. For example: `my-synchronizer-manager-service_account@my_project_id.iam.gserviceaccount.com`\n\n Example: \n\n ```\n curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type:application/json\" \\\n \"https://apigee.googleapis.com/v1/organizations/my_org:setSyncAuthorization\" \\\n -d '{\"identities\":[\"serviceAccount:my-synchronizer-manager-service_account@my_project_id.iam.gserviceaccount.com\"]}'\n ```\n\n For more information on this API, see [setSyncAuthorization API](/apigee/docs/reference/apis/apigee/rest/v1/organizations/setSyncAuthorization).\n6. To verify that the service account was set, call the following API to get a list of service accounts: \n\n ```\n curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n -H \"Content-Type:application/json\" \\\n \"https://apigee.googleapis.com/v1/organizations/your_org_name:getSyncAuthorization\" \\\n -d ''\n ```\n\n The output looks similar to the following: \n\n ```transact-sql\n {\n \"identities\":[\n \"serviceAccount:my-synchronizer-manager-service_account@my_project_id.iam.gserviceaccount.com\"\n ],\n \"etag\":\"BwWJgyS8I4w=\"\n }\n ```"]]