Deployments Methods

Note

These deployment methods are primarily designed for use with external models.

get_deployments(self) List

Get all deployment details for the external model. Supported for CPD version >=4.7.0

Returns:

All deployment details for external model

Return type:

list(Deployment)

The way to use me is,:

model.get_deployments()
add_deployments(self, deployments: list = None) list

Returns Add deployments in external model. Supported for CPD version >=4.7.0

Parameters:

deployments (list) – List of deployments to be added. Provide deployments in a list.

Return type:

list(Deployment)

Returns:

External model deployments are added

The way to use me is,:

model.add_deployments([{"id":"<id>","name":"<name>","type":"<type>","scoring_endpoint":"<scoring_endpoint>","description":"<description>"}])
delete_deployments(self, deployment_ids: list = None)

Returns Delete the deployments in external model. Supported for CPD version >=4.7.0

Parameters:

deployment_ids (list) – List of deployment ID’s to be deleted. Provide deployment_ids in a list.

Return type:

None

Returns:

External model deployments are deleted.

The way to use me is,:

model.delete_deployments([deployment_ids])