Keys - List By Automation Account
擷取帳戶的自動化金鑰。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys?api-version=2024-10-23
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
automation
|
path | True |
string |
自動化帳戶的名稱。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._]+$ |
Azure 資源群組的名稱。 |
|
subscription
|
path | True |
string |
取得可唯一識別Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶識別碼會構成每個服務呼叫 URI 的一部分。 |
|
api-version
|
query | True |
string |
用戶端 API 版本。 |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
還行 |
|
| Other Status Codes |
說明作業為何失敗的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
| 名稱 | Description |
|---|---|
| user_impersonation | 模擬您的用戶帳戶 |
範例
Get lists of an automation account
範例要求
POST https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyAutomationAccount/listKeys?api-version=2024-10-23
範例回覆
{
"keys": [
{
"KeyName": "Primary",
"Permissions": "Full",
"Value": "**************************************************************"
},
{
"KeyName": "Secondary",
"Permissions": "Full",
"Value": "**************************************************************"
}
]
}
定義
| 名稱 | Description |
|---|---|
|
Automation |
自動化金鑰名稱。 |
|
Automation |
自動化金鑰許可權。 |
|
Error |
作業失敗的錯誤回應 |
| Key |
用來註冊 DSC 節點的自動化金鑰 |
|
Key |
AutomationKeyName
自動化金鑰名稱。
| 值 | Description |
|---|---|
| Primary | |
| Secondary |
AutomationKeyPermissions
自動化金鑰許可權。
| 值 | Description |
|---|---|
| Read | |
| Full |
ErrorResponse
作業失敗的錯誤回應
| 名稱 | 類型 | Description |
|---|---|---|
| code |
string |
錯誤碼 |
| message |
string |
錯誤訊息,指出作業失敗的原因。 |
Key
用來註冊 DSC 節點的自動化金鑰
| 名稱 | 類型 | Description |
|---|---|---|
| KeyName |
自動化金鑰名稱。 |
|
| Permissions |
自動化金鑰許可權。 |
|
| Value |
string |
用於註冊的自動化金鑰值。 |
KeyListResult
| 名稱 | 類型 | Description |
|---|---|---|
| keys |
Key[] |
列出自動化金鑰。 |