This project has moved. For the latest updates, please go here.

<ResourceOperation> element

The <ResourceOperation> element defines an update, add, or remove operation on a resource.

XML Attribute Name Description Allowed Values
operation Required. The type of operation to perform on the resource "Add", "Update", "Delete" or a combined "Add Update" which will create the resource if it doesn't exist, or update it if it does
resourceType Required. The object type of the resource to modify Any valid resource type defined in the FIM service schema
id Required. A unique ID to identify the ResourceOperation Any string value that is not in use by another ResourceOperation element
refresh-schema Optional. Instructs the module to refresh the schema before or after the operation. This should be used when adding object classes, attributes, or bindings "before-operation" or "after-operation"

Child elements

The <ResourceOperation> element has the following child elements

Example

The following example defines an Add operation on a set. If the set exists, the operation is skipped
<ResourceOperation operation="Add" resourceType="Set" id="testSet">
...
</ResourceOperation>
The following example defines an Add/Update operation on a set. If the set exists, the set is updated. If it does not exist, it is created
<ResourceOperation operation="Add Update" resourceType="Set" id="testSet">
...
</ResourceOperation>
The following example defines an Update operation on a set. If the set exists, the set is updated. If it does not exist, the operation is skipped
<ResourceOperation operation="Update" resourceType="Set" id="testSet">
...
</ResourceOperation>
The following example defines an Delete operation on a set. If the set exists, the set is deleted. If it does not exist, the operation is skipped
<ResourceOperation operation="Delete" resourceType="Set" id="testSet">
...
</ResourceOperation>

Last edited Sep 23, 2015 at 1:10 AM by ryannewington, version 2