Example Policies
These use cases provide examples of specific policies for individual Oracle Cloud Infrastructure services.
Compute
- Instance - Power off A Running Instance
- Instance - Power on a stopped Instance
- Instance - Querying the instances from the lists of compartment
- Instance - Restart a Compute Instance
- Instance - Query and remove the specified tag from all the instances
- Instance - Resize the instances based on the shape and CPU utilization
- Instance - Start all the stopped instances with a specific tag
- Instance - Query and tag all the instances in the compartment
Identity
- Compartment - Tag all the child compartments
- Group - Tag all the groups
- User - Filter all the users with key api key age greater than one year
- User - Filter all the users with API Keys
- User - Filter all the users who have auth tokens
- User - Filter all the users with Customer Secret Keys
- User - Filter all the users whose DB credentials age greater than 3 months
- User - Filter all the users who have DB credentials
- User - Filter all the users with expired Customer Secret Keys
- User - Filter all the users with INACTIVE API Keys
- User - Filter all the users who have OAuth credentials
- User - Filter all the users whose MFA is not enabled
- User - Filter all the users who have SMTP credentials
- User - Filter all the users who have inactive SMTP credentials
- User - Filter all the users with stale auth tokens
- User - Filter all the users with stale OAuth credentials
- User - Tag all the users
Network
- Fast Connect - Filter all the fast connect based on a tag
- Fast connect - Tag all the fast connect in the tenancy
- Subnet - Filter all the subnet based on a tag
- Subnet - Filter all the subnets from the specified compartments
- Subnet - Tag all the subnets in the tenancy
- VCN - Filter all the VCN based on the tags
- VCN - Tag all the VCN in the tenancy
- Zone - Filter all the zones based on a tag
- Zone - Tag all the zones in the tenancy