Namirasoft NWS Ollama API V1

Namira Software Corporation NWS Ollama API Version 1 (1.4.1)

Install


To use this cli, we need to first Install Nodejs, then run the following command.

npm i -g namirasoft-nws-ollama-api-v1

Copied!

Commands


Healthz

Get

Returns the application health status

ns-nws-ollama healthz get

Copied!

Value

List

Returns the value list of a given table and column

ns-nws-ollama value list {table} {column} {search} {field_id} {limit}

Copied!

OllamaCategory

List

Returns the ollama category list

ns-nws-ollama ollamacategory list {filters} {page} {size} {sorts}

Copied!

Get

Returns a ollama category by id.

ns-nws-ollama ollamacategory get {id}

Copied!

Create

Creates a new ollama category for an entity

ns-nws-ollama ollamacategory create {entity_id}

Copied!

--category_id (String)

Delete

Deletes a ollama category by an id.

ns-nws-ollama ollamacategory delete {entity_id} {id}

Copied!

OllamaField

List

Returns the ollama field list

ns-nws-ollama ollamafield list {filters} {page} {size} {sorts}

Copied!

Get

Returns a ollama field by id.

ns-nws-ollama ollamafield get {id}

Copied!

Create

Creates a new ollama field for an entity

ns-nws-ollama ollamafield create {entity_id}

Copied!

--field_id (String)

--value (Any)

Update

Updates a ollama field by an id for an entity

ns-nws-ollama ollamafield update {entity_id} {id}

Copied!

--field_id (String)

--value (Any)

Delete

Deletes a ollama field by an id.

ns-nws-ollama ollamafield delete {entity_id} {id}

Copied!

OllamaTag

List

Returns the ollama tag list

ns-nws-ollama ollamatag list {filters} {page} {size} {sorts}

Copied!

Get

Returns a ollama tag by id.

ns-nws-ollama ollamatag get {id}

Copied!

Create

Creates a new ollama tag for an entity

ns-nws-ollama ollamatag create {entity_id}

Copied!

--name (String)

--value (String)

Update

Updates a ollama tag by an id for an entity

ns-nws-ollama ollamatag update {entity_id} {id}

Copied!

--name (String)

--value (String)

Delete

Deletes a ollama tag by an id.

ns-nws-ollama ollamatag delete {entity_id} {id}

Copied!

Ollama

List

Returns the ollama list

ns-nws-ollama ollama list {filters} {page} {size} {sorts}

Copied!

Get

Returns an ollama by an id

ns-nws-ollama ollama get {id}

Copied!

Create

Creates a new ollama

ns-nws-ollama ollama create

Copied!

--workspace_id (String)

--region_id (String)

--log_group_id (String)

--name (String)

--model (Enum)

--usage (Enum)

--cpu (Integer)

--memory (Integer)

--enabled (Boolean)

--ollama_category (Array)

--ollama_field (Array)

--ollama_tag (Array)

Update

Updates an ollama by an id

ns-nws-ollama ollama update {id}

Copied!

--workspace_id (String)

--region_id (String)

--log_group_id (String)

--name (String)

--model (Enum)

--usage (Enum)

--cpu (Integer)

--memory (Integer)

--enabled (Boolean)

--ollama_category (Array)

--ollama_field (Array)

--ollama_tag (Array)

SetStatus

Sets the status of an ollama by an id

ns-nws-ollama ollama setstatus {id}

Copied!

--status (Enum)

Delete

Deletes an ollama by an id

ns-nws-ollama ollama delete {id}

Copied!

Cost

Get

Returns a cost by an id

ns-nws-ollama cost get {id}

Copied!

Schemas


OllamaCategory

{
  "name": "OllamaCategory",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "Integer",
      "required": true
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "category_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "created_at": {
      "type": "DateTime",
      "required": true
    },
    "updated_at": {
      "type": "DateTime",
      "required": true
    }
  }
}

EntityCategoryInput

{
  "name": "EntityCategoryInput",
  "type": "Object",
  "required": true,
  "fields": {
    "category_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    }
  }
}

OllamaField

{
  "name": "OllamaField",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "Integer",
      "required": true
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "field_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "value": {
      "type": "Any",
      "required": false
    },
    "created_at": {
      "type": "DateTime",
      "required": true
    },
    "updated_at": {
      "type": "DateTime",
      "required": true
    }
  }
}

EntityFieldInput

{
  "name": "EntityFieldInput",
  "type": "Object",
  "required": true,
  "fields": {
    "field_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "value": {
      "type": "Any",
      "required": false
    }
  }
}

OllamaTag

{
  "name": "OllamaTag",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "Integer",
      "required": true
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "entity_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "name": {
      "type": "String",
      "required": true,
      "max": 255
    },
    "value": {
      "type": "String",
      "required": false
    },
    "created_at": {
      "type": "DateTime",
      "required": true
    },
    "updated_at": {
      "type": "DateTime",
      "required": true
    }
  }
}

EntityTagInput

{
  "name": "EntityTagInput",
  "type": "Object",
  "required": true,
  "fields": {
    "name": {
      "type": "String",
      "required": true,
      "max": 255
    },
    "value": {
      "type": "String",
      "required": false
    }
  }
}

Ollama

{
  "name": "Ollama",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "workspace_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "region_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "log_group_id": {
      "type": "String",
      "required": false,
      "min": 20,
      "max": 20
    },
    "name": {
      "type": "String",
      "required": true,
      "max": 255
    },
    "model": {
      "name": "OllamaModel",
      "type": "Enum",
      "required": true,
      "valids": [
        "DeepSeekR1_1_5B",
        "DeepSeekR1_7B",
        "DeepSeekR1_8B",
        "DeepSeekR1_14B",
        "DeepSeekR1_32B",
        "DeepSeekR1_70B",
        "DeepSeekR1_671B"
      ]
    },
    "usage": {
      "name": "OllamaUsage",
      "type": "Enum",
      "required": true,
      "valids": [
        "Low",
        "Medium",
        "High"
      ]
    },
    "cpu": {
      "type": "Integer",
      "required": true
    },
    "memory": {
      "type": "Integer",
      "required": true
    },
    "status": {
      "name": "OllamaStatus",
      "type": "Enum",
      "required": true,
      "valids": [
        "GeneratingSourceCode",
        "Pushing",
        "Creating",
        "Downloading",
        "Error",
        "Successful",
        "Pending",
        "Unknown"
      ]
    },
    "enabled": {
      "type": "Boolean",
      "required": true
    },
    "created_at": {
      "type": "DateTime",
      "required": true
    },
    "updated_at": {
      "type": "DateTime",
      "required": true
    }
  }
}

OllamaFull

{
  "name": "OllamaFull",
  "type": "Object",
  "required": true,
  "fields": {
    "id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "user_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "workspace_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "region_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "log_group_id": {
      "type": "String",
      "required": false,
      "min": 20,
      "max": 20
    },
    "name": {
      "type": "String",
      "required": true,
      "max": 255
    },
    "model": {
      "name": "OllamaModel",
      "type": "Enum",
      "required": true,
      "valids": [
        "DeepSeekR1_1_5B",
        "DeepSeekR1_7B",
        "DeepSeekR1_8B",
        "DeepSeekR1_14B",
        "DeepSeekR1_32B",
        "DeepSeekR1_70B",
        "DeepSeekR1_671B"
      ]
    },
    "usage": {
      "name": "OllamaUsage",
      "type": "Enum",
      "required": true,
      "valids": [
        "Low",
        "Medium",
        "High"
      ]
    },
    "cpu": {
      "type": "Integer",
      "required": true
    },
    "memory": {
      "type": "Integer",
      "required": true
    },
    "status": {
      "name": "OllamaStatus",
      "type": "Enum",
      "required": true,
      "valids": [
        "GeneratingSourceCode",
        "Pushing",
        "Creating",
        "Downloading",
        "Error",
        "Successful",
        "Pending",
        "Unknown"
      ]
    },
    "enabled": {
      "type": "Boolean",
      "required": true
    },
    "created_at": {
      "type": "DateTime",
      "required": true
    },
    "updated_at": {
      "type": "DateTime",
      "required": true
    },
    "ollama_category": {
      "type": "Array",
      "required": true,
      "items": [
        {
          "name": "EntityCategoryInput",
          "type": "Object",
          "required": false,
          "fields": {
            "category_id": {
              "type": "String",
              "required": true,
              "min": 20,
              "max": 20
            }
          }
        }
      ]
    },
    "ollama_field": {
      "type": "Array",
      "required": true,
      "items": [
        {
          "name": "EntityFieldInput",
          "type": "Object",
          "required": false,
          "fields": {
            "field_id": {
              "type": "String",
              "required": true,
              "min": 20,
              "max": 20
            },
            "value": {
              "type": "Any",
              "required": false
            }
          }
        }
      ]
    },
    "ollama_tag": {
      "type": "Array",
      "required": true,
      "items": [
        {
          "name": "EntityTagInput",
          "type": "Object",
          "required": false,
          "fields": {
            "name": {
              "type": "String",
              "required": true,
              "max": 255
            },
            "value": {
              "type": "String",
              "required": false
            }
          }
        }
      ]
    }
  }
}

OllamaInput

{
  "name": "OllamaInput",
  "type": "Object",
  "required": true,
  "fields": {
    "workspace_id": {
      "type": "String",
      "required": false,
      "min": 20,
      "max": 20
    },
    "region_id": {
      "type": "String",
      "required": true,
      "min": 20,
      "max": 20
    },
    "log_group_id": {
      "type": "String",
      "required": false,
      "min": 20,
      "max": 20
    },
    "name": {
      "type": "String",
      "required": true,
      "max": 255
    },
    "model": {
      "name": "OllamaModel",
      "type": "Enum",
      "required": true,
      "valids": [
        "DeepSeekR1_1_5B",
        "DeepSeekR1_7B",
        "DeepSeekR1_8B",
        "DeepSeekR1_14B",
        "DeepSeekR1_32B",
        "DeepSeekR1_70B",
        "DeepSeekR1_671B"
      ]
    },
    "usage": {
      "name": "OllamaUsage",
      "type": "Enum",
      "required": true,
      "valids": [
        "Low",
        "Medium",
        "High"
      ]
    },
    "cpu": {
      "type": "Integer",
      "required": true
    },
    "memory": {
      "type": "Integer",
      "required": true
    },
    "enabled": {
      "type": "Boolean",
      "required": true
    },
    "ollama_category": {
      "type": "Array",
      "required": true,
      "items": [
        {
          "name": "EntityCategoryInput",
          "type": "Object",
          "required": false,
          "fields": {
            "category_id": {
              "type": "String",
              "required": true,
              "min": 20,
              "max": 20
            }
          }
        }
      ]
    },
    "ollama_field": {
      "type": "Array",
      "required": true,
      "items": [
        {
          "name": "EntityFieldInput",
          "type": "Object",
          "required": false,
          "fields": {
            "field_id": {
              "type": "String",
              "required": true,
              "min": 20,
              "max": 20
            },
            "value": {
              "type": "Any",
              "required": false
            }
          }
        }
      ]
    },
    "ollama_tag": {
      "type": "Array",
      "required": true,
      "items": [
        {
          "name": "EntityTagInput",
          "type": "Object",
          "required": false,
          "fields": {
            "name": {
              "type": "String",
              "required": true,
              "max": 255
            },
            "value": {
              "type": "String",
              "required": false
            }
          }
        }
      ]
    }
  }
}

Enums

OllamaModel

DeepSeekR1_1_5B

DeepSeekR1_7B

DeepSeekR1_8B

DeepSeekR1_14B

DeepSeekR1_32B

DeepSeekR1_70B

DeepSeekR1_671B

OllamaUsage

Low

Medium

High

OllamaStatus

GeneratingSourceCode

Pushing

Creating

Downloading

Error

Successful

Pending

Unknown

Namira Software Corporation

©Copyright 2010 to 2025 Namira Software Corporation. All rights reserved.