Use a Python Service Run
Invoke the deployed endpoint with run.invoke(). The method returns a requests.Response; the service URL is available from run.status.service["url"].
response = run.invoke(json={"some-function-parameter": value})
service_url = run.status.service["url"]
invoke
Invoke run service endpoint. It uses the service URL from the run status if no URL is specified. The method defaults to "POST" if data or json is provided in kwargs, otherwise it defaults to "GET". The function returns a requests.Response object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method
|
str
|
Method of the request (e.g., "GET", "POST"). |
'POST'
|
url
|
str
|
URL to invoke. If specified, it must start with the service URL (http:// or https:// prefixes are required and stripped before comparison). |
None
|
**kwargs
|
dict
|
Keyword arguments to pass to the request. |
{}
|
Returns:
| Type | Description |
|---|---|
Response
|
Response from service. |