Creates a task to export a data report.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:CreateEcdReportTask |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskType |
string |
Yes |
The type of the report task. Valid values:
|
RESOURCE_REPORT |
| SubType |
string |
Yes |
The subtype of the report task. Valid values:
|
DESKTOP |
| FilterList |
array<object> |
No |
The filter conditions for the query. The conditions are joined by the logical AND operator. Each condition contains a |
|
|
object |
No |
|
||
| FilterKey |
string |
No |
SubType is set to DESKTOP (for a cloud computer report), the following filter keys are available:
* KeyWord: a keyword for the cloud computer (automatically recognizes multiple resource attributes)
* RegionId: the region ID
* DesktopId: the cloud computer ID
* DesktopName: the cloud computer name (supports fuzzy search)
* OfficeSiteId: the office network ID
* OfficeSiteName: the office network name (supports fuzzy search)
* Status: the status of the cloud computer
* DesktopType: the desktop type
* DesktopIP: the IP address of the cloud computer
* SubPayType: the billing method
* EndUserId: the user name (supports fuzzy search)
* ExpireTime: the expiration time in the yyyy-MM-dd'T'HH:mm:ss'Z' format
* IncludeAssignedUser: whether to include cloud computers that are assigned to users. Valid values: true and false.
* ResourceGroupId: the resource group ID
* PolicyId: the policy ID
* Tag:<TagKey>: a tag of the cloud computer. Replace <TagKey> with your tag key. To filter by multiple tags, use a separate filter object for each.
|
Tag:TestKey |
| FilterValues |
array |
No |
FilterKey values, only the first value in the array is used:
* KeyWord
* DesktopName
* OfficeSiteName
* DesktopIP
* EndUserId
* ExpireTime
* IncludeAssignedUser
|
|
|
string |
No |
|
测试云电脑名称 |
|
| ReportFileName |
string |
No |
The report file name. |
测试报表名称 |
| LangType |
string |
No |
The language of the report. Valid values:
|
zh-CN |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| Success |
boolean |
Indicates whether the operation was successful. |
True |
| Code |
string |
The result code of the operation. A value of |
success |
| Message |
string |
The error message. This parameter is not returned when |
success |
| TaskId |
string |
The report task ID. |
ret-g67ip****** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"Success": true,
"Code": "success",
"Message": "success",
"TaskId": "ret-g67ip******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.