oracle / oracle/oci-cli

oci search resource PrivateIp lacks hostname/DNS label searchable attribute.

Open
#1,062 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

oci search resource-type get --name PrivateIp shows that PrivateIp lacks any option to search that resource type (via oci search resource structured-search) using OCI assigned DNS/hostname labels. Is there a reasons for the lack of this searchable attribute, or is it just an oversight?

Commands such as oci network private-ip list --subnet-id return JSON objects with hostname-label attribute, so it seems that OCI internal representation of PrivateIp object has this info.

UPD.
Also, vnic-attachment resource is missing from oci search resources. It would be convenient to have that resource type as part of oci search, not just as oci compute vnic-attachment

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the OCI search resource types exposed by oci search resource-type get --name PrivateIp, then compare them with the oci network private-ip list --subnet-id output. Check how vnic-attachment is represented by the search and compute commands. Done means hostname/DNS labels are searchable for PrivateIp and vnic-attachment is available through OCI search, subject to service support.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.