Filtering by EquipmentID
- Last UpdatedOct 05, 2022
- 1 minute read
You can filter the GetEquipment list by Equipment ID. Each piece of equipment is uniquely identified by its ID, which is currently the Equipment full name. The scheme name is currently the full name, and you can choose to perform an Exact or Regular Expression match.
Request | Exact expression (Equipment ID)
This is an example of the GetEquipmentRequestMessage, with the use of filtering by EquipmentID with an Exact expression.
<GetEquipmentRequestMessage
xmlns="http://www.citect.com/Ampla/B2MML/2008/07">
<Request>
<Credentials>
<Username>User</Username>
<Password>********</Password>
</Credentials>
<Id schemeName="Fullname" match="Exact">Company Name.Site</Id>
<EquipmentElementLevel>NotSpecified</EquipmentElementLevel>
</Request>
</GetEquipmentRequestMessage>
Response | Exact expression (Equipment ID)
This is an example of the GetEquipmentResponseMessage, with the use of filtering by EquipmentID with an Exact expression.
<GetEquipmentResponseMessage
xmlns="http://www.citect.com/Ampla/B2MML/2008/07"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ShowEquipment releaseID="" xmlns="http://www.wbf.org/xml/b2mmlv0400">
<ApplicationArea>
<CreationDateTime>20180904T06:32:02.4471405Z</CreationDateTime>
</ApplicationArea>
<DataArea>
<Show />
<Equipment>
<ID xsi:type="EquipmentIDType" schemeName="Fullname">Company Name.Site</ID>
<EquipmentProperty>
<ID xsi:type="PropertyIDType">Name</ID>
<Value>
<ValueString>Site</ValueString>
<DataType>String</DataType>
<UnitOfMeasure />
</Value>
</EquipmentProperty>
<Location>
<EquipmentID />
<EquipmentElementLevel>Site</EquipmentElementLevel>
</Location>
</Equipment>
</DataArea>
</ShowEquipment>
</GetEquipmentResponseMessage>
Request | Regular expression (Equipment ID)
This is an example of the GetEquipmentRequestMessage, with the use of filtering by EquipmentID with a Regular expression.
<GetEquipmentRequestMessage
xmlns="http://www.citect.com/Ampla/B2MML/2008/07">
<Request>
<Credentials>
<Username>User</Username>
<Password>********</Password>
</Credentials>
<Id schemeName="Fullname" match="RegEx">Company</Id>
<EquipmentElementLevel>NotSpecified</EquipmentElementLevel>
</Request>
</GetEquipmentRequestMessage>
Response | Regular expression (Equipment ID)
This is an example of a portion of the GetEquipmentResponseMessage, when filtered by EquipmentID with a Regular expression.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetEquipmentResponseMessage
xmlns="http://www.citect.com/Ampla/B2MML/2008/07">
<ShowEquipment releaseID=""
xmlns="http://www.wbf.org/xml/b2mmlv0400">
<ApplicationArea>
<CreationDateTime>20180907T05:59:58.0502328Z</CreationDateTime>
</ApplicationArea>
<DataArea>
<Show />
<Equipment>
<ID xsi:type="EquipmentIDType" schemeName="Fullname">Company Name</ID>
<EquipmentProperty>
<ID xsi:type="PropertyIDType">Name</ID>
<Value>
<ValueString>Company Name</ValueString>
<DataType>String</DataType>
<UnitOfMeasure />
</Value>
</EquipmentProperty>
<Location>
<EquipmentID />
<EquipmentElementLevel>Enterprise</EquipmentElementLevel>
</Location>
</Equipment>