az aks trustedaccess rolebinding

注意

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。

管理受信任存取角色系結的命令。

命令

名稱 Description 類型 狀態
az aks trustedaccess rolebinding create

建立新的受信任存取角色系結。

核心 GA
az aks trustedaccess rolebinding create (aks-preview 擴充功能)

建立新的受信任存取角色系結。

副檔名 GA
az aks trustedaccess rolebinding delete

根據名稱刪除受信任的存取角色系結。

核心 GA
az aks trustedaccess rolebinding delete (aks-preview 擴充功能)

根據名稱刪除受信任的存取角色系結。

副檔名 GA
az aks trustedaccess rolebinding list

列出所有受信任的存取角色系結。

核心 GA
az aks trustedaccess rolebinding list (aks-preview 擴充功能)

列出所有受信任的存取角色系結。

副檔名 GA
az aks trustedaccess rolebinding show

根據系結名稱取得特定的受信任存取角色系結。

核心 GA
az aks trustedaccess rolebinding show (aks-preview 擴充功能)

根據系結名稱取得特定的受信任存取角色系結。

副檔名 GA
az aks trustedaccess rolebinding update

更新受信任的存取角色系結。

核心 GA
az aks trustedaccess rolebinding update (aks-preview 擴充功能)

更新受信任的存取角色系結。

副檔名 GA

az aks trustedaccess rolebinding create

建立新的受信任存取角色系結。

az aks trustedaccess rolebinding create --cluster-name
                                        --name
                                        --resource-group
                                        --roles
                                        --source-resource-id

範例

建立新的受信任存取角色系結

az aks trustedaccess rolebinding create -g myResourceGroup --cluster-name myCluster -n bindingName --source-resource-id /subscriptions/0000/resourceGroups/myResourceGroup/providers/Microsoft.Demo/samples --roles Microsoft.Demo/samples/reader,Microsoft.Demo/samples/writer

必要參數

--cluster-name

叢集名稱。

--name -n

指定角色系結名稱。

--resource-group -g

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

--roles

指定逗號分隔角色。

--source-resource-id

指定系結的來源資源識別碼。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az aks trustedaccess rolebinding create (aks-preview 擴充功能)

建立新的受信任存取角色系結。

az aks trustedaccess rolebinding create --cluster-name
                                        --name
                                        --resource-group
                                        --roles
                                        --source-resource-id

範例

建立新的受信任存取角色系結

az aks trustedaccess rolebinding create -g myResourceGroup --cluster-name myCluster -n bindingName --source-resource-id /subscriptions/0000/resourceGroups/myResourceGroup/providers/Microsoft.Demo/samples --roles Microsoft.Demo/samples/reader,Microsoft.Demo/samples/writer

必要參數

--cluster-name

叢集名稱。

--name -n

指定角色系結名稱。

--resource-group -g

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

--roles

指定以空格分隔的角色。

--source-resource-id

指定系結的來源資源識別碼。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az aks trustedaccess rolebinding delete

根據名稱刪除受信任的存取角色系結。

az aks trustedaccess rolebinding delete --cluster-name
                                        --name
                                        --resource-group
                                        [--yes]

必要參數

--cluster-name

叢集名稱。

--name -n

指定角色系結名稱。

--resource-group -g

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

選擇性參數

--yes -y

不提示確認。

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

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az aks trustedaccess rolebinding delete (aks-preview 擴充功能)

根據名稱刪除受信任的存取角色系結。

az aks trustedaccess rolebinding delete --cluster-name
                                        --name
                                        --resource-group
                                        [--yes]

必要參數

--cluster-name

叢集名稱。

--name -n

指定角色系結名稱。

--resource-group -g

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

選擇性參數

--yes -y

不提示確認。

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

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az aks trustedaccess rolebinding list

列出所有受信任的存取角色系結。

az aks trustedaccess rolebinding list --cluster-name
                                      --resource-group

必要參數

--cluster-name

叢集名稱。

--resource-group -g

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

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az aks trustedaccess rolebinding list (aks-preview 擴充功能)

列出所有受信任的存取角色系結。

az aks trustedaccess rolebinding list --cluster-name
                                      --resource-group

必要參數

--cluster-name

叢集名稱。

--resource-group -g

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

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az aks trustedaccess rolebinding show

根據系結名稱取得特定的受信任存取角色系結。

az aks trustedaccess rolebinding show --cluster-name
                                      --name
                                      --resource-group

必要參數

--cluster-name

叢集名稱。

--name -n

指定角色系結名稱。

--resource-group -g

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

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az aks trustedaccess rolebinding show (aks-preview 擴充功能)

根據系結名稱取得特定的受信任存取角色系結。

az aks trustedaccess rolebinding show --cluster-name
                                      --name
                                      --resource-group

必要參數

--cluster-name

叢集名稱。

--name -n

指定角色系結名稱。

--resource-group -g

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

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az aks trustedaccess rolebinding update

更新受信任的存取角色系結。

az aks trustedaccess rolebinding update --cluster-name
                                        --name
                                        --resource-group
                                        --roles

必要參數

--cluster-name

叢集名稱。

--name -n

指定角色系結名稱。

--resource-group -g

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

--roles

指定逗號分隔角色。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az aks trustedaccess rolebinding update (aks-preview 擴充功能)

更新受信任的存取角色系結。

az aks trustedaccess rolebinding update --cluster-name
                                        --name
                                        --resource-group
                                        --roles

必要參數

--cluster-name

叢集名稱。

--name -n

指定角色系結名稱。

--resource-group -g

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

--roles

指定以空格分隔的角色。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。