| Field | Description |
|---|---|
| id | Your name for the resource |
| class | The standard the script conforms to. Allowed values: heartbeat, lsb, ocf, stonith |
| type | The name of the Resource Agent you wish to use. eg. IPaddr or Filesystem |
| provider | The OCF spec allows multiple vendors to supply the same ResourceAgent. To use the OCF resource agents supplied with Heartbeat, you should specify heartbeat here. |
crm_resource --resource Email --query-xml<primitive id="Email" class="lsb" type="exim"/>
<primitive id="Public-IP" class="ocf" type="IPaddr" provider="heartbeat">
<instance_attributes id="params-public-ip">
<nvpair id="public-ip-addr" name="ip" value="1.2.3.4"/>
</instance_attributes>
</primitive>
<primitive id="Public-IP-legacy" class="heartbeat" type="IPaddr">
<instance_attributes id="params-public-ip-legacy">
<nvpair id="public-ip-addr-legacy" name="1" value="1.2.3.4"/>
</instance_attributes>
</primitive>