Zum Hauptinhalt springen

Get all ai hosting plans and usages of a project

GET/v2/projects/{projectId}/ai-hostings/
API version
v2
Request method
GET
Operation ID
ai-hosting-project-get-plans

Request

  • projectIdstring
    required

Responses

Response-Header

  • X-Pagination-Limitinteger

    The limit used to select the resources for the response

  • X-Pagination-Skipinteger

    The number of skipped items

  • X-Pagination-Pagenumber

    The calculate page of the list response. Refer to parameters to learn more.

  • X-Pagination-TotalCountinteger

    The total amount of items available in the remote ressource. Use this value in combination with the limit to calculate the available pages.

Format
application/json
Beschreibung

The list of plans with the project's current usage.

  • modelTermsApprovalRequiredboolean
    required
  • plansarray of object
    required
    • Array[
      • *object
        • descriptionstring
        • keysobject
          required
          • availableinteger (≥ -1)
            required
          • planLimitinteger (≥ -1)
            required
          • usedinteger (≥ 0)
            required
        • modelTermsApprovalRequiredboolean
          required
        • nextTokenResetstring (date-time)
        • planIdstring
          required
        • projectIdstring
          required
      ]

Usage examples

$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/projects/string/ai-hostings?limit=50&page=1