attachCredential

Back to index

Summary

Attaches a credential to an object, such as a step or a schedule. Attaching a credential allows the credential to be passed as an actual argument by a schedule or subprocedure step, or to be used in a getFullCredential call by a command step.
projectName
Stringrequired
The name for the project that must be unique among all projects.
credentialName
Stringrequired
The name of the credential.
applicationName
Stringoptional
The name of the application, if attaching a credential to an application process, or application process step.
applicationProjectName
Stringoptional
The name of the project containing specified application. If not specified, it is defaulted to the release project name.
catalogItemName
Stringoptional
The name of the catalog item, if attaching a credential to a catalog item.
catalogName
Stringoptional
The name of the catalog, if attaching a credential to a catalog.
componentName
Stringoptional
The name of the component, if attaching a credential to a component, component process, or component process step.
deployerTaskName
Stringoptional
The name of the deployer task mapped to the deployer configuration.
gateType
Stringoptional
The type of the gate.
Possible values: "POST", "PRE"
microserviceName
Stringoptional
The name of the microservice, if attaching a credential to a microservice process.
pipelineName
Stringoptional
The name of the pipeline, if attaching a credential to a stage task.
procedureName
Stringoptional
The name of the procedure, if attaching a credential to a procedure or a procedure step.
processName
Stringoptional
The name of the process, if attaching a credential to a process or a process step.
processStepName
Stringoptional
The name of the process step, if attaching a credential to a process step.
releaseName
Stringoptional
The name of the release, if attaching a credential to a release.
scheduleName
Stringoptional
The name of the schedule, if attaching a credential to a schedule.
stageName
Stringoptional
The name of the stage, if attaching a credential to its task.
stateDefinitionName
Stringoptional
The name of the workflow state definition, if attaching a credential to a state definition.
stepName
Stringoptional
The name of the procedure step, if attaching a credential to a procedure step.
taskName
Stringoptional
The name of the task, if attaching a credential to a task.
triggerName
Stringoptional
The name of the trigger, if attaching a credential to a trigger.
workflowDefinitionName
Stringoptional
The name of the workflow, if attaching a credential to a state definition.

Usage

Perl

$cmdr->attachCredential( "test-projectName", # projectName "test-credentialName" # credentialName # optionals );

ectool

ectool attachCredential \ "test-projectName" `# projectName` \ "test-credentialName" `# credentialName` \ # optionals

Examples

Perl

$cmdr->attachCredential("Default", "QA User", {procedureName => "Run Build", stepName=>"Get Resources"});

ectool

ectool attachCredential "Default" "QA User" --procedureName "Run Build" --stepName "Get Resources"