Keys - List By Automation Account
取出帳戶的自動化金鑰。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys?api-version=2021-06-22
URI 參數
Name | In | Required | Type | Description |
---|---|---|---|---|
automation
|
path | True |
|
自動化帳戶的名稱。 |
resource
|
path | True |
|
Azure 資源群組的名稱。 Regex pattern: |
subscription
|
path | True |
|
取得用來唯一識別 Microsoft Azure 訂用帳戶的訂用帳戶認證。 訂用帳戶識別碼會構成每個服務呼叫 URI 的一部分。 |
api-version
|
query | True |
|
用戶端 Api 版本。 |
回應
Name | Type | Description |
---|---|---|
200 OK |
確定 |
|
Other Status Codes |
描述作業為何失敗的錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | 模擬您的使用者帳戶 |
範例
Get lists of an automation account
Sample Request
POST https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyAutomationAccount/listKeys?api-version=2021-06-22
Sample Response
{
"keys": [
{
"KeyName": "Primary",
"Permissions": "Full",
"Value": "**************************************************************"
},
{
"KeyName": "Secondary",
"Permissions": "Full",
"Value": "**************************************************************"
}
]
}
定義
Automation |
自動化索引鍵名稱。 |
Automation |
Automation key 許可權。 |
Error |
作業失敗的錯誤回應 |
Key |
用來註冊 DSC 節點的自動化金鑰 |
Key |
AutomationKeyName
自動化索引鍵名稱。
Name | Type | Description |
---|---|---|
Primary |
|
|
Secondary |
|
AutomationKeyPermissions
Automation key 許可權。
Name | Type | Description |
---|---|---|
Full |
|
|
Read |
|
ErrorResponse
作業失敗的錯誤回應
Name | Type | Description |
---|---|---|
code |
|
錯誤碼 |
message |
|
指出作業失敗原因的錯誤訊息。 |
Key
用來註冊 DSC 節點的自動化金鑰
Name | Type | Description |
---|---|---|
KeyName |
自動化索引鍵名稱。 |
|
Permissions |
Automation key 許可權。 |
|
Value |
|
用於註冊的自動化金鑰值。 |
KeyListResult
Name | Type | Description |
---|---|---|
keys |
|
列出自動化金鑰。 |