共用方式為


Container Apps - List By Subscription

取得指定訂用帳戶中的容器應用程式。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.App/containerApps?api-version=2023-08-01-preview

URI 參數

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

string

目標訂用帳戶的標識碼。

api-version
query True

string

用於此作業的 API 版本。

回應

名稱 類型 Description
200 OK

ContainerAppCollection

確定

Other Status Codes

DefaultErrorResponse

錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

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

範例

List Container Apps by subscription

範例要求

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.App/containerApps?api-version=2023-08-01-preview

範例回覆

{
  "value": [
    {
      "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerapp0",
      "name": "testcontainerapp0",
      "type": "Microsoft.App/containerApps",
      "location": "East US",
      "properties": {
        "provisioningState": "Succeeded",
        "managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
        "workloadProfileName": "My-GP-01",
        "latestRevisionFqdn": "testcontainerapp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
        "latestReadyRevisionName": "testcontainerapp0-pjxhsye",
        "configuration": {
          "ingress": {
            "fqdn": "testcontainerapp0.demokube-t24clv0g.eastus.containerApps.k4apps.io",
            "external": true,
            "targetPort": 3000,
            "transport": "auto",
            "customDomains": [
              {
                "name": "www.my-name.com",
                "bindingType": "SniEnabled",
                "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-name-dot-com"
              },
              {
                "name": "www.my--other-name.com",
                "bindingType": "SniEnabled",
                "certificateId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube/certificates/my-certificate-for-my-other-name-dot-com"
              }
            ],
            "traffic": [
              {
                "weight": 80,
                "revisionName": "testcontainerapp0-ab1234"
              },
              {
                "weight": 20,
                "revisionName": "testcontainerapp0-ab4321",
                "label": "staging"
              }
            ],
            "ipSecurityRestrictions": [
              {
                "name": "Allow work IP A subnet",
                "description": "Allowing all IP's within the subnet below to access containerapp",
                "ipAddressRange": "192.168.1.1/32",
                "action": "Allow"
              },
              {
                "name": "Allow work IP B subnet",
                "description": "Allowing all IP's within the subnet below to access containerapp",
                "ipAddressRange": "192.168.1.1/8",
                "action": "Allow"
              }
            ],
            "stickySessions": {
              "affinity": "sticky"
            }
          },
          "dapr": {
            "enabled": true,
            "appPort": 3000,
            "appProtocol": "http",
            "httpReadBufferSize": 30,
            "httpMaxRequestSize": 10,
            "logLevel": "debug",
            "enableApiLogging": true
          },
          "maxInactiveRevisions": 10,
          "service": {
            "type": "redis"
          }
        },
        "template": {
          "containers": [
            {
              "image": "repo/testcontainerapp0:v4",
              "name": "testcontainerapp0",
              "resources": {
                "cpu": 0.5,
                "memory": "1Gi"
              }
            }
          ],
          "initContainers": [
            {
              "image": "repo/testcontainerapp0:v4",
              "name": "testinitcontainerApp0",
              "resources": {
                "cpu": 0.5,
                "memory": "1Gi"
              }
            }
          ],
          "scale": {
            "minReplicas": 1,
            "maxReplicas": 5,
            "rules": [
              {
                "name": "httpscalingrule",
                "http": {
                  "metadata": {
                    "concurrentRequests": "50"
                  }
                }
              }
            ]
          },
          "serviceBinds": [
            {
              "serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service",
              "name": "service",
              "clientType": "dotnet",
              "customizedKeys": {
                "DesiredKey": "defaultKey"
              }
            }
          ]
        },
        "eventStreamEndpoint": "testEndpoint"
      }
    }
  ],
  "nextLink": null
}

定義

名稱 Description
action

允許或拒絕規則來判斷傳入IP。 注意:規則只能包含 ALL 允許或 ALL 拒絕

ActiveRevisionsMode

ActiveRevisionsMode 控制容器應用程式的作用中修訂處理方式:多個修訂可以作用中。單一:一次只能有一個修訂作用中。 修訂權數不能在此模式中使用。 如果未提供任何值,則為預設值。

affinity

黏性會話親和性

appProtocol

告知 Dapr 您的應用程式正在使用的通訊協定。 有效的選項為 HTTP 和 grpc。 預設值為 HTTP

bindingType

Custom Domain 系結類型。

Configuration

未建立版本的容器應用程式組態屬性,可定義容器應用程式的可變動設定

Container

容器應用程式容器定義

ContainerApp

容器應用程式。

ContainerAppCollection

容器應用程式集合ARM資源。

ContainerAppProbe

探查描述要針對容器執行的健全狀況檢查,以判斷它是否運作或準備好接收流量。

ContainerAppProvisioningState

容器應用程式的布建狀態。

ContainerResources

容器應用程式容器資源需求。

CorsPolicy

跨原始來源資源分享原則

createdByType

建立資源的身分識別類型。

CustomDomain

容器應用程式的 Custom Domain

CustomScaleRule

容器應用程式容器 自定義調整規則。

Dapr

容器應用程式 Dapr 設定。

DefaultErrorResponse

App Service 錯誤回應。

Details

詳細數據或錯誤

EnvironmentVar

容器應用程式容器環境變數。

Error

錯誤模型。

ExtendedLocation

擴充位置的複雜類型。

ExtendedLocationTypes

擴充位置的類型。

HttpGet

HTTPGet 會指定要執行的 HTTP 要求。

HttpHeaders

在要求中設定的自定義標頭。 HTTP 允許重複的標頭。

HttpScaleRule

容器應用程式容器 Http 調整規則。

Ingress

容器應用程式輸入組態。

IngressClientCertificateMode

mTLS 驗證的客戶端憑證模式。 Ignore 表示伺服器在轉送時卸除客戶端憑證。 Accept 表示伺服器轉送客戶端憑證,但不需要客戶端憑證。 需要表示伺服器需要客戶端憑證。

IngressPortMapping

容器應用程式輸入的埠對應

IngressTransportMethod

輸入傳輸通訊協定

InitContainer

容器應用程式init容器定義

IpSecurityRestrictionRule

限制傳入IP位址的規則。

logLevel

設定 Dapr sidecar 的記錄層級。 允許的值是偵錯、資訊、警告、錯誤。 預設值為資訊。

ManagedServiceIdentity

受控服務識別 (系統指派和/或使用者指派的身分識別)

ManagedServiceIdentityType

(允許 SystemAssigned 和 UserAssigned 類型的受控服務識別類型) 。

QueueScaleRule

容器應用程式容器 Azure 佇列型調整規則。

RegistryCredentials

容器應用程式私人登錄

Scale

容器應用程式調整設定。

ScaleRule

容器應用程式容器調整規則。

ScaleRuleAuth

調整規則的驗證秘密

Scheme

用於連線到主機的配置。 默認為 HTTP。

Secret

秘密定義。

SecretVolumeItem

要新增至磁碟區的秘密。

Service

容器應用程式成為開發人員服務

ServiceBind

將 ContainerApp 系結至 dev ContainerApp Service 的組態

StickySessions

單一修訂模式的黏性會話

StorageType

磁碟區的儲存類型。 如果未提供,請使用 EmptyDir。

systemData

與建立和上次修改資源相關的元數據。

TcpScaleRule

容器應用程式容器 Tcp 調整規則。

TcpSocket

TCPSocket 會指定涉及 TCP 連接埠的動作。 尚未支援 TCP 攔截。

Template

容器應用程式已建立版本的應用程式定義。 定義不可變修訂的預期狀態。 本節的任何變更將會導致建立新的修訂

TrafficWeight

指派給修訂的流量權數

Type

探查的類型。

UserAssignedIdentity

使用者指派的身分識別屬性

Volume

容器應用程式的磁碟區定義。

VolumeMount

容器應用程式的磁碟區掛接。

action

允許或拒絕規則來判斷傳入IP。 注意:規則只能包含 ALL 允許或 ALL 拒絕

名稱 類型 Description
Allow

string

Deny

string

ActiveRevisionsMode

ActiveRevisionsMode 控制容器應用程式的作用中修訂處理方式:多個修訂可以作用中。單一:一次只能有一個修訂作用中。 修訂權數不能在此模式中使用。 如果未提供任何值,則為預設值。

名稱 類型 Description
Multiple

string

Single

string

affinity

黏性會話親和性

名稱 類型 Description
none

string

sticky

string

appProtocol

告知 Dapr 您的應用程式正在使用的通訊協定。 有效的選項為 HTTP 和 grpc。 預設值為 HTTP

名稱 類型 Description
grpc

string

http

string

bindingType

Custom Domain 系結類型。

名稱 類型 Description
Disabled

string

SniEnabled

string

Configuration

未建立版本的容器應用程式組態屬性,可定義容器應用程式的可變動設定

名稱 類型 預設值 Description
activeRevisionsMode

ActiveRevisionsMode

Single

ActiveRevisionsMode 可控制容器應用程式的使用中修訂處理方式:多個修訂可以使用中。單一:一次只能使用一個修訂。 修訂權數無法用於此模式。 如果未提供任何值,則為預設值。

dapr

Dapr

容器應用程式的 Dapr 設定。

ingress

Ingress

輸入組態。

maxInactiveRevisions

integer

選擇性。 容器應用程式可以擁有的最大非使用中修訂。

registries

RegistryCredentials[]

容器應用程式所使用容器的私人容器登錄認證集合

secrets

Secret[]

容器應用程式所使用的秘密集合

service

Service

容器應用程式成為開發容器 App Service

Container

容器應用程式容器定義

名稱 類型 Description
args

string[]

容器啟動命令自變數。

command

string[]

容器啟動命令。

env

EnvironmentVar[]

容器環境變數。

image

string

容器映像標籤。

name

string

自訂容器名稱。

probes

ContainerAppProbe[]

容器的探查清單。

resources

ContainerResources

容器資源需求。

volumeMounts

VolumeMount[]

容器磁碟區掛接。

ContainerApp

容器應用程式。

名稱 類型 Description
extendedLocation

ExtendedLocation

擴充位置的複雜類型。

id

string

資源的完整資源識別碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

identity

ManagedServiceIdentity

容器應用程式的受控識別可與其他 Azure 服務互動,而不需維護程式代碼中的任何秘密或認證。

location

string

資源所在的地理位置

managedBy

string

管理此資源之資源的完整資源標識碼。 指出此資源是否由另一個 Azure 資源管理。 如果存在,如果從範本中移除,則完整模式部署將不會刪除資源,因為該資源是由另一個資源所管理。

name

string

資源的名稱

properties.configuration

Configuration

非已建立版本的容器應用程式組態屬性。

properties.customDomainVerificationId

string

用來驗證功能變數名稱擁有權的標識碼

properties.environmentId

string

環境的資源標識碼。

properties.eventStreamEndpoint

string

容器應用程式之 eventstream 的端點。

properties.latestReadyRevisionName

string

容器應用程式的最新就緒修訂名稱。

properties.latestRevisionFqdn

string

容器應用程式最新修訂的完整功能變數名稱。

properties.latestRevisionName

string

容器應用程式的最新修訂名稱。

properties.managedEnvironmentId

string

已取代。 容器應用程式環境的資源標識碼。

properties.outboundIpAddresses

string[]

容器應用程式的輸出IP位址。

properties.provisioningState

ContainerAppProvisioningState

容器應用程式的布建狀態。

properties.template

Template

容器應用程式已建立版本的應用程式定義。

properties.workloadProfileName

string

要釘選以進行容器應用程式執行的工作負載配置檔名稱。

systemData

systemData

Azure Resource Manager 包含 createdBy 和 modifiedBy 資訊的中繼資料。

tags

object

資源標籤。

type

string

資源類型。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts”

ContainerAppCollection

容器應用程式集合ARM資源。

名稱 類型 Description
nextLink

string

連結至下一頁的資源。

value

ContainerApp[]

資源集合。

ContainerAppProbe

探查描述要針對容器執行的健全狀況檢查,以判斷它是否運作或準備好接收流量。

名稱 類型 Description
failureThreshold

integer

探查在成功之後視為失敗的最小連續失敗。 預設值為 3。 最小值為 1。 最大值為 10。

httpGet

HttpGet

HTTPGet 會指定要執行的 HTTP 要求。

initialDelaySeconds

integer

在起始活躍度探查之前,容器啟動後的秒數。 最小值為 1。 最大值為 60。

periodSeconds

integer

執行探查的頻率 (以秒為單位)。 預設值為 10 秒。 最小值為 1。 最大值為 240。

successThreshold

integer

探查在失敗后視為成功的最小連續成功。 預設值為 1。 必須是 1,才能進行實時和啟動。 最小值為 1。 最大值為 10。

tcpSocket

TcpSocket

TCPSocket 會指定涉及 TCP 連接埠的動作。 尚不支援 TCP 勾點。

terminationGracePeriodSeconds

integer

Pod 必須在探查失敗時正常終止,以秒為單位的選擇性持續時間。 寬限期是在 Pod 中執行的進程傳送終止訊號後,以秒為單位的持續時間,以及當進程強制終止並出現終止訊號的時間。 將此值設為超過程序的預期清除時間。 如果此值為 nil,將會使用 Pod 的終止GracePeriodSeconds。 否則,此值會覆寫Pod規格所提供的值。值必須是非負整數。 零值表示透過終止訊號立即停止, (沒有機會關閉) 。 這是Alpha字段,需要啟用 ProbeTerminationGracePeriod 功能閘道。 最大值為3600秒 (1小時)

timeoutSeconds

integer

探查逾時後的秒數。預設值為 1 秒。 最小值為 1。 最大值為 240。

type

Type

探查的類型。

ContainerAppProvisioningState

容器應用程式的布建狀態。

名稱 類型 Description
Canceled

string

Deleting

string

Failed

string

InProgress

string

Succeeded

string

ContainerResources

容器應用程式容器資源需求。

名稱 類型 Description
cpu

number

核心中必要的 CPU,例如 0.5

ephemeralStorage

string

暫時記憶體,例如 “1Gi”

memory

string

必要的記憶體,例如 “250Mb”

CorsPolicy

跨原始來源資源分享原則

名稱 類型 Description
allowCredentials

boolean

指定資源是否允許認證

allowedHeaders

string[]

指定訪問控制-allow-headers 標頭的內容

allowedMethods

string[]

指定 access-control-allow-methods 標頭的內容

allowedOrigins

string[]

指定訪問控制允許來源標頭的內容

exposeHeaders

string[]

指定 access-control-public-headers 標頭的內容

maxAge

integer

指定 access-control-max-age 標頭的內容

createdByType

建立資源的身分識別類型。

名稱 類型 Description
Application

string

Key

string

ManagedIdentity

string

User

string

CustomDomain

容器應用程式的 Custom Domain

名稱 類型 Description
bindingType

bindingType

Custom Domain 系結類型。

certificateId

string

要系結至此主機名之憑證的資源標識符。 必須存在於受控環境中。

name

string

主機名稱。

CustomScaleRule

容器應用程式容器 自定義調整規則。

名稱 類型 Description
auth

ScaleRuleAuth[]

自訂調整規則的驗證秘密。

metadata

object

描述自定義縮放規則的元數據屬性。

type

string

自定義調整規則的類型,例如:azure-servicebus、redis 等。

Dapr

容器應用程式 Dapr 設定。

名稱 類型 預設值 Description
appId

string

Dapr 應用程式識別碼

appPort

integer

告訴 Dapr 您的應用程式正在接聽哪個埠

appProtocol

appProtocol

http

告知 Dapr 您的應用程式正在使用的通訊協定。 有效的選項為 HTTP 和 grpc。 預設值為 HTTP

enableApiLogging

boolean

啟用 Dapr sidecar 的 API 記錄

enabled

boolean

False

布爾值,指出是否已啟用 Dapr 側車

httpMaxRequestSize

integer

增加 MB 中要求本文 HTTP 和 grpc 伺服器參數的大小上限,以處理大型檔案的上傳。 預設值為 4 MB。

httpReadBufferSize

integer

傳送多 KB 標頭時,在 KB 中要處理的 HTTP 標頭讀取緩衝區大小上限。 預設值為 65KB。

logLevel

logLevel

設定 Dapr sidecar 的記錄層級。 允許的值是偵錯、資訊、警告、錯誤。 預設值為資訊。

DefaultErrorResponse

App Service 錯誤回應。

名稱 類型 Description
error

Error

錯誤模型。

Details

詳細數據或錯誤

名稱 類型 Description
code

string

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

message

string

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

target

string

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

EnvironmentVar

容器應用程式容器環境變數。

名稱 類型 Description
name

string

環境變數名稱。

secretRef

string

要從中提取環境變數值的容器應用程式秘密名稱。

value

string

非秘密環境變數值。

Error

錯誤模型。

名稱 類型 Description
code

string

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

details

Details[]

詳細數據或錯誤

innererror

string

偵錯錯誤的詳細資訊。

message

string

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

target

string

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

ExtendedLocation

擴充位置的複雜類型。

名稱 類型 Description
name

string

擴充位置的名稱。

type

ExtendedLocationTypes

擴充位置的類型。

ExtendedLocationTypes

擴充位置的類型。

名稱 類型 Description
CustomLocation

string

HttpGet

HTTPGet 會指定要執行的 HTTP 要求。

名稱 類型 Description
host

string

要連線的主機名,預設為 Pod IP。 您可能想要改為在 HTTPHeaders 中設定「主機」。

httpHeaders

HttpHeaders[]

在要求中設定的自定義標頭。 HTTP 允許重複的標頭。

path

string

HTTP 伺服器上存取的路徑。

port

integer

要存取容器的埠名稱或號碼。 數位的範圍必須介於 1 到 65535 之間。 名稱必須是IANA_SVC_NAME。

scheme

Scheme

用於連線至主機的配置。 默認為 HTTP。

HttpHeaders

在要求中設定的自定義標頭。 HTTP 允許重複的標頭。

名稱 類型 Description
name

string

標頭功能變數名稱

value

string

標頭域值

HttpScaleRule

容器應用程式容器 Http 調整規則。

名稱 類型 Description
auth

ScaleRuleAuth[]

自訂調整規則的驗證秘密。

metadata

object

用來描述 HTTP 縮放規則的元資料屬性。

Ingress

容器應用程式輸入組態。

名稱 類型 預設值 Description
additionalPortMappings

IngressPortMapping[]

在容器應用程式上公開其他埠的設定

allowInsecure

boolean

False

布爾值,指出是否允許 HTTP 連線。 如果設定為 false HTTP 連線,則會自動重新導向至 HTTPS 連線

clientCertificateMode

IngressClientCertificateMode

mTLS 驗證的客戶端憑證模式。 Ignore 表示伺服器在轉送時卸除客戶端憑證。 Accept 表示伺服器轉送客戶端憑證,但不需要客戶端憑證。 需要表示伺服器需要客戶端憑證。

corsPolicy

CorsPolicy

容器應用程式的 CORS 原則

customDomains

CustomDomain[]

Container Apps 主機名的自定義網域系結。

exposedPort

integer

來自輸入之 TCP 流量的容器中公開埠

external

boolean

False

指出應用程式是否公開外部 HTTP 端點的 Bool

fqdn

string

主機名稱。

ipSecurityRestrictions

IpSecurityRestrictionRule[]

限制傳入IP位址的規則。

stickySessions

StickySessions

單一修訂模式的黏性會話

targetPort

integer

來自輸入流量的容器中目標埠

traffic

TrafficWeight[]

應用程式修訂的流量權數

transport

IngressTransportMethod

auto

輸入傳輸通訊協定

IngressClientCertificateMode

mTLS 驗證的客戶端憑證模式。 Ignore 表示伺服器在轉送時卸除客戶端憑證。 Accept 表示伺服器轉送客戶端憑證,但不需要客戶端憑證。 需要表示伺服器需要客戶端憑證。

名稱 類型 Description
accept

string

ignore

string

require

string

IngressPortMapping

容器應用程式輸入的埠對應

名稱 類型 Description
exposedPort

integer

指定目標埠的公開埠。 如果未指定,則預設為目標埠

external

boolean

指定應用程式埠是否可在環境外部存取

targetPort

integer

指定埠使用者的容器接聽

IngressTransportMethod

輸入傳輸通訊協定

名稱 類型 Description
auto

string

http

string

http2

string

tcp

string

InitContainer

容器應用程式init容器定義

名稱 類型 Description
args

string[]

容器啟動命令自變數。

command

string[]

容器啟動命令。

env

EnvironmentVar[]

容器環境變數。

image

string

容器映像標籤。

name

string

自訂容器名稱。

resources

ContainerResources

容器資源需求。

volumeMounts

VolumeMount[]

容器磁碟區掛接。

IpSecurityRestrictionRule

限制傳入IP位址的規則。

名稱 類型 Description
action

action

允許或拒絕規則來判斷傳入IP。 注意:規則只能包含 ALL 允許或 ALL 拒絕

description

string

描述要傳送至 container-app 的IP限制規則。 這是選擇性欄位。

ipAddressRange

string

符合傳入IP位址的CIDR表示法

name

string

IP 限制規則的名稱。

logLevel

設定 Dapr sidecar 的記錄層級。 允許的值是偵錯、資訊、警告、錯誤。 預設值為資訊。

名稱 類型 Description
debug

string

error

string

info

string

warn

string

ManagedServiceIdentity

受控服務識別 (系統指派和/或使用者指派的身分識別)

名稱 類型 Description
principalId

string

系統指派之身分識別的服務主體標識符。 此屬性只會針對系統指派的身分識別提供。

tenantId

string

系統指派身分識別的租用戶標識碼。 此屬性只會針對系統指派的身分識別提供。

type

ManagedServiceIdentityType

(允許 SystemAssigned 和 UserAssigned 類型的受控服務識別類型) 。

userAssignedIdentities

<string,  UserAssignedIdentity>

User-Assigned 身分識別
與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中 ({}) 的空白物件。

ManagedServiceIdentityType

(允許 SystemAssigned 和 UserAssigned 類型的受控服務識別類型) 。

名稱 類型 Description
None

string

SystemAssigned

string

SystemAssigned,UserAssigned

string

UserAssigned

string

QueueScaleRule

容器應用程式容器 Azure 佇列型調整規則。

名稱 類型 Description
auth

ScaleRuleAuth[]

佇列調整規則的驗證秘密。

queueLength

integer

佇列長度。

queueName

string

佇列名稱。

RegistryCredentials

容器應用程式私人登錄

名稱 類型 Description
identity

string

用來向 Azure Container Registry 進行驗證的受控識別。 針對使用者指派的身分識別,請使用完整的使用者指派身分識別資源標識碼。 針對系統指派的身分識別,請使用 'system'

passwordSecretRef

string

包含登錄登入密碼的秘密名稱

server

string

Container Registry Server

username

string

Container Registry 用戶名稱

Scale

容器應用程式調整設定。

名稱 類型 預設值 Description
maxReplicas

integer

10

選擇性。 容器復本的數目上限。 如果未設定,則預設為10。

minReplicas

integer

選擇性。 容器復本數目下限。

rules

ScaleRule[]

調整規則。

ScaleRule

容器應用程式容器調整規則。

名稱 類型 Description
azureQueue

QueueScaleRule

以 Azure 隊列為基礎的調整。

custom

CustomScaleRule

自定義縮放規則。

http

HttpScaleRule

HTTP 要求型調整。

name

string

調整規則名稱

tcp

TcpScaleRule

Tcp 要求型調整。

ScaleRuleAuth

調整規則的驗證秘密

名稱 類型 Description
secretRef

string

要從中提取驗證參數的秘密名稱。

triggerParameter

string

使用秘密的觸發程序參數

Scheme

用於連線到主機的配置。 默認為 HTTP。

名稱 類型 Description
HTTP

string

HTTPS

string

Secret

秘密定義。

名稱 類型 Description
identity

string

要向 Azure 金鑰保存庫 進行驗證的受控識別資源識別碼,或使用系統指派的身分識別。

keyVaultUrl

string

Azure 金鑰保存庫 URL,指向容器應用程式所參考的秘密。

name

string

秘密名稱。

value

string

秘密值。

SecretVolumeItem

要新增至磁碟區的秘密。

名稱 類型 Description
path

string

專案秘密的路徑。 如果未提供路徑,path 預設為 secretRef 中列出的秘密名稱。

secretRef

string

要從中提取秘密值的容器應用程式秘密名稱。

Service

容器應用程式成為開發人員服務

名稱 類型 Description
type

string

Dev ContainerApp 服務類型

ServiceBind

將 ContainerApp 系結至 dev ContainerApp Service 的組態

名稱 類型 Description
clientType

string

用來連線至服務的客戶端類型

customizedKeys

object

自訂將插入值自定義至應用程式的自定義金鑰

name

string

服務系結的名稱

serviceId

string

目標服務的資源標識碼

StickySessions

單一修訂模式的黏性會話

名稱 類型 Description
affinity

affinity

黏性會話親和性

StorageType

磁碟區的儲存類型。 如果未提供,請使用 EmptyDir。

名稱 類型 Description
AzureFile

string

EmptyDir

string

Secret

string

systemData

與建立和上次修改資源相關的元數據。

名稱 類型 Description
createdAt

string

資源建立的時間戳 (UTC) 。

createdBy

string

建立資源的身分識別。

createdByType

createdByType

建立資源的身分識別類型。

lastModifiedAt

string

上次修改的資源時間戳 (UTC)

lastModifiedBy

string

上次修改資源的身分識別。

lastModifiedByType

createdByType

上次修改資源的身分識別類型。

TcpScaleRule

容器應用程式容器 Tcp 調整規則。

名稱 類型 Description
auth

ScaleRuleAuth[]

Tcp 調整規則的驗證秘密。

metadata

object

描述 tcp 縮放規則的元數據屬性。

TcpSocket

TCPSocket 會指定涉及 TCP 連接埠的動作。 尚未支援 TCP 攔截。

名稱 類型 Description
host

string

選擇性:要連線的主機名,預設為 Pod IP。

port

integer

容器上要存取的埠編號或名稱。 數位的範圍必須介於 1 到 65535 之間。 名稱必須是IANA_SVC_NAME。

Template

容器應用程式已建立版本的應用程式定義。 定義不可變修訂的預期狀態。 本節的任何變更將會導致建立新的修訂

名稱 類型 Description
containers

Container[]

容器應用程式的容器定義清單。

initContainers

InitContainer[]

在應用程式容器之前執行的特製化容器清單。

revisionSuffix

string

附加至修訂名稱的使用者易記後綴

scale

Scale

調整容器應用程式的屬性。

serviceBinds

ServiceBind[]

系結至應用程式的容器應用程式服務清單

terminationGracePeriodSeconds

integer

容器應用程式實例需要正常終止的選擇性持續時間,以秒為單位。 值必須是非負整數。 值零表示透過終止訊號立即停止, (沒有機會關閉) 。 如果此值為 nil,則會改用預設寬限期。 將此值設為超過程序的預期清除時間。 預設為 30 秒。

volumes

Volume[]

容器應用程式的磁碟區定義清單。

TrafficWeight

指派給修訂的流量權數

名稱 類型 預設值 Description
label

string

將流量標籤與修訂產生關聯

latestRevision

boolean

False

指出流量權數屬於最新的穩定修訂

revisionName

string

修訂的名稱

weight

integer

指派給修訂的流量權數

Type

探查的類型。

名稱 類型 Description
Liveness

string

Readiness

string

Startup

string

UserAssignedIdentity

使用者指派的身分識別屬性

名稱 類型 Description
clientId

string

指派之身分識別的用戶端標識碼。

principalId

string

指派之身分識別的主體標識碼。

Volume

容器應用程式的磁碟區定義。

名稱 類型 Description
mountOptions

string

掛接 AzureFile 時所使用的掛接選項。 必須是逗號分隔字串。

name

string

磁碟區名稱。

secrets

SecretVolumeItem[]

要加入磁碟區中的秘密清單。 如果未提供任何秘密,集合中的所有秘密都會新增至磁碟區。

storageName

string

記憶體資源的名稱。 不需要提供 EmptyDir 和 Secret。

storageType

StorageType

磁碟區的儲存類型。 如果未提供,請使用 EmptyDir。

VolumeMount

容器應用程式的磁碟區掛接。

名稱 類型 Description
mountPath

string

容器內應該掛接磁碟區的路徑。不得包含 『:』。

subPath

string

應該從中掛接容器磁碟區之磁碟區內的路徑。 預設為 “” (磁碟區的根) 。

volumeName

string

這必須符合磁碟區的名稱。