你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Insight Attachments - List By Party Id Model Id And Resource

返回见解资源的分页列表。

GET {endpoint}/parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments?api-version=2023-11-01-preview
GET {endpoint}/parties/{partyId}/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments?insightIds={insightIds}&ids={ids}&names={names}&propertyFilters={propertyFilters}&statuses={statuses}&minCreatedDateTime={minCreatedDateTime}&maxCreatedDateTime={maxCreatedDateTime}&minLastModifiedDateTime={minLastModifiedDateTime}&maxLastModifiedDateTime={maxLastModifiedDateTime}&maxPageSize={maxPageSize}&skipToken={skipToken}&api-version=2023-11-01-preview

URI 参数

名称 必需 类型 说明
endpoint
path True

string

uri

命名空间的主机名,例如 admaInstanceName.farmbeats.azure.net

modelId
path True

string

关联模型的 ID。

partyId
path True

string

关联方的 ID。

resourceId
path True

string

关联资源的 ID。

resourceType
path True

string

与记录关联的资源类型。

api-version
query True

string

请求的 API 版本

ids
query

string[]

资源的 ID。

insightIds
query

string[]

见解 ID 列表。

maxCreatedDateTime
query

string

date-time

资源的最大创建日期 (非独占) 。

maxLastModifiedDateTime
query

string

date-time

资源 ((含) )的最大上次修改日期。

maxPageSize
query

integer

int32

(非独占) 所需的最大项数。 最小值 = 10,最大值 = 1000,默认值 = 50。

minCreatedDateTime
query

string

date-time

资源 (非独占) 的最小创建日期。

minLastModifiedDateTime
query

string

date-time

资源 ((含) )的最小上次修改日期。

names
query

string[]

资源的名称。

propertyFilters
query

string[]

对 Properties 对象中的键值对进行筛选。 例如 “{testKey} eq {testValue}”。

skipToken
query

string

跳过令牌以获取下一组结果。

statuses
query

string[]

资源的状态。

请求头

名称 必需 类型 说明
Authorization True

string

请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试过未经身份验证的调用,则可能需要清除浏览器缓存。

响应

名称 类型 说明
200 OK

InsightAttachmentListResponse

Success

Other Status Codes

ErrorResponse

错误

Headers

x-ms-error-code: string

安全性

Authorization

请为授权的 API 调用提供有效的持有者令牌。 请注意,如果之前尝试过未经身份验证的调用,则可能需要清除浏览器缓存。

Type: apiKey
In: header

示例

InsightAttachments_ListByPartyIdModelIdAndResource

Sample Request

GET {endpoint}/parties/PARTY123/models/modelId/resource-types/Farm/resources/farmId/insight-attachments?api-version=2023-11-01-preview

Sample Response

{
  "value": [
    {
      "id": "insightAttachmentId",
      "insightId": "insightId",
      "partyId": "pjparty",
      "resourceId": "farmId",
      "resourceType": "Farm",
      "modelId": "modelId",
      "createdDateTime": "2021-07-26T11:19:11Z",
      "modifiedDateTime": "2021-07-26T11:19:11Z",
      "eTag": "00000000-0000-0000-8210-0ef9229601d7",
      "status": "insightAttachmentStatus",
      "name": "insightAttachmentName",
      "description": "insightAttachmentDescription"
    }
  ],
  "skipToken": "skipToken",
  "nextLink": "https://{{resourceName}}.farmbeats.azure.net/models/{modelId}/resource-types/{resourceType}/resources/{resourceId}/insight-attachments?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 服务出错。

ErrorResponse

来自 Azure AgPlatform 服务的错误响应。 有关 ErrorResponse 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses

FarmHierarchyResourceType

与记录关联的资源类型。

InnerError

包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object

InsightAttachment

见解附件资源的架构。

InsightAttachmentListResponse

分页响应包含请求的对象列表和用于获取下一组结果的 URL 链接。

Error

Azure AgPlatform 服务出错。

名称 类型 说明
code

string

服务器定义的错误代码集。

details

Error[]

有关导致此报告错误的特定错误的详细信息数组。

innererror

InnerError

包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object

message

string

错误的用户可读表示形式。

target

string

错误的目标。

ErrorResponse

来自 Azure AgPlatform 服务的错误响应。 有关 ErrorResponse 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses

名称 类型 说明
error

Error

Azure AgPlatform 服务出错。

traceId

string

唯一跟踪 ID。

FarmHierarchyResourceType

与记录关联的资源类型。

名称 类型 说明
Farm

string

Field

string

Party

string

SeasonalField

string

InnerError

包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object

名称 类型 说明
code

string

包含错误提供的特定错误代码。

innererror

InnerError

包含错误列表的内部错误。有关 InnerError 参考文档,请参阅 https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object

InsightAttachment

见解附件资源的架构。

名称 类型 说明
createdBy

string

由用户/租户 ID 创建。

createdDateTime

string

创建资源的日期。

description

string

资源的文字说明。

eTag

string

用于实现乐观并发的 ETag 值。

id

string

唯一 ID。

insightId

string

此 InsightAttachment 的 InsightID。

modelId

string

此 InsightAttachment 的 ModelID。

modifiedBy

string

由用户/租户 ID 修改。

modifiedDateTime

string

上次修改资源的日期。

name

string

用于标识资源的名称。

originalFileName

string

此附件的原始文件名。

partyId

string

此附件的 PartyId ID。

resourceId

string

此附件的关联资源 ID。

resourceType

FarmHierarchyResourceType

此附件的关联资源类型。

source

string

资源的源。

status

string

资源的状态。

InsightAttachmentListResponse

分页响应包含请求的对象列表和用于获取下一组结果的 URL 链接。

名称 类型 说明
nextLink

string

列表中下一页结果的继续链接(绝对 URI)。

skipToken

string

检索下一页时使用的令牌。 如果为 null,则没有其他页。

value

InsightAttachment[]

请求的对象列表。