Files
peeringdb/ts/interfaces/peeringdb.api.facility.ts

89 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2025-11-18 20:47:48 +00:00
import type { IPeeringDbBaseObject } from '../peeringdb.types.js';
/**
* Facility object from PeeringDB API
* Represents a colocation facility or data center
*/
export interface IFacility extends IPeeringDbBaseObject {
/** Facility ID */
id: number;
/** Organization ID */
org_id: number;
/** Organization object (when depth > 0) */
org?: any;
/** Facility name */
name: string;
/** Also known as (alternate names) */
aka: string;
/** Website */
website: string;
/** CLLI code */
clli: string;
/** Renater code */
renater: string;
/** NPL code */
npanxx: string;
/** Notes (markdown) */
notes: string;
/** Address line 1 */
address1: string;
/** Address line 2 */
address2: string;
/** City */
city: string;
/** State/Province */
state: string;
/** Zip/Postal code */
zipcode: string;
/** Country code (ISO 3166-1 alpha-2) */
country: string;
/** Latitude */
latitude: number | null;
/** Longitude */
longitude: number | null;
/** Floor area (sqm) */
floor_area: number | null;
/** Available voltage services */
available_voltage_services: string;
/** Power redundancy */
power_redundancy: string;
/** Diverse serving substations */
diverse_serving_substations: boolean;
/** Property */
property: string;
/** Campus ID */
campus_id: number | null;
/** Campus object (when depth > 0) */
campus?: any;
/** Related network-facility connections */
netfac_set?: number[] | any[];
/** Related IX-facility connections */
ixfac_set?: number[] | any[];
}