BookmarkSubscribeRSS Feed
Venkatesh2
SAS Employee

The version we are using of sas visual investigator 10.8 in sas viya 3.5.

we have created some domains under alerts and we want to delete some unwanted domains under alerts.

The problem is we are unable to delete domain under alerts in visual investigator.

we have searched in web and we found the below that we can delete the unwanted domain under alerts through the server level.

 

exec curl -I -X DELETE "http://$HOST:$PORT/svi-alert/domains/$DOMAIN_ID" \
--header "Content-Type:application/json" \
--header "Authorization: Bearer $TOKEN"

 

Here we have DOMAIN_ID which is place in the 1st command and what should we place in the place of json and TOKEN in the 2nd and 3rd commands.

and is there any specific location to run all these three commands.

Please let us know if anyone knows and its a great help for us.

1 REPLY 1
gwootton
SAS Super FREQ
The curl command could be run from any host that has a network path to your Viya environment.

The token refers to an authorization bearer token. You can log in to your Viya environment using the sas-admin CLI and then run these commands to store the token it retrieves into a variable (replacing your_sas_admin_profile with the profile name you use to log in to sas-admin:
profile=your_sas_admin_profile
sas-admin -p $profile auth login
token=$(jq -r --arg profile "$profile" ".$profile | .\"access-token\"" ~/.sas/credentials.json)
--
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 412 views
  • 0 likes
  • 2 in conversation