Create and send an AutoSupport message
Creates and sends an AutoSupport message with specific input parameters to address system issues or performance concerns. Use this operation to proactively communicate system status to NetApp for troubleshooting and support.
HTTP method and endpoint
POST /support/autosupport/messages
Introduced in
ONTAP 9.6
Usage notes
Creates and sends an AutoSupport message with the provided input parameters.
Important note:
-
By default, the response is an empty object. If
return_records=trueis passed in the request, the response includes information about the node and the index of the invoked AutoSupport message.
Recommended optional properties
-
message- Message included in the AutoSupport subject. Use this to identify the generated AutoSupport message.
Default property values
If not specified in POST, the following are the default property values:
-
type- all -
node.nameornode.uuid- Not specifying these properties invokes AutoSupport on all nodes in the cluster.
Related ONTAP commands
-
system node autosupport invoke
Learn more
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
return_records |
boolean |
query |
False |
The default is false. If set to true, the records are returned.
|
Request Body
| Name | Type | Description |
|---|---|---|
destination |
string |
Destination for the AutoSupport |
error |
Last error during delivery attempt. Empty if "status=sent-successful". |
|
generated_on |
string |
Date and Time of AutoSupport generation in ISO-8601 format |
index |
integer |
Sequence number of the AutoSupport |
message |
string |
Message included in the AutoSupport subject |
node |
||
state |
string |
State of AutoSupport delivery |
subject |
string |
Subject line for the AutoSupport |
type |
string |
Type of AutoSupport collection to issue |
uri |
string |
Alternate destination for the AutoSupport |
Example request
{
"destination": "http",
"error": {
"code": 53149746,
"message": "Could not resolve host: test.com"
},
"generated_on": "2019-03-25T17:30:04-04:00",
"index": 9,
"message": "invoked_test_autosupport_rest",
"node": {
"name": "node1",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
},
"state": "sent_successful",
"subject": "WEEKLY_LOG",
"type": "test",
"uri": "http://1.2.3.4/delivery_uri"
}
Response
Status: 201, Created
| Name | Type | Description |
|---|---|---|
num_records |
integer |
Number of records |
records |
array[records] |
Example response
{
"num_records": 3,
"records": [
{
"index": 9,
"node": {
"name": "node1",
"uuid": "1cd8a442-86d1-11e0-ae1c-123478563412"
}
}
]
}
Headers
| Name | Description | Type |
|---|---|---|
Location |
Useful for tracking the resource location |
string |
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description |
|---|---|
8650866 |
The message parameter is not supported with performance AutoSupports |
53149748 |
The destination URI provided for the invoked AutoSupport is invalid |
Definitions
See Definitions
error
Last error during delivery attempt. Empty if "status=sent-successful".
| Name | Type | Description |
|---|---|---|
code |
integer |
Error code |
message |
string |
Error message |
href
| Name | Type | Description |
|---|---|---|
href |
string |
_links
node
| Name | Type | Description |
|---|---|---|
_links |
||
name |
string |
|
uuid |
string |
autosupport_message
| Name | Type | Description |
|---|---|---|
destination |
string |
Destination for the AutoSupport |
error |
Last error during delivery attempt. Empty if "status=sent-successful". |
|
generated_on |
string |
Date and Time of AutoSupport generation in ISO-8601 format |
index |
integer |
Sequence number of the AutoSupport |
message |
string |
Message included in the AutoSupport subject |
node |
||
state |
string |
State of AutoSupport delivery |
subject |
string |
Subject line for the AutoSupport |
type |
string |
Type of AutoSupport collection to issue |
uri |
string |
Alternate destination for the AutoSupport |
node
| Name | Type | Description |
|---|---|---|
name |
string |
|
uuid |
string |
records
| Name | Type | Description |
|---|---|---|
index |
integer |
Sequence number of the generated AutoSupport |
node |
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. |