共用方式為


az containerapp env java-component gateway-for-spring

Note

此參考是 Azure CLI (2.79.0 版或更新版本) 的 containerapp 延伸模組的一部分。 擴充功能會在您第一次 執行 az containerapp env java-component gateway-for-spring 命令時自動安裝。 深入了解擴充功能。

此命令群組處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

用於管理 Container Apps 環境的 Spring 閘道的命令。

命令

名稱 Description 類型 狀態
az containerapp env java-component gateway-for-spring create

建立 Spring 閘道的命令。

Extension Preview
az containerapp env java-component gateway-for-spring delete

刪除 Spring 閘道的命令。

Extension Preview
az containerapp env java-component gateway-for-spring show

顯示 Spring 閘道的命令。

Extension Preview
az containerapp env java-component gateway-for-spring update

更新 Spring 閘道的命令。

Extension Preview

az containerapp env java-component gateway-for-spring create

預覽

命令群組 『containerapp env java-component gateway-for-spring』 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

建立 Spring 閘道的命令。

az containerapp env java-component gateway-for-spring create --environment
                                                             --name
                                                             --resource-group
                                                             [--bind]
                                                             [--max-replicas]
                                                             [--min-replicas]
                                                             [--no-wait]
                                                             [--route-yaml --yaml]
                                                             [--set-configs --set-configurations]
                                                             [--unbind]

範例

使用預設組態建立 Spring 的閘道。

az containerapp env java-component gateway-for-spring create -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --route-yaml MyRouteYamlFilePath

使用自定義組態建立 Spring 的閘道。

az containerapp env java-component gateway-for-spring create -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --route-yaml MyRouteYamlFilePath \
    --set-configurations PropertyName1=Value1 PropertyName2=Value2

建立具有多個復本的 Spring 閘道。

az containerapp env java-component gateway-for-spring create -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --route-yaml MyRouteYamlFilePath \
    --min-replicas 2 --max-replicas 2

必要參數

--environment

環境名稱。

--name -n

Java 元件名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--bind

要連線至此 Java 元件之服務、系結或其他 Java 元件的空間分隔清單。 例如SVC_NAME1[:BIND_NAME1] SVC_NAME2[:BIND_NAME2]...

--max-replicas

要針對 Java 元件執行的複本數目上限。

屬性
參數群組: Scale Arguments
預設值: 1
--min-replicas

要針對 Java 元件執行的複本數目下限。

屬性
參數群組: Scale Arguments
預設值: 1
--no-wait

請勿等候長時間執行的作業完成。

屬性
預設值: False
--route-yaml --yaml

具有 Spring Cloud Gateway 路由設定的 .yaml 檔案路徑。 如需範例,請參閱 https://aka.ms/gateway-for-spring-routes-yaml

--set-configs --set-configurations

新增或更新 Java 元件組態。。 不會修改其他現有的組態。 組態必須是格式 <propertyName>=<value><propertyName>=<value>...

--unbind

要從這個 Java 元件中移除之服務、系結或 Java 元件的空間分隔清單。 例如BIND_NAME1...

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az containerapp env java-component gateway-for-spring delete

預覽

命令群組 『containerapp env java-component gateway-for-spring』 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

刪除 Spring 閘道的命令。

az containerapp env java-component gateway-for-spring delete --environment
                                                             --name
                                                             --resource-group
                                                             [--no-wait]
                                                             [--yes]

範例

刪除 Spring 的閘道。

az containerapp env java-component gateway-for-spring delete -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment

必要參數

--environment

環境名稱。

--name -n

Java 元件名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--no-wait

請勿等候長時間執行的作業完成。

屬性
預設值: False
--yes -y

請勿提示確認。

屬性
預設值: False
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az containerapp env java-component gateway-for-spring show

預覽

命令群組 『containerapp env java-component gateway-for-spring』 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

顯示 Spring 閘道的命令。

az containerapp env java-component gateway-for-spring show --environment
                                                           --name
                                                           --resource-group

範例

顯示 Spring 的閘道。

az containerapp env java-component gateway-for-spring show -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment

必要參數

--environment

環境名稱。

--name -n

Java 元件名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az containerapp env java-component gateway-for-spring update

預覽

命令群組 『containerapp env java-component gateway-for-spring』 處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

更新 Spring 閘道的命令。

az containerapp env java-component gateway-for-spring update --environment
                                                             --name
                                                             --resource-group
                                                             [--bind]
                                                             [--max-replicas]
                                                             [--min-replicas]
                                                             [--no-wait]
                                                             [--remove-all-configs --remove-all-configurations {false, true}]
                                                             [--remove-configs --remove-configurations]
                                                             [--replace-configs --replace-configurations]
                                                             [--route-yaml --yaml]
                                                             [--set-configs --set-configurations]
                                                             [--unbind]

範例

使用新的路由更新 Spring 的閘道。

az containerapp env java-component gateway-for-spring update -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --route-yaml MyRouteYamlFilePath

使用自定義組態更新 Spring 的閘道。

az containerapp env java-component gateway-for-spring update -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --set-configurations PropertyName1=Value1 PropertyName2=Value2

取代 Spring 閘道的所有組態。

az containerapp env java-component gateway-for-spring update -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --replace-configurations PropertyName1=Value1 PropertyName2=Value2

刪除 Spring 閘道的組態。

az containerapp env java-component gateway-for-spring update -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --remove-configurations PropertyName1 PropertyName2

刪除 Spring 閘道的所有組態。

az containerapp env java-component gateway-for-spring update -g MyResourceGroup \
    -n MyJavaComponentName \
    --environment MyEnvironment \
    --remove-all-configurations

必要參數

--environment

環境名稱。

--name -n

Java 元件名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--bind

要連線至此 Java 元件之服務、系結或其他 Java 元件的空間分隔清單。 例如SVC_NAME1[:BIND_NAME1] SVC_NAME2[:BIND_NAME2]...

--max-replicas

要針對 Java 元件執行的複本數目上限。

屬性
參數群組: Scale Arguments
--min-replicas

要針對 Java 元件執行的複本數目下限。

屬性
參數群組: Scale Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性
預設值: False
--remove-all-configs --remove-all-configurations

拿掉所有 Java 元件組態。。

屬性
接受的值: false, true
--remove-configs --remove-configurations

拿掉 Java 元件組態。。 指定以空白分隔的組態名稱,格式為 <propertyName><propertyName>...

--replace-configs --replace-configurations

取代 Java 元件組態,移除其他現有的組態。 組態必須是格式 <propertyName>=<value><propertyName>=<value>...

--route-yaml --yaml

具有 Spring Cloud Gateway 路由設定的 .yaml 檔案路徑。 如需範例,請參閱 https://aka.ms/gateway-for-spring-routes-yaml

--set-configs --set-configurations

新增或更新 Java 元件組態。。 不會修改其他現有的組態。 組態必須是格式 <propertyName>=<value><propertyName>=<value>...

--unbind

要從這個 Java 元件中移除之服務、系結或 Java 元件的空間分隔清單。 例如BIND_NAME1...

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False