Canonical Service API

The service API from Canonical — 2 operation(s) for service.

Operations 2

GET /1.0/ Get the status and features supported by the service #
GET /1.0/version Get the current version for the service #

Documentation

Specifications

Other Resources

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/canonical-service-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

canonical-service-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'The Anbox Management Service (AMS) external REST API is the REST API used by

    all AMS clients. Note that internal endpoints are not included in this

    documentation.


    The AMS API is available over both a local unix+http and a remote https API.

    Authentication for local users relies on group membership and access to the

    unix socket. For remote users, the default authentication method is TLS client

    certificates.'
  title: AMS external REST Service API
  version: '1.0'
tags:
- name: Service
paths:
  /1.0/:
    get:
      description: 'This endpoint returns the service status and its supported API extensions.

        It also returns whether the connection is trusted or not.'
      tags:
      - Service
      summary: Get the status and features supported by the service
      operationId: service_get
      responses:
        '200':
          description: Current config for the service
          content:
            application/json:
              schema:
                type: object
                allOf:
                - $ref: '#/components/schemas/NoMetaSyncResponse'
                properties:
                  metadata:
                    $ref: '#/components/schemas/ServiceStatus'
        default:
          $ref: '#/components/responses/InternalServerError'
  /1.0/version:
    get:
      description: This endpoint returns the current running version for the service.
      tags:
      - Service
      summary: Get the current version for the service
      operationId: version_get
      responses:
        '200':
          description: Current config for the service
          content:
            application/json:
              schema:
                type: object
                allOf:
                - $ref: '#/components/schemas/NoMetaSyncResponse'
                properties:
                  metadata:
                    $ref: '#/components/schemas/VersionResponse'
        default:
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    ServiceStatus:
      description: ServiceStatus represents the status of the AMS service
      type: object
      properties:
        api_extensions:
          description: List of supported features for the service version running
          type: array
          items:
            type: string
          example:
          - addon_restore_hook
          - container_logs
          - registry
        api_status:
          description: Shows the API stability status
          type: string
          example: stable
        api_version:
          description: API version for the service
          type: string
          example: '1.0'
        auth:
          description: Used to see if the client is trusted. Can be `trusted` or `untrusted`.
          type: string
          example: untrusted
        auth_methods:
          description: Authentication method used for the requests.
          type: array
          items:
            type: string
          example: 2waySSL
        cluster_id:
          description: ID of the subcluster the AMS instance is part of
          type: string
          example: cilsreunfpfec9b1ktg0
        cluster_name:
          description: Name of the subcluster the AMS instance is part of
          type: string
          example: prod0
    VersionResponse:
      description: VersionResponse shows the version for the running service
      type: object
      properties:
        version:
          description: Version of the service
          type: string
          example: 1.18.2
    NoMetaSyncResponse:
      description: Swagger Synchronous response without metadata field
      type: object
      properties:
        error_code:
          description: Error code for the operation
          type: integer
          format: int64
          example: 0
        status:
          description: Status of requested operation
          type: string
          example: Success
        status_code:
          description: Status code of the request
          type: integer
          format: int64
          example: 200
        type:
          description: Type of operation response
          type: string
          example: sync
  responses:
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: internal server error
              error_code:
                type: integer
                format: int64
                example: 500
              metadata:
                example: '{}'
              type:
                type: string
                example: error