List all entity reconciliation jobs
Stay organized with collections
Save and categorize content based on your preferences.
Lists all entity reconciliation jobs.
Explore further
For detailed documentation that includes this code sample, see the following:
Code sample
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
[[["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"]],[],[[["\u003cp\u003eThis content details how to list all entity reconciliation jobs within the Enterprise Knowledge Graph using the Python API.\u003c/p\u003e\n"],["\u003cp\u003eThe provided code sample demonstrates how to authenticate and use the API to retrieve a list of entity reconciliation jobs, including job names, input tables, output datasets, and states.\u003c/p\u003e\n"],["\u003cp\u003eThe code requires setting up Application Default Credentials and specifying the project ID and graph location for execution.\u003c/p\u003e\n"],["\u003cp\u003eFurther information is available in the Enterprise Knowledge Graph API documentation and sample browser.\u003c/p\u003e\n"]]],[],null,["# List all entity reconciliation jobs\n\nLists all entity reconciliation jobs.\n\nExplore further\n---------------\n\n\nFor detailed documentation that includes this code sample, see the following:\n\n- [Manage entity reconciliation jobs with the API](/enterprise-knowledge-graph/docs/entity-reconciliation-api)\n\nCode sample\n-----------\n\n### Python\n\n\nFor more information, see the\n[Enterprise Knowledge Graph Python API\nreference documentation](/python/docs/reference/enterpriseknowledgegraph/latest).\n\n\nTo authenticate to Enterprise Knowledge Graph, set up Application Default Credentials.\nFor more information, see\n\n[Set up authentication for a local development environment](/docs/authentication/set-up-adc-local-dev-environment).\n\n\n from google.cloud import enterpriseknowledgegraph as ekg\n\n # TODO(developer): Uncomment these variables before running the sample.\n # project_id = 'YOUR_PROJECT_ID'\n # location = 'YOUR_GRAPH_LOCATION' # Values: 'global'\n\n\n def list_entity_reconciliation_jobs_sample(project_id: str, location: str) -\u003e None:\n # Create a client\n client = ekg.EnterpriseKnowledgeGraphServiceClient()\n\n # The full resource name of the location\n # e.g. projects/{project_id}/locations/{location}\n parent = client.common_location_path(project=project_id, location=location)\n\n # Initialize request argument(s)\n request = ekg.ListEntityReconciliationJobsRequest(parent=parent)\n\n # Make the request\n pager = client.list_entity_reconciliation_jobs(request=request)\n\n for response in pager:\n print(f\"Job: {response.name}\")\n print(\n f\"Input Table: {response.input_config.bigquery_input_configs[0].bigquery_table}\"\n )\n print(f\"Output Dataset: {response.output_config.bigquery_dataset}\")\n print(f\"State: {response.state.name}\\n\")\n\nWhat's next\n-----------\n\n\nTo search and filter code samples for other Google Cloud products, see the\n[Google Cloud sample browser](/docs/samples?product=enterpriseknowledgegraph)."]]