createPersona

Back to index

Summary

Creates a new persona object.
personaName
Stringrequired
The persona name.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
homePageName
Stringoptional
The default home page.
isDefault
Booleanoptional
Set as default persona.
personaDetails
Stringoptional
The details of the persona, if creating.

Usage

Perl

$cmdr->createPersona( "test-personaName" # personaName # optionals );

ectool

ectool createPersona \ "test-personaName" `# personaName` \ # optionals

Examples

Persona detail example

This is an example on how to specify the value of the personaDetails argument. It defines two persona categories, each with two persona pages. (Line breaks are added for readability). The personaPages specified under a given category must be valid for that category.

[{"personaCategory":"releaseorchestration", "personaPages":["pipeline","release"]}, {"personaCategory":"deployment", "personaPages":["application","environment"]}]

Perl

$cmdr->createPersona('persona1', {personaDetails => '{"personaCategory":"releaseorchestration","personaPages":["pipeline","release"]}, {"personaCategory":"deployment","personaPages":["application", "environment"]}', homePageName => application});

ectool

ectool createPersona persona1 --personaDetails '[{"personaCategory":"releaseorchestration","personaPages":["pipeline","release"]}, {"personaCategory":"deployment","personaPages":["application", "environment"]}]' --homePageName application