AccessToken

1 minute readReference

deleteAccessToken

Deletes an 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 a service account with associated trigger details.

Arguments

Argument Name Type Description

serviceAccountName

String

The service account name. (Required)

filters

Filter array

A list of zero or more filter criteria definitions used to define objects to find.

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

Specifies the order to sort the results.

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 */)