Back to index
Summary
Creates a new credential for a project.projectNameStringrequiredThe name for the project that must be unique among all projects. credentialNameStringrequiredThe name of the credential. userNameStringrequiredThe user name for the credential. passwordStringrequiredThe password for the credential. Can also be a certificate or any other chunk of data. credentialProviderNameStringoptionalName of the credential provider where the credential secret is stored. credentialProviderProjectNameStringoptionalName of the credential provider project, if different from the credential project. credentialTypeStringoptionalCredential type. Default is LOCAL. Possible values: "EXTERNAL" , "LOCAL" descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. passwordRecoveryAllowedBooleanoptionalIf true, recovering the password by invoking getFullCredential from a job step is allowed. secretPathStringoptionalName of the folder where the password is stored. testBooleanoptionalApplicable if credentialProviderName is specified. Whether to test that the credential exists in the secret management system prior to saving. Defaults to true. virtualUserNameStringoptionalApplicable for cyberark ccp provider type. This property identifies two identically provisioned accounts in a dual accounts pair under one virtual username. |
Usage
Perl
$cmdr->createCredential( "test-projectName", # projectName "test-credentialName", # credentialName "test-userName", # userName "test-password" # password # optionals );
ectool
ectool createCredential \ "test-projectName" `# projectName` \ "test-credentialName" `# credentialName` \ "test-userName" `# userName` \ "test-password" `# password` \ # optionals