Skip to main content

GetAllFacilities

Overview

Returns a list of FacilityViewModels that the API token has rights to view.

Request Information


Method

GET - api/Facility/GetAllFacilities

URI Parameters

None.

Body Parameters

None.

Response Information


Resource Description

Collection of FacilityViewModel

NameDescriptionTypeAdditional information
FacilityIdRepresents the PK of an existing Facility in BluSKYglobally unique identifierNone.
NameRepresents the name of an existing Facility in BluSKYstringNone.
ACSystemIdRepresents the PK of the Access Control System for the Facilityglobally unique identifierNone.
ACSystemNameRepresents the name of the Access Control System for the FacilitystringNone.
DeletedRepresents whether the Facility is deleted or not.booleanNone.
TimeZoneInfoIdRepresents the TimeZone of the FacilitystringNone.
StreetAddress1Represents the primary street address of the FacilitystringNone.
StreetAddress2Represents the secondary street address of the FacilitystringNone.
CityRepresents the city of the FacilitystringNone.
sRegionIdRepresents the PK of the region (State, Province, County, etc) of the Facilityglobally unique identifierNone.
RegionNameRepresents the name of the region (State, Province, County, etc) of the FacilitystringNone.
sCountryIdRepresents the PK of the country of the Facilityglobally unique identifierNone.
CountryNameRepresents the name of the country of the FacilitystringNone.
PostalCodeRepresents the Postal Code/Zip Code of the FacilitystringNone.
WebsiteRepresents the URL of the website associated with the FacilitystringNone.

Response Formats

JSON

\\\\[ { "FacilityId": "37369c4f-0a46-4746-8998-ff77a5e401c1", "Name": "sample string 2", "ACSystemId": "e78caaa0-3e2c-4ae4-afa3-afd20b2a4716", "ACSystemName": "sample string 4", "Deleted": true, "TimeZoneInfoId": "sample string 6", "StreetAddress1": "sample string 7", "StreetAddress2": "sample string 8", "City": "sample string 9", "sRegionId": "72784b99-34d5-43b6-8888-4f007b351b38", "RegionName": "sample string 11", "sCountryId": "80e5685b-25a1-47cc-aa7c-d22770142861", "CountryName": "sample string 13", "PostalCode": "sample string 14", "Website": "sample string 15" }, { "FacilityId": "37369c4f-0a46-4746-8998-ff77a5e401c1", "Name": "sample string 2", "ACSystemId": "e78caaa0-3e2c-4ae4-afa3-afd20b2a4716", "ACSystemName": "sample string 4", "Deleted": true, "TimeZoneInfoId": "sample string 6", "StreetAddress1": "sample string 7", "StreetAddress2": "sample string 8", "City": "sample string 9", "sRegionId": "72784b99-34d5-43b6-8888-4f007b351b38", "RegionName": "sample string 11", "sCountryId": "80e5685b-25a1-47cc-aa7c-d22770142861", "CountryName": "sample string 13", "PostalCode": "sample string 14", "Website": "sample string 15" } ]

XML

<ArrayOfFacilityViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
<FacilityViewModel>
<ACSystemId>e78caaa0-3e2c-4ae4-afa3-afd20b2a4716</ACSystemId>
<ACSystemName>sample string 4</ACSystemName>
<City>sample string 9</City>
<CountryName>sample string 13</CountryName>
<Deleted>true</Deleted>
<FacilityId>37369c4f-0a46-4746-8998-ff77a5e401c1</FacilityId>
`<Name>`sample string 2</Name>
<PostalCode>sample string 14</PostalCode>
<RegionName>sample string 11</RegionName>
<StreetAddress1>sample string 7</StreetAddress1>
<StreetAddress2>sample string 8</StreetAddress2>
<TimeZoneInfoId>sample string 6</TimeZoneInfoId>
<Website>sample string 15</Website>
<sCountryId>80e5685b-25a1-47cc-aa7c-d22770142861</sCountryId>
<sRegionId>72784b99-34d5-43b6-8888-4f007b351b38</sRegionId>
</FacilityViewModel>
<FacilityViewModel>
<ACSystemId>e78caaa0-3e2c-4ae4-afa3-afd20b2a4716</ACSystemId>
<ACSystemName>sample string 4</ACSystemName>
<City>sample string 9</City>
<CountryName>sample string 13</CountryName>
<Deleted>true</Deleted>
<FacilityId>37369c4f-0a46-4746-8998-ff77a5e401c1</FacilityId>
`<Name>`sample string 2</Name>
<PostalCode>sample string 14</PostalCode>
<RegionName>sample string 11</RegionName>
<StreetAddress1>sample string 7</StreetAddress1>
<StreetAddress2>sample string 8</StreetAddress2>
<TimeZoneInfoId>sample string 6</TimeZoneInfoId>
<Website>sample string 15</Website>
<sCountryId>80e5685b-25a1-47cc-aa7c-d22770142861</sCountryId>
<sRegionId>72784b99-34d5-43b6-8888-4f007b351b38</sRegionId>
</FacilityViewModel>
</ArrayOfFacilityViewModel>