All Products
Search
Document Center

Security Center:DescribeVulTargetStatistics

Last Updated:Nov 25, 2024

Queries the configurations of the vulnerability scan feature.

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

Request parameters

ParameterTypeRequiredDescriptionExample
TypestringNo

The type of the vulnerability. Valid values:

  • cve: Linux software vulnerability
  • sys: Windows system vulnerability
  • cms: Web-CMS vulnerability
  • emg: urgent vulnerability
cve

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

CurrentPageinteger

The page number.

1
RequestIdstring

The ID of the request.

23AD0BD2-8771-5647-819E-6BA51E212F80
PageSizeinteger

The number of entries per page.

10
TotalCountinteger

The total number of entries returned.

1
TargetStatsarray<object>

An array that consists of the configurations of the vulnerability scan feature.

TargetStatobject

The configurations of the vulnerability scan feature.

VulTypestring

The type of the vulnerability. Valid values:

  • cve: Linux software vulnerabilities
  • sys: Windows system vulnerabilities
  • cms: Web-CMS vulnerabilities
  • emg: urgent vulnerabilities
cve
TotalCountinteger

The total number of servers.

1
UuidCountinteger

The number of servers to which the configurations are applied.

1
Targetsarray<object>

An array that consists of available servers.

Targetobject

The information about the server.

Flagstring

Indicates whether the configurations are applied to the server. Valid values:

  • add: yes
  • del: no
add
Targetstring

The group ID or UUID of the server to which the configurations are applied.

0011ea53-738c-4bff-93be-ce6a1cc9****
TargetTypestring

The condition by which the configurations are applied to the server. Valid values:

  • uuid: the UUID of the server
  • groupId: the ID of the server group
uuid

Examples

Sample success responses

JSONformat

{
  "CurrentPage": 1,
  "RequestId": "23AD0BD2-8771-5647-819E-6BA51E212F80",
  "PageSize": 10,
  "TotalCount": 1,
  "TargetStats": [
    {
      "VulType": "cve",
      "TotalCount": 1,
      "UuidCount": 1,
      "Targets": [
        {
          "Flag": "add",
          "Target": "0011ea53-738c-4bff-93be-ce6a1cc9****",
          "TargetType": "uuid"
        }
      ]
    }
  ]
}

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.

Change history

Change timeSummary of changesOperation
No change history