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

# Get Deployment Configuration

> Returns the autoscaling metrics, defaults and resource limits available when deploying a model.



## OpenAPI

````yaml openapi-specs/playground/platform.json GET /deployments/deployment-config/
openapi: 3.1.0
info:
  title: Simplismart Platform APIs (Read-only)
  description: >-
    Read-only endpoints for accounts, models, deployments, observability, usage,
    alerting and external catalogues.
  version: 1.0.0
servers:
  - url: https://api.app.simplismart.ai
    description: Simplismart API
security: []
tags:
  - name: Accounts
  - name: Models
  - name: Deployments
  - name: Observability
  - name: Usage
  - name: Alerting
paths:
  /deployments/deployment-config/:
    get:
      tags:
        - Deployments
      summary: Get Deployment Configuration
      description: >-
        Returns the autoscaling metrics, defaults and resource limits available
        when deploying a model.
      operationId: get_deployments_deployment_config
      parameters:
        - name: model_id
          in: query
          required: true
          schema:
            type: string
            format: uuid
          description: Model to configure. 404 `Invalid model_id` if not accessible.
        - name: workspace_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: Workspace UUID. Defaults to your default workspace.
        - name: cluster_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: Target cluster.
        - name: node_group_id
          in: query
          required: false
          schema:
            type: string
          description: Comma-separated node group UUIDs.
        - name: deployment_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: Existing deployment in the same org and workspace.
        - name: model_version_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: Defaults to the deployment's pinned version, else the latest.
        - name: processing_mode
          in: query
          required: false
          schema:
            type: string
          description: >-
            `ASYNC` returns the autoscaling metrics for asynchronous
            deployments. Omit for the default.
        - name: machine_type_uuid
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: Machine type to work out resource limits for.
        - name: accelerator_type
          in: query
          required: false
          schema:
            type: string
          description: Accelerator type to work out resource limits for.
        - name: region_code
          in: query
          required: false
          schema:
            type: string
          description: Region to work out resource limits for.
        - name: sidecar_model_ids
          in: query
          required: false
          schema:
            type: string
          description: Comma-separated model UUIDs.
        - name: websocket_enabled
          in: query
          required: false
          schema:
            type: string
          description: Accepts 1/true/yes/enabled and 0/false/no/disabled.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              example:
                metrics:
                  - id: cpu
                    name: ...
                    default_threshold: 70
                    unit: '%'
                default_config:
                  min_replicas: 1
                  default_max_replicas: 1
                  max_replicas: 4
                  default_metric_id: cpu
                  default_threshold: 70
                resource_limits:
                  cpu_limits: {}
                  memory_limits: {}
                supports_custom_metrics: true
              schema:
                type: object
                properties:
                  metrics:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        default_threshold:
                          type: integer
                        unit:
                          type: string
                  default_config:
                    type: object
                    properties:
                      min_replicas:
                        type: integer
                      default_max_replicas:
                        type: integer
                      max_replicas:
                        type: integer
                      default_metric_id:
                        type: string
                      default_threshold:
                        type: integer
                  resource_limits:
                    type: object
                    properties:
                      cpu_limits:
                        type: object
                      memory_limits:
                        type: object
                  supports_custom_metrics:
                    type: boolean
        '401':
          description: 'Unauthorized: Authentication failed'
          content:
            application/json:
              example:
                error: Authentication failed
        '403':
          description: No access to this organization or workspace
          content:
            application/json:
              example:
                error: Organisation is not approved for this feature or is suspended.
        '404':
          description: Not found
          content:
            application/json:
              example:
                error: Invalid model_id
        '500':
          description: Server error
          content:
            application/json:
              example:
                error: Error while generating deployment config
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your Simplismart Playground token, from Settings → API Key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.