Deployments Methods
Note
These deployment methods are 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
Adds deployments for external models for documentation purposes only. Supported for CPD version 4.7.0 and above
- 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)
Delete the deployments in external model for documentation purposes only. 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])