Compute

compute

Operations that call cloud functions

invokeNimbusCloudFn

Code samples

import requests
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'
}

r = requests.post('http://localhost:8080/api/v1/cloudfn', headers = headers)

print(r.json())

POST /cloudfn

Invokes a cloud function

Body parameter

{
  "functionName": "string",
  "moduleName": "string",
  "argumentValues": {
    "property1": "string",
    "property2": "string"
  },
  "argumentTypes": {
    "property1": "string",
    "property2": "string"
  },
  "returnType": "string"
}

Parameters

Name
In
Type
Required
Description

body

body

InvokeCloudFnRequestBody

false

Invokes a cloud function

Example responses

200 Response

{
  "result": {}
}

Responses

Status
Meaning
Description
Schema

200

Successful operation

InvokeCloudFnResponseBody

400

Invaid cloud function

None

404

User not authorized to invoke function

None

500

Error invoking function

None

This operation does not require authentication

Last updated