https://controller.simplecloud.app. The controller encrypts each value with AES-256-GCM before storing it and decrypts it again when you list the variables.
Environment variables differ from Secrets. A secret is encrypted in your browser and can never be read back through the API. An environment variable is encrypted by the controller, so authorized API clients can read and edit its plaintext value at any time.
Prerequisites
Every request needs these two headers:X-Network-ID: your network ID.X-Network-Credential: a network password or JWT.
environment_variables permission resource: read for listing, write for creating and updating, and delete for deleting.
Create an environment variable
Send aPOST request with the key and the plaintext value:
201 Created:
409 Conflict. Use PUT to change an existing value instead.
List environment variables
Send aGET request to read every variable in the network:
Update an environment variable
Send aPUT request with the key and the new value:
200 OK with the same fields as the create response. Updating a key that does not exist returns 404 Not Found.
Delete an environment variable
Send aDELETE request with the key as a query parameter:
200 OK:
404 Not Found. Deleting the network also deletes all of its environment variables.
Keys and values
Keys and values have these limits. A request that violates them returns400 Bad Request:
- A key starts with a letter or underscore and contains up to 64 letters, digits, or underscores. It must match
^[A-Za-z_][A-Za-z0-9_]{0,63}$. - A value is required and can contain up to 16 KiB (16384 bytes).
- Each key exists once per network. Keys are case-sensitive.