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

# 列出层级

> 列出账户的用量层级，按优先级从高到低排列，同一优先级内按创建时间从新到旧排列。这也是解析 IdP 组层级时遵循的优先顺序。

有关字段详情和示例，请参阅[预算](https://docs.devinenterprise.com/zh/admin/billing/budgets.md#list-tiers)。

## 权限

需要使用在企业级具有 `ManageAcuLimits` 权限的[服务用户](https://docs.devinenterprise.com/zh/api-reference/v3/service-users/members-service-users.md)或[个人访问令牌](https://docs.devinenterprise.com/zh/api-reference/personal-access-tokens.md)，或者拥有该预算的[委派访问权限](https://docs.devinenterprise.com/zh/admin/billing/budgets.md#who-can-manage-a-budget)。


## OpenAPI

````yaml zh/v3-openapi.yaml GET /v3/enterprise/usage-policies/budgets/{budget_id}/tiers
openapi: 3.1.0
info:
  description: 采用 Service User 身份验证和 RBAC 的 Devin v3 API
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/usage-policies/budgets/{budget_id}/tiers:
    get:
      tags:
        - tiers
      summary: 列出层级
      description: 列出账户的用量层级，按优先级从高到低排列，同一优先级内按创建时间从新到旧排列。这也是解析 IdP 组层级时遵循的优先顺序。
      operationId: >-
        handle_list_tiers_v3_enterprise_usage_policies_budgets__budget_id__tiers_get
      parameters:
        - description: 需要管理用量策略的预算。
          in: path
          name: budget_id
          required: true
          schema:
            description: 需要管理用量策略的预算。
            title: Budget Id
            type: string
        - in: query
          name: after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - in: query
          name: first
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: First
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_TierResponse_'
          description: 成功响应
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 未授权
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 禁止访问
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 未找到
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 冲突
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 已永久删除
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 无法处理的内容
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 请求过多
components:
  schemas:
    PaginatedResponse_TierResponse_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: 用于获取下一页的游标；如果这是最后一页，则为 None。
          title: End Cursor
        has_next_page:
          default: false
          description: 此页之后是否还有更多条目。
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/TierResponse'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: 可选的总数（可省略以提高性能）。
          title: Total
      required:
        - items
      title: PaginatedResponse[TierResponse]
      type: object
    ProblemDetail:
      description: >-
        v3 API 的 RFC 9457 application/problem+json 错误响应体。


        detail 沿用自旧版 {"detail": ...} 响应体，以保持向后兼容；其他成员字段为新增字段。errors
        包含字段级验证失败信息（仅 422）。
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: 针对此次具体情况的、便于人理解的说明。
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: 因操作被阻止而拒绝请求时返回的机器可读代码（例如 "user_frozen"、"migrated_session"）。
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: 字段级验证错误（仅适用于 422 响应）。
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: 此次出现对应的 URI 引用（请求路径）。
          title: Instance
        status:
          description: HTTP 状态码。
          title: Status
          type: integer
        title:
          description: 对问题类型的简短、便于理解的概述。
          title: Title
          type: string
        type:
          default: about:blank
          description: 用于标识问题类型的 URI 引用。
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    TierResponse:
      description: 用量层级：为其成员设置统一的每周期默认 ACU 限额。
      properties:
        created_at:
          description: 层级的创建时间（Unix 时间戳，单位为秒）。
          title: Created At
          type: integer
        cycle_acu_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: 适用于该层级每位成员的每周期默认 ACU 限额；null 表示无上限。
          title: Cycle Acu Limit
        fallback_tier_id:
          anyOf:
            - type: string
            - type: 'null'
          description: 提供额外 ACU 的单跳回退层级。
          title: Fallback Tier Id
        is_default:
          description: 是否为账户的默认层级。所有未显式分配到其他层级的账户成员均属于默认层级。
          title: Is Default
          type: boolean
        is_service_user_default:
          default: false
          description: >-
            是否为账户的服务用户默认层级。未显式分配到任何层级的服务用户均属于此层级；若未设置此层级，则服务用户的用量无上限。服务用户不会归入常规默认层级。
          title: Is Service User Default
          type: boolean
        max_limit:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            提高限额请求可获批准的最高限额；null 表示批准时不设上限。当 cycle_acu_limit 为 null 时，此值始终为
            null。
          title: Max Limit
        member_count:
          description: 该层级当前的成员数量。对于默认层级，统计所有未固定分配到其他层级的账户成员。
          title: Member Count
          type: integer
        name:
          description: 账户内唯一的显示名称。
          title: Name
          type: string
        policy:
          description: >-
            针对该层级的提高限额请求的处理方式：'unconditional' 和 'conditional' 允许批准的限额最高为
            max_limit，'manual' 则需要管理员审查。
          enum:
            - unconditional
            - conditional
            - manual
          title: Policy
          type: string
        priority:
          description: >-
            该层级在用户从 IDP
            组派生的层级中的排名：值最高的层级优先，值相同时以最新创建的层级为准。排名仅决定优先级：优先级更高的层级可能具有更低的
            cycle_acu_limit。为用户显式分配的层级优先于排名结果，默认层级仅作回退，不参与排名。
          title: Priority
          type: integer
        tier_id:
          description: 层级的稳定外部标识符。
          title: Tier Id
          type: string
      required:
        - tier_id
        - name
        - is_default
        - cycle_acu_limit
        - policy
        - max_limit
        - priority
        - member_count
        - created_at
      title: TierResponse
      type: object
  securitySchemes:
    bearerAuth:
      description: 服务用户凭据（前缀：cog_）
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.