Share via


Web Apps - Get Site Container

取得月臺或部署位置的月臺容器。

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

URI 參數

名稱 位於 必要 類型 Description
containerName
path True

string

月臺容器名稱

Regex 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

資源所屬資源群組的名稱。

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

subscriptionId
path True

string

您的 Azure 訂用帳戶識別碼。 這是 GUID 格式的字串 (例如 0000000000-0000-0000-0000-0000000000000) 。

api-version
query True

string

API 版本

回應

名稱 類型 Description
200 OK

SiteContainer

確定

Other Status Codes

DefaultErrorResponse

App Service 錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

名稱 Description
user_impersonation 模擬您的用戶帳戶

定義

名稱 Description
AuthType

驗證類型

DefaultErrorResponse

App Service 錯誤回應。

Details
EnvironmentVariable
Error

錯誤模型。

SiteContainer

網站的容器

VolumeMount

AuthType

驗證類型

名稱 類型 Description
Anonymous

string

SystemIdentity

string

UserAssigned

string

UserCredentials

string

DefaultErrorResponse

App Service 錯誤回應。

名稱 類型 Description
error

Error

錯誤模型。

Details

名稱 類型 Description
code

string

標準化字串,以程序設計方式識別錯誤。

message

string

詳細的錯誤描述和偵錯資訊。

target

string

詳細的錯誤描述和偵錯資訊。

EnvironmentVariable

名稱 類型 Description
name

string

環境變數名稱

value

string

環境變數值

Error

錯誤模型。

名稱 類型 Description
code

string

標準化字串,以程序設計方式識別錯誤。

details

Details[]

詳細的錯誤。

innererror

string

偵錯錯誤的詳細資訊。

message

string

詳細的錯誤描述和偵錯資訊。

target

string

詳細的錯誤描述和偵錯資訊。

SiteContainer

網站的容器

名稱 類型 Description
id

string

資源標識碼。

kind

string

資源種類。

name

string

資源名稱。

properties.authType

AuthType

驗證類型

properties.createdTime

string

建立時間

properties.environmentVariables

EnvironmentVariable[]

環境變數清單

properties.image

string

映像名稱

properties.isMain

boolean

true 如果容器是主要月臺容器,則為 ; false 否則。

properties.lastModifiedTime

string

上次修改時間

properties.passwordSecret

string

密碼密碼

properties.startUpCommand

string

StartUp 命令

properties.targetPort

string

目標連接埠

properties.userManagedIdentityClientId

string

UserManagedIdentity ClientId

properties.userName

string

使用者名稱

properties.volumeMounts

VolumeMount[]

磁碟區掛接清單

type

string

資源類型。

VolumeMount

名稱 類型 Description
containerMountPath

string

裝載磁碟區之容器上的目標路徑

data

string

設定要掛接在磁碟區上的數據

readOnly

boolean

布爾值,指定掛接是否為容器上的唯讀

volumeSubPath

string

磁碟區中掛接磁碟區的子路徑。