Get artifact stats
response to get artifact stats response
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
curl -i -X GET \ 'https://app.harness.io/har/api/v1/spaces/{space_ref}/artifact/stats?from=string&to=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "data": {
- "downloadCount": 0,
- "downloadSize": 0,
- "totalStorageSize": 0,
- "uploadSize": 0
}, - "status": "SUCCESS"
}
Lists all the Harness Artifacts.
response for list artifact
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
curl -i -X GET \ 'https://app.harness.io/har/api/v1/spaces/{space_ref}/artifacts?reg_identifier=string&page=1&size=20&sort_order=string&sort_field=string&search_term=string&latest_version=true&deployed_artifact=true&package_type=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "data": {
- "artifacts": [
- {
- "deploymentMetadata": {
- "nonProdEnvCount": 0,
- "prodEnvCount": 0
}, - "downloadsCount": 0,
- "labels": [
- "string"
], - "lastModified": "string",
- "latestVersion": "string",
- "name": "string",
- "packageType": "DOCKER",
- "pullCommand": "string",
- "registryIdentifier": "string",
- "registryPath": "string",
- "version": "string"
}
], - "itemCount": 1,
- "pageCount": 100,
- "pageIndex": 0,
- "pageSize": 1
}, - "status": "SUCCESS"
}
Get storage details for given space
response for storage details
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
curl -i -X GET \ 'https://app.harness.io/har/api/v1/spaces/{space_ref}/details' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "data": {
- "totalSize": "string"
}, - "status": "SUCCESS"
}
Lists all the registries.
response for list registry
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
curl -i -X GET \ 'https://app.harness.io/har/api/v1/spaces/{space_ref}/registries?package_type=string&type=VIRTUAL&page=1&size=20&sort_order=string&sort_field=string&search_term=string&recursive=false' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "data": {
- "itemCount": 1,
- "pageCount": 100,
- "pageIndex": 0,
- "pageSize": 1,
- "registries": [
- {
- "artifactsCount": 0,
- "description": "string",
- "downloadsCount": 0,
- "identifier": "string",
- "labels": [
- "string"
], - "lastModified": "string",
- "packageType": "DOCKER",
- "path": "string",
- "registrySize": "string",
- "type": "VIRTUAL",
- "url": "string"
}
]
}, - "status": "SUCCESS"
}