ServiceAccount

1 minute readReference

createServiceAccount

Creates a new service account object and uses a service account when creating and managing webhooks sessions.

Arguments

Argument Name Type Description

serviceAccountName

String

The service account name. (Required)

description

String

Comment text describing this object that is not interpreted at all by CloudBees CD/RO.

Usage

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createServiceAccount( serviceAccountName: 'test-serviceAccountName' /* optional arguments */)

deleteServiceAccount

Deletes a service account.

Arguments

Argument Name Type Description

serviceAccountName

String

The service account name. (Required)

Usage

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.deleteServiceAccount( serviceAccountName: 'test-serviceAccountName')

getServiceAccount

Retrieves a service account by its name.

Arguments

Argument Name Type Description

serviceAccountName

String

The service account name. (Required)

Usage

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.getServiceAccount( serviceAccountName: 'test-serviceAccountName')

getServiceAccounts

Retrieves all service accounts.

Arguments

Usage

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.getServiceAccounts()

modifyServiceAccount

Modifies a service account.

Arguments

Argument Name Type Description

serviceAccountName

String

The service account name. (Required)

description

String

Comment text describing this object that is not interpreted at all by CloudBees CD/RO.

newName

String

The new name for an existing object that is being renamed.

Usage

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.modifyServiceAccount( serviceAccountName: 'test-serviceAccountName' /* optional arguments */)