artifactory-client-java icon indicating copy to clipboard operation
artifactory-client-java copied to clipboard

HTTP Settings - Docker Access Method

Open Shereind opened this issue 6 years ago • 6 comments

How can I get HTTP Settings - Docker Access Method {RepositoryPath/ SubDomain/Port} ? Is there any way in Java Client, Rest API or even JFrog CLI?

Shereind avatar Dec 30 '18 15:12 Shereind

I believe you need to use this REST API service: Get Reverse Proxy Configuration.

Not sure the Java Client supports getting this piece of information.

fritaly avatar Dec 30 '18 15:12 fritaly

Thanks, it works 👍

Shereind avatar Dec 30 '18 16:12 Shereind

Additional related question, In case Access method is "Port" How can I get repository port in Java Client or Rest API ?

Shereind avatar Dec 31 '18 08:12 Shereind

The structure of the JSON returned by the server depends on the "docker access method" chosen. Try changing the access method to "PORTPERREPO" (via the web UI) and the JSON should return 3 ports via the properties "httpPort", "httpsPort" and "artifactoryPort".

fritaly avatar Dec 31 '18 11:12 fritaly

I meant Repository Port. The port that I should configure in the repository itself. image

how can I get repository details?

Shereind avatar Dec 31 '18 12:12 Shereind

Sorry, I'm not sure how this works in details. I don't have first hands experience configuring such a setup.

fritaly avatar Jan 04 '19 15:01 fritaly