Examples
This topic contains a list of OCI PowerShell Cmdlet usage examples.
Examples of OCI PowerShell Cmdlet usage can be found on GitHub, including:
- Creating an instance using waiters
- Accessing OCI cmdlet history store
- Using OCI cmdlet common parameters
- Downloading an object from Object Storage
- Setting preferred region and profile per session
- List all available Compute Images
- Searching resources using polymorphic objects
If you'd like to see another example not already covered, file a GitHub issue.
Running Examples
- Clone the OCI PowerShell Modules project from
GitHub.
PS /> git clone https://github.com/oracle/oci-powershell-modules.git
- Navigate to the examples folder inside the cloned
repository.
PS /> cd ./oci-powershell-modules/Examples
- Install the required modules. Find additional details about setting up and running examples from the README page.
-
Run the example scripts after setting the required environment variables.
PS /oci-powershell-modules/Examples> ./Waiter_Core.ps1