---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/migratableResources:search"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/migratableResources:search"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/migratableResources:search

`POST /v1/projects/{projectsId}/locations/{locationsId}/migratableResources:search`

## Request

- Base URL: `https://aiplatform.googleapis.com`
- URL: `https://aiplatform.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/migratableResources:search`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Request body

- GoogleCloudAiplatformV1SearchMigratableResourcesRequest: Request message for MigrationService.SearchMigratableResources.
  - `filter` string: A filter for your search. You can use the following types of filters: * Resource type filters. The following strings filter for a specific type of MigratableResource: * `ml_engine_model_version:*` * `automl_model:*` * `automl_dataset:*` * `data_labeling_dataset:*` * "Migrated or not" filters. The following strings filter for resources that either have or have not already been migrated: * `last_migrate_time:*` filters for migrated resources. * `NOT last_migrate_time:*` filters for not yet migrated resources.
  - `pageSize` integer: The standard page size. The default and maximum value is 100.
  - `pageToken` string: The standard page token.

## Response `200`

Successful response

- GoogleCloudAiplatformV1SearchMigratableResourcesResponse: Response message for MigrationService.SearchMigratableResources.
  - `migratableResources` GoogleCloudAiplatformV1MigratableResource[]: All migratable resources that can be migrated to the location specified in the request.
    - `automlDataset` GoogleCloudAiplatformV1MigratableResourceAutomlDataset: Represents one Dataset in automl.googleapis.com.
      - `dataset` string: Full resource name of automl Dataset. Format: `projects/{project}/locations/{location}/datasets/{dataset}`.
      - `datasetDisplayName` string: The Dataset's display name in automl.googleapis.com.
    - `automlModel` GoogleCloudAiplatformV1MigratableResourceAutomlModel: Represents one Model in automl.googleapis.com.
      - `model` string: Full resource name of automl Model. Format: `projects/{project}/locations/{location}/models/{model}`.
      - `modelDisplayName` string: The Model's display name in automl.googleapis.com.
    - `dataLabelingDataset` GoogleCloudAiplatformV1MigratableResourceDataLabelingDataset: Represents one Dataset in datalabeling.googleapis.com.
      - `dataLabelingAnnotatedDatasets` GoogleCloudAiplatformV1MigratableResourceDataLabelingDatasetDataLabelingAnnotatedDataset[]: The migratable AnnotatedDataset in datalabeling.googleapis.com belongs to the data labeling Dataset.
        - `annotatedDataset` string: Full resource name of data labeling AnnotatedDataset. Format: `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`.
        - `annotatedDatasetDisplayName` string: The AnnotatedDataset's display name in datalabeling.googleapis.com.
      - `dataset` string: Full resource name of data labeling Dataset. Format: `projects/{project}/datasets/{dataset}`.
      - `datasetDisplayName` string: The Dataset's display name in datalabeling.googleapis.com.
    - `lastMigrateTime` string, google-datetime: Output only. Timestamp when the last migration attempt on this MigratableResource started. Will not be set if there's no migration attempt on this MigratableResource.
    - `lastUpdateTime` string, google-datetime: Output only. Timestamp when this MigratableResource was last updated.
    - `mlEngineModelVersion` GoogleCloudAiplatformV1MigratableResourceMlEngineModelVersion: Represents one model Version in ml.googleapis.com.
      - `endpoint` string: The ml.googleapis.com endpoint that this model Version currently lives in. Example values: * ml.googleapis.com * us-centrall-ml.googleapis.com * europe-west4-ml.googleapis.com * asia-east1-ml.googleapis.com
      - `version` string: Full resource name of ml engine model Version. Format: `projects/{project}/models/{model}/versions/{version}`.
  - `nextPageToken` string: The standard next-page token. The migratable_resources may not fill page_size in SearchMigratableResourcesRequest even when there are subsequent pages.

---

[API](https://skmtc.dev/google/apis/aiplatform.md) - [All operations](https://skmtc.dev/google/apis/aiplatform/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/aiplatform/revisions/3aca3b348f0c?raw)
