az acr config content-trust

此命令群組已被取代,將在未來的版本中移除。 了解更多關於從 Docker Content Trust 過渡到 Notary Project:https://aka.ms/acr/dctdeprecation

Manage content-trust policy for Azure Container Registries.

命令

名稱 Description 類型 狀態
az acr config content-trust show

顯示 a Azure Container Registry 的 configedcontent-trust policy。

Core Deprecated
az acr config content-trust update

Update content-trust policy for a Azure Container Registry.

Core Deprecated

az acr config content-trust show

已被取代

此命令已隱含棄用,因為命令組「acr config content-trust」已被取代,並將在未來版本中移除。

顯示 a Azure Container Registry 的 configedcontent-trust policy。

az acr config content-trust show --registry
                                 [--resource-group]

範例

Show the configured content-trust policy for a Azure Container Registry

az acr config content-trust show -r myregistry

必要參數

--registry -r

容器登錄的名稱。 它應該以小寫指定。 您可以使用 az configure --defaults acr=<registry name>來設定預設登錄名稱。

選擇性參數

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

--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 acr config content-trust update

已被取代

此命令已隱含棄用,因為命令組「acr config content-trust」已被取代,並將在未來版本中移除。

Update content-trust policy for a Azure Container Registry.

az acr config content-trust update --registry
                                   [--acquire-policy-token]
                                   [--change-reference]
                                   [--resource-group]
                                   [--status {disabled}]
                                   [--yes]

範例

Update content-trust policy for a Azure Container Registry

az acr config content-trust update -r myregistry --status Enabled

必要參數

--registry -r

容器登錄的名稱。 它應該以小寫指定。 您可以使用 az configure --defaults acr=<registry name>來設定預設登錄名稱。

選擇性參數

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

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--resource-group -g

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

--status

指出是否啟用內容信任。 只有「身心障礙者」才被允許。

屬性 值
接受的值: disabled
--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