Example 1: Verifying rules when simulating a proposed ILM policy

This example shows how to verify rules when simulating a proposed policy.

About this task

In this example, the "xmen photo files" policy is being simulated against the ingested objects in a bucket called "photos." The policy includes three rules, as follows:

  • The first rule, X-men, applies only to objects in a specific tenant account and filters for series=x-men user metadata. This rule is also marked as the default rule for the policy.
  • The second rule, PNGs, filters for keys ending with .png.
  • The last rule, JPGs, filters for keys ending with .jpg.


Example 1: Verifying rules when simulating a proposed ILM policy

Steps

  1. After adding the rules and saving the policy, click Simulate.
    The Simulate ILM Policy dialog box appears.
  2. In the Object field, enter the S3 bucket/object-key or the Swift container/object-name for a test object, and click Simulate.
    The Simulation Results appear, showing which rule in the policy matched each object you tested.
    Example 1: Verifying rules when simulating a proposed ILM policy
  3. Confirm that each object was matched by the correct rule.
    In this example:
    1. The Fullsteam.png object did not match the X-men rule, but did match the PNGs rule.
    2. The Havok.png and the Warpath.jpg objects both matched the X-men rule, which was evaluated first.

      Note that even if these two files had not matched the X-men rule, they would have matched one of the subsequent rules: either PNGs or JPGs.