Create Resource Warning
Create a new Resource Warning
Show optional properties
{
"resourceId": "string",
"resourceName": "string",
"resourceType": "HOST, CLUSTER, DOMAIN",
"warningType": "SKIPPED_RESOURCE, VALIDATION, CONFIGURATION, OTHER",
"severity": "MINOR, MAJOR",
"occurredAtTimestamp": 0,
"localizableWarningPack": {
"warningCode": "string",
"localBundle": "string",
"vipComponent": "string",
"defaultMessage": "string"
}
}
{
"resourceId": "string",
"resourceName": "string",
"resourceType": "HOST, CLUSTER, DOMAIN",
"warningType": "SKIPPED_RESOURCE, VALIDATION, CONFIGURATION, OTHER",
"severity": "MINOR, MAJOR",
"occurredAtTimestamp": 0,
"context": {
"context": "string"
},
"localizableWarningPack": {
"warningCode": "string",
"localBundle": "string",
"vipComponent": "string",
"defaultMessage": "string",
"arguments": [
"string"
],
"referenceToken": "string"
},
"associatedTask": {
"taskId": "string",
"subTaskId": "string"
}
}
ID of the resource to which this warning will be associated
Name of the resource to which this warning will be associated
Type of the resource to which this warning will be associated
The type of the warning
The severity of the warning
The Unix epoch timestamp of when the warning occurred
Optional additional context information to be associated to the warning
Localization warning pack containing all required data to provide localized warning messages
Task association for a resource warning. Indicates in which task the resource warning occurred
Created
"ResourceWarning Object"
ID of the resource warning
The warning code
The localized warning message
The localized remediation warning message
A reference token correlating the warning with the relevant detailed logs. Should be sent to the service provider when reporting issues
ID of the associated resource
Type of the associated resource
Name of the associated resource
Type of the warning
Severity of the warning
Timestamp when the warning occurred
Optional additional context information in a key value form
Task association for a resource warning. Indicates in which task the resource warning occurred
Bad Request
"Error Object"
The minor error code
The error type
The arguments used to localize the message, Can be used by scripts to automate the error processing.
The error context (e.g. the component where it occurred).
The localized error message
The localized remediation error message
The underlying cause exceptions.
A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.
Internal Server Error
"Error Object"
The minor error code
The error type
The arguments used to localize the message, Can be used by scripts to automate the error processing.
The error context (e.g. the component where it occurred).
The localized error message
The localized remediation error message
The underlying cause exceptions.
A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"localizableWarningPack:"object","occurredAtTimestamp:"integer","resourceId:"string","resourceName:"string","resourceType:"string","severity:"string","warningType:"string"}' https://{api_host}/v1/resource-warnings