Class CodeEngineExamples

java.lang.Object
com.ibm.cloud.code_engine.code_engine.v2.CodeEngineExamples

public class CodeEngineExamples extends Object
This class contains examples of how to use the Code Engine service. The following configuration properties are assumed to be defined: CODE_ENGINE_URL=<service base url> CODE_ENGINE_AUTH_TYPE=iam CODE_ENGINE_APIKEY=<IAM apikey> CODE_ENGINE_AUTH_URL=<IAM token service base URL - omit this if using the production environment> These configuration properties can be exported as environment variables, or stored in a configuration file and then: export IBM_CREDENTIALS_FILE=<name of configuration file>
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      The main() function invokes operations of the Code Engine service.
      Parameters:
      args - command-line arguments
      Throws:
      Exception - an error occurred