Querying for platform types

To query Edgware for the list of platform types, a JSON message of the following form is sent to the local Edgware node:

Field Value Description
op query:platform-types Identifies a platform type query message.
correl <correlation-id> Client-defined correlation ID to identify the response.

The query:platform-types message may also include the following optional fields:

Field Value Description
type <platform-type> Query for a specific platform type.
attr <platform-type-attributes> Query for specific platform type attributes; will match any platform type containing these attributes exactly as specified.

If no optional fields are specified then the full list of available platform types will be returned. Each optional field can contain a wildcard character (“*”) matching any string. Wildcards can be used alone or with partial text. Omitting an optional field is be equivalent to giving it the value “*”.

Matching platform types are returned in a JSON message of the form:

Field Nested Field Value Description
op query-result:platform-types Identifies a platform type query result.
correl <correlation-id> Client-defined correlation ID to identify the response.
For each matching platform type the following information will be returned:
platform-types Identifies the list of platform types.
type <platform-type> The platform type ID.
desc <platform-description> The free text description of the platform type.
attr <platform-attributes> The set of attributes associated with the platform type.

Example

{
	"op" : "query:platform-types",
	"correl" : "<correlation-id>",
	"type" : "<platform-type>"
}

Will generate a response in the form:

{
	"op" : "query-result:platform-types",
	"correl" : "<correlation-id>",
	"platform-types" : [
		{
			"type" "<platform-type>",
			"desc" : "<platform-type-description>",
			"attr" : "<platform-type-attributes>"
		}
	]
}