> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# 所有应用程序状态

> 实时收集你所有应用程序的状态信息。速率限制为每 60 秒 15 次请求。

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  你账户的 API 密钥。你可以在[账户设置](https://squarecloud.app/zh/account/security)中找到它。
</ParamField>

### 参数

<ParamField query="workspaceId" type="string" placeholder="Workspace Id">
  workspace 的 id。你可以在控制台中 workspace 名称下方找到它。
</ParamField>

如果未提供 `workspaceId`，将获取你账户下应用程序的状态。

### 响应

<ResponseField name="status" type="string">
  指示调用是否成功。成功时为 `success`，否则为 `error`。
</ResponseField>

<ResponseField name="response" type="object">
  响应的内容。

  <Expandable title="展开对象">
    <ResponseField name="id" type="string">
      应用程序 ID。
    </ResponseField>

    <ResponseField name="cpu" type="string">
      应用程序的 CPU 使用率。
    </ResponseField>

    <ResponseField name="ram" type="string">
      应用程序的 RAM 使用量。
    </ResponseField>

    <ResponseField name="running" type="boolean">
      指示应用程序当前是否正在运行。
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
    "status": "success",
    "response": [
      {
        "id": "5bbd020126ee4692aga43e0ca0a75454",
        "cpu": "0.00%",
        "ram": "55.88MB",
        "running": true
      },
      {
        "id": "e1b286ba30f14a87baed4b4ad3b53c47",
        "cpu": "0.01%",
        "ram": "68.44MB",
        "running": true
      }
    ]
  }
  ```
</ResponseExample>
