Using the API - Separating Prod from Non-Prod

David Purcell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 4, 2021

We'd like to primarily do an integration with our products and the Statuspage API.  To do that, we want to have separation between development/testing and production - we don't want to have an API key used in development that could accidentally post to production.

We initially thought we could use two different pages:  a prod page and a non-prod page.  However, we have the following obstacle: There doesn't seem to be an association between an API key and a page.  The API keys have access to all pages associated with our 'organization'.

Two questions:

1) What is the best way to keep this separation?  Can we have two different 'accounts' that are not tied together in any way?  

2) Since we want to use the API but not publish a status page, do we have to activate the pages to use the API?

Thanks.

1 answer

1 accepted

0 votes
Answer accepted
chare
Contributor
January 6, 2021

So I only just started experimenting with additional pages. the plan you are on determines how many public pages you can have.  It does appear you can have pages which are not-activated, meaning they are not public.  This is a new space I am looking at so I can't be more specific.

But it looks like you can have more than one API key.  In manage.statuspage.io click on your profile avatar in the bottom left of the sidebar. 

Screen Shot 2021-01-06 at 7.23.17 AM.png

Click on API Info and then click on "Create Key"

Screen Shot 2021-01-06 at 7.23.29 AM.pngSo I think you can accomplish what you are trying to do.  However, I don't think you can prevent one key from only being able to update one page and not be able to update a different page.  But if you are using automation to update your pages, then using a different API Key and Page ID in your automation, you could get close.

 

Chris

David Purcell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 7, 2021

Thanks Chris.  Unfortunately, close isn't probably good enough.  I did experiment with using two different email addresses to create two different pages, totally separate from each other.  I then tried to grant one of my users access to the other page, and when I do that, the system mysteriously creates an 'organization' (something that you can't seem to manage, and I don't know how it names the organization, other than using the first word of my page name), and I can jump between the organizations.  That might be the best we can do, but I'd like to remove the mystery from this and understand what it is doing.

chare
Contributor
January 8, 2021

Well, I suppose yo could have two different accounts which are not connected.  then you'd up with completely different API key and page IDs.  You also end up with different URLs, which may or may not be manageable.  I don't really know if you can do what you are trying to accomplish unless yo go to a paid plan where you can get some "real" tech support. :-)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events