Microsoft Azure Container Logs API

The Container Logs API from Microsoft Azure, for container logs.

GitHub OpenAPI

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}/replicas/{replicaName}/codePackages/{codePackageName}/logs Get container logs for a Mesh code package · Microsoft Azure Gets The Logs For The Container #
Ask an LLM
“How do I read the container logs of a Service Fabric Mesh app?”
“Can I fetch only the last few lines of a container log?”
Tell an agent
Get logs of package {code_package}, replica {replica}, service {service}, app {application} in {subscription}/{resource_group}.
Show the last {tail} log lines for code package {code_package} in application {application}.

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/microsoft-azure:microsoft-azure-container-logs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

microsoft-azure-container-logs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure SeaBreezeManagementClient Container Logs API
  description: APIs to deploy and manage resources to SeaBreeze.
  version: 2018-07-01-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Container Logs
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/applications/{applicationName}/services/{serviceName}/replicas/{replicaName}/codePackages/{codePackageName}/logs
  : get:
      operationId: microsoftAzureCodepackageGetcontainerlog
      x-ms-examples:
        ContainerLogsList:
          $ref: ./examples/ContainerLogsList.json
      summary: Microsoft Azure Gets The Logs For The Container
      description: Get the logs for the container of a given code package of an application.
      parameters:
      - $ref: '#/components/parameters/subscriptionIdRequiredPathParam'
      - $ref: '#/components/parameters/ResourceGroupNameRequiredPathParam'
      - $ref: '#/components/parameters/api-versionRequiredQueryParam'
      - $ref: '#/components/parameters/ApplicationNameRequiredPathParam'
      - $ref: '#/components/parameters/ServiceNameRequiredPathParam'
      - $ref: '#/components/parameters/ReplicaNameRequiredPathParam'
      - $ref: '#/components/parameters/CodePackageNameRequiredPathParam'
      - $ref: '#/components/parameters/TailOptionalQueryParam'
      tags:
      - Container Logs
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContainerLogs'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
components:
  parameters:
    subscriptionIdRequiredPathParam:
      name: subscriptionId
      in: path
      description: The customer subscription identifier
      required: true
      schema:
        type: string
    ApplicationNameRequiredPathParam:
      name: applicationName
      in: path
      x-ms-parameter-location: method
      x-ms-skip-url-encoding: true
      required: true
      description: The identity of the application.
      schema:
        type: string
    ResourceGroupNameRequiredPathParam:
      name: resourceGroupName
      in: path
      description: Azure resource group name
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    ServiceNameRequiredPathParam:
      name: serviceName
      in: path
      x-ms-parameter-location: method
      x-ms-skip-url-encoding: true
      required: true
      description: The identity of the service.
      schema:
        type: string
    ReplicaNameRequiredPathParam:
      name: replicaName
      in: path
      x-ms-parameter-location: method
      x-ms-skip-url-encoding: true
      required: true
      description: The identity of the service replica.
      schema:
        type: string
    api-versionRequiredQueryParam:
      name: api-version
      in: query
      description: The version of the API. This parameter is required and its value must be `2018-07-01-preview`.
      required: true
      x-ms-enum:
        name: 2018-07-01-preview
        modelAsString: true
        values:
        - value: 2018-07-01-preview
          description: The `2018-07-01-preview` version of the API.
      schema:
        type: string
        enum:
        - 2018-07-01-preview
        default: 2018-07-01-preview
    CodePackageNameRequiredPathParam:
      name: codePackageName
      in: path
      x-ms-parameter-location: method
      x-ms-skip-url-encoding: true
      required: true
      description: The name of the code package.
      schema:
        type: string
    TailOptionalQueryParam:
      name: tail
      in: query
      x-ms-parameter-location: method
      required: false
      description: Number of lines to show from the end of the logs. Default is 100.
      schema:
        type: integer
  schemas:
    ErrorModel:
      properties:
        error:
          $ref: '#/components/schemas/ErrorErrorModel'
          description: Error model information
      description: The error details.
      required:
      - error
    ContainerLogs:
      description: The logs of the container.
      type: object
      properties:
        content:
          type: string
          description: content of the log.
    ErrorDetailsModel:
      description: Error model details information
      properties:
        code:
          type: string
        message:
          type: string
          description: Error message.
      required:
      - code
      - message
    ErrorErrorModel:
      description: Error model information
      properties:
        code:
          type: string
        message:
          type: string
          description: Error message.
        innerError:
          type: string
        details:
          type: array
          description: List of error message details.
          items:
            $ref: '#/components/schemas/ErrorDetailsModel'
      required:
      - code
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-07-01-preview/servicefabricmesh.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)