Plant Tissue Analyses - Search
通过相交几何体在各方中搜索 PlantTissueAnalyses。
POST {endpoint}/plant-tissue-analyses:search?api-version=2023-11-01-preview
POST {endpoint}/plant-tissue-analyses:search?skipToken={skipToken}&maxPageSize={maxPageSize}&api-version=2023-11-01-preview
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
endpoint
|
path | True |
string (uri) |
命名空间的主机名,例如 admaInstanceName.farmbeats.azure.net |
api-version
|
query | True |
string |
请求的 API 版本 |
max
|
query |
integer (int32) minimum: 10maximum: 1000 |
所需的项数上限(含)。 最小值 = 10,最大值 = 1000,默认值 = 50。 |
|
skip
|
query |
string |
跳过令牌以获取下一组结果。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试了未经身份验证的调用,可能需要清除浏览器缓存。 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
cropIds |
string[] |
资源的 CropId。 |
cropProductIds |
string[] |
资源的 CropVariety ID。 |
fieldIds |
string[] |
资源的字段 ID。 |
ids |
string[] |
资源的 ID。 |
intersectsWithGeometry | GeoJsonObject: |
GeoJSON (有关详细信息:https://geojson.org/)。 注意:坐标应采用 [经度, 纬度] 格式。 |
maxCreatedDateTime |
string (date-time) |
资源的最大创建日期(含)。 |
maxLastModifiedDateTime |
string (date-time) |
资源(含)上次修改日期上限。 |
minCreatedDateTime |
string (date-time) |
资源(含)的最小创建日期。 |
minLastModifiedDateTime |
string (date-time) |
资源(含)的上次修改日期(含)。 |
names |
string[] |
资源的名称。 |
partyId |
string |
属于作数据的群 ID。 |
propertyFilters |
string[] |
筛选 Properties 对象中的键值对。 例如“{testKey} eq {testValue}”。 |
seasonIds |
string[] |
资源的季节 ID。 |
statuses |
string[] |
资源的状态。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功 |
|
Other Status Codes |
错误 标头 x-ms-error-code: string |
安全性
Authorization
请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试了未经身份验证的调用,可能需要清除浏览器缓存。
类型:
apiKey
在:
header
示例
PlantTissueAnalyses_Search
示例请求
POST {endpoint}/plant-tissue-analyses:search?maxPageSize=50&api-version=2023-11-01-preview
{
"intersectsWithGeometry": {
"type": "Polygon",
"coordinates": [
[
[
73.70457172393799,
20.545385304358106
],
[
73.70457172393799,
20.545385304358106
],
[
73.70448589324951,
20.542411534243367
],
[
73.70877742767334,
20.541688176010233
],
[
73.71023654937744,
20.545083911372505
],
[
73.70663166046143,
20.546992723579137
],
[
73.70457172393799,
20.545385304358106
]
]
]
}
}
示例响应
{
"value": [
{
"partyId": "FARMER123",
"id": "PLANTTISSUEANALYSIS123",
"seasonId": "Season123",
"fieldId": "Field123",
"plantingDateTime": "2021-03-21T06:49:30Z",
"plantPart": "PlantPart",
"plantPosition": "PlantPosition",
"plantAppearance": "PlantAppearance",
"sampleCollectionCondition": "SampleCollectionCondition",
"sampleCollectionDateTime": "2021-04-21T06:49:30Z",
"sampleReceivedDateTime": "2021-04-22T06:49:30Z",
"sampleTestResultDateTime": "2021-04-23T06:49:30Z",
"labDetails": {
"code": "LabId",
"name": "Name",
"address": "Address",
"description": "Description"
},
"name": "John Smith's ManagementZone",
"status": "Active",
"description": "Some description",
"properties": {
"Irrigated": "Yes"
},
"createdDateTime": "2021-04-21T06:49:30Z",
"modifiedDateTime": "2021-04-21T06:49:30Z",
"eTag": "0f8fad5b-d9cb-469f-a165-70867728950e"
}
],
"skipToken": "string",
"nextLink": "https://{{resourceName}}.farmbeats.azure.net/plant-tissue-analyses?api-version={{apiVersion}}&skipToken=%5b%7b%22token%22%3a%22%2bRID%3a%7e23TRC%3a10%23ISA%3d%22%2c%22range%22%3a%7b%22min%22%3a%22%22%2c%22max%22%3a%22FF%22%7d%7d%5d"
}
定义
名称 | 说明 |
---|---|
Error |
Azure AgPlatform 服务中的错误。 |
Error |
Azure AgPlatform 服务的错误响应。 请参阅 errorResponse 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。 |
Geo |
GeoJSON 对象类型。 |
Inner |
包含错误列表的内部错误。请参阅 innerError 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object。 |
Lab |
表示 LabDetails 对象的模型。 |
Multi |
MultiPolygon 几何图形。 |
Plant |
植物组织分析对象的 Api 模型。 |
Plant |
分页响应包含请求的对象列表和 skipToken 以获取下一组结果。 |
Point |
点几何图形。 |
Polygon |
多边形几何图形。 |
Search |
搜索 All PlantTissueAnalysis 和 Search PlantTissueAnalyses 参数。 |
Error
Azure AgPlatform 服务中的错误。
名称 | 类型 | 说明 |
---|---|---|
code |
string minLength: 1 |
服务器定义的错误代码集。 |
details |
Error[] |
导致此报告错误的特定错误的详细信息数组。 |
innererror |
包含错误列表的内部错误。请参阅 innerError 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object。 |
|
message |
string minLength: 1 |
错误的人工可读表示形式。 |
target |
string |
错误的目标。 |
ErrorResponse
Azure AgPlatform 服务的错误响应。 请参阅 errorResponse 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。
名称 | 类型 | 说明 |
---|---|---|
error |
Azure AgPlatform 服务中的错误。 |
|
traceId |
string |
唯一跟踪 ID。 |
GeoJsonObjectType
GeoJSON 对象类型。
值 | 说明 |
---|---|
MultiPolygon | |
Point | |
Polygon |
InnerError
包含错误列表的内部错误。请参阅 innerError 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
包含的错误提供的特定错误代码。 |
innererror |
包含错误列表的内部错误。请参阅 innerError 参考文档 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object。 |
LabDetails
表示 LabDetails 对象的模型。
名称 | 类型 | 说明 |
---|---|---|
address |
string minLength: 0maxLength: 500 |
资源的地址。 |
code |
string minLength: 0maxLength: 150 |
资源的代码。 |
description |
string minLength: 0maxLength: 500 |
资源的说明。 |
name |
string minLength: 0maxLength: 100 |
资源的名称。 |
MultiPolygon
MultiPolygon 几何图形。
名称 | 类型 | 说明 |
---|---|---|
coordinates |
number[] (double) |
获取或设置 GeoJSON 对象的坐标。 它必须是多边形数组,每个多边形都包含线性环的列表。 对于具有以上一个环的多边形,第一个必须是外环,任何其他环都必须是内部环。 |
type | string: |
GeoJSON 对象类型。 |
PlantTissueAnalysisMetaData
植物组织分析对象的 Api 模型。
名称 | 类型 | 说明 |
---|---|---|
createdBy |
string |
由用户/租户 ID 创建。 |
createdDateTime |
string (date-time) |
创建资源的日期时间,示例格式:yyyy-MM-ddTHH:mm:ssZ。 |
cropId |
string |
关联的裁剪的 ID。 |
cropProductId |
string |
关联的裁剪产品的 ID。 |
description |
string minLength: 0maxLength: 500 |
资源的文本说明。 |
eTag |
string |
实现乐观并发的 ETag 值。 |
fieldId |
string |
关联的字段的 ID。 |
growthStage |
string minLength: 0maxLength: 200 |
这种植物组织分析的生长阶段。 |
id |
string |
唯一的资源 ID。 |
labDetails |
表示 LabDetails 对象的模型。 |
|
modifiedBy |
string |
由用户/租户 ID 修改。 |
modifiedDateTime |
string (date-time) |
上次修改资源的日期时间,示例格式:yyyy-MM-ddTHH:mm:ssZ。 |
name |
string minLength: 0maxLength: 100 |
用于标识资源的名称。 |
partyId |
string |
关联的参与方的 ID。 |
plantAppearance |
string minLength: 0maxLength: 500 |
植物组织分析的植物外观。 |
plantPart |
string minLength: 0maxLength: 200 |
植物组织分析的植物部分。 |
plantPosition |
string minLength: 0maxLength: 200 |
植物组织分析的植物位置。 |
plantingDateTime |
string (date-time) |
此植物组织分析的种植日期时间。 |
properties |
属于资源的键值对的集合。 每对不能具有大于 50 个字符的键,并且不能具有大于 150 个字符的值。 注意:最多可以为资源提供 25 个键值对,仅支持字符串、数字和日期/时间(yyyy-MM-ddTHH:mm:ssZ) 值。 |
|
sampleCollectionCondition |
string minLength: 0maxLength: 500 |
此植物组织分析的示例收集条件。 |
sampleCollectionDateTime |
string (date-time) |
此植物组织分析的示例收集日期时间。 |
sampleReceivedDateTime |
string (date-time) |
收到的示例 dateTime。 |
sampleTestResultDateTime |
string (date-time) |
此植物组织分析的示例测试结果日期时间。 |
seasonId |
string |
关联的季节的 ID。 |
source |
string minLength: 2maxLength: 100 |
资源的源。 |
status |
string minLength: 0maxLength: 100 |
资源的状态。 |
PlantTissueAnalysisMetaDataListResponse
分页响应包含请求的对象列表和 skipToken 以获取下一组结果。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
指向列表中的下一页结果的延续链接(绝对 URI)。 |
skipToken |
string |
用于检索下一页的令牌。 如果为 null,则没有其他页面。 |
value |
请求的对象列表。 |
Point
点几何图形。
名称 | 类型 | 说明 |
---|---|---|
coordinates |
number[] (double) |
获取或设置此点的坐标。 它必须是 2D 或 3D 系统的 2 或 3 个元素的数组。 |
type | string: |
GeoJSON 对象类型。 |
Polygon
多边形几何图形。
名称 | 类型 | 说明 |
---|---|---|
coordinates |
number[] (double) |
获取或设置 GeoJSON 对象的类型。 它必须是线性环坐标数组的数组。 对于具有以上一个环的多边形,第一个必须是外环,任何其他环都必须是内部环。 |
type | string: |
GeoJSON 对象类型。 |
SearchPlantTissueAnalysisQuery
搜索 All PlantTissueAnalysis 和 Search PlantTissueAnalyses 参数。
名称 | 类型 | 说明 |
---|---|---|
cropIds |
string[] |
资源的 CropId。 |
cropProductIds |
string[] |
资源的 CropVariety ID。 |
fieldIds |
string[] |
资源的字段 ID。 |
ids |
string[] |
资源的 ID。 |
intersectsWithGeometry | GeoJsonObject: |
GeoJSON (有关详细信息:https://geojson.org/)。 注意:坐标应采用 [经度, 纬度] 格式。 |
maxCreatedDateTime |
string (date-time) |
资源的最大创建日期(含)。 |
maxLastModifiedDateTime |
string (date-time) |
资源(含)上次修改日期上限。 |
minCreatedDateTime |
string (date-time) |
资源(含)的最小创建日期。 |
minLastModifiedDateTime |
string (date-time) |
资源(含)的上次修改日期(含)。 |
names |
string[] |
资源的名称。 |
partyId |
string |
属于作数据的群 ID。 |
propertyFilters |
string[] |
筛选 Properties 对象中的键值对。 例如“{testKey} eq {testValue}”。 |
seasonIds |
string[] |
资源的季节 ID。 |
statuses |
string[] |
资源的状态。 |