My Oracle Support Banner

Unable To Create UnixMachine Using Weblogic REST API (Doc ID 2423929.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle WebLogic Server - Version 12.2.1.0.0 to 12.2.1.3.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

Unable to create UnixMachine type by using Weblogic REST API

Changes

 [bin]$ curl -v \
> --user weblogic:weblogic1 \
> -H X-Requested-By:MyClient \
> -H Accept:application/json \
> -H Content-Type:application/json \
> -d "{
> name: 'newmachine',type: 'UnixMachine'
> }" \
> -X POST
@ http://host.us.oracle.com:port/management/weblogic/latest/edit/machines
---------------------------------------------
when creating a Machine with type "UnixMachine" from Admin Console, and then checking attributes using REST call, we see that the type is "UnixMachine"

But when we create it using REST call (as described below), then the type always is "Machine".

It is possible to create machines of type "UnixMachine" in WebLogic, but only from the AdminConsole (and also probably with WLST command "createUnixMachine"). The only problem is that it is some how ignored by the REST API.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.