Batch Deployments

您所在的位置:网站首页 list属性代码 Batch Deployments

Batch Deployments

2023-05-21 06:41| 来源: 网络整理| 查看: 265

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

Batch Deployments - List 参考 Service: Machine Learning API Version: 2023-04-01-preview

列出工作区中的 Batch 推理部署。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments?api-version=2023-04-01-preview With optional parameters: GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/deployments?api-version=2023-04-01-preview&$orderBy={$orderBy}&$top={$top}&$skip={$skip} URI 参数 名称 在 必需 类型 说明 endpointName path True

string

终结点名称

resourceGroupName path True

string

资源组的名称。 此名称不区分大小写。

subscriptionId path True

string

目标订阅的 ID。

workspaceName path True

string

Azure 机器学习工作区的名称。

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$

api-version query True

string

要用于此操作的 API 版本。

$orderBy query

string

列表排序。

$skip query

string

分页的继续标记。

$top query

integer

int32

列表顶部。

响应 名称 类型 说明 200 OK

BatchDeploymentTrackedResourceArmPaginatedResult

成功

Other Status Codes

ErrorResponse

错误

示例 List Workspace Batch Deployment. Sample Request HTTP GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.MachineLearningServices/workspaces/my-aml-workspace/batchEndpoints/testEndpointName/deployments?api-version=2023-04-01-preview&$orderBy=string&$top=1 Sample Response Status code: 200 { "value": [ { "id": "string", "name": "string", "type": "string", "properties": { "description": "string", "properties": { "string": "string" }, "codeConfiguration": { "codeId": "string", "scoringScript": "string" }, "environmentId": "string", "environmentVariables": { "string": "string" }, "compute": "string", "errorThreshold": 1, "retrySettings": { "maxRetries": 1, "timeout": "PT5M" }, "miniBatchSize": 1, "loggingLevel": "Info", "model": { "referenceType": "Id", "assetId": "string" }, "maxConcurrencyPerInstance": 1, "outputAction": "SummaryOnly", "outputFileName": "string", "resources": { "instanceCount": 1, "instanceType": "string", "properties": { "string": { "a3c13e2e-a213-4cac-9f5a-b49966906ad6": null } } }, "provisioningState": "Creating" }, "systemData": { "createdAt": "2020-01-01T12:34:56.999Z", "createdBy": "string", "createdByType": "User", "lastModifiedAt": "2020-01-01T12:34:56.999Z", "lastModifiedBy": "string", "lastModifiedByType": "User" }, "tags": {}, "location": "string", "kind": "string", "identity": { "type": "SystemAssigned", "principalId": "00000000-1111-2222-3333-444444444444", "tenantId": "00000000-1111-2222-3333-444444444444", "userAssignedIdentities": { "string": { "principalId": "00000000-1111-2222-3333-444444444444", "clientId": "00000000-1111-2222-3333-444444444444" } } }, "sku": { "name": "string", "tier": "Free", "size": "string", "family": "string", "capacity": 1 } } ], "nextLink": "string" } 定义 名称 说明 BatchDeployment

每个部署的批量推理设置。

BatchDeploymentConfigurationType

批处理部署的枚举属性类型。

BatchDeploymentTrackedResource BatchDeploymentTrackedResourceArmPaginatedResult

BatchDeployment 实体的分页列表。

BatchLoggingLevel

记录批量推理的详细程度。 日志记录的详细顺序增加为:警告、信息和调试。 默认值为“信息”。

BatchOutputAction

用于确定批处理推理如何处理输出的枚举

BatchPipelineComponentDeploymentConfiguration

Batch 管道组件部署的属性。

BatchRetrySettings

批量推理操作的重试设置。

CodeConfiguration

评分代码资产的配置。

createdByType

创建资源的标识类型。

DataPathAssetReference

通过资产在数据存储中的路径引用资产。

DeploymentProvisioningState

DeploymentProvisioningState 的可能值。

DeploymentResourceConfiguration ErrorAdditionalInfo

资源管理错误其他信息。

ErrorDetail

错误详细信息。

ErrorResponse

错误响应

IdAssetReference

通过其 ARM 资源 ID 引用资产。

ManagedServiceIdentity

托管服务标识 (系统分配的标识和/或用户分配的标识)

ManagedServiceIdentityType

) 允许 SystemAssigned 和 UserAssigned 类型的托管服务标识 (的类型。

OutputPathAssetReference

通过资产在作业输出中的路径引用资产。

ReferenceType

用于确定要用于资产的引用方法的枚举。

Sku

表示 SKU 的资源模型定义

SkuTier

如果服务具有多个层,但 PUT 上不需要此字段,则资源提供程序需要实现此字段。

systemData

与资源的创建和上次修改相关的元数据。

UserAssignedIdentity

用户分配的标识属性

BatchDeployment

每个部署的批量推理设置。

名称 类型 默认值 说明 codeConfiguration

CodeConfiguration

终结点部署的代码配置。

compute

string

批量推理操作的计算目标。

deploymentConfiguration BatchDeploymentConfiguration:

BatchPipelineComponentDeploymentConfiguration

与不同部署类型相关的属性。

description

string

终结点部署的说明。

environmentId

string

终结点部署的环境规范的 ARM 资源 ID。

environmentVariables

object

部署的环境变量配置。

errorThreshold

integer

-1

错误阈值,如果整个输入的错误计数超过此值,则批处理推理将中止。 范围为 [-1, int.MaxValue]。 对于 FileDataset,此值是文件失败的计数。 对于 TabularDataset,此值是记录失败的计数。 如果设置为 -1 (下限) ,则将忽略批处理推理期间的所有失败。

loggingLevel

BatchLoggingLevel

Info

批量推理操作的日志记录级别。

maxConcurrencyPerInstance

integer

1

指示每个实例的最大并行数。

miniBatchSize

integer

10

传递给每个批处理调用的微型批的大小。 对于 FileDataset,这是每个微型批的文件数。 对于 TabularDataset,这是每个微批记录的大小(以字节为单位)。

model AssetReferenceBase: DataPathAssetReference IdAssetReference OutputPathAssetReference

对终结点部署的模型资产的引用。

outputAction

BatchOutputAction

AppendRow

指示输出的组织方式。

outputFileName

string

predictions.csv

append_row输出操作的自定义输出文件名。

properties

object

属性字典。 可以添加属性,但不能删除或更改。

provisioningState

DeploymentProvisioningState

终结点部署的预配状态。

resources

DeploymentResourceConfiguration

指示作业的计算配置。 如果未提供, 将默认为 ResourceConfiguration 中定义的默认值。

retrySettings

BatchRetrySettings

批量推理操作的重试设置。 如果未提供, 将默认为 BatchRetrySettings 中定义的默认值。

BatchDeploymentConfigurationType

批处理部署的枚举属性类型。

名称 类型 说明 Model

string

PipelineComponent

string

BatchDeploymentTrackedResource 名称 类型 说明 id

string

资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

identity

ManagedServiceIdentity

托管服务标识 (系统分配的标识和/或用户分配的标识)

kind

string

门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。

location

string

资源所在的地理位置

name

string

资源的名称

properties

BatchDeployment

[必需]实体的其他属性。

sku

Sku

自动缩放的 ARM 协定所需的 SKU 详细信息。

systemData

systemData

包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。

tags

object

资源标记。

type

string

资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

BatchDeploymentTrackedResourceArmPaginatedResult

BatchDeployment 实体的分页列表。

名称 类型 说明 nextLink

string

指向 BatchDeployment 对象的下一页的链接。 如果为 null,则没有其他页。

value

BatchDeploymentTrackedResource[]

BatchDeployment 类型的对象数组。

BatchLoggingLevel

记录批量推理的详细程度。 日志记录的详细顺序增加为:警告、信息和调试。 默认值为“信息”。

名称 类型 说明 Debug

string

Info

string

Warning

string

BatchOutputAction

用于确定批处理推理如何处理输出的枚举

名称 类型 说明 AppendRow

string

SummaryOnly

string

BatchPipelineComponentDeploymentConfiguration

Batch 管道组件部署的属性。

名称 类型 说明 componentId

IdAssetReference

要运行的组件的 ARM ID。

deploymentConfigurationType string:

PipelineComponent

[必需]部署的类型

description

string

将应用于作业的说明。

settings

object

管道作业的运行时设置。

tags

object

将应用于作业的标记。

BatchRetrySettings

批量推理操作的重试设置。

名称 类型 默认值 说明 maxRetries

integer

3

小型批的最大重试计数

timeout

string

PT30S

小型批的调用超时,采用 ISO 8601 格式。

CodeConfiguration

评分代码资产的配置。

名称 类型 说明 codeId

string

代码资产的 ARM 资源 ID。

scoringScript

string

[必需]启动时要执行的脚本。 例如 “score.py”

createdByType

创建资源的标识类型。

名称 类型 说明 Application

string

Key

string

ManagedIdentity

string

User

string

DataPathAssetReference

通过资产在数据存储中的路径引用资产。

名称 类型 说明 datastoreId

string

资产所在的数据存储的 ARM 资源 ID。

path

string

数据存储中文件/目录的路径。

referenceType string:

DataPath

[必需]指定资产引用的类型。

DeploymentProvisioningState

DeploymentProvisioningState 的可能值。

名称 类型 说明 Canceled

string

Creating

string

Deleting

string

Failed

string

Scaling

string

Succeeded

string

Updating

string

DeploymentResourceConfiguration 名称 类型 默认值 说明 instanceCount

integer

1

计算目标使用的可选实例或节点数。

instanceType

string

计算目标支持的 VM 的可选类型。

locations

string[]

作业可以运行的位置。

maxInstanceCount

integer

可选最大允许计算目标使用的实例或节点数。 用于弹性训练,目前仅受 PyTorch 分发类型支持。

properties

object

其他属性包。

ErrorAdditionalInfo

资源管理错误其他信息。

名称 类型 说明 info

object

其他信息。

type

string

其他信息类型。

ErrorDetail

错误详细信息。

名称 类型 说明 additionalInfo

ErrorAdditionalInfo[]

错误附加信息。

code

string

错误代码。

details

ErrorDetail[]

错误详细信息。

message

string

错误消息。

target

string

错误目标。

ErrorResponse

错误响应

名称 类型 说明 error

ErrorDetail

错误对象。

IdAssetReference

通过其 ARM 资源 ID 引用资产。

名称 类型 说明 assetId

string

[必需]资产的 ARM 资源 ID。

referenceType string:

Id

[必需]指定资产引用的类型。

ManagedServiceIdentity

托管服务标识 (系统分配的标识和/或用户分配的标识)

名称 类型 说明 principalId

string

系统分配的标识的服务主体 ID。 此属性仅针对系统分配的标识提供。

tenantId

string

系统分配的标识的租户 ID。 此属性仅针对系统分配的标识提供。

type

ManagedServiceIdentityType

) 允许 SystemAssigned 和 UserAssigned 类型的托管服务标识 (的类型。

userAssignedIdentities

User-Assigned标识 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将是采用以下格式的 ARM 资源 ID:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是请求中) ({} 空对象。

ManagedServiceIdentityType

) 允许 SystemAssigned 和 UserAssigned 类型的托管服务标识 (的类型。

名称 类型 说明 None

string

SystemAssigned

string

SystemAssigned,UserAssigned

string

UserAssigned

string

OutputPathAssetReference

通过资产在作业输出中的路径引用资产。

名称 类型 说明 jobId

string

作业的 ARM 资源 ID。

path

string

作业输出中文件/目录的路径。

referenceType string:

OutputPath

[必需]指定资产引用的类型。

ReferenceType

用于确定要用于资产的引用方法的枚举。

名称 类型 说明 DataPath

string

Id

string

OutputPath

string

Sku

表示 SKU 的资源模型定义

名称 类型 说明 capacity

integer

如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果无法对资源进行横向扩展/缩减,则可能会省略此项。

family

string

如果服务针对同一 SKU 具有不同代系的硬件,则可以在此处捕获。

name

string

SKU 的名称。 例如 - P3。 它通常是字母+数字代码

size

string

SKU 大小。 当名称字段是层和一些其他值的组合时,这将是独立代码。

tier

SkuTier

如果服务具有多个层,但 PUT 上不需要此字段,则资源提供程序需要实现此字段。

SkuTier

如果服务具有多个层,但 PUT 上不需要此字段,则资源提供程序需要实现此字段。

名称 类型 说明 Basic

string

Free

string

Premium

string

Standard

string

systemData

与资源的创建和上次修改相关的元数据。

名称 类型 说明 createdAt

string

资源创建时间戳 (UTC) 。

createdBy

string

创建资源的标识。

createdByType

createdByType

创建资源的标识类型。

lastModifiedAt

string

资源上次修改的时间戳 (UTC)

lastModifiedBy

string

上次修改资源的标识。

lastModifiedByType

createdByType

上次修改资源的标识类型。

UserAssignedIdentity

用户分配的标识属性

名称 类型 说明 clientId

string

已分配标识的客户端 ID。

principalId

string

分配的标识的主体 ID。



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3