Web Apps - Create Function

Web サイトまたはデプロイ スロットの作成関数の説明。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}?api-version=2023-01-01

URI パラメーター

名前 / 必須 説明
functionName
path True

string

関数名。

name
path True

string

サイト名。

resourceGroupName
path True

string

リソースが属しているリソース グループの名前。

Regex pattern: ^[-\w\._\(\)]+[^\.]$

subscriptionId
path True

string

Azure のサブスクリプション ID。 これは GUID 形式の文字列です (例: 000000000-0000-0000-0000-00000000000000)。

api-version
query True

string

API バージョン

要求本文

名前 説明
kind

string

リソースの種類。

properties.config

object

構成情報。

properties.config_href

string

構成 URI。

properties.files

object

ファイルの一覧。

properties.function_app_id

string

関数アプリ ID。

properties.href

string

関数 URI。

properties.invoke_url_template

string

呼び出し URL

properties.isDisabled

boolean

関数が無効かどうかを示す値を取得または設定します。

properties.language

string

関数言語

properties.script_href

string

スクリプト URI。

properties.script_root_path_href

string

スクリプト ルート パス URI。

properties.secrets_file_href

string

シークレット ファイル URI。

properties.test_data

string

Azure Portal を使用してテストするときに使用されるテスト データ。

properties.test_data_href

string

データ URI をテストします。

応答

名前 説明
201 Created

FunctionEnvelope

作成された関数。

Other Status Codes

DefaultErrorResponse

エラー応答をApp Serviceします。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

定義

名前 説明
DefaultErrorResponse

エラー応答をApp Serviceします。

Details
Error

エラー モデル。

FunctionEnvelope

関数情報。

DefaultErrorResponse

エラー応答をApp Serviceします。

名前 説明
error

Error

エラー モデル。

Details

名前 説明
code

string

プログラムによってエラーを識別するための標準化された文字列。

message

string

エラーの詳細な説明とデバッグ情報。

target

string

エラーの詳細な説明とデバッグ情報。

Error

エラー モデル。

名前 説明
code

string

プログラムによってエラーを識別するための標準化された文字列。

details

Details[]

詳細なエラー。

innererror

string

デバッグ エラーの詳細。

message

string

エラーの詳細な説明とデバッグ情報。

target

string

エラーの詳細な説明とデバッグ情報。

FunctionEnvelope

関数情報。

名前 説明
id

string

リソース ID。

kind

string

リソースの種類。

name

string

リソース名。

properties.config

object

構成情報。

properties.config_href

string

構成 URI。

properties.files

object

ファイルの一覧。

properties.function_app_id

string

関数アプリ ID。

properties.href

string

関数 URI。

properties.invoke_url_template

string

呼び出し URL

properties.isDisabled

boolean

関数が無効かどうかを示す値を取得または設定します。

properties.language

string

関数言語

properties.script_href

string

スクリプト URI。

properties.script_root_path_href

string

スクリプト ルート パス URI。

properties.secrets_file_href

string

シークレット ファイル URI。

properties.test_data

string

Azure Portal を使用してテストするときに使用されるテスト データ。

properties.test_data_href

string

データ URI をテストします。

type

string

リソースの種類。