About Darrell

My name is Darrell Schrag, and I work for IBM as a cloud advisor as of 04/2015.  As a member of this team, I am planning on sharing my thoughts and insights about Cloud and DevOps in this blog.  I hope to provide my readers with some valuable information, as well as links to where the best information on this subject exist.  Keep watching this blog for more content in the coming weeks and months.

Advertisements

13 thoughts on “About Darrell

  1. Hi Darrell,

    I have seen your blog related to uDeploy REST API and on board application. It was very informative and useful.

    I am currently working on to integrate uDeploy with 3rd party application through REST API. The scenario is to invoke REST API from uDeploy to talk with 3rd party application.

    I haven’t seen any plugin available in uDeploy to invoke 3rd party application REST API. Please suggest me if there is any alternate way for this.

    Thank you for your help in advance.

    Best Regards, Manju

    • Manju,
      All of the UrbanCode plugins that execute UrbanCode actions do exactly this. Check out any of the IBM UrbanCode Deploy … plugins. The way they do this is via Java. If you look in the lib directory of one of these plugins, you will see a file called uDeployRestClient.jar. This jar file implements a bunch of calls to UrbanCode Deploy’s REST API. The Groovy script then calls one of the methods to execute the REST call.

      I would recommend you do this the same way. Write some java code that takes care of all of the REST call details (authentication, JSON payloads, etc.) and then simply call it from a Groovy script.

  2. Hi Darrell,

    I have found a uDeploy plugin for this to invoke REST calls.
    Plugin name : Web Utilities->Send HTTP

    But it always end up with error code 401 (Response returned status: 401 Unauthorized), even though I have mentioned correct username and password. Have you ever tried this plugin and found working?

    I request you to please take a look on this plugin if you find some time in your busy schedule. Thanks for your help again.

    I just tried some uDeploy REST URL to test this plugin, below is the error log.
    **********************************************************************************************
    Authenticating with basic authentication.
    Calling URL: https://udeploy.com:8444/rest/deploy/workflow/currentActivity
    Method: GET
    25-Nov-2013 08:27:25 groovyx.net.http.HTTPBuilder parseResponse
    WARNING: Could not parse content-type: Response does not have a content-type header

    Response returned status: 401 Unauthorized
    Caught: java.lang.IllegalArgumentException: Response does not have a content-type header
    java.lang.IllegalArgumentException: Response does not have a content-type header
    at groovyx.net.http.ParserRegistry.getContentType(ParserRegistry.java:169)
    at groovyx.net.http.HttpResponseDecorator.getContentType(HttpResponseDecorator.java:97)
    at groovyx.net.http.HttpResponseDecorator$getContentType.call(Unknown Source)
    at sendHttpCall.defaultResponse(sendHttpCall.groovy:93)
    at sendHttpCall$_run_closure2.doCall(sendHttpCall.groovy:110)
    at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:490)
    at groovyx.net.http.RESTClient.get(RESTClient.java:119)
    at groovyx.net.http.RESTClient$get.call(Unknown Source)
    at sendHttpCall.run(sendHttpCall.groovy:144)
    ************************************************************************************************

    Many Thanks, Manju

    • Wow, I hadn’t seen that one before. What do you know. I can’t say for sure what the problem would be. I typically first try and make sure my rest call is correct using some type of generic REST client. I use the open source Java REST client at wiztools.org. It has worked for me in the past and allows you to set credentials and also pass JSON as a rest payload.
      Sorry, that doesn’t help much but it is hard to say if the problem is the plugin or something else.

  3. Actually I had tried some REST calls using Google chrome REST API, it is working fine in chrome REST API plugin but the same URL is not working in uDeploy plugin and throwing error as “Unauthorized”. so I thought the problem would be in the uDeploy plugin.

  4. Hi Darrel,

    Thank for your blog, is of much help for me, i use UCD and i will want use notification via mail, you have some tips or document?

    • Liora,
      No I don’t believe there is a way to create a component template via the REST API. However, you can create a template via a plugin? Plugins have a way to include component templates. So using the plugin concept would be a good way to introduce component templates. And since you can install plugins remotely using the API you could accomplish what you want.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s