70 lines
2.4 KiB
TypeScript
70 lines
2.4 KiB
TypeScript
// *** WARNING: this file was generated by test. ***
|
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
import * as pulumi from "@pulumi/pulumi";
|
|
import { input as inputs, output as outputs } from "./types";
|
|
import * as utilities from "./utilities";
|
|
|
|
/**
|
|
* The response from the ListKeys operation.
|
|
* API Version: 2021-02-01.
|
|
*/
|
|
export function listStorageAccountKeys(args: ListStorageAccountKeysArgs, opts?: pulumi.InvokeOptions): Promise<ListStorageAccountKeysResult> {
|
|
if (!opts) {
|
|
opts = {}
|
|
}
|
|
|
|
if (!opts.version) {
|
|
opts.version = utilities.getVersion();
|
|
}
|
|
return pulumi.runtime.invoke("mypkg::listStorageAccountKeys", {
|
|
"accountName": args.accountName,
|
|
"expand": args.expand,
|
|
"resourceGroupName": args.resourceGroupName,
|
|
}, opts);
|
|
}
|
|
|
|
export interface ListStorageAccountKeysArgs {
|
|
/**
|
|
* The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
|
|
*/
|
|
accountName: string;
|
|
/**
|
|
* Specifies type of the key to be listed. Possible value is kerb.
|
|
*/
|
|
expand?: string;
|
|
/**
|
|
* The name of the resource group within the user's subscription. The name is case insensitive.
|
|
*/
|
|
resourceGroupName: string;
|
|
}
|
|
|
|
/**
|
|
* The response from the ListKeys operation.
|
|
*/
|
|
export interface ListStorageAccountKeysResult {
|
|
/**
|
|
* Gets the list of storage account keys and their properties for the specified storage account.
|
|
*/
|
|
readonly keys: outputs.StorageAccountKeyResponse[];
|
|
}
|
|
|
|
export function listStorageAccountKeysOutput(args: ListStorageAccountKeysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<ListStorageAccountKeysResult> {
|
|
return pulumi.output(args).apply(a => listStorageAccountKeys(a, opts))
|
|
}
|
|
|
|
export interface ListStorageAccountKeysOutputArgs {
|
|
/**
|
|
* The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
|
|
*/
|
|
accountName: pulumi.Input<string>;
|
|
/**
|
|
* Specifies type of the key to be listed. Possible value is kerb.
|
|
*/
|
|
expand?: pulumi.Input<string | undefined>;
|
|
/**
|
|
* The name of the resource group within the user's subscription. The name is case insensitive.
|
|
*/
|
|
resourceGroupName: pulumi.Input<string>;
|
|
}
|