ValidationResultModel<CreateDataCenterModel>

The result of validation of an operation.

Properties

NameDescription Additional information
Href

See Hypermedia.

Type: String

RelatedActions

See Hypermedia.

Type: Array of RelationModel

Input

The input object, with all of the default values filled in based on the data both as passed in, and already existing configuration.

This represents the "real" validated object, and enables the caller to both determine defaults that rely on partial state, and to determine why some kinds of validation errors might occur by allowing visibility into what exactly was validated.

Type: CreateDataCenterModel

Errors

A list of errors that were encountered. If there were no errors, this list will be empty.

Type: Array of ValidationErrorModel

Sample

application/json

Sample:
{
  "Input": {
    "Name": "datacenter1",
    "ShortName": "datacenter1",
    "Description": "my datacenter",
    "Tags": [
      "tag"
    ],
    "CustomProperties": [
      {
        "Name": "myProperty",
        "Value": "myValue"
      }
    ],
    "LicenseServerAddress": "ctxlicense.csp.com",
    "LicenseServerAddressPort": 27000,
    "NetScalerGatewayAddress": "https://ag.datacenter1.csp.com"
  },
  "Errors": [
    {
      "MemberNames": [
        "Name"
      ],
      "ErrorMessage": "Required",
      "ErrorCode": "Required"
    }
  ]
}