BentoML deployment v2 revision resource API

deployment revision resource

OpenAPI Specification

bentoml-deployment-v2-revision-resource-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: yatai api server admin api v1 deployment v2 revision resource API
  description: This is yatai api server.
  version: 1.0.0
tags:
- name: deployment v2 revision resource
  description: deployment revision resource
paths:
  /api/v2/deployments/{deploymentName}/revisions/{revisionUid}:
    get:
      tags:
      - deployment v2 revision resource
      summary: Get a deployment v2 revision
      operationId: Get a deployment v2 revision
      parameters:
      - name: deploymentName
        in: path
        required: true
        schema:
          type: string
      - name: revisionUid
        in: path
        required: true
        schema:
          type: string
      - name: cluster
        in: query
        schema:
          type: string
      - name: namespace
        in: query
        schema:
          type: string
      - name: X-Yatai-Organization
        in: header
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  created_at:
                    type: string
                    format: date-time
                  creator:
                    type: object
                    properties:
                      application_status:
                        type: string
                      avatar_url:
                        type: string
                      created_at:
                        type: string
                        format: date-time
                      deleted_at:
                        type: string
                        format: date-time
                        nullable: true
                      email:
                        type: string
                      first_name:
                        type: string
                      from_sso:
                        type: boolean
                      is_super_admin:
                        type: boolean
                      labels:
                        type: array
                        items:
                          $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                      last_name:
                        type: string
                      name:
                        type: string
                      perm:
                        type: string
                      register_stage:
                        type: string
                      resource_type:
                        type: string
                        enum:
                        - user
                        - organization
                        - cluster
                        - host_cluster
                        - bento_repository
                        - bento
                        - deployment
                        - deployment_revision
                        - model_repository
                        - model
                        - api_token
                      uid:
                        type: string
                      updated_at:
                        type: string
                        format: date-time
                  deleted_at:
                    type: string
                    format: date-time
                    nullable: true
                  deployment:
                    type: object
                    properties:
                      cluster:
                        type: object
                        properties:
                          created_at:
                            type: string
                            format: date-time
                          creator:
                            type: object
                            properties:
                              application_status:
                                type: string
                              avatar_url:
                                type: string
                              created_at:
                                type: string
                                format: date-time
                              deleted_at:
                                type: string
                                format: date-time
                                nullable: true
                              email:
                                type: string
                              first_name:
                                type: string
                              from_sso:
                                type: boolean
                              is_super_admin:
                                type: boolean
                              labels:
                                type: array
                                items:
                                  $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                              last_name:
                                type: string
                              name:
                                type: string
                              perm:
                                type: string
                              register_stage:
                                type: string
                              resource_type:
                                type: string
                                enum:
                                - user
                                - organization
                                - cluster
                                - host_cluster
                                - bento_repository
                                - bento
                                - deployment
                                - deployment_revision
                                - model_repository
                                - model
                                - api_token
                              uid:
                                type: string
                              updated_at:
                                type: string
                                format: date-time
                          default_deployment_kube_namespace:
                            type: string
                          deleted_at:
                            type: string
                            format: date-time
                            nullable: true
                          description:
                            type: string
                          grafana_root_path:
                            type: string
                          host_cluster_display_name:
                            type: string
                          host_cluster_name:
                            type: string
                          is_first:
                            type: boolean
                          labels:
                            type: array
                            items:
                              $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                          multi_tenancy:
                            type: boolean
                          name:
                            type: string
                          organization_name:
                            type: string
                          provider:
                            type: string
                          resource_type:
                            type: string
                            enum:
                            - user
                            - organization
                            - cluster
                            - host_cluster
                            - bento_repository
                            - bento
                            - deployment
                            - deployment_revision
                            - model_repository
                            - model
                            - api_token
                          uid:
                            type: string
                          updated_at:
                            type: string
                            format: date-time
                      created_at:
                        type: string
                        format: date-time
                      creator:
                        type: object
                        properties:
                          application_status:
                            type: string
                          avatar_url:
                            type: string
                          created_at:
                            type: string
                            format: date-time
                          deleted_at:
                            type: string
                            format: date-time
                            nullable: true
                          email:
                            type: string
                          first_name:
                            type: string
                          from_sso:
                            type: boolean
                          is_super_admin:
                            type: boolean
                          labels:
                            type: array
                            items:
                              $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                          last_name:
                            type: string
                          name:
                            type: string
                          perm:
                            type: string
                          register_stage:
                            type: string
                          resource_type:
                            type: string
                            enum:
                            - user
                            - organization
                            - cluster
                            - host_cluster
                            - bento_repository
                            - bento
                            - deployment
                            - deployment_revision
                            - model_repository
                            - model
                            - api_token
                          uid:
                            type: string
                          updated_at:
                            type: string
                            format: date-time
                      deleted_at:
                        type: string
                        format: date-time
                        nullable: true
                      description:
                        type: string
                      distributed:
                        type: boolean
                      kube_namespace:
                        type: string
                      labels:
                        type: array
                        items:
                          $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                      manifest:
                        $ref: '#/components/schemas/ModelschemasDeploymentManifest'
                      mode:
                        type: string
                        nullable: true
                      name:
                        type: string
                      resource_type:
                        type: string
                        enum:
                        - user
                        - organization
                        - cluster
                        - host_cluster
                        - bento_repository
                        - bento
                        - deployment
                        - deployment_revision
                        - model_repository
                        - model
                        - api_token
                      status:
                        type: string
                        enum:
                        - unknown
                        - non-deployed
                        - running
                        - unhealthy
                        - failed
                        - deploying
                      uid:
                        type: string
                      updated_at:
                        type: string
                        format: date-time
                      updater:
                        type: object
                        properties:
                          application_status:
                            type: string
                          avatar_url:
                            type: string
                          created_at:
                            type: string
                            format: date-time
                          deleted_at:
                            type: string
                            format: date-time
                            nullable: true
                          email:
                            type: string
                          first_name:
                            type: string
                          from_sso:
                            type: boolean
                          is_super_admin:
                            type: boolean
                          labels:
                            type: array
                            items:
                              $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                          last_name:
                            type: string
                          name:
                            type: string
                          perm:
                            type: string
                          register_stage:
                            type: string
                          resource_type:
                            type: string
                            enum:
                            - user
                            - organization
                            - cluster
                            - host_cluster
                            - bento_repository
                            - bento
                            - deployment
                            - deployment_revision
                            - model_repository
                            - model
                            - api_token
                          uid:
                            type: string
                          updated_at:
                            type: string
                            format: date-time
                  labels:
                    type: array
                    items:
                      $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                  name:
                    type: string
                  resource_type:
                    type: string
                    enum:
                    - user
                    - organization
                    - cluster
                    - host_cluster
                    - bento_repository
                    - bento
                    - deployment
                    - deployment_revision
                    - model_repository
                    - model
                    - api_token
                  status:
                    type: string
                    enum:
                    - active
                    - inactive
                  targets:
                    type: array
                    items:
                      type: object
                      properties:
                        bento:
                          type: object
                          properties:
                            bento_repository_uid:
                              type: string
                            build_at:
                              type: string
                              format: date-time
                            created_at:
                              type: string
                              format: date-time
                            creator:
                              type: object
                              properties:
                                application_status:
                                  type: string
                                avatar_url:
                                  type: string
                                created_at:
                                  type: string
                                  format: date-time
                                deleted_at:
                                  type: string
                                  format: date-time
                                  nullable: true
                                email:
                                  type: string
                                first_name:
                                  type: string
                                from_sso:
                                  type: boolean
                                is_super_admin:
                                  type: boolean
                                labels:
                                  type: array
                                  items:
                                    $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                                last_name:
                                  type: string
                                name:
                                  type: string
                                perm:
                                  type: string
                                register_stage:
                                  type: string
                                resource_type:
                                  type: string
                                  enum:
                                  - user
                                  - organization
                                  - cluster
                                  - host_cluster
                                  - bento_repository
                                  - bento
                                  - deployment
                                  - deployment_revision
                                  - model_repository
                                  - model
                                  - api_token
                                uid:
                                  type: string
                                updated_at:
                                  type: string
                                  format: date-time
                            deleted_at:
                              type: string
                              format: date-time
                              nullable: true
                            description:
                              type: string
                            image_build_status:
                              type: string
                            labels:
                              type: array
                              items:
                                $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                            manifest:
                              $ref: '#/components/schemas/ModelschemasBentoManifestSchema'
                            n_deployments:
                              type: integer
                              format: int32
                            name:
                              type: string
                            presigned_download_url:
                              type: string
                            presigned_upload_url:
                              type: string
                            presigned_urls_deprecated:
                              type: boolean
                            repository:
                              type: object
                              properties:
                                created_at:
                                  type: string
                                  format: date-time
                                creator:
                                  type: object
                                  properties:
                                    application_status:
                                      type: string
                                    avatar_url:
                                      type: string
                                    created_at:
                                      type: string
                                      format: date-time
                                    deleted_at:
                                      type: string
                                      format: date-time
                                      nullable: true
                                    email:
                                      type: string
                                    first_name:
                                      type: string
                                    from_sso:
                                      type: boolean
                                    is_super_admin:
                                      type: boolean
                                    labels:
                                      type: array
                                      items:
                                        $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                                    last_name:
                                      type: string
                                    name:
                                      type: string
                                    perm:
                                      type: string
                                    register_stage:
                                      type: string
                                    resource_type:
                                      type: string
                                      enum:
                                      - user
                                      - organization
                                      - cluster
                                      - host_cluster
                                      - bento_repository
                                      - bento
                                      - deployment
                                      - deployment_revision
                                      - model_repository
                                      - model
                                      - api_token
                                    uid:
                                      type: string
                                    updated_at:
                                      type: string
                                      format: date-time
                                deleted_at:
                                  type: string
                                  format: date-time
                                  nullable: true
                                description:
                                  type: string
                                labels:
                                  type: array
                                  items:
                                    $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                                latest_bento:
                                  type: object
                                  properties:
                                    bento_repository_uid:
                                      type: string
                                    build_at:
                                      type: string
                                      format: date-time
                                    created_at:
                                      type: string
                                      format: date-time
                                    creator:
                                      type: object
                                      properties:
                                        application_status:
                                          type: string
                                        avatar_url:
                                          type: string
                                        created_at:
                                          type: string
                                          format: date-time
                                        deleted_at:
                                          type: string
                                          format: date-time
                                          nullable: true
                                        email:
                                          type: string
                                        first_name:
                                          type: string
                                        from_sso:
                                          type: boolean
                                        is_super_admin:
                                          type: boolean
                                        labels:
                                          type: array
                                          items:
                                            $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                                        last_name:
                                          type: string
                                        name:
                                          type: string
                                        perm:
                                          type: string
                                        register_stage:
                                          type: string
                                        resource_type:
                                          type: string
                                          enum:
                                          - user
                                          - organization
                                          - cluster
                                          - host_cluster
                                          - bento_repository
                                          - bento
                                          - deployment
                                          - deployment_revision
                                          - model_repository
                                          - model
                                          - api_token
                                        uid:
                                          type: string
                                        updated_at:
                                          type: string
                                          format: date-time
                                    deleted_at:
                                      type: string
                                      format: date-time
                                      nullable: true
                                    description:
                                      type: string
                                    image_build_status:
                                      type: string
                                    labels:
                                      type: array
                                      items:
                                        $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                                    manifest:
                                      $ref: '#/components/schemas/ModelschemasBentoManifestSchema'
                                    name:
                                      type: string
                                    presigned_download_url:
                                      type: string
                                    presigned_upload_url:
                                      type: string
                                    presigned_urls_deprecated:
                                      type: boolean
                                    resource_type:
                                      type: string
                                      enum:
                                      - user
                                      - organization
                                      - cluster
                                      - host_cluster
                                      - bento_repository
                                      - bento
                                      - deployment
                                      - deployment_revision
                                      - model_repository
                                      - model
                                      - api_token
                                    transmission_strategy:
                                      type: string
                                      nullable: true
                                    uid:
                                      type: string
                                    updated_at:
                                      type: string
                                      format: date-time
                                    upload_finished_at:
                                      type: string
                                      format: date-time
                                      nullable: true
                                    upload_finished_reason:
                                      type: string
                                    upload_id:
                                      type: string
                                    upload_started_at:
                                      type: string
                                      format: date-time
                                      nullable: true
                                    upload_status:
                                      type: string
                                    version:
                                      type: string
                                latest_bentos:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      bento_repository_uid:
                                        type: string
                                      build_at:
                                        type: string
                                        format: date-time
                                      created_at:
                                        type: string
                                        format: date-time
                                      creator:
                                        type: object
                                        properties:
                                          application_status:
                                            type: string
                                          avatar_url:
                                            type: string
                                          created_at:
                                            type: string
                                            format: date-time
                                          deleted_at:
                                            type: string
                                            format: date-time
                                            nullable: true
                                          email:
                                            type: string
                                          first_name:
                                            type: string
                                          from_sso:
                                            type: boolean
                                          is_super_admin:
                                            type: boolean
                                          labels:
                                            type: array
                                            items:
                                              $ref: '#/components/schemas/ModelschemasLabelItemSchema'
                                          last_name:
                                            type: string
                                          name:
                                            type: string
                                          perm:
                                            type: string
                                          register_stage:
                                            type: string
                                          resource_type:
                                            type: string
                                            enum:
                                            - user
                                            - organization
                                            - cluster
                                            - host_cluster
                                            - bento_repository
                                            - bento
                                            - deployment
                                            - deployment_revision
                                            - model_repository
                                            - model
                                     

# --- truncated at 32 KB (82 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/bentoml/refs/heads/main/openapi/bentoml-deployment-v2-revision-resource-api-openapi.yml