Artifactory-Client
view release on metacpan or search on metacpan
## delete\_item\_properties( path => $path, properties => \[ key\_names \], recursive => 0,1 )
Takes path and properties then delete item properties. Supply recursive => 0 if you want to suppress propagation of
properties downstream.
## set\_item\_sha256\_checksum( repoKey => 'foo', path => 'bar' )
Calculates an artifact's SHA256 checksum and attaches it as a property (with key "sha256"). If the artifact is a folder,
then recursively calculates the SHA256 of each item in the folder and attaches the property to each item.
## retrieve\_artifact( $path, $filename )
Takes path and retrieves artifact on the path. If $filename is given, artifact content goes into the $filename rather
than the HTTP::Response object.
## retrieve\_latest\_artifact( path => $path, version => $version, release => $release, integration => $integration,
flag => 'snapshot', 'release', 'integration' )
Takes path, version, flag of 'snapshot', 'release' or 'integration' and retrieves artifact
## retrieve\_build\_artifacts\_archive( $payload )
Takes payload (hashref) then retrieve build artifacts archive.
## retrieve\_folder\_or\_repository\_archive( path => '/foobar', archiveType => 'zip' )
Retrieves an archive file (supports zip/tar/tar.gz/tgz) containing all the artifacts that reside under the specified
path (folder or repository root). Requires Enable Folder Download to be set.
## trace\_artifact\_retrieval( $path )
Takes path and traces artifact retrieval
## archive\_entry\_download( $path, $archive\_path )
Takes path and archive\_path, retrieves an archived resource from the specified archive destination.
## create\_directory( path => $path, properties => { key => \[ values \] } )
Takes path, properties then create a directory. Directory needs to end with a /, such as "/some\_dir/".
## deploy\_artifact( path => $path, properties => { key => \[ values \] }, file => $file )
Takes path on Artifactory, properties and filename then deploys the file. Note that properties are a hashref with
key-arrayref pairs, such as:
$prop = { key1 => ['a'], key2 => ['a', 'b'] }
## deploy\_artifact\_by\_checksum( path => $path, properties => { key => \[ values \] }, file => $file, sha1 => $sha1 )
Takes path, properties, filename and sha1 then deploys the file. Note that properties are a hashref with key-arrayref
pairs, such as:
$prop = { key1 => ['a'], key2 => ['a', 'b'] }
## deploy\_artifacts\_from\_archive( path => $path, file => $file )
Path is the path on Artifactory, file is path to local archive. Will deploy $file to $path.
## push\_a\_set\_of\_artifacts\_to\_bintray( descriptor => 'foo', gpgPassphrase => 'top\_secret', gpgSign => 'true' )
Push a set of artifacts to Bintray as a version. Uses a descriptor file (that must have 'bintray-info' in it's filename
and a .json extension) that was deployed to artifactory, the call accepts the full path to the descriptor as a
parameter.
## push\_docker\_tag\_to\_bintray( dockerImage => 'jfrog/ubuntu:latest', async => 'true', ... )
Push Docker tag to Bintray. Calculation can be synchronous (the default) or asynchronous. You will need to enter your
Bintray credentials, for more details, please refer to Entering your Bintray credentials.
## distribute\_artifact( publish => 'true', async => 'false' )
Deploys artifacts from Artifactory to Bintray, and creates an entry in the corresponding Artifactory distribution
repository specified
## file\_compliance\_info( $path )
Retrieves file compliance info of a given path.
## delete\_item( $path )
Delete $path on artifactory.
## copy\_item( from => $from, to => $to, dry => 1, suppressLayouts => 0/1, failFast => 0/1 )
Copies an artifact from $from to $to. Note that for this particular API call, the $from and $to must include repository
names as copy source and destination may be different repositories. You can also supply dry, suppressLayouts and
failFast values as specified in the documentation.
## move\_item( from => $from, to => $to, dry => 1, suppressLayouts => 0/1, failFast => 0/1 )
Moves an artifact from $from to $to. Note that for this particular API call, the $from and $to must include repository
names as copy source and destination may be different repositories. You can also supply dry, suppressLayouts and
failFast values as specified in the documentation.
## get\_repository\_replication\_configuration
Get repository replication configuration
## set\_repository\_replication\_configuration( $payload )
Set repository replication configuration
## update\_repository\_replication\_configuration( $payload )
Update repository replication configuration
## delete\_repository\_replication\_configuration
Delete repository replication configuration
## scheduled\_replication\_status
Gets scheduled replication status of a repository
## pull\_push\_replication( payload => $payload, path => $path )
Schedules immediate content replication between two Artifactory instances
## create\_or\_replace\_local\_multi\_push\_replication( $payload )
## revoke\_user\_api\_key
Revokes the API key of another user
## revoke\_all\_api\_keys
Revokes all API keys currently defined in the system
## get\_groups
Get the groups list
## get\_group\_details( $group )
Get the details of an Artifactory Group
## create\_or\_replace\_group( $group, %args )
Creates a new group in Artifactory or replaces an existing group
## update\_group( $group, %args )
Updates an exiting group in Artifactory with the provided group details
## delete\_group( $group )
Removes an Artifactory group
## get\_permission\_targets
Get the permission targets list
## get\_permission\_target\_details( $name )
Get the details of an Artifactory Permission Target
## create\_or\_replace\_permission\_target( $name, %args )
Creates a new permission target in Artifactory or replaces an existing permission target
## delete\_permission\_target( $name )
Deletes an Artifactory permission target
## effective\_item\_permissions( $path )
Returns a list of effective permissions for the specified item (file or folder)
## security\_configuration
Retrieve the security configuration (security.xml)
## activate\_master\_key\_encryption
Creates a new master key and activates master key encryption
## deactivate\_master\_key\_encryption
Removes the current master key and deactivates master key encryption
## set\_gpg\_public\_key( key => $string )
Sets the public key that Artifactory provides to Debian clients to verify packages
## get\_gpg\_public\_key
Gets the public key that Artifactory provides to Debian clients to verify packages
## set\_gpg\_private\_key( key => $string )
Sets the private key that Artifactory will use to sign Debian packages
## set\_gpg\_pass\_phrase( $passphrase )
Sets the pass phrase required signing Debian packages using the private key
## create\_token( username => 'johnq', scope => 'member-of-groups:readers' )
Creates an access token
## refresh\_token( grant\_type => 'refresh\_token', refresh\_token => 'fgsg53t3g' )
Refresh an access token to extend its validity. If only the access token and the refresh token are provided (and no
other parameters), this pair is used for authentication. If username or any other parameter is provided, then the
request must be authenticated by a token that grants admin permissions.
## revoke\_token( token => 'fgsg53t3g' )
Revoke an access token
## get\_service\_id
Provides the service ID of an Artifactory instance or cluster
## get\_certificates
Returns a list of installed SSL certificates.
## add\_certificate( $alias, $file\_path )
Adds an SSL certificate.
## delete\_certificate( $alias )
Deletes an SSL certificate.
# REPOSITORIES
## get\_repositories( $type )
Returns a list of minimal repository details for all repositories of the specified type
## repository\_configuration( $name, %args )
Retrieves the current configuration of a repository
## create\_or\_replace\_repository\_configuration( $name, \\%payload, %args )
Creates a new repository in Artifactory with the provided configuration or replaces the configuration of an existing
repository
## update\_repository\_configuration( $name, \\%payload )
Updates an exiting repository configuration in Artifactory with the provided configuration elements
## delete\_repository( $name )
Removes a repository configuration together with the whole repository content
## calculate\_yum\_repository\_metadata( async => 0/1 )
Calculates/recalculates the YUM metdata for this repository, based on the RPM package currently hosted in the repository
( run in 1.314 second using v1.01-cache-2.11-cpan-df04353d9ac )