ConneX_Help.pdf - 第57页

syste m Type: Handler Loo k up a si ng ul ar PS V system by i ts data ba se I D. Ar gu me n ts Name D escription databaseI d ( Int! )T he da tab ase i de nti f i e r of t he hand l e r. Exa mple R e q ue st R e spo nse s…

100%1 / 86
programmerTypes
Type:
[ProgrammerType!]
Look up all the known programmer system types that can be connected to this instance of ConneX.
Example
Request Response
{
"data": {
"programmers": [
{
"programmerId": 2,
"ipAddress": "192.168.1.1",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 3,
"ipAddress": "192.168.1.2",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 4,
"ipAddress": "192.168.1.3",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 5,
"ipAddress": "192.168.1.4",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 6,
"ipAddress": "192.168.1.5",
"programmerType": "FLASH_CORE"
},
{
"programmerId": 7,
"ipAddress": "10.0.0.0",
"programmerType": "LUMEN_X"
}
]
}
}
JSON
query {
programmerTypes
}
GraphQL
system
Type:
Handler
Look up a singular PSV system by its database ID.
Arguments
Name Description
databaseId
(
Int!
)The database identifier of the handler.
Example
Request Response
systems
Type:
[Handler]
Look up all the known PSV systems connected to this instance of ConneX.
Example
Request Response
{
"data": {
"programmerTypes": [
"FLASH_CORE",
"LUMEN_X"
]
}
}
JSON
query {
system (databaseId: 1) {
handlerId
}
}
GraphQL
{
"data": {
"system": {
"handlerId": 1,
"handlerType": "PSV2800",
"ipAddress": "172.16.0.1",
"hostName": "PSV-1",
"machineFactory": null
}
}
}
JSON
systemTypes
query {
systems {
handlerId
handlerType
ipAddress
hostName
machineFactory
}
}
GraphQL
{
"data": {
"systems": [
{
"handlerId": 1,
"handlerType": "PSV2800",
"ipAddress": "172.16.0.1",
"hostName": "PSV-1",
"machineFactory": null
},
{
"handlerId": 2,
"handlerType": "PSV3000",
"ipAddress": "172.16.0.2",
"hostName": "PSV-2",
"machineFactory": null
},
{
"handlerId": 3,
"handlerType": "PSV5000",
"ipAddress": "172.16.0.3",
"hostName": "PSV-3",
"machineFactory": null
},
{
"handlerId": 4,
"handlerType": "PSV5000",
"ipAddress": "172.16.0.11",
"hostName": "PSV-6",
"machineFactory": null
},
{
"handlerId": 5,
"handlerType": "PSV7000",
"ipAddress": "172.16.0.9",
"hostName": "PSV-4",
"machineFactory": null
},
{
"handlerId": 6,
"handlerType": "PSV7000",
"ipAddress": "172.16.0.10",
"hostName": "PSV-5",
"machineFactory": null
}
]
}
}
JSON