Using Artifactory 5.x ?
JFrog Artifactory 5.x User Guide


Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

File Statistics

Description: Item statistics record the number of times an item was downloaded, last download date and last downloader. Supported by local and local-cached repositories.
Since:
 3.1.0
Security:
 Requires read privileges
Usage:
 GET /api/storage/{repoKey}/{item-path}?stats
Produces: application/vnd.org.jfrog.storage.StatsInfo+json
Sample Output:

...

Description: For Local repositories: calculates/recalculates the YUM metdata for this repository, based on the RPM package currently hosted in the repository. Supported by local and virtual repositories only.
Calculation can be synchronous (the default) or asynchronous.
For Virtual repositories, calculates the merged metadata from all aggregated repositories on the specified path. The path parameter must be passed for virtual calculation.
Please see the YUM integration documentation for more details.

...

POST /api/system/license
{
  "status" : 200,
  "message" : "The license has been successfully installed."
}

HA License Information

Description: Retrieve information about the currently installed licenses in an HA cluster.
Since: 5.0.0
Security: Requires a valid admin user
Usage: GET /api/system/licenses
Producesapplication/json

Code Block
[ {
  	"type" : "Enterprise",
  	"validThrough" : "<validity date formatted MMM DD, YYYY>",
  	"licensedTo" : "<Company name>",
  	"licenseHash" : "<license hash code>",
  	"nodeId" : "<Node ID of the node activated with this license | Not in use>",
  	"nodeUrl" : "<URL of the node activated with this license | Not in use>",
  	"expired" : <true | false>
}]

...

Code Block
GET /api/system/licenses
 
[ {
  "type" : "Enterprise",
  "validThrough" : "May 15, 2018",
  "licensedTo" : "JFrog",
  "licenseHash" : "179b7ea384d0c4655a00dfac7285a21d986a17923",
  "nodeId" : "art1",
  "nodeUrl" : "http://10.1.16.83:8091/artifactory",
  "expired" : false
}, {
  "type" : "Enterprise",
  "validThrough" : "May 15, 2018",
  "licensedTo" : "JFrog",
  "licenseHash" : "e10b8aa1d1dc5107439ce43debc6e65dfeb71afd3",
  "nodeId" : "Not in use",
  "nodeUrl" : "Not in use",
  "expired" : false
} ]

 

Install HA Cluster Licenses

Description: Install a new license key(s) on an HA cluster. 
Since: 5.0.0
Security: Requires an admin user
Usage: POST /api/system/licenses
Consumesapplication/json

Code Block
[{ 
	"licenseKey": "<License key>" 
}]

Producesapplication/json

Code Block
{
 "status" : 200,
  "messages" : {
    ["<License key>" : "<status message>"] 
 }

Sample Usage:

Code Block
POST /api/system/licenses
{

	"licenseKey": "tL9r2Y...lDBiktbbt",
	"licenseKey": "DiYgVA...P7nvyNI7q"
}


Response:
{
  "status" : 200,
  "messages" : {
    "tL9r2Y...lDBiktbbt" : "OK",
    "DiYgVA...P7nvyNI7q" : "OK", 
}

Delete HA Cluster License

Description: Deletes a license key from an HA cluster. 
Since: 5.0.0
Security: Requires an admin user
Usage: DELETE /api/system/licenses?licenseHash=licenseHash1, licenseHash2...
Producesapplication/json

Code Block
{
  "status" : 200,
  "messages" : {["<License hash code>" : "<status message>"]}
}

 Sample Usage:

Code Block
DELETE /api/system/licenses?licenseHash=tL9r2YlDBiktbbt, DiYgVAP7nvyNI7q
 
Response:
{
  "status" : 200,
  "messages" : {
	"tL9r2YlDBiktbbt" : "OK",
	"DiYgVAP7nvyNI7q" : "OK"
	}
}

Version and Add-ons information

...

Code Block
GET /api/system/configuration/reverseProxy/nginx
 
## add ssl entries when https has been set in config
ssl_certificate      /etc/ssl/myKey.cert;
ssl_certificate_key  /etc/ssl/myKey.key;
ssl_session_cache shared:SSL:1m;
ssl_prefer_server_ciphers   on;
## server configuration
server {
    listen 443 ssl;
    listen 76 ;
    server_name ~(?<repo>.+)\.jfrog.com jfrog.com;
    
    if ($http_x_forwarded_proto = '') {
        set $http_x_forwarded_proto  $scheme;
    }
    ## Application specific logs
    ## access_log /var/log/nginx/jfrog.com-access.log timing;
    ## error_log /var/log/nginx/jfrog.com-error.log;
    rewrite ^/$ /artifactory/webapp/ redirect;
    rewrite ^/artifactory$ /artifactory/webapp/ redirect;
}

Create Bootstrap Bundle

Description: This rest is relevant for High Availability set up. It will create a bootstrap bundle on the primary node of an Artifactory HA installation that will include all the relevant keys so a new node can access the database and fetch all the relevant configuration files. The same bundle must be installed on all nodes during an installation of new nodes or if upgrading from a version older than 5.0. For more details, please refer to Installing Artifactory HA. Since: 5.0.0
Usage: POST /api/system/bootstrap_bundle
Produces: application/json

Code Block
{
  "file" : "<Location on primary node where bootstrap bundle was created>"
}

Sample usage:

Code Block
POST /api/system/bootstrap_bundle
 
{
  "file" : "/opt/jfrog/artifactory/etc/bootstrap.bundle.tar.gz"
}

 

...

PLUGINS

Execute Plugin Code

...

PUT /api/storage/libs-release-local/ch/qos/logback/logback-classic/0.9.9?properties=os=win,linux;qa=done&recursive=1