Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

bamboo.plan.directory.info.rest system property is disabled by default. How to set it to local?

As per https://confluence.atlassian.com/bamboo/plan-directory-information-rest-api-750396160.html, 'bamboo.plan.directory.info.rest' property is set to disabled by default. I want to make teh REST call to /rest/api/latest/planDirectoryInfo/{planKey} but i am getting 401 Access denied. I suspect we need to modify the disabled property to local or authenticated. But where to find this property? in which file ?

2 answers

1 accepted

0 votes
Answer accepted

As outlined in more detail within Plan directory information REST API, the "bamboo.plan.directory.info.rest is a system property with the following settings":

disabled (default)
The plan directory information REST API is disabled and all requests will be rejected

local
The plan directory information REST API is available without authentication to any request originating from localhost

anonymous
The plan directory information REST API is accessible anonymously

authenticated
The plan directory information REST API is accessible to any authenticated request

authenticated-admin
The plan directory information REST API is accessible to any request authenticated as an administrator

[...]

Please refer to Configuring your system properties for details on the various options "how to set Java properties and options on startup for Bamboo".

0 votes

Hello,

401 error means that you are not authenticated. How do you make the REST call? Do you pass the authorization info?

Yes, I pass the username and password as Basic Auth

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

621 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you