Skip to content

Admin API

Paula Gombar edited this page Sep 3, 2021 · 6 revisions

Since this API is exposed by the runtime, the base URL is: https://<functionappname>.azurewebsites.net/. Hitting the URLs require the functions' master key to be passed in the header as x-functions-key.

Host status API

GET /admin/host/status/

Response:

{
  "id": "bad1ecf31b47-2137340777",
  "state": "Running",
  "version": "2.0.1.0",
  "versionDetails": "2.0.1.0-beta1 Commit hash: N/A"
}

Host ping API

POST /admin/host/status/

Response: empty body

Logs API

POST /admin/host/logs/

[
  {
    "Level": 2,
    "FunctionName": "MyFunc",
    "Source": "runtime",
    "Message": "Some Message"
  }
]

Response: empty body

Sync function triggers

POST /admin/host/synctriggers/

Response: empty body

Create function API

PUT /admin/function/{function_name}

Response: 201 (Created) if successful, 400 for bad requests (function name invalid or app in read-only mode), 500 if failed to create

Learn

Azure Functions Basics

Advanced Concepts

Dotnet Functions

Java Functions

Node.js Functions

Python Functions

Host API's

Bindings

V2 Runtime

Contribute

Functions host

Language workers

Get Help

Other

Clone this wiki locally