@@ -7,8 +7,10 @@ Method | HTTP request | Description
77[ ** get_node_js_build_logs_v1** ] ( HostingNodeJSApi.md#get_node_js_build_logs_v1 ) | ** GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs | Get NodeJS build logs
88[ ** get_node_js_build_settings_from_archive_v1** ] ( HostingNodeJSApi.md#get_node_js_build_settings_from_archive_v1 ) | ** GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive | Get Node.js build settings from archive
99[ ** list_node_js_builds_v1** ] ( HostingNodeJSApi.md#list_node_js_builds_v1 ) | ** GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | List NodeJS builds
10+ [ ** list_node_js_environment_variables_v1** ] ( HostingNodeJSApi.md#list_node_js_environment_variables_v1 ) | ** GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env | List Node.js environment variables
1011[ ** list_node_js_vulnerabilities_v1** ] ( HostingNodeJSApi.md#list_node_js_vulnerabilities_v1 ) | ** GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities | List Node.js vulnerabilities
1112[ ** patch_node_js_vulnerabilities_v1** ] ( HostingNodeJSApi.md#patch_node_js_vulnerabilities_v1 ) | ** POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/vulnerabilities/patch | Patch Node.js vulnerabilities
13+ [ ** replace_node_js_environment_variables_v1** ] ( HostingNodeJSApi.md#replace_node_js_environment_variables_v1 ) | ** PUT** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env | Replace Node.js environment variables
1214[ ** restart_node_js_application_v1** ] ( HostingNodeJSApi.md#restart_node_js_application_v1 ) | ** POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restart | Restart Node.js application
1315[ ** start_node_js_build_v1** ] ( HostingNodeJSApi.md#start_node_js_build_v1 ) | ** POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | Start Node.js build
1416
@@ -259,6 +261,85 @@ Name | Type | Description | Notes
259261
260262[[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
261263
264+ # ** list_node_js_environment_variables_v1**
265+ > List[ HostingV1NodeJsEnvVarResource] list_node_js_environment_variables_v1(username, domain)
266+
267+ List Node.js environment variables
268+
269+ Lists the Node.js environment variables currently set for the website. Values are always
270+ masked as ` ******** ` and cannot be read back through this API. Use this endpoint to see
271+ which keys are configured or to verify a change, not to read values.
272+
273+ To change variables, use the ` Replace Node.js environment variables ` endpoint. It replaces
274+ the whole set, so never copy the masked values from this response into that request; send
275+ the full desired set with real values taken from the project ` .env ` file or the user
276+ prompt instead.
277+
278+ ### Example
279+
280+ * Bearer Authentication (apiToken):
281+
282+ ``` python
283+ import hostinger_api
284+ from hostinger_api.models.hosting_v1_node_js_env_var_resource import HostingV1NodeJsEnvVarResource
285+ from hostinger_api.rest import ApiException
286+ from pprint import pprint
287+
288+
289+ # Configure Bearer authorization: apiToken
290+ configuration = hostinger_api.Configuration(
291+ access_token = os.environ[" BEARER_TOKEN" ]
292+ )
293+
294+ # Enter a context with an instance of the API client
295+ with hostinger_api.ApiClient(configuration) as api_client:
296+ # Create an instance of the API class
297+ api_instance = hostinger_api.HostingNodeJSApi(api_client)
298+ username = ' u123456789' # str |
299+ domain = ' mydomain.tld' # str | Domain name
300+
301+ try :
302+ # List Node.js environment variables
303+ api_response = api_instance.list_node_js_environment_variables_v1(username, domain)
304+ print (" The response of HostingNodeJSApi->list_node_js_environment_variables_v1:\n " )
305+ pprint(api_response)
306+ except Exception as e:
307+ print (" Exception when calling HostingNodeJSApi->list_node_js_environment_variables_v1: %s \n " % e)
308+ ```
309+
310+
311+
312+ ### Parameters
313+
314+
315+ Name | Type | Description | Notes
316+ ------------- | ------------- | ------------- | -------------
317+ ** username** | ** str** | |
318+ ** domain** | ** str** | Domain name |
319+
320+ ### Return type
321+
322+ [ ** List[ HostingV1NodeJsEnvVarResource] ** ] ( HostingV1NodeJsEnvVarResource.md )
323+
324+ ### Authorization
325+
326+ [ apiToken] ( ../README.md#apiToken )
327+
328+ ### HTTP request headers
329+
330+ - ** Content-Type** : Not defined
331+ - ** Accept** : application/json
332+
333+ ### HTTP response details
334+
335+ | Status code | Description | Response headers |
336+ | -------------| -------------| ------------------|
337+ ** 200** | Success response | - |
338+ ** 401** | Unauthenticated response | - |
339+ ** 500** | Error response | - |
340+
341+ [[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
342+
262343# ** list_node_js_vulnerabilities_v1**
263344> List[ HostingV1NodeJsVulnerabilityResource] list_node_js_vulnerabilities_v1(username, domain, severities=severities)
264345
@@ -438,6 +519,95 @@ Name | Type | Description | Notes
438519
439520[[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
440521
522+ # ** replace_node_js_environment_variables_v1**
523+ > CommonSuccessEmptyResource replace_node_js_environment_variables_v1(username, domain, hosting_v1_node_js_set_build_env_vars_request)
524+
525+ Replace Node.js environment variables
526+
527+ Replaces the website's Node.js environment variables with the ones provided. This is a
528+ full replace: any variable not in the request is deleted, and sending an empty ` env_vars `
529+ array deletes every variable. Saving writes the values and restarts the running Node.js
530+ process.
531+
532+ A restart is enough for apps that read environment variables at process start, such as
533+ Express or NestJS. It is not enough for frameworks that bake variables into the build.
534+ Next.js standalone is one of those: build-time values (including ` NEXT_PUBLIC_* ` ) need a
535+ fresh build. After this call, use the ` Start Node.js build ` endpoint so those apps
536+ pick up the new values.
537+
538+ The ` List Node.js environment variables ` endpoint returns masked values (` ******** ` ), so
539+ never copy values from it into this request. Always send the full desired set with real
540+ values taken from the project ` .env ` file or the user prompt.
541+
542+ ### Example
543+
544+ * Bearer Authentication (apiToken):
545+
546+ ``` python
547+ import hostinger_api
548+ from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
549+ from hostinger_api.models.hosting_v1_node_js_set_build_env_vars_request import HostingV1NodeJsSetBuildEnvVarsRequest
550+ from hostinger_api.rest import ApiException
551+ from pprint import pprint
552+
553+
554+ # Configure Bearer authorization: apiToken
555+ configuration = hostinger_api.Configuration(
556+ access_token = os.environ[" BEARER_TOKEN" ]
557+ )
558+
559+ # Enter a context with an instance of the API client
560+ with hostinger_api.ApiClient(configuration) as api_client:
561+ # Create an instance of the API class
562+ api_instance = hostinger_api.HostingNodeJSApi(api_client)
563+ username = ' u123456789' # str |
564+ domain = ' mydomain.tld' # str | Domain name
565+ hosting_v1_node_js_set_build_env_vars_request = hostinger_api.HostingV1NodeJsSetBuildEnvVarsRequest() # HostingV1NodeJsSetBuildEnvVarsRequest |
566+
567+ try :
568+ # Replace Node.js environment variables
569+ api_response = api_instance.replace_node_js_environment_variables_v1(username, domain, hosting_v1_node_js_set_build_env_vars_request)
570+ print (" The response of HostingNodeJSApi->replace_node_js_environment_variables_v1:\n " )
571+ pprint(api_response)
572+ except Exception as e:
573+ print (" Exception when calling HostingNodeJSApi->replace_node_js_environment_variables_v1: %s \n " % e)
574+ ```
575+
576+
577+
578+ ### Parameters
579+
580+
581+ Name | Type | Description | Notes
582+ ------------- | ------------- | ------------- | -------------
583+ ** username** | ** str** | |
584+ ** domain** | ** str** | Domain name |
585+ ** hosting_v1_node_js_set_build_env_vars_request** | [ ** HostingV1NodeJsSetBuildEnvVarsRequest** ] ( HostingV1NodeJsSetBuildEnvVarsRequest.md ) | |
586+
587+ ### Return type
588+
589+ [ ** CommonSuccessEmptyResource** ] ( CommonSuccessEmptyResource.md )
590+
591+ ### Authorization
592+
593+ [ apiToken] ( ../README.md#apiToken )
594+
595+ ### HTTP request headers
596+
597+ - ** Content-Type** : application/json
598+ - ** Accept** : application/json
599+
600+ ### HTTP response details
601+
602+ | Status code | Description | Response headers |
603+ | -------------| -------------| ------------------|
604+ ** 200** | Success empty response | - |
605+ ** 422** | Validation error response | - |
606+ ** 401** | Unauthenticated response | - |
607+ ** 500** | Error response | - |
608+
609+ [[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
610+
441611# ** restart_node_js_application_v1**
442612> CommonSuccessEmptyResource restart_node_js_application_v1(username, domain)
443613
0 commit comments