createUserAccessToken

On this page
Back to index

Summary

Generate personal access token for an authorized user.
request
Stringrequired
This parameter and the value displayed are required; request=createUserAccessToken must appear in your query string.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
expirationDays
Integeroptional
Specify the number of days after which the user access token will expire.
userAccessTokenName
Stringoptional
The name of the user access token.

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createUserAccessToken( request: "test-request" /* optional arguments */ )