Is there any way we access Rest API without token ? because we just run the script on the local commvault computer and we don't want user + password in the plaintext ?
Thank you
Is there any way we access Rest API without token ? because we just run the script on the local commvault computer and we don't want user + password in the plaintext ?
Thank you
Best answer by christopherlecky
Just for chits and giggles I stuck your question into chatgpt and here is the result:
PowerScript is a language and runtime environment used to develop and execute scripts for the PowerCenter data integration platform developed by Informatica. It is similar to other scripting languages, such as Python or PowerShell, but is specifically designed for use in the PowerCenter environment.
To retrieve credentials from a credential store in PowerScript, you can use the
GetCredentialfunction. This function takes a credential name as an input and returns aCredentialobject containing the username and password for the specified credential.Here is an example of how you could use the
GetCredentialfunction in a PowerScript script to retrieve credentials from a credential store:
# Define the credential name
$credentialName = "MyCredential"
# Retrieve the credentials from the credential store
$credential = GetCredential($credentialName)
# Extract the username and password from the credential object
$username = $credential.Username
$password = $credential.Password
This script retrieves the credentials for the credential with the name "MyCredential" from the credential store, and stores the username and password in the
$usernameand$passwordvariables, respectively.You can then use these variables to authenticate with a remote system or service using the appropriate API or protocol. For example, you might use the
$usernameand$passwordvariables to construct an HTTP basic authentication header to authenticate with an HTTP API.
Looks pretty comparable to Microsoft secrets modules, so all you have to do is create a credential store populate it and boom. You are done.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.