# MSPレガシーレポートコマンド

### MSPレガシーレポートコマンド <a href="#msp-legacy-report-command-details" id="msp-legacy-report-command-details"></a>

KeeperサーバーからMSPレガシー向けライセンス調整ログを取得し、レポートとして表示します。あらかじめ定義された期間 (直近7日、先月など) とカスタム期間の両方に対応します。表形式の表示、CSVエクスポート、JSON出力、ファイルへの保存に対応します。

<details>

<summary>DotNet CLI</summary>

**近日公開**

</details>

<details>

<summary>DotNet SDK</summary>

**近日公開**

</details>

<details>

<summary>PowerCommander</summary>

**コマンド:** `Get-KeeperMspLegacyReport`

**別名:** `msp-legacy-report`

**パラメーター:**

`-Range` - あらかじめ定義された期間。指定可能な値: `today`、`yesterday`、`last_7_days`、`last_30_days`、`month_to_date`、`last_month`、`year_to_date`、`last_year`。`-From` と `-To` を指定した場合は無視されます。

`-From` - カスタム開始日 (`YYYY-MM-dd` 形式) または Unix タイムスタンプ (秒)。`-To` と併用が必須です。

`-To` - カスタム終了日 (`YYYY-MM-dd` 形式) または Unix タイムスタンプ (秒)。`-From` と併用が必須です。

`-Format` - 出力形式: `table`、`json`、または `csv`

`-Output` - レポートを書き出すファイルパス

**例:**

{% code overflow="wrap" %}

```powershell
# Default: last 30 days, table format
PS > Get-KeeperMspLegacyReport

# Using alias
PS > msp-legacy-report

# Predefined range
PS > Get-KeeperMspLegacyReport -Range last_7_days

# Custom date range
PS > Get-KeeperMspLegacyReport -From "2025-01-01" -To "2025-06-30"

# Export as CSV to a file
PS > Get-KeeperMspLegacyReport -Range last_month -Format csv -Output "legacy_report.csv"

# Export as JSON to console
PS > Get-KeeperMspLegacyReport -Range year_to_date -Format json
```

{% endcode %}

</details>

<details>

<summary>Python CLI</summary>

**近日公開**

</details>

<details>

<summary>Python SDK</summary>

**近日公開**

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/keeperpam/jp/commander-sdk/keeper-commander-sdks/sdk-command-reference/reporting-commands/msp-legacy-report-command.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
