Create and send an AutoSupport message
Creates and sends an AutoSupport message with specified input parameters to assist in monitoring and maintaining your system's health. This operation helps you communicate system status or issues to the support team effectively.
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-25 17:30:04 -0400",
"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": "https://1.2.3.4/delivery_uri"
}
Response
Status: 201, Created
| Name | Type | Description |
|---|---|---|
num_records |
integer |
Number of records |
records |
array[autosupport_message] |
List of messages invoked on the node |
Example response
{
"num_records": 1,
"records": [
{
"destination": "http",
"error": {
"code": "53149746",
"message": "Could not resolve host: test.com"
},
"generated_on": "2019-03-25 17:30:04 -0400",
"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": "https://1.2.3.4/delivery_uri"
}
]
}
Headers
| Name | Description | Type |
|---|---|---|
Location |
Useful for tracking the resource location |
string |
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description |
|---|---|
8650851 |
AutoSupport invocation failed because AutoSupport collection is disabled |
8650852 |
AutoSupport invocation failed because the trigger is disabled |
8650853 |
AutoSupport invocation failed because the trigger rate is higher than the maximum supported value |
8650866 |
The message parameter is not supported with performance AutoSupports |
8650884 |
The specified field is not allowed for the current operation |
8650885 |
The specified field cannot be empty |
53149748 |
The destination URI provided for the invoked AutoSupport is invalid |
Also see the table of common errors in the Response body overview section of this documentation.
Definitions
See Definitions
href
| Name | Type | Description |
|---|---|---|
href |
string |
self_link
error
Last error during delivery attempt. Empty if "status=sent-successful".
| Name | Type | Description |
|---|---|---|
code |
integer |
Error code |
message |
string |
Error message |
_links
node
| Name | Type | Description |
|---|---|---|
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 |
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. |