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 パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
container
|
path | True |
string pattern: (^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$) |
サイト コンテナー名 |
name
|
path | True |
string |
アプリの名前。 |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
リソースが属するリソース グループの名前。 |
subscription
|
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 |
コンテナーがメイン サイト コンテナーであるかどうかを |
kind |
string |
リソースの種類。 |
|
properties.authType |
認証の種類 |
||
properties.environmentVariables |
環境変数の一覧 |
||
properties.inheritAppSettingsAndConnectionStrings |
boolean |
|
|
properties.passwordSecret |
string |
パスワード シークレット |
|
properties.startUpCommand |
string |
スタートアップ コマンド |
|
properties.targetPort |
string |
ターゲット ポート |
|
properties.userManagedIdentityClientId |
string |
UserManagedIdentity クライアントID |
|
properties.userName |
string |
ユーザー名 |
|
properties.volumeMounts |
ボリューム マウントの一覧 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
サイト コンテナーが更新されました。 |
|
201 Created |
サイト コンテナーが作成されました。 |
|
Other Status Codes |
App Service エラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントを偽装する |
定義
名前 | 説明 |
---|---|
Auth |
認証の種類 |
Default |
App Service エラー応答。 |
Details | |
Environment |
|
Error |
エラー モデル。 |
Site |
サイトのコンテナー |
Volume |
AuthType
認証の種類
値 | 説明 |
---|---|
Anonymous | |
UserCredentials | |
SystemIdentity | |
UserAssigned |
DefaultErrorResponse
App Service エラー応答。
名前 | 型 | 説明 |
---|---|---|
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 |
認証の種類 |
|
properties.createdTime |
string (date-time) |
作成時刻 |
properties.environmentVariables |
環境変数の一覧 |
|
properties.image |
string |
イメージ名 |
properties.inheritAppSettingsAndConnectionStrings |
boolean |
|
properties.isMain |
boolean |
コンテナーがメイン サイト コンテナーであるかどうかを |
properties.lastModifiedTime |
string (date-time) |
最終修正日時 |
properties.passwordSecret |
string |
パスワード シークレット |
properties.startUpCommand |
string |
スタートアップ コマンド |
properties.targetPort |
string |
ターゲット ポート |
properties.userManagedIdentityClientId |
string |
UserManagedIdentity クライアントID |
properties.userName |
string |
ユーザー名 |
properties.volumeMounts |
ボリューム マウントの一覧 |
|
type |
string |
リソースの種類。 |
VolumeMount
名前 | 型 | 説明 |
---|---|---|
containerMountPath |
string |
ボリュームがマウントされているコンテナーのターゲット パス |
data |
string |
ボリュームにマウントする構成データ |
readOnly |
boolean |
コンテナーでマウントが読み取り専用かどうかを指定するブール値 |
volumeSubPath |
string |
ボリュームがマウントされるボリューム内のサブ パス。 |