Keys - List By Automation Account

Haal de automatiseringssleutels voor een account op.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys?api-version=2023-11-01

URI-parameters

Name In Vereist Type Description
automationAccountName
path True

string

De naam van het Automation-account.

resourceGroupName
path True

string

Naam van een Azure-resourcegroep.

Regex pattern: ^[-\w\._]+$

subscriptionId
path True

string

Hiermee haalt u abonnementsreferenties op waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke service-aanroep.

api-version
query True

string

Client-API-versie.

Antwoorden

Name Type Description
200 OK

KeyListResult

OK

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation uw gebruikersaccount imiteren

Voorbeelden

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=2023-11-01

Sample Response

{
  "keys": [
    {
      "KeyName": "Primary",
      "Permissions": "Full",
      "Value": "**************************************************************"
    },
    {
      "KeyName": "Secondary",
      "Permissions": "Full",
      "Value": "**************************************************************"
    }
  ]
}

Definities

Name Description
AutomationKeyName

Automation-sleutelnaam.

AutomationKeyPermissions

Machtigingen voor Automation-sleutels.

ErrorResponse

Foutreactie van een bewerkingsfout

Key

Automation-sleutel die wordt gebruikt voor het registreren van een DSC-knooppunt

KeyListResult

AutomationKeyName

Automation-sleutelnaam.

Name Type Description
Primary

string

Secondary

string

AutomationKeyPermissions

Machtigingen voor Automation-sleutels.

Name Type Description
Full

string

Read

string

ErrorResponse

Foutreactie van een bewerkingsfout

Name Type Description
code

string

Foutcode

message

string

Foutbericht waarin wordt aangegeven waarom de bewerking is mislukt.

Key

Automation-sleutel die wordt gebruikt voor het registreren van een DSC-knooppunt

Name Type Description
KeyName

AutomationKeyName

Automation-sleutelnaam.

Permissions

AutomationKeyPermissions

Machtigingen voor Automation-sleutels.

Value

string

Waarde van de Automation-sleutel die wordt gebruikt voor de registratie.

KeyListResult

Name Type Description
keys

Key[]

Een lijst met de automatiseringssleutels.