BentoCloud API#
This page provides API reference for creating and managing BentoCloud Deployments.
See also
See Manage Deployments for usage details.
Create#
Create a Deployment on BentoCloud.
- bentoml.deployment.create(name: str | None = None, path_context: str | None = None, context: str | None = None, _bento_store: BentoStore = Provide[BentoMLContainer.bento_store], *, bento: Tag | str | None = None, cluster: str | None = None, access_authorization: bool | None = None, scaling_min: int | None = None, scaling_max: int | None = None, instance_type: str | None = None, strategy: str | None = None, envs: t.List[EnvItemSchema] | t.List[dict[str, t.Any]] | None = None, extras: dict[str, t.Any] | None = None) DeploymentInfo [source]#
- bentoml.deployment.create(name: str | None = None, path_context: str | None = None, context: str | None = None, _bento_store: BentoStore = Provide[BentoMLContainer.bento_store], *, bento: Tag | str | None = None, config_file: str | None = None) DeploymentInfo
- bentoml.deployment.create(name: str | None = None, path_context: str | None = None, context: str | None = None, _bento_store: BentoStore = Provide[BentoMLContainer.bento_store], *, bento: Tag | str | None = None, config_dict: dict[str, t.Any] | None = None) DeploymentInfo
For more information, see Create Deployments.
Get#
Retrieve details about a specific Deployment.
- bentoml.deployment.get(name: str, context: str | None = None, cluster: str | None = None) DeploymentInfo [source]#
For more information, see View.
List#
List all Deployments on BentoCloud.
Update#
Update the configuration of a specific Deployment.
- bentoml.deployment.update(name: str | None = None, path_context: str | None = None, context: str | None = None, cluster: str | None = None, _bento_store: BentoStore = Provide[BentoMLContainer.bento_store], *, bento: Tag | str | None = None, access_authorization: bool | None = None, scaling_min: int | None = None, scaling_max: int | None = None, instance_type: str | None = None, strategy: str | None = None, envs: t.List[EnvItemSchema] | t.List[dict[str, t.Any]] | None = None, extras: dict[str, t.Any] | None = None) DeploymentInfo [source]#
- bentoml.deployment.update(name: str | None = None, path_context: str | None = None, context: str | None = None, cluster: str | None = None, _bento_store: BentoStore = Provide[BentoMLContainer.bento_store], *, bento: Tag | str | None = None, config_file: str | None = None) DeploymentInfo
- bentoml.deployment.update(name: str | None = None, path_context: str | None = None, context: str | None = None, cluster: str | None = None, _bento_store: BentoStore = Provide[BentoMLContainer.bento_store], *, bento: Tag | str | None = None, config_dict: dict[str, t.Any] | None = None) DeploymentInfo
For more information, see Update.
Apply#
Create or update a Deployment based on the specifications provided.
- bentoml.deployment.apply(name: str | None = None, cluster: t.Optional[str] = None, path_context: t.Optional[str] = None, context: t.Optional[str] = None, _bento_store: BentoStore = Provide[BentoMLContainer.bento_store], *, bento: t.Optional[t.Union[Tag, str]] = None, config_dict: t.Optional[dict[str, t.Any]] = None) DeploymentInfo [source]#
- bentoml.deployment.apply(name: str | None = None, cluster: t.Optional[str] = None, path_context: t.Optional[str] = None, context: t.Optional[str] = None, _bento_store: BentoStore = Provide[BentoMLContainer.bento_store], *, bento: t.Optional[t.Union[Tag, str]] = None, config_file: t.Optional[str] = None) DeploymentInfo
For more information, see Apply.
Terminate#
Stop a Deployment, which can be restarted later.
- bentoml.deployment.terminate(name: str, context: str | None = None, cluster: str | None = None) DeploymentInfo [source]#
For more information, see Terminate.
Delete#
Remove a Deployment from BentoCloud.
- bentoml.deployment.delete(name: str, context: str | None = None, cluster: str | None = None) None [source]#
For more information, see Delete.