GET api/pcapi/pcsbysite/{siteId}?active={active}&lastUpdate={lastUpdate}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
Required |
|
| active | boolean |
None. |
|
| lastUpdate | date |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of PCViewModel| Name | Description | Type | Additional 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": "db070534-5519-45b1-bf6d-21974bbd1d0f",
"db_login": "sample string 2",
"db_name": "sample string 3",
"db_password": "sample string 4",
"db_source": "sample string 5",
"id": "9631fe83-8195-446d-a2d4-5c20e9e0c965",
"local_ip": "sample string 7",
"lock_id": "88b86c21-0ef2-49c1-93b7-d9917580f8e9",
"mac_address": "sample string 8",
"name": "sample string 9",
"pc_type_id": "43f8c2e9-a276-44f6-859a-296df02c510c",
"rights": [
{
"code": "sample string 1",
"id": "4173d8d1-ba74-49e3-8e56-4a65d080d06a"
},
{
"code": "sample string 1",
"id": "4173d8d1-ba74-49e3-8e56-4a65d080d06a"
}
],
"site_id": "f1eb2f82-c887-440b-84e9-01777d9dc8d2",
"zone_id": "f592a650-308c-4b73-b38f-9c82b3df0ccd"
},
{
"active": true,
"cleanroom_id": "db070534-5519-45b1-bf6d-21974bbd1d0f",
"db_login": "sample string 2",
"db_name": "sample string 3",
"db_password": "sample string 4",
"db_source": "sample string 5",
"id": "9631fe83-8195-446d-a2d4-5c20e9e0c965",
"local_ip": "sample string 7",
"lock_id": "88b86c21-0ef2-49c1-93b7-d9917580f8e9",
"mac_address": "sample string 8",
"name": "sample string 9",
"pc_type_id": "43f8c2e9-a276-44f6-859a-296df02c510c",
"rights": [
{
"code": "sample string 1",
"id": "4173d8d1-ba74-49e3-8e56-4a65d080d06a"
},
{
"code": "sample string 1",
"id": "4173d8d1-ba74-49e3-8e56-4a65d080d06a"
}
],
"site_id": "f1eb2f82-c887-440b-84e9-01777d9dc8d2",
"zone_id": "f592a650-308c-4b73-b38f-9c82b3df0ccd"
}
]
application/xml, text/xml
Sample:
<ArrayOfpc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<pc>
<active>true</active>
<cleanroom_id>db070534-5519-45b1-bf6d-21974bbd1d0f</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>9631fe83-8195-446d-a2d4-5c20e9e0c965</id>
<local_ip>sample string 7</local_ip>
<lock_id>88b86c21-0ef2-49c1-93b7-d9917580f8e9</lock_id>
<mac_address>sample string 8</mac_address>
<name>sample string 9</name>
<pc_type_id>43f8c2e9-a276-44f6-859a-296df02c510c</pc_type_id>
<rights>
<right>
<ID>4173d8d1-ba74-49e3-8e56-4a65d080d06a</ID>
<code>sample string 1</code>
</right>
<right>
<ID>4173d8d1-ba74-49e3-8e56-4a65d080d06a</ID>
<code>sample string 1</code>
</right>
</rights>
<site_id>f1eb2f82-c887-440b-84e9-01777d9dc8d2</site_id>
<zone_id>f592a650-308c-4b73-b38f-9c82b3df0ccd</zone_id>
</pc>
<pc>
<active>true</active>
<cleanroom_id>db070534-5519-45b1-bf6d-21974bbd1d0f</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>9631fe83-8195-446d-a2d4-5c20e9e0c965</id>
<local_ip>sample string 7</local_ip>
<lock_id>88b86c21-0ef2-49c1-93b7-d9917580f8e9</lock_id>
<mac_address>sample string 8</mac_address>
<name>sample string 9</name>
<pc_type_id>43f8c2e9-a276-44f6-859a-296df02c510c</pc_type_id>
<rights>
<right>
<ID>4173d8d1-ba74-49e3-8e56-4a65d080d06a</ID>
<code>sample string 1</code>
</right>
<right>
<ID>4173d8d1-ba74-49e3-8e56-4a65d080d06a</ID>
<code>sample string 1</code>
</right>
</rights>
<site_id>f1eb2f82-c887-440b-84e9-01777d9dc8d2</site_id>
<zone_id>f592a650-308c-4b73-b38f-9c82b3df0ccd</zone_id>
</pc>
</ArrayOfpc>