All Products
Search
Document Center

Security Center:ExportRecord

更新時間:Nov 14, 2024

Exports the check results on the Host, Cloud Platform Configuration Assessment, Image Security, Attack Awareness, and AK leak detection pages to Excel files.

Operation description

You can call the operation to export the following check result lists:

  • The list of servers on the Host page.
  • The lists of image system vulnerabilities, image application vulnerabilities, image baseline check results, and malicious image samples on the Image Security page.
  • The list of attack analysis data on the Attack Awareness page.
  • The list of check results for AccessKey pair leaks on the AK leak detection page.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ExportRecordnone
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh
ParamsstringNo

The conditions that are used to filter check results.

Note This operation is a common export operation for multiple features of Security Center. The available configuration fields of this parameter vary based on the features. We recommend that you do not specify this parameter when you call the operation. You can export an information list without specifying this parameter, and then filter data in the exported Excel file.
{"extend":"1","currentPage":1,"pageSize":10}
ExportTypestringYes

The type of the check result list that you want to export. Valid values:

  • assetInstance: the list of servers displayed on the Host page
  • user: the list of fingerprints for accounts
  • port: the list of fingerprints for ports
  • process: the list of fingerprints for processes
  • sca: the list of fingerprints for middleware assets
  • database: the list of fingerprints for databases
  • web: the list of fingerprints for web services
  • software: the list of fingerprints for software assets
  • cron: the list of fingerprints for scheduled tasks
  • autorun: the list of fingerprints for startup items
  • lkm: the list of fingerprints for kernel modules
  • webserver: the list of fingerprints for websites
  • virusScanExport: the details of the virus scan tasks
  • imageVulExport: the list of image system vulnerabilities
  • imageBaseLineExport: the list of check results for image baselines
  • imageAffectedMaliciousExport: the list of check results for malicious image samples
  • baselineCspm: the list of check results for configuration assessment
  • attack: the list of alert events for attack analysis
  • accessKey: the list of alerts that are generated for AccessKey pair leaks
  • exportObjectScanEvents: the list of alerts generated for malicious files
database
ExportFileTypestringNo

The type of the file to export. Valid values:

  • virusScanExport: The details of the virus scan tasks are exported. This parameter is available and required when ExportType is set to virusScanExport.
virusScanExport

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

6673D49C-A9AB-40DD-B4A2-B92306701AE7
FileNamestring

The name of the exported file.

cms_20171101.xlsx
Idlong

The ID of the exported file.

131231

Examples

Sample success responses

JSONformat

{
  "RequestId": "6673D49C-A9AB-40DD-B4A2-B92306701AE7",
  "FileName": "cms_20171101.xlsx",
  "Id": 131231
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParamIllegal param-
400FreeVersionNotPermitFree version is not permitted.The free version cannot be used.
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-06-13The Error code has changedView Change Details
2024-01-23The Error code has changed. The request parameters of the API has changedView Change Details
2022-08-01The Error code has changedView Change Details
2022-08-01The Error code has changedView Change Details