# DownloadUMInferRequestLog - DownloadUMInferRequestLog

## Overview

Download UMInfer request logs




## Usage

You can choose any of the following methods to initiate an API request:
- Multi-language OpenSDK / [Go](https://github.com/ucloud/ucloud-sdk-go) / [Java](https://github.com/ucloud/ucloud-sdk-java) / [Python](https://github.com/ucloud/ucloud-sdk-python3) / [JavaScript](https://github.com/ucloud/ucloud-sdk-js) / [PHP](https://github.com/ucloud/ucloud-sdk-php) /
- [CloudShell](https://shell.ucloud.cn/)

## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `DownloadUMInferRequestLog`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.ucloud.cn/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](https://docs.ucloud.cn/api/summary/signature)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Region** | string | Business region, for example cn-wlcb. Use ListUMInferRegions to get available regions |**Yes**|
| **ProjectId** | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList API |No|
| **Zone** | string | Zone. See [Region and Zone List](https://docs.ucloud.cn/api/summary/regionlist) |**Yes**|
| **StartTime** | int | Export start time, Unix timestamp in milliseconds |**Yes**|
| **EndTime** | int | Export end time, Unix timestamp in milliseconds. Maximum range is 30 days |**Yes**|
| **Email** | string | Email address used to receive export result |**Yes**|
| **ModelNames.N** | string | Model name list for filtering |No|
| **ApiKeyIds.N** | string | API Key ID list for filtering |No|
| **RequestId** | string | Request ID for exact filtering |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **TaskId** | string | Export task ID |No|
| **TotalCount** | int | Number of log rows matched by this export query |No|



## Example

### Request Example
```
https://api.ucloud.cn/?Action=DownloadUMInferRequestLog
&Region=cn-wlcb
&Zone=cn-wlcb-01
&ProjectId=org-xxx
&StartTime=1751299200000
&EndTime=1751385600000
&Email=ops@example.com
&ModelNames.n=deepseek-r1
&ApiKeyIds.n=uminferapikey-xxxx
&RequestId=request-xxxx
```

### Response Example
```json
{
  "Action": "DownloadUMInferRequestLogResponse",
  "RetCode": 0,
  "TaskId": "task-xxxx",
  "TotalCount": 1024
}
```
