Spectro Cloud workspaces API

The workspaces API from Spectro Cloud — 14 operation(s) for workspaces.

Operations 21

POST /v1/workspaces Create workspace #
GET /v1/workspaces/teams/{teamUid}/roles Returns the specified team's workspaces and roles data #
PUT /v1/workspaces/teams/{teamUid}/roles Updates the workspace roles for the specified team #
GET /v1/workspaces/users/{userUid}/roles Returns the specified User workspaces and Roles information #
PUT /v1/workspaces/users/{userUid}/roles Updates the workspace roles for user #
GET /v1/workspaces/validate/name Validates the workspace name #
DELETE /v1/workspaces/{uid} Deletes the specified workspace #
GET /v1/workspaces/{uid} Returns the specified workspace #
DELETE /v1/workspaces/{uid}/backup Delete workspace backup #
GET /v1/workspaces/{uid}/backup Returns the workspace backup result #
POST /v1/workspaces/{uid}/backup Create workspace backup settings #
PUT /v1/workspaces/{uid}/backup Update workspace backup settings #
POST /v1/workspaces/{uid}/backup/onDemand Create On demand Workspace Backup #
PUT /v1/workspaces/{uid}/clusterNamespaces Updates the specified workspace namespaces #
POST /v1/workspaces/{uid}/clusterRbacs Create cluster rbac in workspace #
DELETE /v1/workspaces/{uid}/clusterRbacs/{clusterRbacUid} Deletes the specified workspace cluster rbac #
PUT /v1/workspaces/{uid}/clusterRbacs/{clusterRbacUid} Updates the specified workspace cluster rbac #
PUT /v1/workspaces/{uid}/meta Updates the specified workspace meta #
PUT /v1/workspaces/{uid}/resourceAllocations Updates the specified workspace resource allocations #
GET /v1/workspaces/{uid}/restore Returns the workspace restore result #
POST /v1/workspaces/{uid}/restore/onDemand Create On demand Workspace Restore #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spectro-cloud-workspaces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spectro-cloud-workspaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Local Management APIs activations Workspaces API
  version: v1
servers:
- url: https://edge-host-ip:5080
tags:
- name: workspaces
  x-displayName: Workspaces
paths:
  /v1/workspaces:
    post:
      operationId: v1WorkspacesCreate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '201':
          description: Created successfully
          headers:
            AuditUid:
              description: Audit uid for the request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1Uid'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Create workspace
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspaceEntity'
  /v1/workspaces/teams/{teamUid}/roles:
    parameters:
    - in: path
      name: teamUid
      required: true
      schema:
        type: string
    get:
      operationId: v1TeamsWorkspaceGetRoles
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1WorkspaceScopeRoles'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Returns the specified team's workspaces and roles data
      tags:
      - workspaces
    put:
      operationId: v1TeamsWorkspaceRolesPut
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was updated successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Updates the workspace roles for the specified team
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspacesRolesPatch'
        required: true
  /v1/workspaces/users/{userUid}/roles:
    parameters:
    - in: path
      name: userUid
      required: true
      schema:
        type: string
    get:
      description: Returns a User with workspaces and roles
      operationId: v1UsersWorkspaceGetRoles
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1WorkspaceScopeRoles'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Returns the specified User workspaces and Roles information
      tags:
      - workspaces
    put:
      description: User is updated with workspace roles
      operationId: v1UsersWorkspaceRolesPut
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was updated successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Updates the workspace roles for user
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspacesRolesPatch'
        required: true
  /v1/workspaces/validate/name:
    get:
      operationId: v1WorkspacesValidateName
      parameters:
      - in: query
        name: name
        required: true
        schema:
          type: string
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: Ok response without content
          headers:
            AuditUid:
              description: Audit uid for the request
              schema:
                type: string
      security:
      - ApiKey: []
      - Authorization: []
      summary: Validates the workspace name
      tags:
      - workspaces
  /v1/workspaces/{uid}:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    delete:
      operationId: v1WorkspacesUidDelete
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was deleted successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Deletes the specified workspace
      tags:
      - workspaces
    get:
      operationId: v1WorkspacesUidGet
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1Workspace'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Returns the specified workspace
      tags:
      - workspaces
  /v1/workspaces/{uid}/backup:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    delete:
      operationId: v1WorkspaceOpsBackupDelete
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was deleted successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Delete workspace backup
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspaceBackupDeleteEntity'
    get:
      operationId: v1WorkspaceOpsBackupGet
      parameters:
      - in: query
        name: backupRequestUid
        schema:
          type: string
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1WorkspaceBackup'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Returns the  workspace backup result
      tags:
      - workspaces
    post:
      operationId: v1WorkspaceOpsBackupCreate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '201':
          description: Created successfully
          headers:
            AuditUid:
              description: Audit uid for the request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1Uid'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Create workspace backup settings
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspaceBackupConfigEntity'
    put:
      operationId: v1WorkspaceOpsBackupUpdate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was updated successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Update workspace backup settings
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspaceBackupConfigEntity'
  /v1/workspaces/{uid}/backup/onDemand:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    post:
      operationId: v1WorkspaceOpsBackupOnDemandCreate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '201':
          description: Created successfully
          headers:
            AuditUid:
              description: Audit uid for the request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1Uid'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Create On demand Workspace Backup
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspaceBackupConfigEntity'
  /v1/workspaces/{uid}/clusterNamespaces:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    put:
      operationId: v1WorkspacesUidClusterNamespacesUpdate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was updated successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Updates the specified workspace namespaces
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspaceClusterNamespacesEntity'
  /v1/workspaces/{uid}/clusterRbacs:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    post:
      operationId: v1WorkspacesClusterRbacCreate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '201':
          description: Created successfully
          headers:
            AuditUid:
              description: Audit uid for the request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1Uid'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Create cluster rbac in workspace
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1ClusterRbac'
  /v1/workspaces/{uid}/clusterRbacs/{clusterRbacUid}:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    - in: path
      name: clusterRbacUid
      required: true
      schema:
        type: string
    delete:
      operationId: v1WorkspacesUidClusterRbacDelete
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was deleted successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Deletes the specified workspace cluster rbac
      tags:
      - workspaces
    put:
      operationId: v1WorkspacesUidClusterRbacUpdate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was updated successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Updates the specified workspace cluster rbac
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1ClusterRbac'
  /v1/workspaces/{uid}/meta:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    put:
      operationId: v1WorkspacesUidMetaUpdate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was updated successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Updates the specified workspace meta
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1ObjectMeta'
  /v1/workspaces/{uid}/resourceAllocations:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    put:
      description: Deprecated
      operationId: v1WorkspacesUidResourceAllocationsUpdate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '204':
          description: The resource was updated successfully
      security:
      - ApiKey: []
      - Authorization: []
      summary: Updates the specified workspace resource allocations
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspaceResourceAllocationsEntity'
  /v1/workspaces/{uid}/restore:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    get:
      operationId: v1WorkspaceOpsRestoreGet
      parameters:
      - in: query
        name: restoreRequestUid
        schema:
          type: string
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1WorkspaceRestore'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Returns the  workspace restore result
      tags:
      - workspaces
  /v1/workspaces/{uid}/restore/onDemand:
    parameters:
    - in: path
      name: uid
      required: true
      schema:
        type: string
    post:
      operationId: v1WorkspaceOpsRestoreOnDemandCreate
      parameters:
      - description: A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources
        in: header
        name: ProjectUid
        schema:
          type: string
      responses:
        '201':
          description: Created successfully
          headers:
            AuditUid:
              description: Audit uid for the request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/v1Uid'
      security:
      - ApiKey: []
      - Authorization: []
      summary: Create On demand Workspace Restore
      tags:
      - workspaces
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/v1WorkspaceRestoreConfigEntity'
components:
  schemas:
    v1WorkspaceBackupConfig:
      description: Workspace backup config
      properties:
        backupConfig:
          $ref: '#/components/schemas/v1ClusterBackupConfig'
        clusterUids:
          items:
            type: string
          type: array
          uniqueItems: true
        includeAllClusters:
          type: boolean
    v1WorkspaceStatus:
      description: Workspace status
      properties:
        errors:
          items:
            $ref: '#/components/schemas/v1WorkspaceError'
          type: array
          uniqueItems: true
    v1RelatedObject:
      description: Object for which the resource is related
      properties:
        kind:
          enum:
          - spectrocluster
          - machine
          - cloudconfig
          - clusterprofile
          - pack
          - appprofile
          - appdeployment
          - edgehost
          type: string
        name:
          type: string
        uid:
          type: string
      type: object
    v1ObjectMeta:
      description: ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
      properties:
        annotations:
          additionalProperties:
            type: string
          description: 'Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations'
          type: object
        creationTimestamp:
          $ref: '#/components/schemas/v1Time'
          description: 'CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.


            Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
        deletionTimestamp:
          $ref: '#/components/schemas/v1Time'
          description: 'DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.


            Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
        labels:
          additionalProperties:
            type: string
          description: 'Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels'
          type: object
        lastModifiedTimestamp:
          $ref: '#/components/schemas/v1Time'
          description: 'LastModifiedTimestamp is a timestamp representing the server time when this object was last modified. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.


            Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata'
        name:
          description: 'Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names'
          type: string
        uid:
          description: 'UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.


            Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids'
          type: string
      type: object
    v1WorkspaceRestoreConfig:
      description: Workspace cluster restore config
      properties:
        backupName:
          type: string
        includeClusterResourceMode:
          $ref: '#/components/schemas/v1IncludeClusterResourceMode'
        includeClusterResources:
          description: Deprecated. Use includeClusterResourceMode
          type: boolean
        includeNamespaces:
          items:
            type: string
          type: array
          uniqueItems: true
        preserveNodePorts:
          type: boolean
        restorePVs:
          type: boolean
        sourceClusterUid:
          type: string
      required:
      - backupName
      - sourceClusterUid
    v1WorkspaceClusterRestoreConfig:
      description: Workspace cluster restore config
      properties:
        backupName:
          type: string
        clusterRestoreRefs:
          items:
            $ref: '#/components/schemas/v1WorkspaceClusterRestoreResponse'
          type: array
        restoreState:
          $ref: '#/components/schemas/v1WorkspaceRestoreState'
        restoreTime:
          $ref: '#/components/schemas/v1Time'
    v1Time:
      description: Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.  Wrappers are provided for many of the factory methods that the time package offers.
      format: date-time
      type: string
    v1ClusterRbacSpec:
      description: Cluster RBAC spec
      properties:
        bindings:
          items:
            $ref: '#/components/schemas/v1ClusterRbacBinding'
          type: array
          uniqueItems: true
        isSystem:
          default: false
          description: Set to true when the binding is created automatically by the system, rather than manually by the user
          type: boolean
        relatedObject:
          $ref: '#/components/schemas/v1RelatedObject'
      type: object
    v1ClusterRbac:
      description: Cluster RBAC role binding defintion
      properties:
        metadata:
          $ref: '#/components/schemas/v1ObjectMeta'
        spec:
          $ref: '#/components/schemas/v1ClusterRbacSpec'
        status:
          $ref: '#/components/schemas/v1ClusterRbacStatus'
      type: object
    v1Uid:
      properties:
        uid:
          type: string
      required:
      - uid
      type: object
    v1WorkspaceBackupStatusMeta:
      description: Workspace backup status meta
      properties:
        actor:
          $ref: '#/components/schemas/v1ClusterFeatureActor'
        requestUid:
          type: string
        workspaceBackupConfig:
          $ref: '#/components/schemas/v1WorkspaceClusterBackupConfig'
    v1WorkspaceQuota:
      description: Workspace resource quota
      properties:
        resourceAllocation:
          $ref: '#/components/schemas/v1WorkspaceResourceAllocation'
    v1ClusterBackupConfig:
      description: Cluster backup config
      properties:
        backupLocationName:
          type: string
        backupLocationUid:
          type: string
        backupName:
          type: string
        backupPrefix:
          type: string
        durationInHours:
          format: int64
          type: number
        includeAllDisks:
          type: boolean
        includeClusterResourceMode:
          $ref: '#/components/schemas/v1IncludeClusterResourceMode'
        includeClusterResources:
          description: Deprecated. Use includeClusterResourceMode
          type: boolean
        locationType:
          type: string
        namespaces:
          items:
            type: string
          type: array
          uniqueItems: true
        schedule:
          $ref: '#/components/schemas/v1ClusterFeatureSchedule'
    v1WorkspaceScopeRoles:
      description: List all workspaces with the roles assigned to the users
      properties:
        projects:
          items:
            $ref: '#/components/schemas/v1ProjectsWorkspaces'
          type: array
          uniqueItems: true
    v1WorkspaceClusterNamespacesEntity:
      description: Workspace cluster namespaces update entity
      properties:
        clusterNamespaces:
          items:
            $ref: '#/components/schemas/v1WorkspaceClusterNamespace'
          type: array
          uniqueItems: true
        clusterRefs:
          items:
            $ref: '#/components/schemas/v1WorkspaceClusterRef'
          type: array
          uniqueItems: true
        quota:
          $ref: '#/components/schemas/v1WorkspaceQuota'
    v1WorkspaceRestoreStatusMeta:
      description: Workspace restore status meta
      properties:
        actor:
          $ref: '#/components/schemas/v1ClusterFeatureActor'
        requestUid:
          type: string
        workspaceRestoreConfig:
          $ref: '#/components/schemas/v1WorkspaceClusterRestoreConfig'
    v1WorkspaceClusterBackupResponse:
      description: Workspace cluster backup response
      properties:
        backupStatusMeta:
          $ref: '#/components/schemas/v1BackupStatusMeta'
        backupUid:
          type: string
        clusterName:
          type: string
        clusterUid:
          type: string
    v1BackupStatusMeta:
      description: Backup  status meta
      properties:
        backupName:
          type: string
        backupState:
          $ref: '#/components/schemas/v1BackupState'
        backupedNamespaces:
          items:
            type: string
          type: array
          uniqueItems: true
        expiryDate:
          $ref: '#/components/schemas/v1Time'
    v1WorkspaceError:
      description: Workspace error
      properties:
        clusterUid:
          type: string
        msg:
          type: string
        name:
          type: string
        resourceType:
          type: string
    v1Workspace:
      description: Workspace information
      properties:
        metadata:
          $ref: '#/components/schemas/v1ObjectMeta'
        spec:
          $ref: '#/components/schemas/v1WorkspaceSpec'
        status:
          $ref: '#/components/schemas/v1WorkspaceStatus'
    v1ClusterRbacStatus:
      description: Cluster rbac status
      properties:
        errors:
          items:
            $ref: '#/components/schemas/v1ClusterResourceError'
          type: array
          uniqueItems: true
    v1ClusterRbacSubjects:
      description: Cluster role ref
      properties:
        name:
          type: string
        namespace:
          type: string
        type:
          enum:
          - User
          - Group
          - ServiceAccount
          type: string
      type: object
    v1ProjectsWorkspaces:
      description: List projects and its workspaces
      properties:
        name:
          type: string
        uid:
          type: string
        workspaces:
          items:
            $ref: '#/components/schemas/v1WorkspacesRoles'
          type: array
          uniqueItems: true
    v1WorkspaceRolesUidSummary:
      properties:
        name:
          type: string
        uid:
          type: string
      type: object
    v1WorkspaceRestore:
      description: Workspace restore
      properties:
        metadata:
          $ref: '#/components/schemas/v1ObjectMeta'
        spec:
          $ref: '#/components/schemas/v1WorkspaceRestoreSpec'
        status:
          $ref: '#/components/schemas/v1WorkspaceRestoreStatus'
    v1WorkspaceClusterRestoreResponse:
      description: Workspace cluster restore response
      properties:
        backupName:
          type: string
        clusterName:
          type: string
        clusterUid:
          type: string
        restoreStatusMeta:
          $ref: '#/components/schemas/v1WorkspaceClusterRestoreState'
        restoreUid:
          type: string
    v1WorkspaceSpec:
      description: Workspace specifications
      properties:
        clusterNamespaces:
          items:
            $ref: '#/components/schemas/v1WorkspaceClusterNamespace'
          type: array
          uniqueItems: true
        clusterRbacs:
          items:
            $ref: '#/components/schemas/v1ClusterRbac'
          type: array
          uniqueItems: true
        clusterRefs:
          items:
            $ref: '#/components/schemas/v1WorkspaceClusterRef'
          type: array
          uniqueItems: true
        policies:
          $ref: '#/components/schemas/v1WorkspacePolicies'
        quota:
          $ref: '#/components/schemas/v1WorkspaceQuota'
    v1WorkspaceBackupStatus:
      description: Workspace backup status
      properties:
        workspaceBackupStatuses:
          items:
            $ref: '#/components/schemas/v1WorkspaceBackupStatusMeta'
          type: array
    v1WorkspaceRestoreSpec:
      description: Workspace restore spec
      properties:
        workspaceUid:
          type: string
    v1WorkspaceRolesPatch:
      properties:
        roles:
          items:
            type: string
          type: array
        uid:
          type: string
      type: object
    v1WorkspaceRestoreState:
      description: Workspace restore state
      properties:
        deleteState:
          type: string
        state:
          type: string
    v1WorkspaceNamespaceResourceAllocation:
      description: Workspace namespace resource allocation
      properties:
        clusterResourceAllocations:
          items:
            $ref: '#/components/schemas/v1ClusterResourceAllocation'
          type: array
          uniqueItems: true
        defaultResourceAllocation:
          $ref: '#/components/schemas/v1WorkspaceResourceAllocation'
    v1WorkspaceClusterRestoreState:
      description: Workspace cluster restore state
      properties:
        msg:
          type: string
        restoreTime:
          $ref: '#/components/schemas/v1Time'
        state:
          type: string
    v1ClusterFeatureSchedule:
      description: Cluster feature schedule
      properties:
        scheduledRunTime:
          type: string
    v1WorkspaceEntity:
      description: Workspace information
      properties:
        metadata:
          $ref: '#/components/schemas/v

# --- truncated at 32 KB (40 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/spectro-cloud/refs/heads/main/openapi/spectro-cloud-workspaces-api-openapi.yml