ResourceWarningCreationSpec

ResourceWarningCreationSpec
ResourceWarningCreationSpec

Resource Warning creation specification

JSON Example
{
    "resourceId": "string",
    "resourceName": "string",
    "resourceType": "HOST, CLUSTER, DOMAIN, VCENTER, NSXT_MANAGER, NSX_ALB, NSXT_EDGE_CLUSTER, SDDC_MANAGER, DEPOT_SERVICE",
    "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"
    },
    "skipResourceValidation": false
}
string
resourceId
Required  
Constraints: minLength: 1

ID of the resource to which this warning will be associated

string
resourceName
Required  
Constraints: minLength: 1

Name of the resource to which this warning will be associated

string
resourceType
Required  
Constraints: minLength: 1

Type of the resource to which this warning will be associated

Enumeration: HOST, CLUSTER, DOMAIN, VCENTER, NSXT_MANAGER, NSX_ALB, NSXT_EDGE_CLUSTER, SDDC_MANAGER, DEPOT_SERVICE
string
warningType
Required  
Constraints: minLength: 1

The type of the warning

Enumeration: CONFIGURATION, OTHER, SKIPPED_RESOURCE, VALIDATION
string
severity
Required  
Constraints: minLength: 1

The severity of the warning

Enumeration: MAJOR, MINOR
integer As int64 As int64
occurredAtTimestamp
Required  

The Unix epoch timestamp of when the warning occurred

object
context
Optional

Optional additional context information to be associated to the warning

localizableWarningPack
Required  

Localization warning pack containing all required data to provide localized warning messages

associatedTask
Optional

Task association for a resource warning. Indicates in which task the resource warning occurred

boolean
skipResourceValidation
Optional

Optional to skip resource validation