Skip to content

Commit 89376a4

Browse files
authored
Releasing version 3.25.2
Releasing version 3.25.2
2 parents e8c5e4d + 288c57f commit 89376a4

File tree

13 files changed

+9292
-1127
lines changed

13 files changed

+9292
-1127
lines changed

CHANGELOG.rst

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,80 @@ All notable changes to this project will be documented in this file.
66

77
The format is based on `Keep a Changelog <http://keepachangelog.com/>`__.
88

9+
3.25.2 - 2023-04-11
10+
--------------------
11+
12+
Added
13+
~~~~~
14+
15+
* Support for rotation of certificate of ORDS service on Autonomous VM Clusters on Exadata Cloud in the Database service.
16+
17+
* ``oci db autonomous-vm-cluster rotate-autonomous-vm-cluster-ords-certs``
18+
* ``oci db autonomous-vm-cluster rotate-autonomous-vm-cluster-ssl-certs``
19+
20+
* Support for Application Virtual IP (VIP) features in the Database Service
21+
22+
* ``oci db application-vip create``
23+
* ``oci db application-vip delete``
24+
* ``oci db application-vip get``
25+
* ``oci db application-vip list``
26+
27+
* Support for ADDM Spotlight for databases enabled in the Operations Insights service
28+
29+
* ``oci opsi database-insights ingest-addm-reports``
30+
* ``oci opsi database-insights list-addm-db-finding-categories``
31+
* ``oci opsi database-insights list-addm-db-findings-time-series``
32+
* ``oci opsi database-insights list-addm-db-parameter-categories``
33+
* ``oci opsi database-insights list-addm-db-recommendation-categories``
34+
* ``oci opsi database-insights list-addm-db-recommendations-time-series``
35+
* ``oci opsi database-insights list-addm-dbs``
36+
* ``oci opsi database-insights summarize-addm-db-findings``
37+
* ``oci opsi database-insights summarize-addm-db-parameter-changes``
38+
* ``oci opsi database-insights summarize-addm-db-parameters``
39+
* ``oci opsi database-insights summarize-addm-db-recommendations``
40+
* ``oci opsi database-insights summarize-addm-db-schema-objects``
41+
* ``oci opsi database-insights summarize-addm-db-sql-statements``
42+
43+
* Data Safe service
44+
45+
* Support for new command to list aggregated audit policy details on target databases
46+
47+
* ``oci data-safe audit-policy-analytics list``
48+
49+
* Support for new commands for data masking
50+
51+
* ``oci data-safe difference-column get``
52+
* ``oci data-safe masking-object list``
53+
* ``oci data-safe masking-policy apply-sdm-masking-policy-difference``
54+
* ``oci data-safe masking-schema list``
55+
* ``oci data-safe sdm-masking-policy-difference``
56+
57+
* Support for new commands for data discovery
58+
59+
* ``oci data-safe sensitive-object list``
60+
* ``oci data-safe sensitive-schema list``
61+
62+
* Support for new commands to list user profiles and analytics
63+
64+
* ``oci data-safe user-assessment get-profile``
65+
* ``oci data-safe profile list-profile-analytics``
66+
* ``oci data-safe user-assessment list-profile-summaries``
67+
68+
* Support for new optional parameters
69+
70+
* ``oci data-safe masking-policy mask-data --is-drop-temp-tables-enabled --is-redo-logging-enabled --is-refresh-stats-enabled --parallel-degree --recompile``
71+
* ``oci data-safe security-assessment list-findings --references``
72+
* ``oci data-safe sensitive-column list --is-case-in-sensitive``
73+
74+
75+
Changed
76+
~~~~~~~
77+
* Required parameter --display-name is now optional for below commands in the Data Safe service
78+
79+
* ``oci data-safe private-endpoint update --display-name``
80+
* ``oci data-safe user-assessment list-users --user-profile --user-role --user-type``
81+
82+
983
3.25.1 - 2023-04-04
1084
--------------------
1185

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Jinja2==3.0.3
1414
jmespath==0.10.0
1515
ndg-httpsclient==0.4.2
1616
mock==2.0.0
17-
oci==2.97.0
17+
oci==2.98.0
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0

scripts/examples/project_o/README.md

Lines changed: 57 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,56 @@
11
# o - a smart oci-cli wrapper
2-
**`O`** accelerates your use the Oracle Cloud Infrastructure's `oci` command line interface. With **`o`** you can
3-
- quickly find the right command
4-
- get concise usage help
5-
- build the `oci` command using *resource names*, not OCIDs
6-
- get easy-to-read output in multiple formats
7-
- use shortcuts for *all* commands, parameters, resource names - no need to predefine aliases!
2+
**`o`** helps you use the Oracle Cloud Infrastructure's `oci` command line interface. With **`o`** you can
3+
- quickly find a command and get usage info
4+
- simply run commands using *resource names*, not OCIDs
5+
- easily get the output you want
86

9-
With **`o`** you can run most ``oci`` commands with no scripting. You no longer have to save OCIDs to variables in order to build a command.
7+
**`o`** uses shortcuts for *everything*. All commands, parameters, and resource names have intuitive, *automatic* shortcuts.
8+
You can run most commands with no scripting. Say goodbye to saving OCIDs to variables.
109

11-
Through clever substitution, **``o``** instantly transforms this
10+
**``O``** instantly transforms this:
1211
```
1312
$ o list subn -c sales -v west -a
1413
```
15-
into this ready-to-run ``oci`` command
14+
into this ready-to-run ``oci`` command:
1615
```
1716
$ oci network subnet list \
1817
--compartment-id ocid1.compartment.oc1..aaaaaaaaid7ybnzph4hmx46tohdg6cnclyc343hkevcosxwcsmycxamcujfa \
1918
--vcn-id ocid1.vcn.oc1.iad.aaaaaaaaxlfwxbld5nvhzgkot7p5dj52qv52lesn3kevcocemubg5uy6pj5q
2019
--all
2120
```
22-
**``o``** works similar magic on output. Where ``oci``'s JSON output often spews hundreds of lines like this
21+
**``o``** works similar magic with output. Where ``oci``'s JSON output is suitable for computers, **`o`** output is designed for humans:
2322
```
24-
{
25-
"data": [
26-
{
27-
"availability-domain": "VLKn:US-ASHBURN-AD-3",
28-
"cidr-block": "10.0.2.0/24",
29-
"compartment-id": "ocid1.compartment.oc1..aaaaaaaaid7ybnzph4hmx46tohdg6cnclyc343kevcossxwcsmycxamcujfa",
30-
"defined-tags": {},
31-
"dhcp-options-id": "ocid1.dhcpoptions.oc1.iad.aaaaaaaar7wdbqmpxs4d7aj3lih7bs2a5bwkevco7ngxbmr7thwzcntpw6ta",
32-
"display-name": "Public Subnet VLKn:US-ASHBURN-AD-3",
33-
"dns-label": "sub01281626512",
34-
"freeform-tags": {},
35-
"id": "ocid1.subnet.oc1.iad.aaaaaaaadomh23d27sli42hhrb2jo3hzock2l5u4kevconnlpdt5h2ocwn7a",
36-
"lifecycle-state": "AVAILABLE",
37-
...
23+
$ o -o name#shape#shape-conf.ocpus#state list comp inst -c kevco.
24+
25+
display-name shape ocpus lifecycle-state
26+
atos VM.Standard.E4.Flex 1.0 STOPPED
27+
cron VM.Standard.A1.Flex 1.0 RUNNING
28+
zara VM.Standard2.4 4.0 RUNNING
29+
humans VM.Standard2.1 1.0 STOPPED
30+
robotics VM.Standard.E2.1 1.0 RUNNING
3831
```
39-
with **``o``** you get this
40-
```
41-
$ o -o display#life#cidr-block#compartment list subn -c sales -v west go
42-
43-
display-name lifecycle cidr-block compartment-id
44-
Public Subnet VLKn:US-ASHBURN-AD-3 AVAILABLE 10.0.2.0/24 sales
45-
Public Subnet VLKn:US-ASHBURN-AD-2 AVAILABLE 10.0.1.0/24 sales
46-
Public Subnet VLKn:US-ASHBURN-AD-1 AVAILABLE 10.0.0.0/24 sales
47-
```
48-
**``o``** default output is a table of commonly useful fields, but **``o``** makes it easy to pick just what you want (as seen in the above example).
32+
**``o``** picks just what you want from the output.
4933

34+
<a name="install"></a>
5035
## Installation
5136

52-
**Pre-reqs:** **``o``** works in Linux, Mac, WSL and CloudShell. `oci` must installed and configured. `o` does not replace `oci`, but it *uses* `oci`. See [Requirements](#requirements) below for more details.
37+
**Important:** `oci` must *installed* and *configured*. `o` does not replace `oci`, but helps you *use* `oci`.
5338

54-
**``o``** is a single file. To install, get **``o``** from github, place it in your PATH (probably in the same place as ``oci``), and make it executable. Use these commands to download ``o`` and install it next to ``oci``.
55-
<a name="install"></a>
39+
To install, get **``o``** from github, place it in your PATH (perhaps in the same place as ``oci``), and make it executable. Use these commands to download ``o`` and install it next to ``oci``.
5640
```
5741
o_src=https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/examples/project_o/o
58-
where=$(which oci) && to=${where%ci} && wget -q $o_src -O $to && chmod a+x $to
42+
where=$(which oci) && to=${where%ci} && curl -so $to $o_src && chmod +x $to
43+
```
44+
**`O`** version 1.6 runs in **Windows** PowerShell or Command shell, but installation not automated. Get **`o`**
5945
```
46+
curl -o o.py https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/examples/project_o/o
47+
```
48+
6049
#### Setup
6150

62-
When you first run `o` it will tell you run `o oci_commands` to create the commands file *$HOME/.oci/oci_commands*. This collects a list of all possible `oci` commands with usage details.
51+
When you first run `o` it will tell you run `o oci_commands` to create the commands file *$HOME/.oci/oci_commands*. This collects a list of all possible `oci` commands with usage details. This should take about two minutes. If it doesn't work (in Windows) or runs slowly (python 3.6), copy `oci_commands` from another source to *$HOME/.oci/oci_commands*.
6352

64-
Then `o` asks you to run `o <tenancy_ocid>` to initialize your *$HOME/.oci/ocids*. This seeds your *ocids* file with OCIDs of the compartments in your tenancy.
53+
Then `o` asks you to run `o <tenancy_ocid>` to initialize your *$HOME/.oci/ocids*. This seeds your *ocids* file with OCIDs of the compartments in your tenancy. If this doesn't work it probably means that your `oci` is not configured properly.
6554

6655
#### Updates and maintenance
6756

@@ -71,7 +60,9 @@ To install an `o` update, just re-run the two-line [installation command](#insta
7160

7261
Update `oci` every few months (or more frequently to keep up with the latest service additions). See [Upgrading the CLI](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliupgrading.htm).
7362

74-
Run `o oci_commands` every couple of months to update *$HOME/.oci/oci_commands* with commands for the latest services added to OCI.
63+
After you update `oci`, also update *$HOME/.oci/oci_commands* with the latest commands and services:
64+
- `rm $HOME/.oci/oci_commands`
65+
- `o oci_commands`
7566

7667
Keep using your existing *$HOME/.oci/ocids* file. If, however, it becomes unusable (with old data) or you want a fresh start, simply remove it and create a new one:
7768
- `rm $HOME/.oci/ocids`
@@ -142,8 +133,7 @@ This will get a fresh list of all compartments in the tenancy, which is a great
142133
- Example: For table output with right-most 8 characters of `id`, 10 (or more) characters of `display-name`, and first 10 characters (no more than 10) of `time-created`
143134
- `o -o id:-.8#name:10#create:.10 comp inst list`
144135

145-
<a name="newinversion"></a>
146-
#### New in version 1.5 (2023-02-28)
136+
#### New in version 1.5 (2023-02-27)
147137
- If you like the default output but want to add another field use `-o +field`:
148138
- Example: `o -o +subnet list-vnics -c sales`
149139
- If you like the default output fields, but want to change the format style, just add the separator:
@@ -152,6 +142,25 @@ This will get a fresh list of all compartments in the tenancy, which is a great
152142
- change to "text" and add fields: `-o +/subnet list-vnics ...`
153143
- Show additional output fields (not in "data") to stderr, such as "etag" or os "prefixes". Use `o -q` to hide this non-data.
154144

145+
<a name="newinversion"></a>
146+
#### New in version 1.6 (2023-04-03)
147+
- **o** runs on *Windows* PowerShell and Command shell. Not fully tested, but the basics appear to work.
148+
- Download `o` and put it in your PATH:
149+
```
150+
curl -o o.py https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/examples/project_o/o
151+
```
152+
PATHEXT should contain `.PY` to allow execution of `o.py`
153+
- oci_commands generation doesn’t work, so pull the file from another system and copy it to your `.oci\oci_commands`
154+
- Output from the last command is saved to `.oci/.otmp` if `.oci/.otmp` exists
155+
- re-format the output by running `o -o <format>` with no oci command or parameters
156+
- `o -o/` is useful for seeing what fields are available in the data
157+
- `o -oj` shows JSON output
158+
- `o -o name#id:.10#...` - customize the format without needing to rerun the `oci` command
159+
- to activate this feature, simply touch `$HOME/.oci/.otmp`
160+
- Added “reg" column to identify region key in default table output
161+
- This is not shown nor available in csv or text formats.
162+
- Region isn't in the resource data for most data types. **o** is extracting it from the ocid
163+
155164
## How **``o``** works
156165
- **``o``** compares your input with thousands of ``oci`` commands, and uses an fuzzy matching to find the command you want.
157166

@@ -161,25 +170,24 @@ This will get a fresh list of all compartments in the tenancy, which is a great
161170

162171
- Options for **`o`** such as `-o field#list` must appear *before* the `<command>` specification. `oci` options must appear *after* `<command>`. While this ordering is not strictly required by `oci`, `o` uses this to determine which options are for `o` and which are for `oci`.
163172

164-
- Add `go` or `.` to the end of the command and **``o``** will execute the ``oci`` command.
173+
- Add `go` or `.` to the end of the command and **``o``** will execute the ``oci`` command. Add `!` to force run (sometimes needed when `o` doesn't know the command is complete).
165174

166175
- ``oci`` returns JSON data when you create, get, list, or update resources. **``o``** captures resource names and Oracle Cloud IDs (OCIDs) and saves these to your *$HOME/.oci/ocids* file. **``o``** later uses this information to find resources by name, and to translate names to IDs.
167176

168-
- **``o``** scans the JSON results from ``oci`` for key names that match or partially match any of your <nobr>``-o key/word/list``</nobr>. The key words determine *what* presented, while the **``/``** separator character determines *how* they are presented.
177+
- **``o``** scans the JSON data from ``oci`` for key names that match or partially match any of your <nobr>``-o key/word/list``</nobr>. The key words determine *what* presented, while the **``/``** separator character determines *how* they are presented.
169178

170179
## <a name="requirements"></a> Requirements
171180

172181
You will need:
173182

174-
- MacOS, Linux or WSL.
175-
- Python 3.6+. If ``oci`` is installed, you have Python. (`oci` works better with python 3.7+)
176183
- ``oci`` - The Oracle Cloud Infrastructure command line interface must be *installed and configured*.
177-
- Try running ``oci os ns get`` to verify that it's working.
184+
- Try running ``oci os ns get`` to verify that it's authenticating okay.
178185
- See https://docs.cloud.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm
179186
- You need sufficient permissions in your tenancy
180187
- **Authorization failed or requested resource not found** often means you connected to the cloud okay, but policies don't allow you to do what you tried to do.
181188
- Minimally you need permission to **inspect** resources in order for most commands to work.
182189
- ``oci`` must be in your PATH so that ``o`` can find it
190+
- Python 3.6+. If ``oci`` is installed, you have Python. (`oci` and `o` work better with python 3.7+)
183191

184192
**OCIDs File**
185193

@@ -214,7 +222,7 @@ If you use ``oci`` for multiple tenancies, by default ``o`` will save OCIDs for
214222

215223
**``o``** works on MacOS and Linux (including Windows WSL) and Oracle CloudShell.
216224

217-
**``o``** should be relatively easy to port to Windows, but isn't there yet. Volunteer?
225+
**``o``** version 1.6 introduces partial support for Windows PowerShell and Command shell. The `o` command works, but installation and setup are not automated.
218226

219227
## Design principle
220228

0 commit comments

Comments
 (0)