你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DeploymentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:deployments> attribute.

Constructor

DeploymentsOperations(*args, **kwargs)

Methods

get

Get a deployed model.

list

List all deployed models in the project.

get

Get a deployed model.

get(name: str, **kwargs: Any) -> Deployment

Parameters

Name Description
name
Required
str

Name of the deployment. Required.

Returns

Type Description

Deployment. The Deployment is compatible with MutableMapping

Exceptions

Type Description

list

List all deployed models in the project.

list(*, model_publisher: str | None = None, model_name: str | None = None, deployment_type: str | DeploymentType | None = None, **kwargs: Any) -> ItemPaged[Deployment]

Keyword-Only Parameters

Name Description
model_publisher
str

Model publisher to filter models by. Default value is None.

Default value: None
model_name
str

Model name (the publisher specific name) to filter models by. Default value is None.

Default value: None
deployment_type

Type of deployment to filter list by. "ModelDeployment" Default value is None.

Default value: None

Returns

Type Description

An iterator like instance of Deployment

Exceptions

Type Description