AccessToken

1 minute readReference

deleteAccessToken

Deletes a access token

Arguments

Argument Name Type Description

serviceAccountName

String

The service account name. (Required)

accessTokenPublicId

String

The access token public id. (Required)

Usage

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

getAccessTokens

Returns access tokens for service account with associated trigger details.

Arguments

Argument Name Type Description

serviceAccountName

String

The service account name. (Required)

filters

Filter array

Filters

firstResult

Integer

Result pagination: the first row to return.

maxResults

Integer

Result pagination: the number of rows to return.

sortKey

String

How to sort the results.

sortOrder

String

Which order to sort in

Usage

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