Not all OCI resources returned by ResourceSearchClient

未關閉
#688 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
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 分鐘
30 天內合併 PR
4

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

oracle/oci-java-sdk 的其他 Issue

查看 oracle/oci-java-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。