次の方法で共有


Web Apps - Create Or Update Site Container

サイトまたはデプロイ スロットのサイト コンテナーを作成または更新します。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sitecontainers/{containerName}?api-version=2024-11-01

URI パラメーター

名前 / 必須 説明
containerName
path True

string

pattern: (^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$)

サイト コンテナー名

name
path True

string

アプリの名前。

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+[^\.]$

リソースが属するリソース グループの名前。

subscriptionId
path True

string

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

api-version
query True

string

API バージョン

要求本文

名前 必須 説明
properties.image True

string

イメージ名

properties.isMain True

boolean

コンテナーがメイン サイト コンテナーであるかどうかを true します。それ以外の場合 false

kind

string

リソースの種類。

properties.authType

AuthType

認証の種類

properties.environmentVariables

EnvironmentVariable[]

環境変数の一覧

properties.inheritAppSettingsAndConnectionStrings

boolean

true すべての AppSettings と ConnectionStrings を環境変数としてコンテナに渡す必要がある場合。 false そうでなければ。

properties.passwordSecret

string

パスワード シークレット

properties.startUpCommand

string

スタートアップ コマンド

properties.targetPort

string

ターゲット ポート

properties.userManagedIdentityClientId

string

UserManagedIdentity クライアントID

properties.userName

string

ユーザー名

properties.volumeMounts

VolumeMount[]

ボリューム マウントの一覧

応答

名前 説明
200 OK

SiteContainer

サイト コンテナーが更新されました。

201 Created

SiteContainer

サイト コンテナーが作成されました。

Other Status Codes

DefaultErrorResponse

App Service エラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

定義

名前 説明
AuthType

認証の種類

DefaultErrorResponse

App Service エラー応答。

Details
EnvironmentVariable
Error

エラー モデル。

SiteContainer

サイトのコンテナー

VolumeMount

AuthType

認証の種類

説明
Anonymous
UserCredentials
SystemIdentity
UserAssigned

DefaultErrorResponse

App Service エラー応答。

名前 説明
error

Error

エラー モデル。

Details

名前 説明
code

string

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

message

string

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

target

string

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

EnvironmentVariable

名前 説明
name

string

環境変数の名前

value

string

この環境変数の値は、AppSetting の名前である必要があります。 コンテナ内の環境変数の実際の値は、実行時に指定されたAppSettingから取得されます。 AppSetting が見つからない場合、値は実行時にコンテナ内の空の文字列に設定されます。

Error

エラー モデル。

名前 説明
code

string

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

details

Details[]

詳細なエラー。

innererror

string

デバッグ エラーの詳細。

message

string

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

target

string

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

SiteContainer

サイトのコンテナー

名前 説明
id

string

リソース ID。

kind

string

リソースの種類。

name

string

リソース名。

properties.authType

AuthType

認証の種類

properties.createdTime

string (date-time)

作成時刻

properties.environmentVariables

EnvironmentVariable[]

環境変数の一覧

properties.image

string

イメージ名

properties.inheritAppSettingsAndConnectionStrings

boolean

true すべての AppSettings と ConnectionStrings を環境変数としてコンテナに渡す必要がある場合。 false そうでなければ。

properties.isMain

boolean

コンテナーがメイン サイト コンテナーであるかどうかを true します。それ以外の場合 false

properties.lastModifiedTime

string (date-time)

最終修正日時

properties.passwordSecret

string

パスワード シークレット

properties.startUpCommand

string

スタートアップ コマンド

properties.targetPort

string

ターゲット ポート

properties.userManagedIdentityClientId

string

UserManagedIdentity クライアントID

properties.userName

string

ユーザー名

properties.volumeMounts

VolumeMount[]

ボリューム マウントの一覧

type

string

リソースの種類。

VolumeMount

名前 説明
containerMountPath

string

ボリュームがマウントされているコンテナーのターゲット パス

data

string

ボリュームにマウントする構成データ

readOnly

boolean

コンテナーでマウントが読み取り専用かどうかを指定するブール値

volumeSubPath

string

ボリュームがマウントされるボリューム内のサブ パス。