你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Farm Equipments - Get
获取指定的服务器场设备资源。
GET {endpoint}/farm-equipments/{farmEquipmentId}?api-version=2023-11-01-preview
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
endpoint
|
path | True |
string uri |
命名空间的主机名,例如 admaInstanceName.farmbeats.azure.net |
farm
|
path | True |
string |
农场设备的 ID。 |
api-version
|
query | True |
string |
请求的 API 版本 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试过未经身份验证的调用,则可能需要清除浏览器缓存。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
Success |
|
Other Status Codes |
错误 Headers x-ms-error-code: string |
安全性
Authorization
请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试过未经身份验证的调用,则可能需要清除浏览器缓存。
Type:
apiKey
In:
header
示例
FarmEquipments_Get
Sample Request
GET {endpoint}/farm-equipments/Equipment123?api-version=2023-11-01-preview
Sample Response
{
"id": "Equipment123",
"cropIds": [
"CropId"
],
"reference": {
"datasetId": "datasetId",
"recordId": "recordId"
},
"brand": "string",
"series": "H",
"model": "1234",
"serial": "1234",
"type": "Harvester",
"ownership": "Personal",
"location": "US",
"company": {
"name": "Company123",
"description": "Equipment manufacturer",
"registrationNumber": "1234"
},
"status": "Active",
"source": "Manufacturer",
"name": "Equipment1",
"description": "string",
"properties": {
"key1": "value1",
"key2": 123.45
},
"createdDateTime": "2021-04-21T06:49:30Z",
"modifiedDateTime": "2021-04-21T06:49:30Z",
"createdBy": "00000000-0000-0000-0000-000000000000",
"modifiedBy": "00000000-0000-0000-0000-000000000000",
"eTag": "0f8fad5b-d9cb-469f-a165-70867728950e"
}
定义
名称 | 说明 |
---|---|
Company |
公司/制造商的详细信息。 |
Error |
Azure AgPlatform 服务出错。 |
Error |
来自 Azure AgPlatform 服务的错误响应。 请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses ErrorResponse 参考文档。 |
Farm |
FarmEquipment 资源的架构。 |
Inner |
包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object 。 |
Reference |
对数据集记录的引用。 |
Company
公司/制造商的详细信息。
名称 | 类型 | 说明 |
---|---|---|
description |
string |
制造公司说明。 |
name |
string |
制造公司的名称。 |
registrationNumber |
string |
公司的注册号。 |
Error
Azure AgPlatform 服务出错。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
服务器定义的错误代码集。 |
details |
Error[] |
有关导致此报告错误的特定错误的详细信息数组。 |
innererror |
包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object 。 |
|
message |
string |
错误的用户可读表示形式。 |
target |
string |
错误的目标。 |
ErrorResponse
来自 Azure AgPlatform 服务的错误响应。 请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses ErrorResponse 参考文档。
名称 | 类型 | 说明 |
---|---|---|
error |
Azure AgPlatform 服务出错。 |
|
traceId |
string |
唯一跟踪 ID。 |
FarmEquipment
FarmEquipment 资源的架构。
名称 | 类型 | 说明 |
---|---|---|
brand |
string |
化工产品的商业品牌。 |
company |
公司/制造商的详细信息。 |
|
createdBy |
string |
由用户/租户 ID 创建。 |
createdDateTime |
string |
创建资源的日期时间,示例格式:yyyy-MM-ddTHH:mm:ssZ。 |
cropIds |
string[] |
与化学产品关联的作物的 ID。 注意:最多可以有 25 个作物与一个 cropProduct 相关联。 |
description |
string |
资源的文本说明。 |
eTag |
string |
实现乐观并发的 ETag 值。 |
id |
string |
唯一资源 ID。 |
location |
string |
使用设备的区域。 |
model |
string |
服务器场设备的型号。 |
modifiedBy |
string |
由用户/租户 ID 修改。 |
modifiedDateTime |
string |
上次修改资源的日期时间,示例格式:yyyy-MM-ddTHH:mm:ssZ。 |
name |
string |
用于标识资源的名称。 |
ownership |
string |
拥有、租赁、共享等。 |
properties |
属于资源的键值对的集合。 每对的键不能超过 50 个字符,并且值不能大于 150 个字符。 注意:最多可以为资源提供 25 个键值对,并且仅支持字符串、数字和 datetime (yyyy-MM-ddTHH:mm:ssZ) 值。 |
|
reference |
对数据集记录的引用。 |
|
serial |
string |
服务器场设备的序列号。 |
series |
string |
服务器场设备的序列号。 |
source |
string |
资源的源。 |
status |
string |
资源的状态。 |
type |
string |
农场设备的类型 (耕机,播种机,收割机,喷洒机,...) 。 |
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 。 |
Reference
对数据集记录的引用。
名称 | 类型 | 说明 |
---|---|---|
datasetId |
string |
数据集 ID。 |
recordId |
string |
记录 ID。 |