Keys - List By Automation Account
アカウントのオートメーション キーを取得します。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys?api-version=2023-11-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
automation
|
path | True |
string |
Automation アカウントの名前。 |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._]+$ |
Azure リソース グループの名前。 |
subscription
|
path | True |
string |
Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報を取得します。 サブスクリプション ID は、すべてのサービス呼び出しの URI の一部を形成します。 |
api-version
|
query | True |
string |
クライアント API のバージョン。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
わかりました |
|
Other Status Codes |
操作が失敗した理由を説明するエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
名前 | 説明 |
---|---|
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=2023-11-01
応答のサンプル
{
"keys": [
{
"KeyName": "Primary",
"Permissions": "Full",
"Value": "**************************************************************"
},
{
"KeyName": "Secondary",
"Permissions": "Full",
"Value": "**************************************************************"
}
]
}
定義
名前 | 説明 |
---|---|
Automation |
オートメーション キー名。 |
Automation |
Automation キーのアクセス許可。 |
Error |
操作エラーのエラー応答 |
Key |
DSC ノードの登録に使用されるオートメーション キー |
Key |
AutomationKeyName
オートメーション キー名。
値 | 説明 |
---|---|
Primary | |
Secondary |
AutomationKeyPermissions
Automation キーのアクセス許可。
値 | 説明 |
---|---|
Full | |
Read |
ErrorResponse
操作エラーのエラー応答
名前 | 型 | 説明 |
---|---|---|
code |
string |
エラー コード |
message |
string |
操作が失敗した理由を示すエラー メッセージ。 |
Key
DSC ノードの登録に使用されるオートメーション キー
名前 | 型 | 説明 |
---|---|---|
KeyName |
オートメーション キー名。 |
|
Permissions |
Automation キーのアクセス許可。 |
|
Value |
string |
登録に使用される Automation キーの値。 |
KeyListResult
名前 | 型 | 説明 |
---|---|---|
keys |
Key[] |
オートメーション キーを一覧表示します。 |