POST DataCenters

Create a new datacenter.

Request Information

Request body type

CreateDataCenterModel

Request body formats

application/json, text/json

Sample:
{
  "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"
}

Response Information

The newly created datacenter.

Response type

DataCenterModel

Response body formats

application/json, text/json

Sample:
{
  "Href": "[api:DataCenters(af1fc9c4-dee5-4b0d-836c-9e1c5b57a88a)]",
  "Id": "af1fc9c4-dee5-4b0d-836c-9e1c5b57a88a",
  "ChangeId": "4",
  "DeleteState": "NotDeleted",
  "Name": "datacenter1",
  "ShortName": "datacenter1",
  "Description": "My datacenter",
  "Tags": [
    "tag"
  ],
  "CustomProperties": [
    {
      "Name": "myProperty",
      "Value": "myValue"
    }
  ],
  "LicenseServerAddress": "ctxlicense.mydomain.com",
  "LicenseServerAddressPort": 27000,
  "NetScalerGatewayAddress": "https://ag.datacenter1.mydomain.com",
  "NumDeliverySites": 2,
  "NumStoreFrontServerGroups": 5,
  "NumSessionMachines": 1000,
  "HealthSummary": {
    "ActiveCount": 0,
    "ErrorCount": 0,
    "WarningCount": 0,
    "InfoCount": 1,
    "Messages": [
      {
        "Text": "Attempting to reach desired capacity",
        "IsError": false,
        "IsWarning": false,
        "IsInfo": false,
        "IsActive": true,
        "Type": "Allocation"
      }
    ]
  }
}