Provision Flow — Data Source Creation
Why This Matters
Data source creation is the step that generates the SyncApp's credentials (username, password, legacy ID). These are the identifiers used throughout the SyncApp's lifetime. Understanding how this is automated — and how it calls sync-app-authentication — connects the provisioning flow to the authentication service.
What You'll Learn
- What 'create data source' means: generating a username, password, and legacy/adapter ID for the new SyncApp
- How the adapter ID (legacy ID) is the last number in the source username — used in settings configuration
- The createCloudSyncAppCredential function: inputs are PMS name, location ID, and SyncApp tag
- What the SyncApp Tag is: the initial binary version to spin up (the SyncApp then auto-updates to latest)
- How sync-app-support calls sync-app-authentication's Create method via an auth client
- ACL 203 permission requirement for creating a data source
Watch Video
Lesson Summary
The createCloudSyncAppCredential function automates the data source creation step. It takes the PMS name, location ID, and SyncApp tag as inputs. The SyncApp tag specifies the initial version — the SyncApp will update to the latest version on its first 14-hour check. Internally, it calls sync-app-authentication's Create method via an auth client. The result is a username (source username), password (source password), and legacy/adapter ID (the last number in the username) — all of which are used in the SyncApp's settings configuration. ACL 203 is required for this operation.