/policy/configurableservices/importConfigurableService

Mount Point: /apiv1/policy/configurableservices/importConfigurableService

POST

Creates or updates a configurable service based on the file included in the form data. This REST API consumes multi-part form data with a part named "uploadedfile" containing a *.configurableservice file. Example client Java pseudo code: java.io.File configurableServiceFile = ... org.apache.http.entity.mime.MultipartEntityBuilder entityBuilder = org.apache.http.entity.mime.MultipartEntityBuilder.create(); entityBuilder = entityBuilder.addPart("uploadedfile", new org.apache.http.entity.mime.content.FileBody(configurableServiceFile)); String url = "http://:port/apiv1/policy/configurableservices/importConfigurableService"; org.apache.http.client.methods.HttpPost post = new org.apache.http.client.methods.HttpPost(url); post.setEntity(entityBuilder.build()); org.apache.http.client.HttpClient client = new org.apache.http.impl.client.DefaultHttpClient(); org.apache.http.HttpResponse response = client.execute(post); ... This method returns a JSONObject with the status. The status can either be error with an error message, or the uri of the created or updated configurable service. This REST API implements the signature and behaviour necessary for the dojox.form.Uploader widget used in WebUI.

Request Body

element: (custom)

(no documentation provided)

Response Body

element: (custom)

(no documentation provided)