Creating a policy

To create a policy:
  1. In the Console navigation menu, under Identity & Security, go to Identity, and then click Policies.
  2. Click Create Policy.
  3. Enter a name and description for the policy.
  4. Select the compartment. If you want to attach the policy to a compartment other than the one you're viewing, select it from list.
  5. Select Database Migration Service in the Policy use cases option in the policy builder.
  6. Select the template that best matches your requirements from the Common policy templates list. The policy builder displays the description of the chosen policy and lists the policy statements that it includes. The following policies are available for the Database Migration Service:
    • Let users manage required database migration resources along with all other required resources/networking- This is recommended for Database Migration Service and other required OCI resources.
    • Let users manage database migration resources with networking
    • Let users manage database migration resources without networking
    • Let users use database migration service resources
    • Let users manage database migration resources with networking if the manage virtual-network-family policy is restricted.
  7. Select the group and the location.
  8. Select Show manual editor if you already know how to write the statements you need and you want to enter them in a text box.
  9. To add tags to this policy, click Show advanced options.
  10. If you want to create another policy, select Create another policy.
  11. Click Create.

For more information about policies, see Creating a Policy, how policies work, policy syntax, and policy reference.