[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: OpenShift -Java _Client

Hi Shabna

sorry for the late response, I was PTO last week.

On 07/02/2014 09:13 AM, Shabna M wrote:

Is there a way to set environment variable to an Open Shift Cartridge using Open Shift Java Client or any other way apart from rhc set env ?

yes you can using the openshift-java-client. There are several methods to list, add, remove env variables in a given application:

public Map<String, IEnvironmentVariable> getEnvironmentVariables() throws OpenShiftSSHOperationException
public String getEnvironmentVariableValue(String name)
public IEnvironmentVariable addEnvironmentVariable(String name, String value) throws OpenShiftException public void removeEnvironmentVariable(String name) throws OpenShiftException;

Is this what you're looking for?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]