1. Packages
  2. Azure Native v2
  3. API Docs
  4. automation
  5. listKeyByAutomationAccount
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.automation.listKeyByAutomationAccount

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Retrieve the automation keys for an account. Azure REST API version: 2022-08-08.

Other available API versions: 2023-05-15-preview, 2023-11-01, 2024-10-23.

Using listKeyByAutomationAccount

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function listKeyByAutomationAccount(args: ListKeyByAutomationAccountArgs, opts?: InvokeOptions): Promise<ListKeyByAutomationAccountResult>
function listKeyByAutomationAccountOutput(args: ListKeyByAutomationAccountOutputArgs, opts?: InvokeOptions): Output<ListKeyByAutomationAccountResult>
Copy
def list_key_by_automation_account(automation_account_name: Optional[str] = None,
                                   resource_group_name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> ListKeyByAutomationAccountResult
def list_key_by_automation_account_output(automation_account_name: Optional[pulumi.Input[str]] = None,
                                   resource_group_name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[ListKeyByAutomationAccountResult]
Copy
func ListKeyByAutomationAccount(ctx *Context, args *ListKeyByAutomationAccountArgs, opts ...InvokeOption) (*ListKeyByAutomationAccountResult, error)
func ListKeyByAutomationAccountOutput(ctx *Context, args *ListKeyByAutomationAccountOutputArgs, opts ...InvokeOption) ListKeyByAutomationAccountResultOutput
Copy

> Note: This function is named ListKeyByAutomationAccount in the Go SDK.

public static class ListKeyByAutomationAccount 
{
    public static Task<ListKeyByAutomationAccountResult> InvokeAsync(ListKeyByAutomationAccountArgs args, InvokeOptions? opts = null)
    public static Output<ListKeyByAutomationAccountResult> Invoke(ListKeyByAutomationAccountInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ListKeyByAutomationAccountResult> listKeyByAutomationAccount(ListKeyByAutomationAccountArgs args, InvokeOptions options)
public static Output<ListKeyByAutomationAccountResult> listKeyByAutomationAccount(ListKeyByAutomationAccountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:automation:listKeyByAutomationAccount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AutomationAccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the automation account.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of an Azure Resource group.
AutomationAccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the automation account.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of an Azure Resource group.
automationAccountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the automation account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of an Azure Resource group.
automationAccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the automation account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of an Azure Resource group.
automation_account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the automation account.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of an Azure Resource group.
automationAccountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the automation account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of an Azure Resource group.

listKeyByAutomationAccount Result

The following output properties are available:

Keys []KeyResponse
Lists the automation keys.
keys List<KeyResponse>
Lists the automation keys.
keys KeyResponse[]
Lists the automation keys.
keys Sequence[KeyResponse]
Lists the automation keys.
keys List<Property Map>
Lists the automation keys.

Supporting Types

KeyResponse

KeyName This property is required. string
Automation key name.
Permissions This property is required. string
Automation key permissions.
Value This property is required. string
Value of the Automation Key used for registration.
KeyName This property is required. string
Automation key name.
Permissions This property is required. string
Automation key permissions.
Value This property is required. string
Value of the Automation Key used for registration.
keyName This property is required. String
Automation key name.
permissions This property is required. String
Automation key permissions.
value This property is required. String
Value of the Automation Key used for registration.
keyName This property is required. string
Automation key name.
permissions This property is required. string
Automation key permissions.
value This property is required. string
Value of the Automation Key used for registration.
key_name This property is required. str
Automation key name.
permissions This property is required. str
Automation key permissions.
value This property is required. str
Value of the Automation Key used for registration.
keyName This property is required. String
Automation key name.
permissions This property is required. String
Automation key permissions.
value This property is required. String
Value of the Automation Key used for registration.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi