-
Notifications
You must be signed in to change notification settings - Fork 0
continuum-vikrant-tyagi/BlackDuckHelperScripts
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
#!/bin/bash
access_token=<Api token>
web_url=<hub url>
function authenticate()
{
response=$(curl --insecure -X POST --header "Content-Type:application/json" --header "Authorization: token $access_token" "$web_url/api/tokens/authenticate")
bearer_token=$(echo "${response}" | jq --raw-output '.bearerToken')
}
function getLicenseTerms()
{
terms=$(curl --insecure -X GET --header "Content-Type:application/json" --header "Authorization: bearer $bearer_token" "$web_url/api/license-terms?limit=100")
echo $terms
}
authenticate
echo "============================License============================"
getLicenseTerms
echo "==============================================================="About
Sample scripts for Blackduck Rest Api
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published