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

Fetch ROSA Classic attributes #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cambelem
Copy link
Contributor

Description

This feature introduces a new command to retrieve ROSA Classic Cluster attributes based on organization_id.

Key Features

  • Defaults Output: JSON format.
  • CSV Support: Use the --csv flag to output to a CSV file (clusters.csv by default)
  • Custom CSV File Name: Add the --csv-file flag to specify a custom file name.

Usage Examples:

Input:
ocm-support get clusters [org_id]

Result:

[
  {
    "uuid": "1 ..... a",
    "name": "cluster-name1",
    "display_name": "cluster-name1",
    "machine_pool_name": "mp-name",
    "node_instance_type": "m2.xlarge",
    "node_quantity": "1",
    "max_machine_pool_scale": "disabled"
  },
...
]

Input:
ocm-support get clusters [org_id] --csv

Result:

CSV file 'clusters.csv' has been successfully created.

Input:
ocm-support get clusters [org_id] --csv --csv-file "my_cluster_info.csv"

Result:

CSV file 'my_cluster_info.csv' has been successfully created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant