Exception: This REST API is available only in Artifactory Pro
See original GitHub issueHi, when I operate repository, my process finished with exit. Here is my code
Artifactory artifactory = ArtifactoryClientBuilder.create()
.setUrl("http://192.168.1.**:8081/artifactory")
.setUsername("admin")
.setPassword("?????")
.build();
DebianRepositorySettingsImpl settings = new DebianRepositorySettingsImpl();
settings.setDebianTrivialLayout(true);
Repository repository = artifactory.repositories()
.builders()
.localRepositoryBuilder()
.key("NewRepoName")
.description("new local repository")
.repositorySettings(settings)
.build();
String result3 = artifactory.repositories().create(2, repository);
The exception is :``` Exception in thread “main” org.apache.http.client.HttpResponseException: { “errors” : [ { “status” : 400, “message” : “This REST API is available only in Artifactory Pro (see: http://www.jfrog.com/addons.php). If you are already running Artifactory Pro please make sure your server is activated with a valid license key.\n” } ]
That's what happens when I do any operation to User. I want to know that is my code wrong or something else.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Artifactory REST API - JFrog - JFrog Documentation
Description: Promotes a Docker image from one repository to another. Supported by local repositories only. Since: 3.7. Notes: Requires JFrog Container Registry ...
Read more >Known Issues - JFrog - JFrog Documentation
Overview. The following document lists the set of known issues in the JFrog Platform, including the version in which they were discovered, ...
Read more >[RTFACT-4643] REST DELETE operation not allowed for OSS ...
When the DELETE command is called the Artifactory responds with 400: "This REST API is available only in Artifactory Pro (see: http://www.jfrog.
Read more >Xray REST API - JFrog - JFrog Documentation
This section describes how to use the Xray REST API using cURL as an example. You can download cURL here. Learn how to...
Read more >Installing Artifactory - JFrog - JFrog Documentation
mv jfrog-artifactory-<pro|oss|cpp-ce>-<version>-linux. tar .gz jfrog ... port: 8081 for Artifactory REST APIs and 8082 for all other uses.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Does repository creation through REST api require license? That’s hindrance for open source developers to integrate with Artifactory. I was trying to automate a workflow to create repos in artifactory automatically and I am getting the same error. I was expecting that whatever feature is available in OSS Web UI will be available with REST api
I know this is old but I have to agree with @smsajid . I am building a small open source product to integrate with Artifactory. I’m trying to set up a set of integration tests in CI with the OSS container, and running into this. It’s really a shame.