Skip to main content
A newer release of this product is available.

Creates an audit log redirect configuration

Contributors
  • vserver audit audit-log-redirect create # learn more

  • [doc /private/protocols/audit/audit-log-redirect](#docs-nas-private_protocols_audit_audit-log-redirect)

POST /private/protocols/audit/audit-log-redirect

Introduced In: 9.8

Creates an Audit Log Redirect configuration.

Required properties

  • svm.uuid or svm.name - Existing SVM to which NAS audit events logs will be redirected to.

  • vserver audit audit-log-redirect create

Parameters

Name Type In Required Description

return_records

boolean

query

False

The default is false. If set to true, the records are returned.

  • Default value:

Request Body

Name Type Description

_links

_links

svm

svm

Example request
{
  "_links": {
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "svm": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "name": "svm1",
    "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
  }
}

Response

Status: 201, Created
Name Type Description

_links

_links

svm

svm

Example response
{
  "_links": {
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "svm": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "name": "svm1",
    "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
  }
}

Error

Status: Default

ONTAP Error Response Codes

Error Code Description

9699478

Audit Log Redirect configuration already exists.

9699479

Failed to create Audit Log Redirect configuration.

9699483

Audit Log Redirect configuration not available.

9699484

Failed to modify Audit Log Redirect configuration because all SVMs audit configuration must be deleted first.

9699486

Audit Log Redirect feature is not available in maintenance mode.

9699487

Node is not part of a cluster.

9699488

SVM does not exist.

9699489

Audit Log Redirect configuration only supported on Data SVM.

Name Type Description

error

error

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

Definitions

See Definitions

href

Name Type Description

href

string

Name Type Description

self

href

svm

Name Type Description

_links

_links

name

string

The name of the SVM.

uuid

string

The unique identifier of the SVM.

audit_log_redirect

Name Type Description

_links

_links

svm

svm

error_arguments

Name Type Description

code

string

Argument code

message

string

Message argument

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.

Close
Try it out

Sign in with your NetApp Cloud Central credentials.

Try this API

Parameters

Headers

Body

Code

Response