{ "opencollection": "1.0.0", "info": { "name": "Qovery Account Info Environment Secret API", "version": "1.0.4" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Environment Secret", "type": "folder" }, "items": [ { "info": { "name": "List environment secrets", "type": "http" }, "http": { "method": "GET", "url": "https://api.qovery.com/environment/:environmentId/secret", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "Environment ID" } ] }, "docs": "List environment secrets" }, { "info": { "name": "Add a secret to the environment", "type": "http" }, "http": { "method": "POST", "url": "https://api.qovery.com/environment/:environmentId/secret", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "Environment ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "- Add a secret to the environment.\n - If the secret key already exists, then it will be replaced by the new one.\n - If the secret value points toward an existing secret key, it will be considered as an alias.\n" }, { "info": { "name": "Edit a secret belonging to the environment", "type": "http" }, "http": { "method": "PUT", "url": "https://api.qovery.com/environment/:environmentId/secret/:secretId", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "Environment ID" }, { "name": "secretId", "value": "", "type": "path", "description": "Secret ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "- You can't edit a BUILT_IN secret\n- For an override, you can't edit the key\n- For an alias, you can't edit the value\n- An override can only have a scope lower to the secret it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > APPLICATION)\n" }, { "info": { "name": "Delete a secret from the environment", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.qovery.com/environment/:environmentId/secret/:secretId", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "Environment ID" }, { "name": "secretId", "value": "", "type": "path", "description": "Secret ID" } ] }, "docs": "- To delete a secret you must have the project user permission\n- You can't delete a BUILT_IN secret\n- If you delete a secret having override or alias, the associated override/alias will be deleted as well operationId: deleteEnvironmentSecret\n" }, { "info": { "name": "Create a secret override at the environment level", "type": "http" }, "http": { "method": "POST", "url": "https://api.qovery.com/environment/:environmentId/secret/:secretId/override", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "Environment ID" }, { "name": "secretId", "value": "", "type": "path", "description": "Secret ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "- Allows you to override at environment level a secret that has a higher scope.\n- You only have to specify a value in the request body\n- The system will create a new secret at environment level with the same key as the one corresponding to the secret id in the path\n- The response body will contain the newly created secret\n- Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret\n" }, { "info": { "name": "Create a secret alias at the environment level", "type": "http" }, "http": { "method": "POST", "url": "https://api.qovery.com/environment/:environmentId/secret/:secretId/alias", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "Environment ID" }, { "name": "secretId", "value": "", "type": "path", "description": "Secret ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "- Allows you to add an alias at environment level on an existing secret having higher scope, in order to customize its key.\n- You only have to specify a key in the request body\n- The system will create a new secret at environment level with the same value as the one corresponding to the secret id in the path\n- The response body will contain the newly created secret\n- Information regarding the aliased_secret will be exposed in the \"aliased_secret\" field of the newly created secret\n- You can't cre" } ] } ], "bundled": true }