XSKY trashes API

TrashController Operations about Trash

Operations 4

GET /trashes/ #
GET /trashes/{trash_id} #
PATCH /trashes/{trash_id} #
POST /trashes/{trash_id}:cleanup #

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/xsky-trashes-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

xsky-trashes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: XMS is the controller of distributed storage system
  version: SDS_4.2.000.0.200302
  title: XMS access-paths Trashes API
  contact: {}
  license:
    name: Commercial
servers:
- url: /v1
tags:
- name: trashes
  description: 'TrashController Operations about Trash

    '
paths:
  /trashes/:
    get:
      tags:
      - trashes
      description: List trashes
      operationId: ListTrashes
      parameters:
      - name: limit
        in: query
        description: paging param
        required: false
        x-exportParamName: Limit
        schema:
          type: integer
          format: int64
      - name: offset
        in: query
        description: paging param
        required: false
        x-exportParamName: Offset
        schema:
          type: integer
          format: int64
      - name: type
        in: query
        description: the type of trash
        required: false
        x-exportParamName: Type_
        schema:
          type: string
      - name: q
        in: query
        description: query param of search
        required: false
        x-exportParamName: Q
        schema:
          type: string
      - name: sort
        in: query
        description: sort param of search
        required: false
        x-exportParamName: Sort
        schema:
          type: string
      responses:
        200:
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrashesResp'
        400:
          description: BadRequest
        500:
          description: InternalServerError
      security:
      - tokenInQuery: []
      - tokenInHeader: []
  /trashes/{trash_id}:
    get:
      tags:
      - trashes
      description: get a trash
      operationId: GetTrash
      parameters:
      - name: trash_id
        in: path
        description: trash id
        required: true
        x-exportParamName: TrashId
        schema:
          type: integer
          format: int64
      responses:
        200:
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrashResp'
        404:
          description: NotFound
        500:
          description: InternalServerError
      security:
      - tokenInQuery: []
      - tokenInHeader: []
    patch:
      tags:
      - trashes
      description: Update trash info
      operationId: UpdateTrash
      parameters:
      - name: trash_id
        in: path
        description: trash id
        required: true
        x-exportParamName: TrashId
        schema:
          type: integer
          format: int64
      responses:
        200:
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrashResp'
        202:
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrashResp'
        400:
          description: BadRequest
        404:
          description: NotFound
        500:
          description: InternalServerError
      security:
      - tokenInQuery: []
      - tokenInHeader: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TrashUpdateReq'
        description: trash info
        required: true
  /trashes/{trash_id}:cleanup:
    post:
      tags:
      - trashes
      description: Cleanup trash
      operationId: CleanupTrash
      parameters:
      - name: trash_id
        in: path
        description: trash id
        required: true
        x-exportParamName: TrashId
        schema:
          type: integer
          format: int64
      responses:
        200:
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrashResp'
        202:
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrashResp'
        400:
          description: BadRequest
        404:
          description: NotFound
        500:
          description: InternalServerError
      security:
      - tokenInQuery: []
      - tokenInHeader: []
components:
  schemas:
    TrashUpdateReq:
      type: object
      required:
      - trash
      properties:
        trash:
          $ref: '#/components/schemas/TrashUpdateReq_Trash'
      title: TrashUpdateReq
      example:
        trash:
          enabled: true
          retention: retention
    TrashResp:
      type: object
      required:
      - trash
      properties:
        trash:
          description: trash
          $ref: '#/components/schemas/Trash'
      title: TrashResp
      example:
        trash:
          trash_resource_num: 6
          resource_type: resource_type
          create: '2000-01-23T04:56:07.000+00:00'
          update: '2000-01-23T04:56:07.000+00:00'
          id: 0
          enabled: true
          retention: retention
          status: status
    TrashesResp:
      type: object
      required:
      - trashes
      properties:
        trashes:
          type: array
          description: trashes
          items:
            $ref: '#/components/schemas/Trash'
      title: TrashesResp
      example:
        trashes:
        - trash_resource_num: 6
          resource_type: resource_type
          create: '2000-01-23T04:56:07.000+00:00'
          update: '2000-01-23T04:56:07.000+00:00'
          id: 0
          enabled: true
          retention: retention
          status: status
        - trash_resource_num: 6
          resource_type: resource_type
          create: '2000-01-23T04:56:07.000+00:00'
          update: '2000-01-23T04:56:07.000+00:00'
          id: 0
          enabled: true
          retention: retention
          status: status
    Trash:
      type: object
      properties:
        create:
          type: string
          format: date-time
        enabled:
          type: boolean
        id:
          type: integer
          format: int64
        resource_type:
          type: string
        retention:
          type: string
        status:
          type: string
        trash_resource_num:
          type: integer
          format: int64
        update:
          type: string
          format: date-time
      title: Trash
      description: Trash defines the trash attributes.
      example:
        trash_resource_num: 6
        resource_type: resource_type
        create: '2000-01-23T04:56:07.000+00:00'
        update: '2000-01-23T04:56:07.000+00:00'
        id: 0
        enabled: true
        retention: retention
        status: status
    TrashUpdateReq_Trash:
      type: object
      properties:
        enabled:
          type: boolean
        retention:
          type: string
      title: TrashUpdateReq_Trash
      example:
        enabled: true
        retention: retention
  securitySchemes:
    tokenInHeader:
      description: auth by token
      type: apiKey
      name: Xms-Auth-Token
      in: header
    tokenInQuery:
      description: auth by token
      type: apiKey
      name: token
      in: query