> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo-platform/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo-platform/_mcp/server.

# List ModelDeployments

GET https://host.com/apis/models/v2/workspaces/{workspace}/deployments

List ModelDeployments for a specific workspace.

By default, returns only the latest version of each deployment.

Reference: https://docs.nvidia.com/nemo-platform/nemo-platform/documentation/reference/api-reference/model-deployments/list-deployments-apis-models-v-2-workspaces-workspace-deployments-get

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Nemo Platform API
  version: 1.0.0
paths:
  /apis/models/v2/workspaces/{workspace}/deployments:
    get:
      operationId: list-deployments-apis-models-v-2-workspaces-workspace-deployments-get
      summary: List ModelDeployments
      description: |-
        List ModelDeployments for a specific workspace.

        By default, returns only the latest version of each deployment.
      tags:
        - subpackage_modelDeployments
      parameters:
        - name: workspace
          in: path
          required: true
          schema:
            type: string
        - name: page
          in: query
          description: Page number.
          required: false
          schema:
            type: integer
            default: 1
        - name: page_size
          in: query
          description: Page size.
          required: false
          schema:
            type: integer
            default: 100
        - name: sort
          in: query
          description: >-
            The field to sort by. To sort in decreasing order, use `-` in front
            of the field name.
          required: false
          schema:
            type: string
            default: created_at
        - name: all_versions
          in: query
          description: >-
            If true, return all versions of each deployment. If false (default),
            return only the latest version.
          required: false
          schema:
            type: boolean
            default: false
        - name: filter
          in: query
          description: >-
            Filter deployments by workspace, project, status, config,
            model_provider_id, name, status_message, created_at, and updated_at.
          required: false
          schema:
            $ref: '#/components/schemas/ModelDeploymentFilter'
      responses:
        '200':
          description: Return model deployments for a workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelDeploymentsPage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
servers:
  - url: https://host.com
    description: Default
components:
  schemas:
    ModelDeploymentStatus:
      type: string
      enum:
        - UNKNOWN
        - CREATED
        - PENDING
        - READY
        - ERROR
        - DELETING
        - DELETED
        - LOST
      description: Status enum for ModelDeployment objects.
      title: ModelDeploymentStatus
    StringFilter:
      type: object
      properties:
        $eq:
          type: string
          description: Filter for results equal to this value.
        $like:
          type: string
          description: Filter for results matching this pattern.
        $in:
          type: array
          items:
            type: string
          description: Filter for results in this list of values.
        $nin:
          type: array
          items:
            type: string
          description: Filter for results not in this list of values.
      title: StringFilter
    ModelDeploymentFilterConfig:
      oneOf:
        - $ref: '#/components/schemas/StringFilter'
        - type: string
      description: Filter by config name.
      title: ModelDeploymentFilterConfig
    ModelDeploymentFilterName:
      oneOf:
        - $ref: '#/components/schemas/StringFilter'
        - type: string
      description: Filter by deployment name.
      title: ModelDeploymentFilterName
    ModelDeploymentFilterStatusMessage:
      oneOf:
        - $ref: '#/components/schemas/StringFilter'
        - type: string
      description: Filter by status message.
      title: ModelDeploymentFilterStatusMessage
    DatetimeFilter:
      type: object
      properties:
        $gte:
          type: string
          format: date-time
          description: Filter for results greater than or equal to this datetime.
        $lte:
          type: string
          format: date-time
          description: Filter for results less than or equal to this datetime.
      title: DatetimeFilter
    ModelDeploymentFilter:
      type: object
      properties:
        workspace:
          type: string
          description: Filter by workspace.
        project:
          type: string
          description: Filter by project URN.
        status:
          $ref: '#/components/schemas/ModelDeploymentStatus'
          description: Filter by status.
        config:
          $ref: '#/components/schemas/ModelDeploymentFilterConfig'
          description: Filter by config name.
        model_provider_id:
          type: string
          description: Filter by model provider ID.
        name:
          $ref: '#/components/schemas/ModelDeploymentFilterName'
          description: Filter by deployment name.
        status_message:
          $ref: '#/components/schemas/ModelDeploymentFilterStatusMessage'
          description: Filter by status message.
        created_at:
          $ref: '#/components/schemas/DatetimeFilter'
          description: Filter by creation date.
        updated_at:
          $ref: '#/components/schemas/DatetimeFilter'
          description: Filter by update date.
      description: Filter for ModelDeployment queries.
      title: ModelDeploymentFilter
    ModelDeploymentStatusHistoryItem:
      type: object
      properties:
        timestamp:
          type: string
          format: date-time
          description: When this status was recorded
        status:
          $ref: '#/components/schemas/ModelDeploymentStatus'
          description: The status at this point in time
        status_message:
          type: string
          default: ''
          description: Status message
      required:
        - timestamp
        - status
      description: Record of a status change in ModelDeployment history.
      title: ModelDeploymentStatusHistoryItem
    AuthContext:
      type: object
      properties:
        principal_id:
          type: string
          description: The principal's unique identifier
        principal_email:
          type: string
          description: The principal's email address
        principal_groups:
          type: array
          items:
            type: string
          description: Groups the principal belongs to
        principal_on_behalf_of:
          type: string
          description: If acting on behalf of another principal, their principal ID
        principal_on_behalf_of_groups:
          type: array
          items:
            type: string
          description: Groups the on-behalf-of principal belongs to
        principal_on_behalf_of_email:
          type: string
          description: The on-behalf-of principal's email address
      required:
        - principal_id
      description: >-
        Auth context captured at resource creation for delegated access.


        Stores a snapshot of the creating principal's identity so that
        controllers

        can later act on their behalf (e.g., accessing secrets).
      title: AuthContext
    ModelDeployment:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the deployment
        name:
          type: string
          description: >-
            Name of the entity. Name/workspace combo must be unique across all
            entities. Allowed characters: letters (a-z, A-Z), digits (0-9),
            underscores, hyphens, and dots.
        workspace:
          type: string
          description: >-
            The workspace of the entity. Allowed characters: letters (a-z, A-Z),
            digits (0-9), underscores, hyphens, and dots.
        project:
          type: string
          description: The URN of the project associated with this entity.
        created_at:
          type: string
          format: date-time
          description: The timestamp of model entity creation
        updated_at:
          type: string
          format: date-time
          description: The timestamp of the last model entity update
        entity_version:
          type: integer
          description: Version of this deployment. Automatically managed.
        config:
          type: string
          description: Reference to the ModelDeploymentConfig name
        config_version:
          type: integer
          description: Reference to the specific ModelDeploymentConfig version
        status:
          $ref: '#/components/schemas/ModelDeploymentStatus'
          default: UNKNOWN
          description: Current status of the deployment, populated by models controller
        status_message:
          type: string
          default: ''
          description: Detailed status message, populated by models controller
        status_history:
          type: array
          items:
            $ref: '#/components/schemas/ModelDeploymentStatusHistoryItem'
          description: History of status changes, ordered chronologically (oldest first)
        model_provider_id:
          type: string
          description: >-
            Optional reference to the auto-created ModelProvider workspace/name
            (format: workspace/name)
        auth_context:
          $ref: '#/components/schemas/AuthContext'
          description: 'Auth context captured at deployment creation. '
      required:
        - name
        - workspace
        - created_at
        - updated_at
        - entity_version
        - config
        - config_version
      description: >-
        ModelDeployment represents a deployed instance of a model with a
        specific configuration.

        These objects are immutable with automatic versioning, except for status
        updates.


        The unique identifier is the combination of
        workspace/name/entity_version.
      title: ModelDeployment
    PaginationData:
      type: object
      properties:
        page:
          type: integer
          description: The current page number.
        page_size:
          type: integer
          description: The page size used for the query.
        current_page_size:
          type: integer
          description: The size for the current page.
        total_pages:
          type: integer
          description: The total number of pages.
        total_results:
          type: integer
          description: The total number of results.
      required:
        - page
        - page_size
        - current_page_size
        - total_pages
        - total_results
      title: PaginationData
    ModelDeploymentsPage:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ModelDeployment'
        pagination:
          $ref: '#/components/schemas/PaginationData'
          description: Pagination information.
        sort:
          type: string
          description: The field on which the results are sorted.
        filter:
          type: object
          additionalProperties:
            description: Any type
          description: Filtering information.
      required:
        - data
      title: ModelDeploymentsPage
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
        input:
          description: Any type
        ctx:
          type: object
          additionalProperties:
            description: Any type
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError

```

## Examples



**Request**

```json
{}
```

**Response**

```json
{
  "data": [
    {
      "name": "llama-3.1-8b",
      "workspace": "research-team-alpha",
      "created_at": "2024-01-15T09:30:00Z",
      "updated_at": "2024-01-15T09:30:00Z",
      "entity_version": 1,
      "config": "llama-config-v1",
      "config_version": 1,
      "id": "d3f9a7b2-8c4e-4f1a-9b2d-3e7a1f5c9b8e",
      "project": "urn:project:ml-models/llama",
      "status": "READY",
      "status_message": "Deployment is active and serving requests.",
      "status_history": [
        {
          "timestamp": "2024-01-15T09:00:00Z",
          "status": "PENDING",
          "status_message": "Deployment is being initialized."
        },
        {
          "timestamp": "2024-01-15T09:30:00Z",
          "status": "READY",
          "status_message": "Deployment is active and serving requests."
        }
      ],
      "model_provider_id": "provider-workspace/llama-provider",
      "auth_context": {
        "principal_id": "user-12345",
        "principal_email": "alice@example.com",
        "principal_groups": [
          "ml-engineers",
          "research-team-alpha"
        ],
        "principal_on_behalf_of": "user-67890",
        "principal_on_behalf_of_groups": [
          "data-scientists"
        ],
        "principal_on_behalf_of_email": "bob@example.com"
      }
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 10,
    "current_page_size": 1,
    "total_pages": 1,
    "total_results": 1
  },
  "sort": "created_at",
  "filter": {}
}
```

**SDK Code**

```python
import requests

url = "https://host.com/apis/models/v2/workspaces/workspace/deployments"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://host.com/apis/models/v2/workspaces/workspace/deployments';
const options = {method: 'GET', headers: {'Content-Type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://host.com/apis/models/v2/workspaces/workspace/deployments"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://host.com/apis/models/v2/workspaces/workspace/deployments")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://host.com/apis/models/v2/workspaces/workspace/deployments")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://host.com/apis/models/v2/workspaces/workspace/deployments', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://host.com/apis/models/v2/workspaces/workspace/deployments");
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://host.com/apis/models/v2/workspaces/workspace/deployments")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```