Description: Returns a batch of repositories defined by name. The default batch size is 100 items (configurable).
Since: 7.84.3
Security: Requires an admin user for complete repository configuration. Non-admin users will receive only partial configuration data.
Usage: GET /artifactory/api/v2/repositories/batch
Query Parameters:
Field | Type | Description |
---|---|---|
| string | The repository names to return. |
Sample Request:
curl --location 'http://{host}:{port}/artifactory/api/v2/repositories/batch?names=dev-maven-local-1&names=dev-maven-local' \ --header 'Authorization: Basic YWRtaW46cGFzc3dvcmQ=' \ --header 'Cookie: ACCESSTOKEN={token}; REFRESHTOKEN={token}' '
Sample Response:
{ "wproj-dev-docker-local-1": { "key": "wproj-dev-docker-local-1", "packageType": "docker", "description": "", "notes": "", "includesPattern": "**/*", "excludesPattern": "", "repoLayoutRef": "maven-2-default", "signedUrlTtl": 90, "enableComposerSupport": false, "enableNuGetSupport": false, "enableGemsSupport": false, "enableNpmSupport": false, "enableBowerSupport": false, "enableChefSupport": false, "enableCocoaPodsSupport": false, "enableConanSupport": false, "enableDebianSupport": false, "debianTrivialLayout": false, "ddebSupported": false, "enablePypiSupport": false, "enablePuppetSupport": false, "enableDockerSupport": true, "dockerApiVersion": "V2", "blockPushingSchema1": true, "forceNugetAuthentication": false, "forceP2Authentication": false, "forceConanAuthentication": false, "enableVagrantSupport": false, "enableGitLfsSupport": false, "enableDistRepoSupport": false, "priorityResolution": false, "environments": [], "checksumPolicyType": "client-checksums", "handleReleases": true, "handleSnapshots": true, "maxUniqueSnapshots": 0, "maxUniqueTags": 0, "snapshotVersionBehavior": "unique", "suppressPomConsistencyChecks": false, "blackedOut": false, "propertySets": [], "archiveBrowsingEnabled": false, "calculateYumMetadata": false, "enableFileListsIndexing": false, "yumRootDepth": 0, "dockerTagRetention": 1, "enableComposerV1Indexing": false, "terraformType": "MODULE", "encryptStates": true, "cargoAnonymousAccess": false, "xrayIndex": false, "cargoInternalIndex": false, "xrayDataTtl": 90, "downloadRedirect": false, "cdnRedirect": false, "rclass": "local" }, "wproj-dev-docker-local-2": { "key": "wproj-dev-docker-local-2", "packageType": "docker", "description": "", "notes": "", "includesPattern": "**/*", "excludesPattern": "", "repoLayoutRef": "maven-2-default", "signedUrlTtl": 90, "enableComposerSupport": false, "enableNuGetSupport": false, "enableGemsSupport": false, "enableNpmSupport": false, "enableBowerSupport": false, "enableChefSupport": false, "enableCocoaPodsSupport": false, "enableConanSupport": false, "enableDebianSupport": false, "debianTrivialLayout": false, "ddebSupported": false, "enablePypiSupport": false, "enablePuppetSupport": false, "enableDockerSupport": true, "dockerApiVersion": "V2", "blockPushingSchema1": true, "forceNugetAuthentication": false, "forceP2Authentication": false, "forceConanAuthentication": false, "enableVagrantSupport": false, "enableGitLfsSupport": false, "enableDistRepoSupport": false, "priorityResolution": false, "environments": [], "checksumPolicyType": "client-checksums", "handleReleases": true, "handleSnapshots": true, "maxUniqueSnapshots": 0, "maxUniqueTags": 0, "snapshotVersionBehavior": "unique", "suppressPomConsistencyChecks": false, "blackedOut": false, "propertySets": [], "archiveBrowsingEnabled": false, "calculateYumMetadata": false, "enableFileListsIndexing": false, "yumRootDepth": 0, "dockerTagRetention": 1, "enableComposerV1Indexing": false, "terraformType": "MODULE", "encryptStates": true, "cargoAnonymousAccess": false, "xrayIndex": false, "cargoInternalIndex": false, "xrayDataTtl": 90, "downloadRedirect": false, "cdnRedirect": false, "rclass": "local" } }
Status Codes:
Code | Description |
---|---|
200 | Repository configurations returned by given names |
400 | Bad request; repository keys are missing; repository item limit exceeded |
500 | Internal server error |