你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ServiceResourceProperties interface
服务资源属性。
- 扩展
属性
partition |
描述如何对服务进行分区。 |
provisioning |
当前部署或预配状态,仅在响应说明中显示:此属性不会序列化。 它只能由服务器填充。 |
service |
用于服务的 Dns 名称。 如果指定了此项,则可以通过其 DNS 名称而不是服务名称来访问该服务。 |
service |
服务类型(无状态或有状态服务)。 |
service |
服务包的激活模式 |
service |
服务类型的名称 |
继承属性
correlation |
描述服务与其他服务关联的列表。 |
default |
指定服务的移动成本。 |
placement |
作为字符串的放置约束。 放置约束是节点属性上的布尔表达式,允许根据服务要求将服务限制为特定节点。 例如,若要在 NodeType 为蓝色的节点上放置服务,请指定以下内容:“NodeColor == blue”。。 |
service |
服务负载指标作为 ServiceLoadMetricDescription 对象的数组提供。 |
service |
描述服务与其他服务关联的列表。 |
属性详细信息
partitionDescription
描述如何对服务进行分区。
partitionDescription?: PartitionSchemeDescriptionUnion
属性值
provisioningState
当前部署或预配状态,仅在响应说明中显示:此属性不会序列化。 它只能由服务器填充。
provisioningState?: string
属性值
string
serviceDnsName
用于服务的 Dns 名称。 如果指定了此项,则可以通过其 DNS 名称而不是服务名称来访问该服务。
serviceDnsName?: string
属性值
string
serviceKind
服务类型(无状态或有状态服务)。
serviceKind: string
属性值
string
servicePackageActivationMode
服务包的激活模式
servicePackageActivationMode?: string
属性值
string
serviceTypeName
服务类型的名称
serviceTypeName?: string
属性值
string
继承属性详细信息
correlationScheme
描述服务与其他服务关联的列表。
correlationScheme?: ServiceCorrelationDescription[]
属性值
defaultMoveCost
placementConstraints
作为字符串的放置约束。 放置约束是节点属性上的布尔表达式,允许根据服务要求将服务限制为特定节点。 例如,若要在 NodeType 为蓝色的节点上放置服务,请指定以下内容:“NodeColor == blue”。。
placementConstraints?: string
属性值
string
serviceLoadMetrics
服务负载指标作为 ServiceLoadMetricDescription 对象的数组提供。
serviceLoadMetrics?: ServiceLoadMetricDescription[]
属性值
servicePlacementPolicies
描述服务与其他服务关联的列表。
servicePlacementPolicies?: ServicePlacementPolicyDescription[]