Gustavo
My feedback
5 results found
-
1 vote
An error occurred while saving the comment -
2 votes
An error occurred while saving the comment Gustavo commented
Hi, it seems like this is a known issue for json-path https://github.com/json-path/JsonPath/issues/272 and when using filters it will always return an array with no way to select only the first element
Right now given this is outside of the control of the CLI I would recommend using json output and an additional tool like jq or using go template outputs until json path addresses this issue
-
2 votes
An error occurred while saving the comment Gustavo commented
Hi Adrian, thanks for your suggestions. A head ups some of your them are already implemented
> CRUD projects
> CRUD orgs
https://docs.mongodb.com/mongocli/stable/command/mongocli-iam-organizations/
> CRUD users
https://docs.mongodb.com/mongocli/stable/command/mongocli-iam-users/
> global alert management
https://docs.mongodb.com/mongocli/stable/command/mongocli-ops-manager-alerts-global/
For global config managemant if you could provide a reference to the public API (https://docs.opsmanager.mongodb.com/current/reference/api/) that would be great
-
5 votes
Gustavo supported this idea ·
-
3 votes
An error occurred while saving the comment Gustavo commented
We've been working on https://github.com/mongodb/mongocli
Gustavo supported this idea ·
Hi, you can already do this by using custom outputs, see `atlas clusters describe --help`
```
Return the details for the specified cluster for your project.
Usage:
atlas clusters describe <clusterName> [flags]
Aliases:
describe, get
Examples:
# Return the JSON-formatted details for the cluster named myCluster:
atlas clusters describe myCluster --output json
Flags:
-h, --help help for describe
-o, --output string Output format. Valid values are json, json-path, go-template, or go-template-file.
--projectId string Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
```
in particular you could do
```
atlas clusters describe myCluster --output json > myCluster.json
```
and get the json file for myCluster