ActorEnvVarCollectionClient
Hierarchy
- ResourceCollectionClient
- ActorEnvVarCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
create
Creates a new environment variable for this Actor version.
Parameters
actorEnvVar: ActorEnvironmentVariable
The environment variable data.
Returns Promise<ActorEnvironmentVariable>
The created environment variable object.
list
Lists all environment variables of this Actor version.
Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched items in a single API call is limited.
const paginatedList = await client.list(options);Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are retrieved.
for await (const singleItem of client.list(options)) {...}Parameters
options: ActorEnvVarCollectionListOptions = {}
Pagination options.
Returns Promise<ActorEnvVarListResult> & AsyncIterable<ActorEnvironmentVariable, any, any>
A paginated iterator of environment variables.
Client for managing the collection of environment variables for an Actor version.
Environment variables are key-value pairs that are available to the Actor during execution. This client provides methods to list and create environment variables.
https://docs.apify.com/platform/actors/development/actor-definition/environment-variables