Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Sie können die Liste der Datensynchronisierungsvorgänge anzeigen, die für eine bestimmte Featureansicht ausgeführt wurden. Dies kann nützlich sein, wenn Sie prüfen möchten, ob die Datensynchronisierung erfolgreich aus der BigQuery-Datenquelle synchronisiert wird oder ob eine Datensynchronisierung für die Featureansicht ausgeführt wird.
Hinweise
Authentifizieren Sie sich bei Vertex AI, sofern nicht bereits geschehen.
Verwenden Sie die von der gcloud CLI bereitgestellten Anmeldedaten, um die REST API-Beispiele auf dieser Seite in einer lokalen Entwicklungsumgebung zu verwenden.
Install the Google Cloud CLI.
After installation,
initialize the Google Cloud CLI by running the following command:
Synchronisierungsvorgänge in einer Featureansicht auflisten
Im folgenden Beispiel wird eine Liste aller Synchronisierungsvorgänge angezeigt, die für eine Featureansicht ausgeführt wurden.
REST
Um die Liste der Datensynchronisierungsvorgänge in einer FeatureView-Instanz aufzurufen, senden Sie eine GET-Anfrage mithilfe der Methode featureViewSyncs.list.
Ersetzen Sie diese Werte in den folgenden Anfragedaten:
LOCATION_ID: Die Region, in der sich der Onlinespeicher befindet, z. B. us-central1.
PROJECT_ID ist die Projekt-ID.
FEATUREONLINESTORE_NAME: Der Name des Onlinespeichers, der die Featureansicht enthält.
FEATUREVIEW_NAME: Der Name der Featureansicht, für die Sie die Liste der Datensynchronisierungsvorgänge aufrufen möchten.
HTTP-Methode und URL:
GET https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME/featureViews/FEATUREVIEW_NAME/featureViewSyncs
Senden Sie die Anfrage mithilfe einer der folgenden Optionen:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-02 (UTC)."],[],[],null,["# List sync operations\n\nYou can view the list of data sync operations executed for a specific feature\nview. This can be useful if you want to verify whether the data sync is being\nsuccessfully synced from the BigQuery data source, or whether data\nsync is in progress for the feature view.\n\nBefore you begin\n----------------\n\n\nto\nVertex AI, unless you've done so already.\n\n\nTo use the REST API samples on this page in a local development environment, you use the\ncredentials you provide to the gcloud CLI.\n\n1. [Install](/sdk/docs/install) the Google Cloud CLI. After installation, [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command: \n\n```bash\ngcloud init\n```\n2. If you're using an external identity provider (IdP), you must first [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n\nFor more information, see\n[Authenticate for using REST](/docs/authentication/rest)\nin the Google Cloud authentication documentation.\n\nList sync operations in a feature view\n--------------------------------------\n\nUse the following sample to view a list of all sync operations executed for a\nfeature view. \n\n### REST\n\n\nTo view the list of data sync operations in a\n[`FeatureView`](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews#resource:-featureView) instance, send a `GET` request by using the\n[featureViewSyncs.list](/vertex-ai/docs/reference/rest/v1/projects.locations.featureOnlineStores.featureViews.featureViewSyncs/list)\nmethod.\n\n\nBefore using any of the request data,\nmake the following replacements:\n\n- \u003cvar translate=\"no\"\u003eLOCATION_ID\u003c/var\u003e: Region where the online store is located, such as `us-central1`.\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: Your project ID.\n- \u003cvar translate=\"no\"\u003eFEATUREONLINESTORE_NAME\u003c/var\u003e: The name of the online store containing the feature view.\n- \u003cvar translate=\"no\"\u003eFEATUREVIEW_NAME\u003c/var\u003e: The name of the feature view for which you want to view the list of data sync operations.\n\n\nHTTP method and URL:\n\n```\nGET https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME/featureViews/FEATUREVIEW_NAME/featureViewSyncs\n```\n\nTo send your request, choose one of these options: \n\n#### curl\n\n| **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](/sdk/gcloud/reference/init) or [`gcloud auth login`](/sdk/gcloud/reference/auth/login) , or by using [Cloud Shell](/shell/docs), which automatically logs you into the `gcloud` CLI . You can check the currently active account by running [`gcloud auth list`](/sdk/gcloud/reference/auth/list).\n\n\nExecute the following command:\n\n```\ncurl -X GET \\\n -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n \"https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME/featureViews/FEATUREVIEW_NAME/featureViewSyncs\"\n```\n\n#### PowerShell\n\n| **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](/sdk/gcloud/reference/init) or [`gcloud auth login`](/sdk/gcloud/reference/auth/login) . You can check the currently active account by running [`gcloud auth list`](/sdk/gcloud/reference/auth/list).\n\n\nExecute the following command:\n\n```\n$cred = gcloud auth print-access-token\n$headers = @{ \"Authorization\" = \"Bearer $cred\" }\n\nInvoke-WebRequest `\n -Method GET `\n -Headers $headers `\n -Uri \"https://LOCATION_ID-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME/featureViews/FEATUREVIEW_NAME/featureViewSyncs\" | Select-Object -Expand Content\n```\n\nYou should receive a JSON response similar to the following:\n\n```\n{\n \"featureViewSyncs\": [\n {\n \"name\": \"PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME/featureViews/FEATUREVIEW_NAME/featureViewSyncs/OPERATION_ID_1\",\n \"createTime\": \"2023-09-11T15:33:24.906716Z\",\n \"dataTransfer\": {\n \"endTime\": \"2023-09-11T15:33:43.615598Z\"\n },\n \"finalStatus\": {\n \"code\": 13\n },\n \"runTime\": {\n \"endTime\": \"2023-09-11T15:33:43.615598Z\"\n }\n },\n {\n \"name\": \"PROJECT_ID/locations/LOCATION_ID/featureOnlineStores/FEATUREONLINESTORE_NAME/featureViews/FEATUREVIEW_NAME/featureViewSyncs/OPERATION_ID_2\",\n \"createTime\": \"2023-09-06T23:48:00.670844Z\",\n \"dataTransfer\": {\n \"endTime\": \"2023-09-06T23:48:19.086848Z\"\n },\n \"finalStatus\": {\n \"code\": 13\n },\n \"runTime\": {\n \"endTime\": \"2023-09-06T23:48:19.086848Z\"\n }\n }\n ]\n}\n```\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- Learn how to [manually start a data sync](/vertex-ai/docs/featurestore/latest/sync-data).\n\n- Learn how to [update a feature view](/vertex-ai/docs/featurestore/latest/update-featureview)."]]