Interaction with OpsCode Chef HTTP vCenter Orchestrator v5.1 Update 1 REST API

Interaction with OpsCode Chef HTTP vCenter Orchestrator v5.1 Update 1 REST API

I need to be able to use the HTTP REST APIs to run commands on the server of leader during the commissioning and decommissioning of virtual machines.

Chef Server API Documents

This requires the ability to use the SHA1 algorithm and also the Base64 algorithm in vCenter Orchestrator v5.1 update 1 to create the header of hashes.

Method: HTTP_METHOD

Axes of path: HASHED_PATH

X Ops-content-Hash: HASHED_BODY

X Ops - Timestamp:TIME

X Ops - UserId:USERID

where:

  • HTTP_METHOD is the method used in the API request (GET, POST, and so on)
  • HASHED_PATH is the path of the query (/name_of_endpoint for the server open source) and/organizations/organization_name/name_of_endpoint took the head or private Chef. The HASHED_PATH must be hashed with SHA1 and encoded using Base64 and should not have repeated oblique (/) or end with a bar slash (unless the path is /).
  • The private key must be an RSA key in the SSL .pem file format. This signature is then divided into strings (of not more than 60 characters per line) and placed in the header.

The server of crypts that header and ensures its content corresponds to the content of unencrypted headers contained in the request. The timestamp of the message is checked to ensure that the request has been received within a reasonable time. An approach to generate the signed headers is to use the authentication mixlib, which is a header based on a class signature of authentication object similar to one used by the Chief customer.

Any help with this would be greatly appreciated.

Perfect timing!  I was just finalized this week the docs and test of a package for the Chef Server API:

CHIEF Server Workflows

Let me know how it works for you!  Of more if there are other points of termination or I missed scenarios, they should be easy to add.

Tags: VMware

Similar Questions

  • Orchestrator 7 do not interact with vCenter

    Hello

    I was sent 7 Orchestrator, "Authentication provider" seems to be set up, so I can connect to the client with authentication are SINGLE base.

    chrome_2016-03-01_14-34-04.png

    Host address: myvcenterFQDN

    URL: myvcenterFQDN/cm

    The admin group: mySSOdomain\Administrators

    By default the tenant: mySSOdomain

    If I go to the workflow, then try to run "Create simple virtual machine."

    javaw_2016-03-01_14-47-15.png

    I see nothing in the entry "vCenter Server:

    javaw_2016-03-01_14-47-02.png

    Looks like needs permission on vCenter Orchestrator.

    Should I change something?

    Kind regards

    Fred

    To view the server vCenter you need to add to vRO to help add a vCenter Server Instance workflow found in:

    Library-vCenter-> Configuration >-> add a vCenter Server Instance

    Kind regards

    Mike

  • vCenter Orchestrator HTTP API: POST request error 400 1032

    I'm trying to start a workflow via a POST request to the vCenter Orchestrator API. When I run the same workflow with a GET request, there is no problem and I get the following result in the localhost_access_log.current_date.txt:

    [src_ip_address] - [13/Oct / 2015:04:46:00 + 0000] "GET vco/api/flux/af83cf34-6a00-45b5-946e-0d44ece508bb/exécutions/HTTP/1.1" 200 272

    However, when I run a POST with the following parameters:

    restMethod: POST

    restEndpoint: https://[dest_ip_address]:8281

    restPath: / vco/api/workflows/af83cf34 - a 6, 00-45 b 5 - 946e - 0d44ece508bb/executions /

    user: [username]

    content: {"parameters": [{'name': 'name1', 'type': 'string', 'value': {'chain': {"value": "Value1"}}, 'field': 'local'}]}

    contentType: application/json

    accept: application/json

    I have the following error in localhost_access_log.current_date.txt:

    [src_ip_address] - [13/Oct / 2015:03:53:39 + 0000] "POST vco/api/flux/af83cf34-6a00-45b5-946e-0d44ece508bb/exécutions/HTTP/1.1" 400 1032

    And the output on the client side:

    {Success = no, ResponseHeader = {null = HTTP/1.1 400 Bad Request, Server = Apache-Coyote/1.1 Content-Length = 1032, Content-Language = EN, connection = closed, Date-Wed, 13 Oct 2015 Message = Bad Request, ReasonPhrase is Bad Request, StatusCode = 400}}

    I'm in vCenter Orchestrator 5.5. There is no output to the server.log file. I didn't have a chance, researching the 400 1032' error number. [dest_ip_address] is HTTPS. Can anyone help clarify this?

    The command line below seems to work for me using the cmd terminal Windows:

    curl u - ikv name h ' Accept: application/json ' h ' Content-Type: application/json "d" {\"parameters\":[{\"value\":{\"string\":{\"value\":\"value1\"}},\"type\":\"string\",\"name\":\"name1\",\"scope\":\"local\" "}]}" x POST https://ip_address:8281/vco/api / stream/af83cf34-6a00-45b5-946e-0d44ece508bb/executions

    Note that the double quotes inside the body of the request are preceded by the backslash character.

  • Connect with vCenter Orchestrator 7

    Can not find, where I can connect the camera orchestrator 7.0 can connect to the Server vcenter. There is no documentation available for this version

    can anyone help? Thank you very much

    Connect vRO 7 to vCenter, you can use a workflow now, check under \Library\vCenter\Configuration

    - Add an instance of vCenter Server <--> this workflow implements vRO to allow vRO to things with vCenter.

    - Registry vCenter Orchestrator as a vCenter Server extension <-> this workflow shows vCenter Orchestrator is available to run workflows. It is important for vSphere integration Web Client for Orchestrator. Note: vRO and vCenter MUST use the same source SSO and the user logged on to the Web Client vSphere must be a member of the Administrators group of the vRO you specified for Orchestrator.

  • vCenter Orchestrator - list all VM that begin with "S".


    Hello

    I would list all my VM that begin with "S" in vCenter Orchestrator but, I can't find any script to do this.

    Maybe someone already do this.

    I would do this:

    Lists all the vm.name start with "S"

    But I do not know the syntax of script!

    After, I have the list, I would delete all the vm which differ from Vmname-current date.

    Thank you in advance

    Good day

    Chris

    Hello

    I found how to list all the VM that begin with "S", here's the script:

    VM. Name.Substring (0.1) == "S".

    Good day

    Best regards

  • Get-view FileManager = vCenter only? How to interact with the data without her store?

    Hello

    I am trying to create a folder directly on a data store and copy a vmx file.  What I've read I need to use Get-file manager mode, but this seems to be only available on vCenter.

    Is there anyway to interact with the data using PowerCLI store when it connects directly to a box of ESX?

    Thanks for your help,

    KeV

    The shortcut notation

    Get-View FileManager
    

    is not available when connected to an ESX host.

    But you can get the object as follows

    Get-View (Get-View ServiceInstance).Content.FileManager
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Internal error trying to add vCenter Orchestrator Endpoint

    Hi team,

    I am trying to configure vCAC 6.0 using the inbult Orchestrator 5.5.1 However when I try to add the vCO by accessing Home > Administration > Services Advacned > endpoints and click on the + adds vCenter Orchestrator plug-ins such as endpoints so that you can create service plans with Advanced Services Designer and publish the workflow as catalog items. I get the following error:

    Internal error

    An internal error has occurred. If the problem persists, contact your system administrator.
    When you contact your system administrator, use this reference: d6c92026

    I tried to connect to vCO by using the following accounts, but this has not helped to solve the problem:

    [email protected]

    [email protected]

    It seems to me that the error is always flagged only when I try to run the task above. Can someone please help me solve this problem?

    Thank you

    Arun-

    https://Twitter.com/arunpande

    http://highoncloud.blogspot.in/

    Virtualization VMware on NetApp

    8281 is the correct port. Probably, you must use Basic authentication and insert the credentials of the user that you use to sign in to the vCO client.

  • How to create Self Service Portal in Vcenter Orchestrator? times

    Dear team,

    I want to create the Self Service Portal to reset user password in Active Directory in Vcenter Orchestartor. Could someone guide me for this

    Note: I installed Vmware Vcenter Orchestrator 5.5.


    Kind regards

    Odile M

    TechM

    I hope it would be only certain types of admins/helpdesk do PW reset because you must connect to the WebView in order to run the workflow... in any case, you can follow this tutorial for a Webview based in vCO:

    http://www.vcoteam.info/articles/learn-VCO/107-create-a-simple-VCO-self-service-VM-provisioning-Portal-part-3.html

    Regarding the other prerequisites:

    vCO must have the ad plugin installed and configured to use SSL when communicating your AD environment. It is a requirement for users created with passwords and resetting passwords.

    When you get to the step of the tutorial for mapping a workflow, you'll want to use the workflow to "Change password". This is a workflow of library Active Directory that are available after the installation of the plugin AD and the vCenter Orchestrator Server service restarts.

  • How to download Vcenter Orchestrator?

    Hi team,

    I want to download the Vcenter orchestrator standalone application with the latest version. Please somebody guide me or provide good link for download Vcenter orchestrator standalone application (not device Orchestrator) to be installed on the Windows Machine in my test environment.

    NOTE: I need stand-alone Orchestrator (not the Orchestrator device) application installation files

    Kind regards

    Odile M

    Automation analyst

    TechM

    Hello

    refer to the documentation and the download links for the plugins here

    VMware vCenter Orchestrator Plug - Ins Documentation

    as well as our exchange of solution (for 3rd party integrations)

    https://solutionexchange.VMware.com/store/category_groups/cloud-management?category=cloud-automation

    See you soon,.

    Joerg

  • Introduction to Vmware Vcenter Orchestrator

    Dear team.

    I m starting to Vcenter Orchestrator. I just want to know the details on Vcenter orchestrator information.

    1. the list of tasks can be automated in Vcenter Orchestrator.

    2. the question whether she can be able to automate certain tasks in linux system?

    3. what operating system, it will support?

    4. only it can possible to automate the workflow for the only Vmware application.

    Please help me on this question.

    Kind regards

    Odile M

    1. There are hundreds of workflows available for vCenter vCenter plug-in turned in vCO. If there is not a workflow that does what you need, then you can probably write your own or use some of these workflow library in combination to do what you need.
    2. Yes, you can use the workflow operations or the plug-in of SSH to connect to the guest Linux OS and run scripts. Customization of Linux is also supported for the operation as Clone/customize, and material of the add/edit like any other virtual computer.
    3. See the documentation of official response please. vCO Server can run under Linux (vCO device) or 64-bit Windows operating system. VCO Client can be run on Linux, Windows 64 - bit or 32 - bit, and OSX. As has been pointed out by Techstarts, are taken care of according to VMware (vCenter) guest operating system.
    4. There are many plug-ins available for vCO, allowing it to automate many different systems. See http://solutionexchange.vmware.com and click on Orchestrator Plug-ins to see what is available. Those who come to add plug-ins provided with vCO.
  • Change the default Web pages display in vCenter Orchestrator

    , I've been dev tests vCenter Orchestrator for BYU and have aired on a question. Recently, I ran across a tutorial posted on the website of the vCO team (http://www.vcoteam.info/learn-vco/create-a-simple-vco-self-service-vm-provisioning-portal-part-2.html). I also have a display of Web pages can I customize myself (because you can't do this at weboperator).

    The problem that I am running is the following. I've traveled MY CUSTOM web display to run a workflow (in this case to set up a virtual machine), and he asks to my e-mail to e-mail account. By clicking on review and approve the application, it automatically attempts to call the display of pages web weboperator (that I don't have published and will not be published).

    What I want to know is how have Orchestrator call MY display of webpages of these interactions, as I intend to do some customization on my display of web pages.

    Thank you!

    Part 3 of our series was published today and walks you step by step through the process.

    Visit me on http://www.vcoteam.info for vCenter Orchestrator tips and tutorials

  • Interact with a CGI web page

    Greetings OR Forums,

    I am developing a telescope pointing control system that needs data ephemerides generated from a Jet Propulsion Laboratory web site:

    http://SSD.jpl.NASA.gov/horizons.cgi

    The main interface of their horizons system is via Telnet which is precarious and is no longer supported by LabVIEW.  I was hoping that someone could advise me on how to start using LabVIEW to interact with the web page of cgi based at the above address.  If I can do it, I can retrieve the necessary ephemeris data and analyze inside LabVIEW using the commands of the base string.

    Is there a kit of basic tools that you can point me to interact with web pages or any code sample?

    Thank you
    Scott

    High Altitude Observatory

    Boulder, CO

    Use screws of HTTP Client:

    VI GET is the standard demand 'give me this web page' - give it the URL of your ephemeris data session and the release of 'body' will give you the web page content - if you use the raw text of output, then this should make analysis easier chain (without tags html etc..).

    (In addition, you can use Telnet in LabVIEW, it is not a library group for her more - you should be able to use the TCP screws to roll and you can also if interface with other libraries/applications Telnet for example PuTTy... it might even be something in .NET)

  • problem caused this blocking the program interact with Windows

    I got this message "a problem caused this program blocking interact with Windows" when I m access share foder in Windows xp

    Hello

    ·         You have made no changes to the computer until the problem occurred?

    Method 1:

    I suggest you to check for the problem in safe mode, follow the link below.

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Method 2:

    You can also put your computer to boot and find the faulty program that is causing the problem by following the link below.

    http://support.Microsoft.com/kb/929135

    Note: Make sure you put the computer in normal mode by following step 7 after that solve you the problem.

    Method 3:

    You can also check the observer event log to check which program is causing the problem. Check in the event viewer, follow the link below.

    http://Windows.Microsoft.com/en-us/Windows-Vista/open-Event-Viewer

  • OS 10.3 / WebView: no interaction with the Google Maps Javascript API

    Hello

    Google Maps Javascript API no longer works correctly using the Web on OS 10.3.  On all the operating system previous releases everything worked perfectly fine in WebView but on OS 10.3 even if the plan (or view, or anything else provided by Google APIs) is displayed correctly, there is no interaction whatsoever with it - no response to taps, none is panoramic, no zoom, etc.

    I don't speak of the 10.3.0.698 Simulator - I do not have access to the true OS 10.3 device.

    Even simple examples of Google Maps doesn't work, try for example:

    import bb.cascades 1.2
    
    Page {
        Container {
            preferredHeight: 720
            preferredWidth: 720
            WebView {
                preferredHeight: 720
                preferredWidth: 720
    
    url: "https://google-developers.appspot.com/maps/documentation/javascript/examples/full/marker-simple"
            }
        }
    }
    

    The map appears, but there is absolutely no interaction with it - just a STATIC content.  On OS 10.2.xxxx, it works perfectly fine...

    P.S. If you open the same example URL directly in the web browser on OS 10.3 everything works well - responds to taps, she can be zoomed, panned, etc..    So, it's apparently a problem with user agent (which is probably the same web browser both webview).  Change the user agent in WebView to e.g. Z10 user agent doesn't help, either.

    Can anyone help?

    Your sample application does not seem to suffer the original bug, I thought. That bug could cause a WebView with no ancestor ScrollView would get too small window Visual and tactile input would be anchored to the Visual display window very small. If you want to learn more on this topic, see a tale of two windows - part for the discussion of Visual and updated display on the page. Perhaps your sample application it is OK because it specifies a preferredHeight for Web display, which can affect the used Visual display window.

    To be more precise, on a real device of passport BlackBerry running OS versions 10.3.0.1052 and 10.3.0.1154, the sample you provided responds perfectly to press ENTER.

    However, on the Simulator on OS 10.3.0.698, I can confirm input touchscreen does not work. Therefore a separate bug, which seems to be specific to the Simulator.

    I think you can be assured that end users will still be able to use your app (s) on a real passport of BlackBerry device, but it is unfortunate that it does not work on the Simulator.

  • BB10 - interaction with a childwindow

    Hi all

    I have a child with interaction with a window problem.

    I developed an application with phonegap (2.7.0) and I'm trying to make a paypal payment in my application.

    This requires to open a child window to display the connection at Paypal and after checking paypal redirect me to what I want.

    My problem is that I have no way of knowing if the transaction is completed and when to close the window.
    Ideally, I would like to read the url inside the childwindow to act accordingly, but once I opened my window, I can't do anything in it.

    So here is my appeal:

    childwindow = window.open('https://www.sandbox.paypal.com/webscr?cmd=_express-checkout-mobile&token='+token, '_blank');
    

    My childwindow object contains managers of loadstart, loadstop and output.

    I suspect that the inAppBrowser of phonegap is just useless and prevents me from using the childbrowser good webworks.

    Anyone had this problem before?

    Thank you

    Hi Erik, thanks for your response.

    I finally solved my problem: the new phonegap feature inAppBrowser.

    Since Cordoba 2.3.0 introduced a childBrowser based on one of the previous plugins. Problem is that if it works pretty well on Android and iOS, they have not spent time at all on Blackberry, I would say. Their instance replace the webworks one, but on this one, you cannot run any code in the child window, so no way of knowing the location currently.

    I disassembled this inAppBrowser in the Cordoba code relief on the webworks on blackberry and everything is okay now: finally access the location.href and use a setInterval to close the window after redirect as suggested by Erik.

    Hope this will help people to this question too.

Maybe you are looking for