@W-21766828 add storage,multi realm usage and settings support#309
Merged
charithaT07 merged 4 commits intomainfrom Apr 3, 2026
Merged
@W-21766828 add storage,multi realm usage and settings support#309charithaT07 merged 4 commits intomainfrom
charithaT07 merged 4 commits intomainfrom
Conversation
Collaborator
|
@charithaT07 can you add a summary |
Collaborator
Author
Hi @clavery , Thanks, I have added the PR summary |
clavery
approved these changes
Apr 3, 2026
clavery
requested changes
Apr 3, 2026
Collaborator
clavery
left a comment
There was a problem hiding this comment.
If b2c realm is for sandbox realms only it needs to be under the sandbox/ods topic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brief description of what this PR does.
Summary
Enhances the B2C CLI with three new sandbox management capabilities: storage monitoring, settings inspection, and multi-realm usage reporting.
What's New
Sandbox Storage Command
Command:
b2c sandbox storage <SANDBOXID>--jsonflag for raw API responseExample:
Sandbox Settings Command
Command:
b2c sandbox settings <SANDBOXID>--jsonflag for full settings payloadExample:
Realm Configuration Command
Command:
b2c realm configuration <REALM>Example:
📊 Multi-Realm Usage Command
Command:
b2c realm usages [FLAGS]/me)--realm- Specify realm IDs (comma-separated or repeated)--from- Start date (ISO 8601)--to- End date (ISO 8601)--detailed-report- Include detailed usage dataExamples:
Files Changed
New Commands (4 files):
packages/b2c-cli/src/commands/sandbox/storage.ts(+88 lines)packages/b2c-cli/src/commands/sandbox/settings.ts(+99 lines)packages/b2c-cli/src/commands/sandbox/realm/configuration.ts(+113 lines)packages/b2c-cli/src/commands/sandbox/realm/usages.ts(+134 lines)Modified:
packages/b2c-cli/src/commands/sandbox/realm/list.ts(refactored -43 lines)docs/cli/sandbox.md(+150 lines of documentation)Test Coverage (4 files):
test/commands/sandbox/storage.test.ts(+96 lines)test/commands/sandbox/settings.test.ts(+99 lines)test/commands/sandbox/realm/configuration.test.ts(+80 lines)test/commands/sandbox/realm/usages.test.ts(+92 lines)Testing
✅ All tests pass
✅ Code formatted and linted
✅ No new third-party dependencies
Impact
For DevOps/Platform Teams:
For Developers:
API Endpoints Used
This PR leverages existing ODS API endpoints:
GET /api/v1/sandboxes/{sandboxId}/storage- Storage usageGET /api/v1/sandboxes/{sandboxId}/settings- OCAPI/WebDAV settingsGET /api/v1/realms/{realmId}/configuration- Realm sandbox configPOST /api/v1/realms/usages- Multi-realm usage queryTesting
How was this tested?
Dependencies
3pl-approvedis set by a maintainerpnpm test)pnpm run format)