Method: projects.locations.instances.models.copy

Copies a model from one instance to another. See the model copy documentation for more information.

HTTP request

POST https://financialservices.googleapis.com/v1/{parent=projects/*/locations/*/instances/*}/models:copy

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent of the Model is the Instance.

Authorization requires the following IAM permission on the specified resource parent:

  • financialservices.v1models.copyTo

Request body

The request body contains data with the following structure:

JSON representation
{
  "modelId": string,
  "sourceModel": string
}
Fields
modelId

string

Required. The resource id of the Model that the copy operation is creating.

sourceModel

string

Required. The resource name of the Model to copy.

Authorization requires the following IAM permission on the specified resource sourceModel:

  • financialservices.v1models.copyFrom

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:

  • financialservices.v1models.copyTo

Requires the following IAM permission on the sourceModel resource:

  • financialservices.v1models.copyFrom

For more information, see the IAM documentation.