Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCM-10315 : Add docs for sync-cloud resources #50

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -476,3 +476,23 @@ The following flags are available for `patch subscription`:
##### Examples

* Patch a subscription by its ID and change the status to 'Reserved' (dry run) `echo '{ "status": "Reserved" }' | ocm support patch subscriptions [subID]`

### Sync cloud resources

OCM Support CLI can be used to sync cloud resources and generate quota rules in AMS.

#### Usage
Use the following command to add cloud resources in AMS:
```
ocm support sync-cloud-resources OCM-0000 \path\to\file --dry-run=false
```
`branch-name` : Branch name for adding instances. Must include the JIRA ticket number. E.g. OCM-0000, OCM-0000-my-test-branch, etc.

`csv-path` : File path for the exported CSV.

The following flags are available for `sync-cloud-resources`:

```
--dry-run If false, it commits the generated cloud resources and quota rule changes to the remote branch at https://gitlab.cee.redhat.com/service/uhc-account-manager
-h, --help help for sync-cloud-resources
```
Loading