invoke_webservice: Call a web service with the provided input

Description Usage Arguments Details Value

View source: R/webservice.R

Description

Invoke the web service with the provided input and to receive predictions from the deployed model. The structure of the provided input data needs to match what the service's scoring script and model expect. See the "Details" section of inference_config().

Usage

1
invoke_webservice(webservice, input_data)

Arguments

webservice

The LocalWebservice, AciWebservice, or AksWebservice object.

input_data

The input data to invoke the web service with. This is the data your model expects as an input to run predictions.

Details

Instead of invoking the web service using invoke_webservice(), you can also consume the web service using the service's REST API. If you've enabled key-based authentication for your service, you will need to provide a service key as a token in your request header (see get_webservice_keys()). If you've enabled token-based authentication, you will need to provide an JWT token as a bearer token in your request header (see get_webservice_token()).

To get the REST API address for the service's scoring endpoint, you can access the following property from the Webservice object: service$scoring_uri

Value

A named list of the result of calling the web service. This will return the predictions run from your model.


azuremlsdk documentation built on Oct. 23, 2020, 8:22 p.m.