merge_credentials
Merges all the references of named credentials provided in the source_credential_list into the destination_credential. The verb expects all the named credentials provided to be equivalent. You can list equivalently named credentials using the command emcli get_duplicate_credentials. All the matching duplicate credentials can be merged using the flag merge_all.
Format
emcli merge_credentials -destination_credential="destination_cred_name[:destination_cred_owner]" [-source_credential_list="source_credential_list"] [-merge_all] [-merge_without_testing] [ ] indicates that the parameter is optional.
Options
-
destination_credential
Destination credentials to merge the references.
-
source_credential_list
Source-named credential list.
-
merge_all
Finds all the duplicate credentials and merges.
-
merge_without_testing
Merges the credentials without testing the destination credential.
Examples
Example 1
This example merges the named credentials MyOracleCredential2 and MyOracleCredential3 into MyOracleCredential1. If MyOracleCredential1 is equivalent to MyOracleCredential2 and MyOracleCredential3, all the usages of MyOracleCredential2 and MyOracleCredential3 are replaced with MyOracleCredential1.
emcli merge_credentials -destination_credential="MyOracleCredential1:ADMIN1" -source_credential_list= "MyOracleCredential2:ADMIN1;MyOracleCredential3:ADMIN3"
Example 2
This example finds all the named credentials equivalent to MyOracleCredential1 and merges their usages with MyOracleCredential1.
emcli merge_credentials -destination_credential=MyOracleCredential1 -merge_all