> ## Documentation Index
> Fetch the complete documentation index at: https://docs.veadk.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取制品版本元数据

> 返回指定版本的 URI、创建时间、MIME 类型与自定义元数据



## OpenAPI

````yaml productions/api-reference/openapi/zh/harness-runtime.json GET /apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}/versions/{version_id}/metadata
openapi: 3.1.0
info:
  title: Harness Runtime
  version: agentkit-cli 0.54.0 / SDK 0.8.0 / ADK 2.2.0
  description: >-
    AgentKit CLI 0.54.0 部署的 Harness Runtime，基于 VeADK 1.0.8、AgentKit SDK 0.8.0 与
    Google ADK 2.2.0 核验；定时任务另需启用配置
servers:
  - url: http://localhost:8000
    description: 本地服务
security:
  - {}
  - RuntimeBearer: []
tags:
  - name: 服务与应用
  - name: 会话
  - name: 智能体运行
  - name: 制品
  - name: 记忆
  - name: 评测 · 开发服务
  - name: 调试 · 开发服务
  - name: 兼容接口
  - name: Harness 定时任务
paths:
  /apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}/versions/{version_id}/metadata:
    get:
      tags:
        - 制品
      summary: 获取制品版本元数据
      description: 返回指定版本的 URI、创建时间、MIME 类型与自定义元数据
      operationId: harnessRuntimeGetArtifactMetadata
      parameters:
        - name: app_name
          in: path
          required: true
          schema:
            type: string
            title: App Name
          description: 应用名称，CLI 部署版为 harness_agent
          example: harness_agent
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            title: User Id
          description: 用户 ID
          example: user-001
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
          description: 会话 ID
          example: session-001
        - name: artifact_name
          in: path
          required: true
          schema:
            type: string
            title: Artifact Name
          description: 制品名称
          example: notes.txt
        - name: version_id
          in: path
          required: true
          schema:
            type: integer
            title: Version Id
          description: 制品版本号
          example: 0
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArtifactVersion'
        '404':
          description: 请求的资源不存在
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: 请求参数验证失败
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ArtifactVersion:
      properties:
        version:
          type: integer
          title: Version
          description: 单调递增的制品版本号
        canonicalUri:
          type: string
          title: Canonicaluri
          description: 已存储制品的规范 URI
        customMetadata:
          additionalProperties: true
          type: object
          title: Custommetadata
          description: 自定义元数据
        createTime:
          type: number
          title: Createtime
          description: 创建时间，Unix 时间戳，单位为秒
        mimeType:
          anyOf:
            - type: string
            - type: 'null'
          title: Mimetype
          description: 内容的 MIME 类型
      type: object
      required:
        - version
        - canonicalUri
      title: ArtifactVersion
    ApiError:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: 错误详情
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
          description: 错误详情
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
          description: 出错字段的位置
        msg:
          type: string
          title: Message
          description: 验证错误说明
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    RuntimeBearer:
      type: http
      scheme: bearer
      description: 本地未配置网关时可不提供；云部署使用 Runtime API Key 或部署要求的用户池 JWT，不能使用模型 API Key

````