共用方式為


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 參數

名稱 位於 必要 類型 Description
endpoint
path True

string (uri)

命名空間的主機名,例如 admaInstanceName.farmbeats.azure.net

api-version
query True

string

要求的 API 版本

maxPageSize
query

integer (int32)

minimum: 10
maximum: 1000

所需的項目數目上限(含)。 最小值 = 10,最大值 = 1000,預設值 = 50。

skipToken
query

string

略過令牌以取得下一組結果。

要求標頭

名稱 必要 類型 Description
Authorization True

string

請提供授權 API 呼叫的有效持有人令牌。 請注意,如果您之前嘗試未驗證的呼叫,您可能需要清除瀏覽器快取。

要求本文

名稱 類型 Description
cropIds

string[]

資源的 CropId。

cropProductIds

string[]

資源的 CropVariety 識別符。

fieldIds

string[]

資源的欄位識別碼。

ids

string[]

資源的標識碼。

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

屬於作業數據的合作物件標識碼。

propertyFilters

string[]

篩選 Properties 物件內的索引鍵/值組。 例如 “{testKey} eq {testValue}”。

seasonIds

string[]

資源的季節標識碼。

statuses

string[]

資源的狀態。

回應

名稱 類型 Description
200 OK

PlantTissueAnalysisMetaDataListResponse

成功

Other Status Codes

ErrorResponse

錯誤

標題

x-ms-error-code: string

安全性

Authorization

請提供授權 API 呼叫的有效持有人令牌。 請注意,如果您之前嘗試未驗證的呼叫,您可能需要清除瀏覽器快取。

類型: apiKey
位於: header

範例

範例要求

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"
}

定義

名稱 Description
Error

來自 Azure AgPlatform 服務的錯誤。

ErrorResponse

來自 Azure AgPlatform 服務的錯誤回應。 如需 ErrorResponse 參考檔,請參閱 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses

GeoJsonObjectType

GeoJSON 物件類型。

InnerError

包含錯誤清單的內部錯誤。請參閱 innerError 參考檔 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object

LabDetails

代表 LabDetails 物件的模型。

MultiPolygon

MultiPolygon 幾何。

PlantTissueAnalysisMetaData

植物組織分析物件的 API 模型。

PlantTissueAnalysisMetaDataListResponse

分頁回應包含要求的物件清單和skipToken,以取得下一組結果。

Point

點幾何。

Polygon

多邊形幾何。

SearchPlantTissueAnalysisQuery

搜尋所有 PlantTissueAnalysis 和 Search PlantTissueAnalyses 參數。

Error

來自 Azure AgPlatform 服務的錯誤。

名稱 類型 Description
code

string

minLength: 1

伺服器定義的錯誤碼集。

details

Error[]

導致此錯誤之特定錯誤的詳細數據陣列。

innererror

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

名稱 類型 Description
error

Error

來自 Azure AgPlatform 服務的錯誤。

traceId

string

唯一追蹤標識碼。

GeoJsonObjectType

GeoJSON 物件類型。

Description
Point
Polygon
MultiPolygon

InnerError

包含錯誤清單的內部錯誤。請參閱 innerError 參考檔 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object

名稱 類型 Description
code

string

包含錯誤所提供的特定錯誤碼。

innererror

InnerError

包含錯誤清單的內部錯誤。請參閱 innerError 參考檔 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object

LabDetails

代表 LabDetails 物件的模型。

名稱 類型 Description
address

string

minLength: 0
maxLength: 500

資源的位址。

code

string

minLength: 0
maxLength: 150

資源的程序代碼。

description

string

minLength: 0
maxLength: 500

資源的描述。

name

string

minLength: 0
maxLength: 100

資源的名稱。

MultiPolygon

MultiPolygon 幾何。

名稱 類型 Description
coordinates

number[] (double)

取得或設定 GeoJSON 物件的座標。 它必須是多邊形陣列,每個多邊形都包含線性環形的清單。 對於有多個環形的多邊形,第一個必須是外部環形,而任何其他必須是內部環形。

type string:

MultiPolygon

GeoJSON 物件類型。

PlantTissueAnalysisMetaData

植物組織分析物件的 API 模型。

名稱 類型 Description
createdBy

string

由使用者/租使用者標識碼建立。

createdDateTime

string (date-time)

建立資源的日期時間,範例格式:yyyy-MM-ddTHH:mm:ssZ。

cropId

string

相關聯 Crop 的識別碼。

cropProductId

string

相關聯 Crop 產品的標識碼。

description

string

minLength: 0
maxLength: 500

資源的文字描述。

eTag

string

要實作開放式並行存取的ETag值。

fieldId

string

相關聯欄位的標識碼。

growthStage

string

minLength: 0
maxLength: 200

這種植物組織分析的生長階段。

id

string

唯一的資源標識碼。

labDetails

LabDetails

代表 LabDetails 物件的模型。

modifiedBy

string

由使用者/租使用者標識碼修改。

modifiedDateTime

string (date-time)

上次修改資源的日期時間,範例格式:yyyy-MM-ddTHH:mm:ssZ。

name

string

minLength: 0
maxLength: 100

用來識別資源的名稱。

partyId

string

相關聯合作對象的標識碼。

plantAppearance

string

minLength: 0
maxLength: 500

這種植物組織分析的植物外觀。

plantPart

string

minLength: 0
maxLength: 200

此植物組織分析的植物部分。

plantPosition

string

minLength: 0
maxLength: 200

此植物組織分析的植物位置。

plantingDateTime

string (date-time)

此植物組織分析的種植日期時間。

properties

屬於資源的索引鍵值組集合。 每個配對不能有大於 50 個字元的索引鍵,而且不能有大於 150 個字元的值。 注意:最多可以針對資源提供 25 個索引鍵值組,而且只支援字串、數位和日期時間 (yyyy-MM-ddTHH:mm:ssZ) 值。

sampleCollectionCondition

string

minLength: 0
maxLength: 500

此植物組織分析的樣本收集條件。

sampleCollectionDateTime

string (date-time)

此植物組織分析的樣本收集日期時間。

sampleReceivedDateTime

string (date-time)

收到日期時間的範例。

sampleTestResultDateTime

string (date-time)

此植物組織分析的範例測試結果日期時間。

seasonId

string

相關聯季節的標識碼。

source

string

minLength: 2
maxLength: 100

資源的來源。

status

string

minLength: 0
maxLength: 100

資源的狀態。

PlantTissueAnalysisMetaDataListResponse

分頁回應包含要求的物件清單和skipToken,以取得下一組結果。

名稱 類型 Description
nextLink

string

清單中結果下一頁的接續連結(絕對 URI)。

skipToken

string

用於擷取下一頁的令牌。 如果為 null,則沒有任何其他頁面。

value

PlantTissueAnalysisMetaData[]

要求的物件清單。

Point

點幾何。

名稱 類型 Description
coordinates

number[] (double)

取得或設定這個點的座標。 它必須是 2D 或 3D 系統的 2 或 3 個項目陣列。

type string:

Point

GeoJSON 物件類型。

Polygon

多邊形幾何。

名稱 類型 Description
coordinates

number[] (double)

取得或設定 GeoJSON 物件的類型。 它必須是線性環形座標數位的陣列。 對於有多個環形的多邊形,第一個必須是外部環形,而任何其他必須是內部環形。

type string:

Polygon

GeoJSON 物件類型。

SearchPlantTissueAnalysisQuery

搜尋所有 PlantTissueAnalysis 和 Search PlantTissueAnalyses 參數。

名稱 類型 Description
cropIds

string[]

資源的 CropId。

cropProductIds

string[]

資源的 CropVariety 識別符。

fieldIds

string[]

資源的欄位識別碼。

ids

string[]

資源的標識碼。

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

屬於作業數據的合作物件標識碼。

propertyFilters

string[]

篩選 Properties 物件內的索引鍵/值組。 例如 “{testKey} eq {testValue}”。

seasonIds

string[]

資源的季節標識碼。

statuses

string[]

資源的狀態。