> For the complete documentation index, see [llms.txt](https://aegion-dynamic.gitbook.io/nimbus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aegion-dynamic.gitbook.io/nimbus/server-side-development/core-api/compute.md).

# Compute

## compute <a href="#nimbus-data-fabric-openapi-3-0-compute" id="nimbus-data-fabric-openapi-3-0-compute"></a>

Operations that call cloud functions

### invokeNimbusCloudFn

> Code samples

```python
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

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

#### Parameters <a href="#invokenimbuscloudfn-parameters" id="invokenimbuscloudfn-parameters"></a>

| Name | In   | Type                     | Required | Description              |
| ---- | ---- | ------------------------ | -------- | ------------------------ |
| body | body | InvokeCloudFnRequestBody | false    | Invokes a cloud function |

> Example responses

> 200 Response

```json
{
  "result": {}
}
```

#### Responses <a href="#invokenimbuscloudfn-responses" id="invokenimbuscloudfn-responses"></a>

<table><thead><tr><th width="181">Status</th><th width="165">Meaning</th><th>Description</th><th>Schema</th></tr></thead><tbody><tr><td>200</td><td><a href="https://tools.ietf.org/html/rfc7231#section-6.3.1">OK</a></td><td>Successful operation</td><td>InvokeCloudFnResponseBody</td></tr><tr><td>400</td><td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.1">Bad Request</a></td><td>Invaid cloud function</td><td>None</td></tr><tr><td>404</td><td><a href="https://tools.ietf.org/html/rfc7231#section-6.5.4">Not Found</a></td><td>User not authorized to invoke function</td><td>None</td></tr><tr><td>500</td><td><a href="https://tools.ietf.org/html/rfc7231#section-6.6.1">Internal Server Error</a></td><td>Error invoking function</td><td>None</td></tr></tbody></table>

This operation does not require authentication
