All Products
Search
Document Center

Security Center:CreateVulAutoRepairConfig

Last Updated:Nov 30, 2022

Creates a list of vulnerabilities that can be automatically fixed. After the list is created, you can select the list when you create a vulnerability fixing task on the Playbook page.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • 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 keyword: refers to the condition keyword defined by the cloud product itself.
  • 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.
Operateaccess levelResource typeconditional keywordAssociation operation
yundun-sas:CreateVulAutoRepairConfigWrite
  • SecurityCenter
    acs:yundun-sas:*:{#accountId}:*
    without
without

Request parameters

ParameterTypeRequiredDescriptionExample
TypestringYes

The type of the vulnerability. Valid values:

  • cve: Linux software vulnerability.
  • sys: Windows system vulnerability.
cve
VulAutoRepairConfigListarrayYes

The vulnerabilities that can be automatically fixed.

objectNo

The vulnerability that can be automatically fixed.

AliasNamestringYes

The alias of the vulnerability.

CVE-2018-25032:zlib 1.2.11 memory corruption
NamestringYes

The name of the vulnerability.

anolisos:8.4:ANSA-2022:0001
ReasonstringNo

The reason why the vulnerability can be automatically fixed.

TestAutoRepair

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

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

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

Indicates whether the request is successful. Valid values:

  • true: yes
  • false: no
true
Codestring

The status code returned. The status code 200 indicates that the request was is successful. Other status codes indicate that the request fails. You can identify the cause of the failure based on the status code.

200
Messagestring

The error message returned.

success
HttpStatusCodeinteger

The HTTP status code returned.

200

Example

Normal return example

JSONFormat

{
  "RequestId": "6673D49C-A9AB-40DD-B4A2-B92306701AE7",
  "Success": true,
  "Code": "200",
  "Message": "success",
  "HttpStatusCode": 200
}

Error codes

Http codeError codeError message
400InnerErrorInnerError
400IllegalParamIllegal param
500ServerErrorServerError

For a list of error codes, visit the API error center.