Script Function: Reads information from Login objects.
GET_LOGIN(Login object, Name, Type, Information)
Return Code |
---|
The relevant information. 20476 - The specified object does not exist or is not of login type. |
This script functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,… supplies the login information or the passwordA secret combination of characters for a Automation Engine user. of a certain entry in the specified Login object. The parameters Name and Type decide upon the entry.
You can only read the login entries of backend systems! Make sure that the specified Type is also available in the variableIt stores or retrieves values dynamically at runtime. An individual Automation Engine object type. UC_LOGIN_TYPES.
The password is returned in encrypted form. You can use the password with the Job Messenger (start parameter CMD) where it will be decrypted.
You can use "*" for the Name (use single or double quotation marks). Note that "*" in this case is an own entry in the Login object and not a filter.
The following example reads the login information and the password of the backend-system entry SVN from the Login object and runs a command run via the Job Messenger afterwards that specifies the login data.
:SET &LOGIN# = GET_ATT(LOGIN)
:SET &LI# = GET_LOGIN(&LOGIN#,SVN,SVN,LOGIN_INFO)
:SET &PW# = GET_LOGIN(&LOGIN#,SVN,SVN,PASSWORD)
&UC_JOBMD CMD="&SVN_CMD# checkout ""&SVN_URI#"" ""&SVN_DIR#"" --username &LI# --password &PW#"
See also:
Script Element - Data Sequences
About Scripts
Script Element - Alphabetical Order
Script Element - Ordered by Function
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |