GET api/pcapi/pc/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

PCViewModel
NameDescriptionTypeAdditional information
active

boolean

Required

cleanroom_id

globally unique identifier

None.

db_login

string

String length: inclusive between 0 and 50

db_name

string

String length: inclusive between 0 and 50

db_password

string

String length: inclusive between 0 and 50

db_source

string

String length: inclusive between 0 and 50

id

globally unique identifier

None.

local_ip

string

String length: inclusive between 0 and 15

lock_id

globally unique identifier

None.

mac_address

string

Required

String length: inclusive between 0 and 30

name

string

String length: inclusive between 0 and 100

pc_type_id

globally unique identifier

None.

rights

Collection of ShortRightViewModel

None.

site_id

globally unique identifier

None.

zone_id

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "active": true,
  "cleanroom_id": "090d6ed0-dbd0-4064-97e4-01a8b41b0bef",
  "db_login": "sample string 2",
  "db_name": "sample string 3",
  "db_password": "sample string 4",
  "db_source": "sample string 5",
  "id": "cbb0531b-9854-4475-a2a3-fb75193ff665",
  "local_ip": "sample string 7",
  "lock_id": "d15e68bb-d5d5-4afd-8ee4-2490fc8010b2",
  "mac_address": "sample string 8",
  "name": "sample string 9",
  "pc_type_id": "140bbf59-c333-417a-87c3-47d9d4577c89",
  "rights": [
    {
      "code": "sample string 1",
      "id": "f136376c-38be-4f94-ba36-6d41049d223d"
    },
    {
      "code": "sample string 1",
      "id": "f136376c-38be-4f94-ba36-6d41049d223d"
    }
  ],
  "site_id": "39597f9a-e248-4676-ade4-b262fcc47a3d",
  "zone_id": "a2750d5f-2796-4628-8cb3-c2277840e0a5"
}

application/xml, text/xml

Sample:
<pc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <cleanroom_id>090d6ed0-dbd0-4064-97e4-01a8b41b0bef</cleanroom_id>
  <db_login>sample string 2</db_login>
  <db_name>sample string 3</db_name>
  <db_password>sample string 4</db_password>
  <db_source>sample string 5</db_source>
  <id>cbb0531b-9854-4475-a2a3-fb75193ff665</id>
  <local_ip>sample string 7</local_ip>
  <lock_id>d15e68bb-d5d5-4afd-8ee4-2490fc8010b2</lock_id>
  <mac_address>sample string 8</mac_address>
  <name>sample string 9</name>
  <pc_type_id>140bbf59-c333-417a-87c3-47d9d4577c89</pc_type_id>
  <rights>
    <right>
      <ID>f136376c-38be-4f94-ba36-6d41049d223d</ID>
      <code>sample string 1</code>
    </right>
    <right>
      <ID>f136376c-38be-4f94-ba36-6d41049d223d</ID>
      <code>sample string 1</code>
    </right>
  </rights>
  <site_id>39597f9a-e248-4676-ade4-b262fcc47a3d</site_id>
  <zone_id>a2750d5f-2796-4628-8cb3-c2277840e0a5</zone_id>
</pc>