Retrieve the anti-ransomware version of the nodes in the cluster
GET /security/anti-ransomware
Introduced In: 9.16
Retrieves the anti-ransomware package version of the nodes in the cluster.
Related ONTAP commands
-
security anti-ransomware show
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
fields |
array[string] |
query |
False |
Specify the fields to return. |
return_timeout |
integer |
query |
False |
The number of seconds to allow the call to execute before returning. When iterating over a collection, the default is 15 seconds. ONTAP returns earlier if either max records or the end of the collection is reached.
|
Response
Status: 200, Ok
Name | Type | Description |
---|---|---|
nodes |
array[anti_ransomware_node] |
|
uri |
string |
URI of the anti-ransomware package through a server |
Example response
{
"nodes": [
{
"name": "node1",
"version": "1.0"
}
],
"uri": "http://server/package"
}
Error
Status: Default
ONTAP Error Response Codes
Error Code | Description |
---|---|
917775 |
Operation is not supported on offline volumes. |
203161606 |
Failed to check the "anti-ransomware-state" of the volume. |
203162108 |
Operation is not supported on volumes that contain LUNs or namespaces. |
203162109 |
Operation is not supported on an anti-ransomware disable-in-progress volume. |
Also see the table of common errors in the Response body overview section of this documentation.
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
anti_ransomware_node
Name | Type | Description |
---|---|---|
name |
string |
Name of the node. |
version |
string |
Anti-ransomware version. |
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. |