PUT v1/servers/{id}

This method requires authentication.

Update a Server

Request Information

Parameters

NameDescriptionAdditional information
id ID of Server to update.

Define this parameter in the request URI.

resource Server resource.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "server": {
    "id": 1,
    "name": "sample string 2",
    "version": "sample string 3",
    "hostAddress": "sample string 4",
    "lastUpdate": "2017-05-22T18:24:30.9072585-05:00",
    "timeDelta": 1,
    "raidInfos": [
      1,
      2,
      3
    ],
    "volumeInfos": [
      1,
      2,
      3
    ],
    "remoteAccessId": "sample string 5"
  },
  "raidInfos": [
    {
      "id": 1,
      "name": "sample string 2",
      "server": 1,
      "type": 1,
      "status": 1,
      "lastModified": "2017-05-22T18:24:30.9072585-05:00"
    },
    {
      "id": 1,
      "name": "sample string 2",
      "server": 1,
      "type": 1,
      "status": 1,
      "lastModified": "2017-05-22T18:24:30.9072585-05:00"
    },
    {
      "id": 1,
      "name": "sample string 2",
      "server": 1,
      "type": 1,
      "status": 1,
      "lastModified": "2017-05-22T18:24:30.9072585-05:00"
    }
  ],
  "volumeInfos": [
    {
      "id": 1,
      "driveLetter": "sample string 2",
      "capacity": 1,
      "free": 1,
      "server": 1
    },
    {
      "id": 1,
      "driveLetter": "sample string 2",
      "capacity": 1,
      "free": 1,
      "server": 1
    },
    {
      "id": 1,
      "driveLetter": "sample string 2",
      "capacity": 1,
      "free": 1,
      "server": 1
    }
  ]
}

application/xml, text/xml

Sample:
<Resources xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.DTOs">
  <RaidInfos>
    <RaidInfo>
      <Id>1</Id>
      <LastModified>2017-05-22T18:24:30.9072585-05:00</LastModified>
      <Name>sample string 2</Name>
      <Server>1</Server>
      <Status>1</Status>
      <Type>1</Type>
    </RaidInfo>
    <RaidInfo>
      <Id>1</Id>
      <LastModified>2017-05-22T18:24:30.9072585-05:00</LastModified>
      <Name>sample string 2</Name>
      <Server>1</Server>
      <Status>1</Status>
      <Type>1</Type>
    </RaidInfo>
    <RaidInfo>
      <Id>1</Id>
      <LastModified>2017-05-22T18:24:30.9072585-05:00</LastModified>
      <Name>sample string 2</Name>
      <Server>1</Server>
      <Status>1</Status>
      <Type>1</Type>
    </RaidInfo>
  </RaidInfos>
  <Server>
    <HostAddress>sample string 4</HostAddress>
    <Id>1</Id>
    <LastUpdate>2017-05-22T18:24:30.9072585-05:00</LastUpdate>
    <Name>sample string 2</Name>
    <RaidInfos xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
      <d3p1:int>3</d3p1:int>
    </RaidInfos>
    <RemoteAccessId>sample string 5</RemoteAccessId>
    <TimeDelta>1</TimeDelta>
    <Version>sample string 3</Version>
    <VolumeInfos xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
      <d3p1:int>3</d3p1:int>
    </VolumeInfos>
  </Server>
  <VolumeInfos>
    <VolumeInfo>
      <Capacity>1</Capacity>
      <DriveLetter>sample string 2</DriveLetter>
      <Free>1</Free>
      <Id>1</Id>
      <Server>1</Server>
    </VolumeInfo>
    <VolumeInfo>
      <Capacity>1</Capacity>
      <DriveLetter>sample string 2</DriveLetter>
      <Free>1</Free>
      <Id>1</Id>
      <Server>1</Server>
    </VolumeInfo>
    <VolumeInfo>
      <Capacity>1</Capacity>
      <DriveLetter>sample string 2</DriveLetter>
      <Free>1</Free>
      <Id>1</Id>
      <Server>1</Server>
    </VolumeInfo>
  </VolumeInfos>
</Resources>