Hi there,
I am currently trying to automate my log-downloading process from Atlas. I am using atlas logs download <hostname> <mongodb.gz|mongos.gz|mongosqld.gz|mongodb-audit-log.gz|mongos-audit-log.gz> [options]
for CLI
and curl --user '{PUBLIC-KEY}:{PRIVATE-KEY}' --digest \ --header 'Accept: application/gzip' \ --request GET "https://cloud.mongodb.com/api/atlas/v1.0/groups/{GROUP-ID}/clusters/{HOSTNAME}/logs/mongodb.gz" \ --output "mongodb.gz"
for API.
My question is how can I get the hostname
parameter using API and CLI?
Thanks!