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

Cannot backup monitors with cli #17

Open
NotThatRonnieColeman opened this issue Apr 3, 2019 · 1 comment
Open

Cannot backup monitors with cli #17

NotThatRonnieColeman opened this issue Apr 3, 2019 · 1 comment

Comments

@NotThatRonnieColeman
Copy link

I can get users and backup dashboards without a problem. However, when i try to backup monitors (i'm specifically interested in my Synthetics monitors), i get a 401 with some extra details... see below:

Command issued:
user$ nr backup monitors -d ./backups/

Response:

Start to backup all monitors to './backups/' folder
Response status code: 401. Get one page monitors, pageSize '50', pageOffset '0'
OperationName   StatusCode   Description   Message
Get Monitors    401                        pageSize:50,pageOffset:0

Status code is not 2XX calling NewRelic REST
Status code is not 2XX calling NewRelic REST


Failed to backup monitors, exit.
@mdminhazulhaque
Copy link

401 means you are not authorized. Please generate a key (not the default account REST API key) and export the key like export NEW_RELIC_APIKEY=acbe9372d4ef4c58b79881633958a596. Then it should work.

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

No branches or pull requests

2 participants