Skip to main content

Delete an antivirus On-Access policy configuration

Contributors

DELETE /protocols/vscan/{svm.uuid}/on-access-policies/{name}

Introduced In: 9.6

Deletes the anti-virus On-Access policy configuration.

  • vserver vscan on-access-policy delete

Parameters

Name Type In Required Description

name

string

path

True

svm.uuid

string

path

True

UUID of the SVM to which this object belongs.

Response

Status: 200, Ok

Error

Status: Default

ONTAP Error Response Codes

Error Code Description

10027034

An On-Access policy associated with a data SVM which was created by SVM owned by the cluster cannot be deleted.

10027040

An On-Access policy with a status enabled cannot be deleted. Disable the policy and then delete the policy.

Name Type Description

error

returned_error

Example error
{
  "error": {
    "arguments": [
      {
        "code": "string",
        "message": "string"
      }
    ],
    "code": "4",
    "message": "entry doesn't exist",
    "target": "uuid"
  }
}

Definitions

See Definitions

error_arguments

Name Type Description

code

string

Argument code

message

string

Message argument

returned_error

Name Type Description

arguments

array[error_arguments]

Message arguments

code

string

Error code

message

string

Error message

target

string

The target parameter that caused the error.