az mysql flexible-server identity
管理伺服器使用者指派的身分識別。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az mysql flexible-server identity assign |
將使用者已簽署的受控識別新增至伺服器。 |
Core | GA |
| az mysql flexible-server identity list |
列出來自伺服器的所有使用者指派受控識別。 |
Core | GA |
| az mysql flexible-server identity remove |
從伺服器移除使用者已簽署的受控識別。 |
Core | GA |
| az mysql flexible-server identity show |
從伺服器取得使用者指派的受控識別。 |
Core | GA |
az mysql flexible-server identity assign
將使用者已簽署的受控識別新增至伺服器。
az mysql flexible-server identity assign --identity
--resource-group
--server-name
[--no-wait]
範例
將身分識別 'test-identity' 和 'test-identity-2' 新增至伺服器 'testsvr'。
az mysql flexible-server identity assign -g testgroup -s testsvr --identity test-identity test-identity-2
必要參數
以空格分隔的名稱或標識碼的身分識別。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
伺服器的名稱。 名稱只能包含小寫字母、數字及連字號 (-) 字元。 最少 3 個字元,最多 63 個字元。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az mysql flexible-server identity list
列出來自伺服器的所有使用者指派受控識別。
az mysql flexible-server identity list --resource-group
--server-name
範例
列出伺服器 『testvr』 中的所有身分識別。
az mysql flexible-server identity list -g testgroup -s testsvr
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
伺服器的名稱。 名稱只能包含小寫字母、數字及連字號 (-) 字元。 最少 3 個字元,最多 63 個字元。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az mysql flexible-server identity remove
從伺服器移除使用者已簽署的受控識別。
az mysql flexible-server identity remove --identity
--resource-group
--server-name
[--no-wait]
[--yes]
範例
從伺服器 'testvr' 移除身分識別 'test-identity'。
az mysql flexible-server identity remove -g testgroup -s testsvr --identity test-identity
必要參數
以空格分隔的名稱或標識碼的身分識別。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
伺服器的名稱。 名稱只能包含小寫字母、數字及連字號 (-) 字元。 最少 3 個字元,最多 63 個字元。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az mysql flexible-server identity show
從伺服器取得使用者指派的受控識別。
az mysql flexible-server identity show --identity
--resource-group
--server-name
範例
從伺服器 『testvr』 取得身分識別 『test-identity』。
az mysql flexible-server identity show -g testgroup -s testsvr --identity test-identity
必要參數
要顯示之身分識別的名稱或標識碼。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
伺服器的名稱。 名稱只能包含小寫字母、數字及連字號 (-) 字元。 最少 3 個字元,最多 63 個字元。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |