-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
listStorageAccountKeys.ts
68 lines (62 loc) 路 2.48 KB
/
listStorageAccountKeys.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// *** 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 * as inputs from "./types/input";
import * as outputs from "./types/output";
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> {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
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[];
}
/**
* The response from the ListKeys operation.
* API Version: 2021-02-01.
*/
export function listStorageAccountKeysOutput(args: ListStorageAccountKeysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<ListStorageAccountKeysResult> {
return pulumi.output(args).apply((a: any) => 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>;
/**
* The name of the resource group within the user's subscription. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}