你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Online Deployments - Create Or Update
创建或更新推理终结点部署(异步)。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}?api-version=2024-10-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
deployment
|
path | True |
string |
推理终结点部署名称。 正则表达式模式: |
endpoint
|
path | True |
string |
推理终结点名称。 正则表达式模式: |
resource
|
path | True |
string |
资源组的名称。 名称不区分大小写。 |
subscription
|
path | True |
string |
目标订阅的 ID。 |
workspace
|
path | True |
string |
Azure 机器学习工作区的名称。 正则表达式模式: |
api-version
|
query | True |
string |
用于此操作的 API 版本。 |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
location | True |
string |
资源所在的地理位置 |
properties | True | OnlineDeployment: |
[必需]实体的其他属性。 |
identity |
托管服务标识(系统分配和/或用户分配的标识) |
||
kind |
string |
门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 |
|
sku |
用于自动缩放的 ARM 协定所需的 SKU 详细信息。 |
||
tags |
object |
资源标记。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
创建或更新请求成功。 |
|
201 Created |
创建 标头
|
|
Other Status Codes |
错误 |
示例
Create |
Create |
CreateOrUpdate Kubernetes Online Deployment.
示例请求
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.MachineLearningServices/workspaces/my-aml-workspace/onlineEndpoints/testEndpointName/deployments/testDeploymentName?api-version=2024-10-01
{
"properties": {
"description": "string",
"properties": {
"string": "string"
},
"codeConfiguration": {
"codeId": "string",
"scoringScript": "string"
},
"environmentId": "string",
"environmentVariables": {
"string": "string"
},
"scaleSettings": {
"scaleType": "Default"
},
"requestSettings": {
"maxQueueWait": "PT5M",
"requestTimeout": "PT5M",
"maxConcurrentRequestsPerInstance": 1
},
"modelMountPath": "string",
"appInsightsEnabled": false,
"livenessProbe": {
"failureThreshold": 1,
"successThreshold": 1,
"timeout": "PT5M",
"period": "PT5M",
"initialDelay": "PT5M"
},
"instanceType": "string",
"model": "string",
"endpointComputeType": "Kubernetes",
"containerResourceRequirements": {
"containerResourceRequests": {
"cpu": "\"1\"",
"memory": "\"2Gi\"",
"gpu": "\"1\""
},
"containerResourceLimits": {
"cpu": "\"1\"",
"memory": "\"2Gi\"",
"gpu": "\"1\""
}
}
},
"tags": {},
"location": "string",
"kind": "string",
"identity": {
"type": "SystemAssigned",
"userAssignedIdentities": {
"string": {}
}
},
"sku": {
"name": "string",
"tier": "Free",
"size": "string",
"family": "string",
"capacity": 1
}
}
示例响应
{
"id": "string",
"name": "string",
"type": "string",
"properties": {
"description": "string",
"properties": {
"string": "string"
},
"codeConfiguration": {
"codeId": "string",
"scoringScript": "string"
},
"environmentId": "string",
"environmentVariables": {
"string": "string"
},
"scaleSettings": {
"scaleType": "Default"
},
"requestSettings": {
"maxQueueWait": "PT5M",
"requestTimeout": "PT5M",
"maxConcurrentRequestsPerInstance": 1
},
"modelMountPath": "string",
"appInsightsEnabled": false,
"livenessProbe": {
"failureThreshold": 1,
"successThreshold": 1,
"timeout": "PT5M",
"period": "PT5M",
"initialDelay": "PT5M"
},
"provisioningState": "Creating",
"instanceType": "string",
"model": "string",
"endpointComputeType": "Kubernetes",
"containerResourceRequirements": {
"containerResourceRequests": {
"cpu": "\"1\"",
"memory": "\"2Gi\"",
"gpu": "\"1\""
},
"containerResourceLimits": {
"cpu": "\"1\"",
"memory": "\"2Gi\"",
"gpu": "\"1\""
}
}
},
"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
}
}
{
"id": "string",
"name": "string",
"type": "string",
"properties": {
"description": "string",
"properties": {
"string": "string"
},
"codeConfiguration": {
"codeId": "string",
"scoringScript": "string"
},
"environmentId": "string",
"environmentVariables": {
"string": "string"
},
"scaleSettings": {
"scaleType": "Default"
},
"requestSettings": {
"maxQueueWait": "PT5M",
"requestTimeout": "PT5M",
"maxConcurrentRequestsPerInstance": 1
},
"modelMountPath": "string",
"appInsightsEnabled": false,
"livenessProbe": {
"failureThreshold": 1,
"successThreshold": 1,
"timeout": "PT5M",
"period": "PT5M",
"initialDelay": "PT5M"
},
"provisioningState": "Creating",
"instanceType": "string",
"model": "string",
"endpointComputeType": "Kubernetes",
"containerResourceRequirements": {
"containerResourceRequests": {
"cpu": "\"1\"",
"memory": "\"2Gi\"",
"gpu": "\"1\""
},
"containerResourceLimits": {
"cpu": "\"1\"",
"memory": "\"2Gi\"",
"gpu": "\"1\""
}
}
},
"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
}
}
CreateOrUpdate Managed Online Deployment.
示例请求
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.MachineLearningServices/workspaces/my-aml-workspace/onlineEndpoints/testEndpointName/deployments/testDeploymentName?api-version=2024-10-01
{
"properties": {
"description": "string",
"properties": {
"string": "string"
},
"codeConfiguration": {
"codeId": "string",
"scoringScript": "string"
},
"environmentId": "string",
"environmentVariables": {
"string": "string"
},
"scaleSettings": {
"scaleType": "Default"
},
"requestSettings": {
"maxQueueWait": "PT5M",
"requestTimeout": "PT5M",
"maxConcurrentRequestsPerInstance": 1
},
"appInsightsEnabled": false,
"livenessProbe": {
"failureThreshold": 1,
"successThreshold": 1,
"timeout": "PT5M",
"period": "PT5M",
"initialDelay": "PT5M"
},
"instanceType": "string",
"model": "string",
"endpointComputeType": "Managed",
"modelMountPath": "string",
"readinessProbe": {
"failureThreshold": 30,
"successThreshold": 1,
"timeout": "PT2S",
"period": "PT10S",
"initialDelay": "PT1S"
}
},
"tags": {},
"location": "string",
"kind": "string",
"identity": {
"type": "SystemAssigned",
"userAssignedIdentities": {
"string": {}
}
},
"sku": {
"name": "string",
"tier": "Free",
"size": "string",
"family": "string",
"capacity": 1
}
}
示例响应
{
"id": "string",
"name": "string",
"type": "string",
"properties": {
"description": "string",
"properties": {
"string": "string"
},
"codeConfiguration": {
"codeId": "string",
"scoringScript": "string"
},
"environmentId": "string",
"environmentVariables": {
"string": "string"
},
"scaleSettings": {
"scaleType": "Default"
},
"requestSettings": {
"maxQueueWait": "PT5M",
"requestTimeout": "PT5M",
"maxConcurrentRequestsPerInstance": 1
},
"appInsightsEnabled": false,
"livenessProbe": {
"failureThreshold": 1,
"successThreshold": 1,
"timeout": "PT5M",
"period": "PT5M",
"initialDelay": "PT5M"
},
"provisioningState": "Creating",
"instanceType": "string",
"model": "string",
"endpointComputeType": "Managed",
"modelMountPath": "string",
"readinessProbe": {
"failureThreshold": 30,
"successThreshold": 1,
"timeout": "PT2S",
"period": "PT10S",
"initialDelay": "PT1S"
}
},
"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
}
}
{
"id": "string",
"name": "string",
"type": "string",
"properties": {
"description": "string",
"properties": {
"string": "string"
},
"codeConfiguration": {
"codeId": "string",
"scoringScript": "string"
},
"environmentId": "string",
"environmentVariables": {
"string": "string"
},
"scaleSettings": {
"scaleType": "Default"
},
"requestSettings": {
"maxQueueWait": "PT5M",
"requestTimeout": "PT5M",
"maxConcurrentRequestsPerInstance": 1
},
"appInsightsEnabled": false,
"livenessProbe": {
"failureThreshold": 1,
"successThreshold": 1,
"timeout": "PT5M",
"period": "PT5M",
"initialDelay": "PT5M"
},
"provisioningState": "Creating",
"instanceType": "string",
"model": "string",
"endpointComputeType": "Managed",
"modelMountPath": "string",
"readinessProbe": {
"failureThreshold": 30,
"successThreshold": 1,
"timeout": "PT2S",
"period": "PT10S",
"initialDelay": "PT1S"
}
},
"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
}
}
定义
名称 | 说明 |
---|---|
Code |
评分代码资产的配置。 |
Collection | |
Container |
联机部署中每个容器实例的资源要求。 |
Container |
|
created |
创建资源的标识的类型。 |
Data |
|
Data |
|
Default |
|
Deployment |
DeploymentProvisioningState 的可能值。 |
Egress |
用于确定为部署出口启用还是禁用 PublicNetworkAccess 的枚举。 |
Endpoint |
用于确定终结点计算类型的枚举。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Kubernetes |
特定于 KubernetesOnlineDeployment 的属性。 |
Managed |
特定于 ManagedOnlineDeployment 的属性。 |
Managed |
托管服务标识(系统分配和/或用户分配的标识) |
Managed |
托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 |
Online |
|
Online |
联机部署评分请求配置。 |
Probe |
部署容器生存度/就绪情况探测配置。 |
Request |
|
Rolling |
|
Scale |
|
Sku |
表示 SKU 的资源模型定义 |
Sku |
如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 |
system |
与创建和上次修改资源相关的元数据。 |
Target |
|
User |
用户分配的标识属性 |
CodeConfiguration
评分代码资产的配置。
名称 | 类型 | 说明 |
---|---|---|
codeId |
string |
代码资产的 ARM 资源 ID。 |
scoringScript |
string |
[必需]在启动时执行的脚本。 例如 “score.py” |
Collection
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
clientId |
string |
用于收集 Blob 存储日志记录的 msi 客户端 ID。 如果为 null,后端将选取已注册的终结点标识以进行身份验证。 |
|
dataCollectionMode | Disabled |
启用或禁用数据收集。 |
|
dataId |
string |
数据资产 arm 资源 ID。客户端将确保数据资产指向 Blob 存储,后端将收集数据到 Blob 存储。 |
|
samplingRate |
number |
1 |
收集的采样率。 采样率 1.0 表示我们默认收集 100% 数据。 |
ContainerResourceRequirements
联机部署中每个容器实例的资源要求。
名称 | 类型 | 说明 |
---|---|---|
containerResourceLimits |
容器资源限制信息: |
|
containerResourceRequests |
容器资源请求信息: |
ContainerResourceSettings
名称 | 类型 | 说明 |
---|---|---|
cpu |
string |
容器的 vCPU 请求/限制数。 详细信息:https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ |
gpu |
string |
容器的 Nvidia GPU 卡请求/限制数。 详细信息:https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ |
memory |
string |
容器的内存大小请求/限制。 详细信息:https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ |
createdByType
创建资源的标识的类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DataCollectionMode
名称 | 类型 | 说明 |
---|---|---|
Disabled |
string |
|
Enabled |
string |
DataCollector
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
collections |
<string, Collection> |
[必需]集合配置。 每个集合都有自己的配置来收集模型数据,集合的名称可以是任意字符串。 模型数据收集器可用于有效负载日志记录或自定义日志记录或这两种日志记录。 收集请求和响应保留用于有效负载日志记录,其他请求用于自定义日志记录。 |
|
requestLogging |
mdc 的请求日志记录配置包括所有集合的高级日志记录设置。 这是可选的。 |
||
rollingRate | Hour |
将模型数据收集到 Blob 存储时,我们需要将数据滚动到不同的路径,以避免在单个 Blob 文件中记录所有这些数据。 如果滚动速率为小时,则会在 blob 路径 /yy/MM/dd/HH/ 中收集所有数据。 如果是当天,将在 blob 路径 /yyyy/MM/dd/ 中收集所有数据。 滚动路径的另一个好处是模型监视 ui 能够非常快速地选择时间范围的数据。 |
DefaultScaleSettings
名称 | 类型 | 说明 |
---|---|---|
scaleType |
string:
Default |
[必需]部署缩放算法的类型 |
DeploymentProvisioningState
DeploymentProvisioningState 的可能值。
名称 | 类型 | 说明 |
---|---|---|
Canceled |
string |
|
Creating |
string |
|
Deleting |
string |
|
Failed |
string |
|
Scaling |
string |
|
Succeeded |
string |
|
Updating |
string |
EgressPublicNetworkAccessType
用于确定为部署出口启用还是禁用 PublicNetworkAccess 的枚举。
名称 | 类型 | 说明 |
---|---|---|
Disabled |
string |
|
Enabled |
string |
EndpointComputeType
用于确定终结点计算类型的枚举。
名称 | 类型 | 说明 |
---|---|---|
AzureMLCompute |
string |
|
Kubernetes |
string |
|
Managed |
string |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
KubernetesOnlineDeployment
特定于 KubernetesOnlineDeployment 的属性。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
appInsightsEnabled |
boolean |
False |
如果为 true,则启用 Application Insights 日志记录。 |
codeConfiguration |
终结点部署的代码配置。 |
||
containerResourceRequirements |
容器的资源要求(cpu 和内存)。 |
||
dataCollector |
mdc 配置,在 mdc 为 null 时禁用 mdc。 |
||
description |
string |
终结点部署的说明。 |
|
egressPublicNetworkAccess | Enabled |
如果已启用,则允许出口公共网络访问。 如果禁用,这将创建安全出口。 默认值:已启用。 |
|
endpointComputeType |
string:
Kubernetes |
[必需]终结点的计算类型。 |
|
environmentId |
string |
终结点部署的环境规范的 ARM 资源 ID 或 AssetId。 |
|
environmentVariables |
object |
部署的环境变量配置。 |
|
instanceType |
string |
Standard_F4s_v2 |
计算实例类型。 默认值:Standard_F4s_v2。 |
livenessProbe |
运行情况探测会定期监视容器的运行状况。 |
||
model |
string |
模型的 URI 路径。 |
|
modelMountPath |
string |
在自定义容器中装载模型的路径。 |
|
properties |
object |
属性字典。 可以添加属性,但不能删除或更改属性。 |
|
provisioningState |
终结点部署的预配状态。 |
||
readinessProbe |
就绪情况探测会验证容器是否准备好为流量提供服务。 属性和默认值与实时探测相同。 |
||
requestSettings |
请求部署设置。 |
||
scaleSettings | OnlineScaleSettings: |
部署的规模设置。 如果为 null 或未提供,则默认为 KubernetesOnlineDeployment 的 TargetUtilizationScaleSettings 和 ManagedOnlineDeployment 的 DefaultScaleSettings。 |
ManagedOnlineDeployment
特定于 ManagedOnlineDeployment 的属性。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
appInsightsEnabled |
boolean |
False |
如果为 true,则启用 Application Insights 日志记录。 |
codeConfiguration |
终结点部署的代码配置。 |
||
dataCollector |
mdc 配置,在 mdc 为 null 时禁用 mdc。 |
||
description |
string |
终结点部署的说明。 |
|
egressPublicNetworkAccess | Enabled |
如果已启用,则允许出口公共网络访问。 如果禁用,这将创建安全出口。 默认值:已启用。 |
|
endpointComputeType |
string:
Managed |
[必需]终结点的计算类型。 |
|
environmentId |
string |
终结点部署的环境规范的 ARM 资源 ID 或 AssetId。 |
|
environmentVariables |
object |
部署的环境变量配置。 |
|
instanceType |
string |
Standard_F4s_v2 |
计算实例类型。 默认值:Standard_F4s_v2。 |
livenessProbe |
运行情况探测会定期监视容器的运行状况。 |
||
model |
string |
模型的 URI 路径。 |
|
modelMountPath |
string |
在自定义容器中装载模型的路径。 |
|
properties |
object |
属性字典。 可以添加属性,但不能删除或更改属性。 |
|
provisioningState |
终结点部署的预配状态。 |
||
readinessProbe |
就绪情况探测会验证容器是否准备好为流量提供服务。 属性和默认值与实时探测相同。 |
||
requestSettings |
请求部署设置。 |
||
scaleSettings | OnlineScaleSettings: |
部署的规模设置。 如果为 null 或未提供,则默认为 KubernetesOnlineDeployment 的 TargetUtilizationScaleSettings 和 ManagedOnlineDeployment 的 DefaultScaleSettings。 |
ManagedServiceIdentity
托管服务标识(系统分配和/或用户分配的标识)
名称 | 类型 | 说明 |
---|---|---|
principalId |
string |
系统分配标识的服务主体 ID。 此属性仅针对系统分配的标识提供。 |
tenantId |
string |
系统分配标识的租户 ID。 此属性仅针对系统分配的标识提供。 |
type |
托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 |
|
userAssignedIdentities |
<string,
User |
User-Assigned 标识 |
ManagedServiceIdentityType
托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。
名称 | 类型 | 说明 |
---|---|---|
None |
string |
|
SystemAssigned |
string |
|
SystemAssigned,UserAssigned |
string |
|
UserAssigned |
string |
OnlineDeploymentTrackedResource
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定资源 ID。 Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
identity |
托管服务标识(系统分配和/或用户分配的标识) |
|
kind |
string |
门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据。 |
location |
string |
资源所在的地理位置 |
name |
string |
资源的名称 |
properties | OnlineDeployment: |
[必需]实体的其他属性。 |
sku |
用于自动缩放的 ARM 协定所需的 SKU 详细信息。 |
|
systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
tags |
object |
资源标记。 |
type |
string |
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
OnlineRequestSettings
联机部署评分请求配置。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
maxConcurrentRequestsPerInstance |
integer |
1 |
每个部署允许的每个节点的最大并发请求数。 默认值为 1。 |
maxQueueWait |
string |
PT0.5S |
(已弃用托管联机终结点)请求以 ISO 8601 格式保持队列的最大时间。
默认值为 500 毫秒。
(现在增加 |
requestTimeout |
string |
PT5S |
ISO 8601 格式的评分超时。 默认值为 5000 毫秒。 |
ProbeSettings
部署容器生存度/就绪情况探测配置。
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
failureThreshold |
integer |
30 |
返回不正常状态之前允许的失败数。 |
initialDelay |
string |
ISO 8601 格式的第一个探测之前的延迟。 |
|
period |
string |
PT10S |
ISO 8601 格式的探测之间的时间长度。 |
successThreshold |
integer |
1 |
返回正常状态之前成功的探测数。 |
timeout |
string |
PT2S |
ISO 8601 格式的探测超时。 |
RequestLogging
名称 | 类型 | 说明 |
---|---|---|
captureHeaders |
string[] |
对于有效负载日志记录,我们默认仅收集有效负载。 如果客户还想要收集指定的标头,他们可以在 captureHeaders 中设置它们,以便后端将收集这些标头以及有效负载。 |
RollingRateType
名称 | 类型 | 说明 |
---|---|---|
Day |
string |
|
Hour |
string |
|
Minute |
string |
|
Month |
string |
|
Year |
string |
ScaleType
名称 | 类型 | 说明 |
---|---|---|
Default |
string |
|
TargetUtilization |
string |
Sku
表示 SKU 的资源模型定义
名称 | 类型 | 说明 |
---|---|---|
capacity |
integer |
如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 |
family |
string |
如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 |
name |
string |
SKU 的名称。 Ex - P3. 它通常是字母+数字代码 |
size |
string |
SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 |
tier |
如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 |
SkuTier
如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。
名称 | 类型 | 说明 |
---|---|---|
Basic |
string |
|
Free |
string |
|
Premium |
string |
|
Standard |
string |
systemData
与创建和上次修改资源相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源创建时间戳(UTC)。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识的类型。 |
|
lastModifiedAt |
string |
上次修改的资源时间戳(UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识的类型。 |
TargetUtilizationScaleSettings
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
maxInstances |
integer |
1 |
部署可缩放到的最大实例数。 配额将保留给max_instances。 |
minInstances |
integer |
1 |
要始终存在的最小实例数。 |
pollingInterval |
string |
PT1S |
ISO 8691 格式的轮询间隔。 仅支持精度为秒的持续时间。 |
scaleType |
string:
Target |
[必需]部署缩放算法的类型 |
|
targetUtilizationPercentage |
integer |
70 |
自动缩放程序的目标 CPU 使用率。 |
UserAssignedIdentity
用户分配的标识属性
名称 | 类型 | 说明 |
---|---|---|
clientId |
string |
分配的标识的客户端 ID。 |
principalId |
string |
已分配标识的主体 ID。 |