Not all OCI resources returned by ResourceSearchClient
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 243
- Forks
- 171
- Avg merge
- 30m
- Merged PRs (30d)
- 4
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided ResourceSearchClient example with the "query all resources" request, then compare its results with the resources visible in the OCI console. Identify which resources are missing and whether they share a service, tenancy, region, or resource type; done means explaining the discrepancy or defining the required SDK/API change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100