Synchronizing glossary assets (Watson Knowledge Catalog)

After you import glossary assets and data classes, you must synchronize them so that they are displayed as governance artifacts in Cloud Pak for Data user interface.

Complete these steps:
  1. Run this command to get the authorization token:
    curl -k -X GET https://target-host-name/v1/preauth/validateAuth -H 'Content-Type: application/json' -H 'cache-control: no-cache' -H 'password: password' -H 'username: user1
  2. Run the following migrate command. Instead of <your-token> provide the token that you retrieved in the previous step.
    curl -d -k "https://target-host-name/v3/governance_artifact_types/all/migrate" -H "accept: application/json" -H "Authorization: Bearer <your-token>"
  3. To check the status of the synchronization, run the following command:
    curl -X GET "https://target-host-name/v3/governance_artifact_types/all/migrate/status " -H "accept: application/json" -H "Authorization: Bearer <your-token>" -k
    When the synchronization is finished, the following status is displayed:
    "Migration status": "Finished",
    "Started": "<start date>"
    "Ended": "<end date>"
    When the synchronization is still in progress, the phase name is displayed. The following phases are run during synchronization:
    "Migrate"
    "Reconcile"
    "Promote"
    "SendToGlobalSearch"
    "Cleanup"
  4. If the synchronization failed, after you fix all issues, you can resume it from the point when it failed. Run the following command:
    curl -d -k "https://target-host-name/v3/governance_artifact_types/all/migrate/resume " -H "accept: application/json" -H "Authorization: Bearer <your-token>"