Listing Model Deployments using API

Consider the following details for listing Model Deployments using API.

List the model deployments with the following command:
curl -s -H "Authorization: Bearer ${AWC_TOKEN}" "https://${DOMAIN}/api/v1/deployments?namespace=[***NAMESPACE***]"
The following is an example response:
{
  "deployments": [
    {
      "id": "k8s:[***NAMESPACE***]:mlflow-wine-test-from-registry-onnx",
      "namespace": "[***NAMESPACE***]",
      "name": "mlflow-wine-test-from-registry-onnx",
      "url": "https://[***DOMAIN***]/namespaces/[***NAMESPACE***]/endpoints/mlflow-wine-test-from-registry-onnx/v2/models/[***MODEL_NAME***]/infer",
      "state": "DEPLOYMENT_STATE_RUNNING",
      "createdBy": "[***USER***]",
      "apiStandard": "API_STANDARD_OPEN_INFERENCE_PROTOCOL",
      "task": "MODEL_TASK_INFERENCE",
      ...
    }
  ],
  "nextPageToken": ""
}

The service returns up to 100 deployments per request. If nextPageToken is not empty, pass its value as the pageToken query parameter in the next request to retrieve the next page of results.

Use the ID field to reference a deployment in other API calls. To narrow the results, add query parameters such as name, state, task, createdBy, or modelName.