Pure Storage FlashArray Discovery

PureStorageFlashArray.UITemplate.Template (Template)

This template allows you to configure FlashArray endpoint.

Source Code:

<Template ID="PureStorageFlashArray.UITemplate.Template">
<!-- These are the values that get collected from the user when they run the template wizard -->
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Name" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Description" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Endpoint" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Id" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Pool" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="PoolClass" type="xsd:string"/>
</Configuration>
<!-- If you use an MP reference in the implementation section, you must declare it here -->
<References>
<Reference ID="Self"/>
<Reference ID="System"/>
<Reference ID="Windows"/>
<Reference ID="SC"/>
</References>
<!--
The implementation is the output of the template. OpsMgr replaces all the $TemplateConfig/Variable$ declarations
with the values collected from the user, saves it to a management pack, and imports it.
-->
<Implementation>
<Monitoring>
<Discoveries>
<Discovery ID="PureStorage.FlashArray.$TemplateConfig/Id$.ResourcePoolShouldManageEntity.Discovery" Enabled="true" Target="$Reference/SC$Microsoft.SystemCenter.AllManagementServersPool" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryRelationship TypeID="$Reference/SC$Microsoft.SystemCenter.ManagementActionPointShouldManageEntity"/>
</DiscoveryTypes>
<DataSource ID="GroupPopulationDataSource" TypeID="$Reference/SC$Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$TemplateConfig/Pool$</GroupInstanceId>
<GroupMonitoringClass>$TemplateConfig/PoolClass$</GroupMonitoringClass>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="$Reference/Self$PureStorage.FlashArray.PureArraySeed"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="$Reference/SC$Microsoft.SystemCenter.ManagementActionPointShouldManageEntity"]$</RelationshipClass>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property>$MPElement[Name="$Reference/Self$PureStorage.FlashArray.PureArraySeed"]/TemplateId$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$TemplateConfig/Id$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</MembershipRule>
<MembershipRule>
<MonitoringClass>$MPElement[Name="$Reference/Self$PureStorage.FlashArray.PureArray"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="$Reference/SC$Microsoft.SystemCenter.ManagementActionPointShouldManageEntity"]$</RelationshipClass>
<Expression>
<Contained maxDepth="1">
<MonitoringClass>$MPElement[Name="$Reference/Self$PureStorage.FlashArray.PureArraySeed"]$</MonitoringClass>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property>$MPElement[Name="$Reference/Self$PureStorage.FlashArray.PureArraySeed"]/TemplateId$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$TemplateConfig/Id$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Contained>
</Expression>
</MembershipRule>
</MembershipRules>
</DataSource>
</Discovery>
<Discovery ID="PureStorage.FlashArray.$TemplateConfig/Id$.PureArraySeed.Discovery" Enabled="true" Target="$Reference/SC$Microsoft.SystemCenter.AllManagementServersPool" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="$Reference/Self$PureStorage.FlashArray.PureArraySeed">
<Property PropertyID="TemplateId"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="$Reference/Self$PureStorage.FlashArray.PureArraySeed.DataSource">
<IntervalSeconds>3600</IntervalSeconds>
<SyncTime/>
<Name>$TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
<Endpoint>$TemplateConfig/Endpoint$</Endpoint>
<Id>$TemplateConfig/Id$</Id>
<Pool>$TemplateConfig/Pool$</Pool>
<PoolClass>$TemplateConfig/PoolClass$</PoolClass>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
</Implementation>
</Template>