Skip to main content
Version: 4.42

API reference — Policy group management

Overview

Policy groups are the resources that define the application context of a policy. Before creating a policy, you must create the application groups and site groups it will use.

  • Application groups define which desktop applications can use certificates under a policy.
  • Site groups define which websites can use certificates under a policy.

Once created, use the IDs of these groups as the applicationGroupIds and siteGroupIds parameters in AddPolicy and EditPolicy.

Before you start

Before testing these methods, you need to set up SoapUI.

important

The <!--Optional:--> comments that appear in SOAP requests are generated automatically and may incorrectly mark required fields as optional.

This documentation explicitly states which fields are required or optional. Always trust this documentation.

Application groups

ListApplicationGroups

Returns the list of application groups defined in the system.

NameTypeRequiredDescription
filterstringNoText that results must contain. If empty, returns all groups.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:ListApplicationGroups>
<urn:filter></urn:filter>
</urn:ListApplicationGroups>
</soap:Body>
</soap:Envelope>

GetApplicationGroup

Returns the full data for an application group.

NameTypeRequiredDescription
appGroupIdintegerYesApplication group ID. Find the value in ListApplicationGroups.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:GetApplicationGroup>
<urn:appGroupId>1</urn:appGroupId>
</urn:GetApplicationGroup>
</soap:Body>
</soap:Envelope>

AddApplicationGroup

Creates an application group in the system.

NameTypeRequiredDescription
namestringYesApplication group name.
applicationsarray of ApplicationYesList of applications in the group. Each item includes: expType (expression type: PROCESS for process name, REGEXP for standard regular expression, RTREGEXP for Redtrust regular expression, COMMAND_LINE for command line), id (unique positive integer not already assigned to another application) and name (process name or pattern).
mappedSitesarray of stringsNoList of websites associated with the application group.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws" xmlns:rtad="http://schemas.datacontract.org/2004/07/RTAdminService.Types">
<soap:Header/>
<soap:Body>
<urn:AddApplicationGroup>
<urn:name>Navegadores web</urn:name>
<urn:applications>
<rtad:Application>
<rtad:expType>PROCESS</rtad:expType>
<rtad:id>1</rtad:id>
<rtad:name>msedge.exe</rtad:name>
</rtad:Application>
<rtad:Application>
<rtad:expType>PROCESS</rtad:expType>
<rtad:id>2</rtad:id>
<rtad:name>chrome.exe</rtad:name>
</rtad:Application>
</urn:applications>
<urn:mappedSites/>
</urn:AddApplicationGroup>
</soap:Body>
</soap:Envelope>

UpdateApplicationGroup

Updates an existing application group. The list of applications fully replaces the current values; omitting an item removes it from the group.

NameTypeRequiredDescription
appGroupIdintegerYesID of the group to update. Find the value in ListApplicationGroups.
namestringYesNew application group name.
applicationsarray of ApplicationYesNew complete list of applications. Replaces the current list. Each item includes: expType (expression type: PROCESS, REGEXP, RTREGEXP, COMMAND_LINE), id (unique positive integer not already assigned to another application) and name (process name or pattern).
mappedSitesarray of stringsNoNew list of associated websites. Replaces the current list.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws" xmlns:rtad="http://schemas.datacontract.org/2004/07/RTAdminService.Types">
<soap:Header/>
<soap:Body>
<urn:UpdateApplicationGroup>
<urn:appGroupId>1</urn:appGroupId>
<urn:name>Navegadores web</urn:name>
<urn:applications>
<rtad:Application>
<rtad:expType>PROCESS</rtad:expType>
<rtad:id>1</rtad:id>
<rtad:name>msedge.exe</rtad:name>
</rtad:Application>
<rtad:Application>
<rtad:expType>PROCESS</rtad:expType>
<rtad:id>2</rtad:id>
<rtad:name>chrome.exe</rtad:name>
</rtad:Application>
<rtad:Application>
<rtad:expType>PROCESS</rtad:expType>
<rtad:id>3</rtad:id>
<rtad:name>firefox.exe</rtad:name>
</rtad:Application>
</urn:applications>
<urn:mappedSites/>
</urn:UpdateApplicationGroup>
</soap:Body>
</soap:Envelope>

DeleteApplicationGroups

Deletes one or more application groups.

NameTypeRequiredDescription
appGroupIdsarray of integersYesIDs of the groups to delete. Find the values in ListApplicationGroups.
forceDeletebooleanYesIf true, deletes the group even if it is in use by policies. If false, the operation fails if the group is in use.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soap:Header/>
<soap:Body>
<urn:DeleteApplicationGroups>
<urn:appGroupIds>
<arr:int>1</arr:int>
<arr:int>2</arr:int>
</urn:appGroupIds>
<urn:forceDelete>false</urn:forceDelete>
</urn:DeleteApplicationGroups>
</soap:Body>
</soap:Envelope>

TestValueInWheres

Checks whether a value matches one or more expressions. Useful to verify that a group's patterns work correctly before using them in a policy.

NameTypeRequiredDescription
valuestringYesValue to check (for example, a process name).
itemTestsarray of WhereItemTestYesList of expressions to check the value against. Each item must include: expType (required; expression type: PROCESS, REGEXP, RTREGEXP, COMMAND_LINE), value (required; pattern or name), and itemId (required; external identifier to correlate results). Do not include matchExpression in the request — the server returns an error if it is present. In the response, each item also includes internalId, postData, and matchExpression (true if the value matches the expression, false if not).
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws" xmlns:rtad="http://schemas.datacontract.org/2004/07/RTAdminService.Types">
<soap:Header/>
<soap:Body>
<urn:TestValueInWheres>
<urn:value>msedge.exe</urn:value>
<urn:itemTests>
<rtad:WhereItemTest>
<rtad:expType>PROCESS</rtad:expType>
<rtad:value>msedge.exe</rtad:value>
<rtad:itemId>test-1</rtad:itemId>
</rtad:WhereItemTest>
<rtad:WhereItemTest>
<rtad:expType>PROCESS</rtad:expType>
<rtad:value>chrome.exe</rtad:value>
<rtad:itemId>test-2</rtad:itemId>
</rtad:WhereItemTest>
</urn:itemTests>
</urn:TestValueInWheres>
</soap:Body>
</soap:Envelope>

DownloadApplicationsCSV

Downloads a CSV file with the list of application groups in the system. Parameters go in the SOAP header, not the body.

NameTypeRequiredDescription
basicFilter (header)stringNoText that results must contain. If empty, includes all groups.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header>
<urn:basicFilter></urn:basicFilter>
</soap:Header>
<soap:Body>
<urn:DownloadApplicationsCSV/>
</soap:Body>
</soap:Envelope>

Site groups

ListSiteGroups

Returns the list of site groups defined in the system.

NameTypeRequiredDescription
qstringNoText that results must contain. If empty, returns all groups.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:ListSiteGroups>
<urn:q></urn:q>
</urn:ListSiteGroups>
</soap:Body>
</soap:Envelope>

GetSitesGroup

Returns the full data for a site group.

NameTypeRequiredDescription
sitesGroupIdintegerYesSite group ID. Find the value in ListSiteGroups.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header/>
<soap:Body>
<urn:GetSitesGroup>
<urn:sitesGroupId>3</urn:sitesGroupId>
</urn:GetSitesGroup>
</soap:Body>
</soap:Envelope>

AddSitesGroup

Creates a site group in the system.

NameTypeRequiredDescription
namestringYesSite group name.
sitesarray of SiteYesList of sites in the group. Each item includes: expType (expression type: REGEXP for standard regular expression, RTREGEXP for Redtrust regular expression), id (unique positive integer not already assigned to another site), name (URL or site pattern) and postdata (optional POST data to distinguish sites with the same URL; use an empty element if not applicable).
mappedSitesarray of stringsNoList of additional websites associated with the group.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws" xmlns:rtad="http://schemas.datacontract.org/2004/07/RTAdminService.Types">
<soap:Header/>
<soap:Body>
<urn:AddSitesGroup>
<urn:name>Portal corporativo</urn:name>
<urn:sites>
<rtad:Site>
<rtad:expType>REGEXP</rtad:expType>
<rtad:id>1</rtad:id>
<rtad:name>portal.example.com</rtad:name>
<rtad:postdata/>
</rtad:Site>
</urn:sites>
<urn:mappedSites/>
</urn:AddSitesGroup>
</soap:Body>
</soap:Envelope>

UpdateSitesGroup

Updates an existing site group. The list of sites fully replaces the current values; omitting an item removes it from the group.

NameTypeRequiredDescription
sitesGroupIdintegerYesID of the group to update. Find the value in ListSiteGroups.
namestringYesNew site group name.
sitesarray of SiteYesNew complete list of sites. Replaces the current list. Each item includes: expType (expression type: REGEXP, RTREGEXP), id (unique positive integer not already assigned to another site), name (URL or site pattern) and postdata (optional POST data; use an empty element if not applicable).
mappedSitesarray of stringsNoNew list of additional websites. Replaces the current list.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws" xmlns:rtad="http://schemas.datacontract.org/2004/07/RTAdminService.Types">
<soap:Header/>
<soap:Body>
<urn:UpdateSitesGroup>
<urn:sitesGroupId>2</urn:sitesGroupId>
<urn:name>Portal corporativo</urn:name>
<urn:sites>
<rtad:Site>
<rtad:expType>REGEXP</rtad:expType>
<rtad:id>1</rtad:id>
<rtad:name>portal.example.com</rtad:name>
<rtad:postdata/>
</rtad:Site>
</urn:sites>
<urn:mappedSites/>
</urn:UpdateSitesGroup>
</soap:Body>
</soap:Envelope>

DeleteSitesGroups

Deletes one or more site groups.

NameTypeRequiredDescription
siteGroupIdsarray of integersYesIDs of the groups to delete. Find the values in ListSiteGroups.
forceDeletebooleanYesIf true, deletes the group even if it is in use by policies. If false, the operation fails if the group is in use.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<soap:Header/>
<soap:Body>
<urn:DeleteSitesGroups>
<urn:siteGroupIds>
<arr:int>2</arr:int>
</urn:siteGroupIds>
<urn:forceDelete>false</urn:forceDelete>
</urn:DeleteSitesGroups>
</soap:Body>
</soap:Envelope>

DownloadSitesCSV

Downloads a CSV file with the list of site groups in the system. Parameters go in the SOAP header, not the body.

NameTypeRequiredDescription
basicFilter (header)stringNoText that results must contain. If empty, includes all groups.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:urn="urn:evolium:redtrust:administration:ws">
<soap:Header>
<urn:basicFilter></urn:basicFilter>
</soap:Header>
<soap:Body>
<urn:DownloadSitesCSV/>
</soap:Body>
</soap:Envelope>

Was this page helpful?