Skip to main content
Solved

credential vault


Forum|alt.badge.img+5

how to create in automatic way for example 100 entries type of “SQL_SERVER_ACCOUNT” in credential vault  ...anyway i am intrested API , powrshell , worflow etc 

 

i can list existed one as type of “SQL_SERVER_ACCOUNT” exist in Get list of credentials | Commvault®

but in CREATE section Create Credential | Commvault® like type of “SQL_SERVER_ACCOUNT” not exist 

 

 

Best answer by Marcin_CF

ok ...i made it by myself by imitate clicking as user by app called autohotkey 

 

i pity that CV whant to be number 1 in backup by so called mass editing is still in kindergarden level 

View original
Did this answer your question?

6 replies

CV_GK
Vaulter
Forum|alt.badge.img+5
  • Vaulter
  • 63 replies
  • April 1, 2025

Hi ​@Marcin_CF 

Can we know CV version here?


Forum|alt.badge.img+5
  • Author
  • Byte
  • 13 replies
  • April 1, 2025

11.32


Forum|alt.badge.img+5
  • Author
  • Byte
  • 13 replies
  • Answer
  • April 3, 2025

ok ...i made it by myself by imitate clicking as user by app called autohotkey 

 

i pity that CV whant to be number 1 in backup by so called mass editing is still in kindergarden level 


Forum|alt.badge.img+1
  • Vaulter
  • 3 replies
  • April 7, 2025

Hi ​@Marcin_CF ,

Actually, the API supports all types that you see in the console.

The console uses the same API to do its work, so all types are supported.

The API documentation appears to be missing some types.

I requested this be updated.

You can also use the Command Center to create a credential then choose the EQUIVALENT API link on the dialog to show you what the JSON payload would look like.


Forum|alt.badge.img+5
  • Author
  • Byte
  • 13 replies
  • April 8, 2025

HI,

 

i know that generate JSON but smehow it doesnt work do use it to upload . Nice to be see exactly how to do that …..mean example here will be nice to see . I found on forum example  to read credential but seaving new doesnt want to work even using mentioned json 


Forum|alt.badge.img+1
  • Vaulter
  • 3 replies
  • April 8, 2025

Hi ​@Marcin_CF ,

I just tried it using a workflow and it saved the credential.  Workflow would be the easiest method because the AuthToken header is handled automatically for you.  But if you are using CURL or some other method, remember that like all these APIs, you must first login and capture the AuthToken and then supply it as a header as mentioned here (bold RED):

curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Credential' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"accountType": "WINDOWSACCOUNT",
"vendorType": "ALICLOUD_OSS",
"name": "string",
"userAccount": "string",
"password": "string",
"description": "string"
}'

Here is how I did it using a workflow.  If you are needing to create many as you mention you would need to add additional logic and a for loop to iterate through the different input for each unique one.

The yellow highlight is where the workflow automatically substitutes the login token for you.

 

Here is the link to the login API that needs to be called first.  Then save the response and supply it in the Authtoken header for all API calls that follow.

https://api.commvault.com/docs/SP38/api/cv/AuthenticationOperations/login/

  • token string

    The authentication token that must be inserted into the Authtoken header for all requests

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings