Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Functions → Get Variable
AI-generatedOverview
This node interacts with the Appwrite API to manage functions and their environment variables. Specifically, the 'Get Variable' operation retrieves a specific environment variable associated with a given function ID. This is useful for scenarios where you need to programmatically access configuration or secret values stored as environment variables within Appwrite functions, such as fetching API keys or runtime settings for serverless functions.
Use Case Examples
- Retrieve an environment variable by its ID for a specific function to use its value in subsequent workflow steps.
- Fetch configuration variables from Appwrite functions to dynamically adjust workflow behavior based on environment settings.
Properties
| Name | Meaning |
|---|---|
| Function ID | The ID of the function from which to get the environment variable. |
| Variable ID | The ID of the environment variable to retrieve from the specified function. |
Output
JSON
variableId- The ID of the retrieved environment variable.functionId- The ID of the function associated with the environment variable.value- The value of the retrieved environment variable.
Dependencies
- Appwrite API key credential for authentication
Troubleshooting
- Ensure the provided Function ID and Variable ID are correct and exist in the Appwrite project.
- Check that the API key credential has sufficient permissions to access functions and their environment variables.
- Common errors include authentication failures due to invalid API keys, or 'Unknown resource' errors if the resource parameter is incorrect.
Links
- Appwrite Functions Environment Variables - Official documentation on managing environment variables in Appwrite functions.
- Appwrite Functions - General documentation on Appwrite serverless functions.