All Products
Search
Document Center

Security Center:DescribeAgentlessSensitiveFileByKey

Last Updated:Nov 25, 2024

Queries the list of assets on which a specific type of sensitive files are detected by using the agentless detection feature.

Operation description

You can call this operation only when the agentless detection feature is purchased by using the pay-as-you-go billing method within your Alibaba Cloud account.

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:DescribeAgentlessSensitiveFileByKeyget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SensitiveFileKeystringYes

The type of the sensitive file.

sshpasswd
StatusstringNo

The status of the baseline risk. Valid values:

  • 0: unfixed.
  • 1: fixed.
0
InstanceIdstringNo

The instance ID of the asset that is scanned. To query the instance ID, go to the Task Management page, click Details of a task, and then view the value of Check On.

i-bp1fu4aqltf1huhc****
RemarkstringNo

The name or IP address of the asset.

1.2.XX.XX
PageSizeintegerNo

The number of entries per page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.

Note We recommend that you do not leave this parameter empty.
50
CurrentPageintegerNo

The page number. Default value: 1.

1
ScanRangearrayNo

The types of the assets that are scanned.

stringNo

The type of the asset that is scanned. Valid values:

  • agentless_image: the image of the host.
  • agentless_snapshot: the snapshot of the host.
  • ecs_image: a custom image.
  • ecs_snapshot: a user-created snapshot.
agentless_image
ImageUuidstringNo

The UUID of the asset that is scanned. You can query the UUID on the Host or Cloud Product page. If you scan a host, set this parameter to the UUID of the scanned host. If you scan a snapshot or a custom image, set this parameter to the ID of the scanned snapshot or image.

06293273b67d19516cfcc712194f****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

FBBEB173-1F43-505F-A876-C03ECDF6CE4C
PageInfoobject

The pagination information.

CurrentPageinteger

The page number.

1
PageSizeinteger

The number of entries per page.

20
TotalCountinteger

The total number of entries returned.

100
Countinteger

The number of entries returned on the current page.

20
SensitiveFileListarray<object>

The information about the sensitive files that are detected by using the agentless detection feature.

SensitiveFileListobject

The information about the sensitive file that is detected by using the agentless detection feature.

SensitiveFileKeystring

The type of the sensitive file.

pem
RiskLevelstring

The risk level. Valid values:

  • high
  • medium
  • low
high
InternetIpstring

The public IP address of the asset.

95.214.XX.XX
IntranetIpstring

The private IP address of the asset.

10.68.XX.XX
Uuidstring

The UUID of the asset.

73e6a851-e63b-49ef-9d7a-5542d765****
TargetNamestring

The name of the asset.

SAS_Agentless_171869952****
Statusinteger

The status of the sensitive file. Valid values:

  • 0: unhandled.
  • 1: ignored.
  • 2: false positive.
0
InstanceNamestring

The instance name of the asset.

test-server
FirstScanTimelong

The timestamp when the first scan was performed. Unit: milliseconds.

1663321552000
LastScanTimelong

The timestamp when the last scan was performed. Unit: milliseconds.

1663691592000
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "FBBEB173-1F43-505F-A876-C03ECDF6CE4C",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 100,
    "Count": 20
  },
  "SensitiveFileList": [
    {
      "SensitiveFileKey": "pem",
      "RiskLevel": "high",
      "InternetIp": "95.214.XX.XX",
      "IntranetIp": "10.68.XX.XX",
      "Uuid": "73e6a851-e63b-49ef-9d7a-5542d765****",
      "TargetName": "SAS_Agentless_171869952****",
      "Status": 0,
      "InstanceName": "test-server",
      "FirstScanTime": 1663321552000,
      "LastScanTime": 1663691592000
    }
  ],
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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