Method: projects.locations.migratableResources.batchMigrate

Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.

HTTP request

POST https://{service-endpoint}/v1beta1/{parent}/migratableResources:batchMigrate

Where {service-endpoint} is one of the supported service endpoints.

Path parameters

Parameters
parent

string

Required. The location of the migrated resource will live in. Format: projects/{project}/locations/{location}

Request body

The request body contains data with the following structure:

JSON representation
{
  "migrateResourceRequests": [
    {
      object (MigrateResourceRequest)
    }
  ]
}
Fields
migrateResourceRequests[]

object (MigrateResourceRequest)

Required. The request messages specifying the resources to migrate. They must be in the same location as the destination. Up to 50 resources can be migrated in one batch.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • aiplatform.migratableResources.migrate

For more information, see the IAM documentation.

MigrateResourceRequest

Config of migrating one resource from automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com to Vertex AI.

JSON representation
{

  // Union field request can be only one of the following:
  "migrateMlEngineModelVersionConfig": {
    object (MigrateMlEngineModelVersionConfig)
  },
  "migrateAutomlModelConfig": {
    object (MigrateAutomlModelConfig)
  },
  "migrateAutomlDatasetConfig": {
    object (MigrateAutomlDatasetConfig)
  },
  "migrateDataLabelingDatasetConfig": {
    object (MigrateDataLabelingDatasetConfig)
  }
  // End of list of possible types for union field request.
}
Fields

Union field request.

request can be only one of the following:

migrateMlEngineModelVersionConfig

object (MigrateMlEngineModelVersionConfig)

Config for migrating Version in ml.googleapis.com to Vertex AI's Model.

migrateAutomlModelConfig

object (MigrateAutomlModelConfig)

Config for migrating Model in automl.googleapis.com to Vertex AI's Model.

migrateAutomlDatasetConfig

object (MigrateAutomlDatasetConfig)

Config for migrating Dataset in automl.googleapis.com to Vertex AI's Dataset.

migrateDataLabelingDatasetConfig

object (MigrateDataLabelingDatasetConfig)

Config for migrating Dataset in datalabeling.googleapis.com to Vertex AI's Dataset.

MigrateMlEngineModelVersionConfig

Config for migrating version in ml.googleapis.com to Vertex AI's Model.

JSON representation
{
  "endpoint": string,
  "modelVersion": string,
  "modelDisplayName": string
}
Fields
endpoint

string

Required. The ml.googleapis.com endpoint that this model version should be migrated from. Example values:

  • ml.googleapis.com

  • us-centrall-ml.googleapis.com

  • europe-west4-ml.googleapis.com

  • asia-east1-ml.googleapis.com

modelVersion

string

Required. Full resource name of ml engine model version. Format: projects/{project}/models/{model}/versions/{version}.

modelDisplayName

string

Required. Display name of the model in Vertex AI. System will pick a display name if unspecified.

MigrateAutomlModelConfig

Config for migrating Model in automl.googleapis.com to Vertex AI's Model.

JSON representation
{
  "model": string,
  "modelDisplayName": string
}
Fields
model

string

Required. Full resource name of automl Model. Format: projects/{project}/locations/{location}/models/{model}.

modelDisplayName

string

Optional. Display name of the model in Vertex AI. System will pick a display name if unspecified.

MigrateAutomlDatasetConfig

Config for migrating Dataset in automl.googleapis.com to Vertex AI's Dataset.

JSON representation
{
  "dataset": string,
  "datasetDisplayName": string
}
Fields
dataset

string

Required. Full resource name of automl Dataset. Format: projects/{project}/locations/{location}/datasets/{dataset}.

datasetDisplayName

string

Required. Display name of the Dataset in Vertex AI. System will pick a display name if unspecified.

MigrateDataLabelingDatasetConfig

Config for migrating Dataset in datalabeling.googleapis.com to AI Platform's Dataset.

JSON representation
{
  "dataset": string,
  "datasetDisplayName": string,
  "migrateDataLabelingAnnotatedDatasetConfigs": [
    {
      object (MigrateDataLabelingAnnotatedDatasetConfig)
    }
  ]
}
Fields
dataset

string

Required. Full resource name of data labeling Dataset. Format: projects/{project}/datasets/{dataset}.

datasetDisplayName

string

Optional. Display name of the Dataset in Vertex AI. System will pick a display name if unspecified.

migrateDataLabelingAnnotatedDatasetConfigs[]

object (MigrateDataLabelingAnnotatedDatasetConfig)

Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to Vertex AI's SavedQuery. The specified AnnotatedDatasets have to belong to the datalabeling Dataset.

MigrateDataLabelingAnnotatedDatasetConfig

Config for migrating AnnotatedDataset in datalabeling.googleapis.com to Vertex AI's SavedQuery.

JSON representation
{
  "annotatedDataset": string
}
Fields
annotatedDataset

string

Required. Full resource name of data labeling AnnotatedDataset. Format: projects/{project}/datasets/{dataset}/annotatedDatasets/{annotatedDataset}.