---
title: "GET /command_template/:id/commands"
method: GET
path: "/command_template/:id/commands"
tags: ["command_template"]
---

# GET /command_template/:id/commands

`GET /command_template/:id/commands`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `id` integer, required

## Response `200`

OK

- object
  - `code` integer
  - `data` ModelCommand[]
    - `category` 'security' | 'system' | 'database' | 'network' | 'file' | 'developer' | 'custom'
    - `cmd` string
    - `created_at` string
    - `creator_id` integer
    - `description` string
    - `enable` boolean
    - `id` integer
    - `is_global` boolean: Global predefined command
    - `is_re` boolean
    - `name` string
    - `permissions` string[]
    - `resource_id` integer
    - `risk_level` 0 | 1 | 2 | 3
    - `tags` string[]
    - `updated_at` string
    - `updater_id` integer
  - `message` string

## Changes

- **2025-07-16** `788529308517`: 1 info
  - endpoint added
- **2025-03-02** `f6b1c099afda`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/veops/apis/veops-oneterm-api/changes/command_template/:id/commands/get.md)

---

[API](https://skmtc.dev/veops/apis/veops-oneterm-api.md) - [All operations](https://skmtc.dev/veops/apis/veops-oneterm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veops/apis/veops-oneterm-api/revisions/bd0569ff0157?raw)
