ReplaceDeployedModel {datarobot}R Documentation

Replace a model in a deployment with another model.

Description

Replace a model in a deployment with another model.

Usage

ReplaceDeployedModel(
  deploymentId,
  newModelId,
  replacementReason,
  maxWait = 600
)

Arguments

deploymentId

character. The ID of the deployment.

newModelId

character. The ID of the model to use in the deployment. This model will replace the old model. You can also pass a dataRobotModel object.

replacementReason

character. Optional. The reason for replacing the deployment. See ModelReplacementReason for a list of reasons.

maxWait

integer. How long to wait (in seconds) for the computation to complete before returning a timeout error? (Default 600 seconds)

Value

A DataRobotDeployment object containing:

Examples

## Not run: 
  deploymentId <- "5e319d2e422fbd6b58a5edad"
  newModelId <- "5996f820af07fc605e81ead4"
  ReplaceDeployedModel(deploymentId, newModelId, ModelReplacementReason$Other)

## End(Not run)

[Package datarobot version 2.18.6 Index]