您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

按分区 ID 获取已部署的服务副本详细信息Get Deployed Service Replica Detail Info By Partition Id

获取部署在 Service Fabric 节点上的副本的详细信息。Gets the details of replica deployed on a Service Fabric node.

获取部署在 Service Fabric 节点上的副本的详细信息。Gets the details of the replica deployed on a Service Fabric node. 信息包括服务类型、服务名称、当前服务操作、当前服务操作开始日期时间、分区 ID、副本/实例 ID、报告的负载和其他信息。The information includes service kind, service name, current service operation, current service operation start date time, partition ID, replica/instance ID, reported load, and other information.

请求Request

方法Method 请求 URIRequest URI
GETGET /Nodes/{nodeName}/$/GetPartitions/{partitionId}/$/GetReplicas?api-version=6.0&timeout={timeout}

parametersParameters

名称Name 类型Type 必选Required 位置Location
nodeName 字符串string Yes 路径Path
partitionId 字符串(uuid)string (uuid) Yes 路径Path
api-version 字符串string Yes 查询Query
timeout 整数 (int64)integer (int64) No 查询Query

nodeName

类型: 字符串Type: string
必需: 是Required: Yes

节点的名称。The name of the node.


partitionId

类型: 字符串 (uuid)Type: string (uuid)
必需: 是Required: Yes

分区的标识。The identity of the partition.


api-version

类型: 字符串Type: string
必需: 是Required: Yes
默认值6.0Default: 6.0

API 的版本。The version of the API. 此参数是必需的,其值必须为"6.0"。This parameter is required and its value must be '6.0'.

服务结构 REST API 版本基于引入或更改 API 的运行时版本。Service Fabric REST API version is based on the runtime version in which the API was introduced or was changed. 服务结构运行时支持多个版本的 API。Service Fabric runtime supports more than one version of the API. 这是 API 支持的最新版本。This is the latest supported version of the API. 如果传递了较低的 API 版本,则返回的响应可能与本规范中记录的响应不同。If a lower API version is passed, the returned response may be different from the one documented in this specification.

此外,运行时接受任何版本高于当前受支持的版本,以连接到运行时的当前版本。Additionally the runtime accept any version that is higher than the latest supported version up to the current version of the runtime. 因此,如果最新的 API 版本为 6.0,但如果运行时为 6.1,为了更轻松地编写客户端,运行时将接受该 API 的版本 6.1。So if the latest API version is 6.0, but if the runtime is 6.1, in order to make it easier to write the clients, the runtime will accept version 6.1 for that API. 但是,API 的行为将按文档记录的 6.0 版本进行。However the behavior of the API will be as per the documented 6.0 version.


timeout

类型: 整数 (int64)Type: integer (int64)
必需: 否Required: No
默认值60Default: 60
包含最大值4294967295InclusiveMaximum: 4294967295
包含最小 :1InclusiveMinimum: 1

执行操作的服务器超时,以秒为单位。The server timeout for performing the operation in seconds. 此超时指定客户端可以等待请求的操作完成的持续时间。This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. 此参数的默认值为 60 秒。The default value for this parameter is 60 seconds.

响应Responses

HTTP 状态代码HTTP Status Code 说明Description 响应架构Response Schema
200 (正常)200 (OK) 成功操作将返回 200 状态代码和已部署的服务副本信息列表。A successful operation will return 200 status code and the list of deployed service replica information.
已部署的服务副本详细信息DeployedServiceReplicaDetailInfo
所有其他状态代码All other status codes 详细的错误响应。The detailed error response.
结构错误FabricError