GET, POST | /configuration/objects/{ObjectIds}/devices |
---|
export class DeviceInfoEntity
{
public id: number;
public description: string;
public name: string;
public loadOrder: number;
public nodeId: string;
public nodeName: string;
public protocolId: number;
public protocolName: string;
public connectionString: string;
public constructor(init?: Partial<DeviceInfoEntity>) { (Object as any).assign(this, init); }
}
export class DeviceInfoGetResponse
{
public devices: { [index: number]: DeviceInfoEntity; };
public constructor(init?: Partial<DeviceInfoGetResponse>) { (Object as any).assign(this, init); }
}
export class DeviceInfoGetRequest
{
public objectIds: string[];
public constructor(init?: Partial<DeviceInfoGetRequest>) { (Object as any).assign(this, init); }
}
TypeScript DeviceInfoGetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /configuration/objects/{ObjectIds}/devices HTTP/1.1
Host: monitoring.ox2.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
objectIds:
[
String
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { devices: { 0: { id: 0, description: String, name: String, loadOrder: 0, nodeName: String, protocolId: 0, protocolName: String, connectionString: String } } }