> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ankra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Read operating expectations

> Environment-scoped operating intent. Targets do not provision or certify runtime controls. Adoption checks the reviewed revision and commits intent with an audit record atomically.



## OpenAPI

````yaml https://platform.ankra.app/openapi.json get /org/applications/{application_id}/environments/{environment_id}/operating-expectations
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
tags:
  - name: Clusters
    description: Create, inspect and manage clusters, and the stacks deployed on them.
  - name: Managed Clusters
    description: Provider-managed control planes, driven through one common surface.
  - name: Imported Clusters
    description: Clusters that already existed and were connected to Ankra.
  - name: Cluster Access
    description: Kubeconfigs, service-account tokens and per-cluster access grants.
  - name: Kubernetes
    description: Read and act on the Kubernetes objects inside a cluster.
  - name: DigitalOcean Clusters
    description: Provision and manage DigitalOcean Kubernetes clusters.
  - name: Hetzner Clusters
    description: Provision and manage Hetzner Kubernetes clusters.
  - name: OVH Clusters
    description: Provision and manage OVH Kubernetes clusters.
  - name: Scaleway Clusters
    description: Provision and manage Scaleway Kapsule clusters.
  - name: UpCloud Clusters
    description: Provision and manage UpCloud Kubernetes clusters.
  - name: Applications
    description: Deploy, configure and observe applications across the fleet.
  - name: Stack Profiles
    description: Reusable stack definitions, their versions and sharing.
  - name: Charts
    description: Browse the chart catalogue behind stacks and addons.
  - name: Helm
    description: Helm registries, credentials and the charts they expose.
  - name: Executions
    description: Long-running platform executions and their jobs.
  - name: Operations
    description: Cancel in-flight cluster operations and their jobs.
  - name: Chat
    description: Conversational sessions, plans and confirmable actions.
  - name: AI Agent Runs
    description: Autonomous agent runs and their outcomes.
  - name: AI Tickets
    description: The AI ticket board, its sync connections and settings.
  - name: AI Playbooks
    description: Reusable playbooks the AI lanes execute.
  - name: AI Conditions
    description: Conditions that gate AI autonomy.
  - name: AI Engineering Handoffs
    description: Work the AI lanes escalate to a human engineer.
  - name: AI Environment
    description: The environment and base stacks AI demos deploy into.
  - name: Security
    description: Findings, advisories, SBOMs, compliance and posture.
  - name: Cost
    description: Cluster and fleet cost, rate cards and cost settings.
  - name: Billing
    description: Subscription and spend caps.
  - name: Organisation
    description: Members, invitations, audit logs and organisation settings.
  - name: Account Tokens
    description: Personal access tokens for the API and CLI.
  - name: Credentials
    description: The shared credential store.
  - name: Azure Credentials
    description: Azure credentials and SSH keys.
  - name: DigitalOcean Credentials
    description: DigitalOcean credentials and SSH keys.
  - name: Hetzner Credentials
    description: Hetzner credentials and SSH keys.
  - name: OVH Credentials
    description: OVH credentials and SSH keys.
  - name: Scaleway Credentials
    description: Scaleway credentials.
  - name: UpCloud Credentials
    description: UpCloud credentials and SSH keys.
  - name: Data Source Credentials
    description: Credentials for metrics and log sources.
  - name: DNS Credentials
    description: Credentials for DNS providers.
  - name: DNS
    description: DNS zones and records, including custom organisation zones.
  - name: Cloudflare
    description: Cloudflare domains and the credentials behind them.
  - name: Variables
    description: Organisation- and cluster-scoped variables.
  - name: SOPS
    description: Encrypt and decrypt values with the organisation SOPS config.
  - name: Alerts
    description: Alert integrations and ingest credentials.
  - name: Notifications
    description: Notification routes and their delivery targets.
  - name: Support
    description: Support tickets.
paths:
  /org/applications/{application_id}/environments/{environment_id}/operating-expectations:
    get:
      tags:
        - Applications
      summary: Read operating expectations
      description: >-
        Environment-scoped operating intent. Targets do not provision or certify
        runtime controls. Adoption checks the reviewed revision and commits
        intent with an audit record atomically.
      operationId: get_application_operating_expectations
      parameters:
        - in: path
          name: application_id
          required: true
          schema:
            format: uuid
            type: string
        - in: path
          name: environment_id
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationOperatingExpectationsResponse'
          description: Current operating intent
        '401':
          description: Authentication required
        '403':
          description: Application permission required
        '404':
          description: Application or active environment not found
        '422':
          description: Invalid or incomplete operating expectations
        '503':
          description: Stored operating expectations could not be read
components:
  schemas:
    ApplicationOperatingExpectationsResponse:
      properties:
        application_id:
          format: uuid
          type: string
        current:
          anyOf:
            - $ref: '#/components/schemas/ApplicationOperatingExpectationsRevision'
            - type: 'null'
        enforcement:
          enum:
            - expectations_only
          type: string
        environment_id:
          format: uuid
          type: string
        recovery_evidence:
          enum:
            - unverified
          type: string
        history:
          anyOf:
            - type: array
              items:
                $ref: '#/components/schemas/ApplicationOperatingExpectationsRevision'
            - type: 'null'
          description: >-
            Up to 20 adopted revisions, newest first. Null on the immediate
            adoption receipt; read again for history.
        history_capped:
          type: boolean
      required:
        - application_id
        - environment_id
        - current
        - enforcement
        - recovery_evidence
        - history
        - history_capped
      type: object
    ApplicationOperatingExpectationsRevision:
      properties:
        adopted_at:
          format: date-time
          type: string
        adopted_by:
          format: uuid
          type: string
        expectations:
          $ref: '#/components/schemas/ApplicationOperatingExpectations'
        revision:
          minimum: 1
          type: integer
      required:
        - revision
        - adopted_at
        - adopted_by
        - expectations
      type: object
    ApplicationOperatingExpectations:
      additionalProperties: false
      properties:
        availability_percent:
          maximum: 100
          minimum: 90
          type: number
        data_loss_minutes:
          maximum: 10080
          minimum: 0
          type: integer
        data_region:
          enum:
            - eu
            - us
            - any
          type: string
        monthly_budget_cents:
          maximum: 100000000
          minimum: 0
          type: integer
        recovery_minutes:
          maximum: 10080
          minimum: 1
          type: integer
        retention_days:
          maximum: 3650
          minimum: 1
          type: integer
        routine_care:
          enum:
            - review_required
          type: string
      required:
        - availability_percent
        - data_region
        - recovery_minutes
        - data_loss_minutes
        - retention_days
        - monthly_budget_cents
        - routine_care
      type: object

````