Not all OCI resources returned by ResourceSearchClient

オープン
#688 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java
領域
api, cloud

調査の方向性

まず、提供されている ResourceSearchClient の例を「すべてのリソースをクエリする」リクエストで再現し、次にその結果を OCI コンソールで表示されるリソースと比較します。欠落しているリソースと、それらに共通するサービス、テナンシー、リージョン、またはリソースタイプがあるかを特定します。不一致を説明するか、必要な SDK/API の変更を定義できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I am trying to load the list of all resources that are present in specific OCI deployment:

AuthenticationDetailsProvider provider = SimpleAuthenticationDetailsProvider.builder()
                    .tenantId(credentials.getTenantId())
                    .userId(credentials.getUserId())
                    .fingerprint(credentials.getFingerprint())
                    .privateKeySupplier(new StringPrivateKeySupplier(credentials.getPrivateKey()))
                    .region(Region.valueOf(credentials.getRegion()))
                    .build();

            @Cleanup ResourceSearchClient searchClient = ResourceSearchClient.builder().build(provider);

            String query = "query all resources";

            SearchResourcesRequest request = SearchResourcesRequest.builder()
                    .searchDetails(
                            StructuredSearchDetails.builder()
                                    .query(query)
                                    .build()
                    )
                    .build();

            SearchResourcesResponse response = searchClient.searchResources(request);

            for (ResourceSummary resourceSummary : response.getResourceSummaryCollection().getItems()) {

the response contains a lot of resources from the OCI, but not all of them, because I fail to match some resources I can see in UI to the list of records from API. I wasn't yet able to define if there's any pattern between resources that are not retrieved from API

主要言語
Java
スター
243
フォーク
171
平均マージ
5分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oracle/oci-java-sdk のほかの issue

oracle/oci-java-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。