/
getAccount.ts
269 lines (263 loc) 路 8.4 KB
/
getAccount.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
// *** 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";
export function getAccount(args: GetAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountResult> {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("node11699:storage/getAccount:getAccount", {
"minTlsVersion": args.minTlsVersion,
"name": args.name,
"resourceGroupName": args.resourceGroupName,
}, opts);
}
/**
* A collection of arguments for invoking getAccount.
*/
export interface GetAccountArgs {
/**
* The minimum supported TLS version for this storage account.
*/
minTlsVersion?: string;
/**
* Specifies the name of the Storage Account
*/
name: string;
/**
* Specifies the name of the resource group the Storage Account is located in.
*/
resourceGroupName?: string;
}
/**
* A collection of values returned by getAccount.
*/
export interface GetAccountResult {
/**
* The access tier for `BlobStorage` accounts.
*/
readonly accessTier: string;
/**
* The Kind of account.
*/
readonly accountKind: string;
/**
* The type of replication used for this storage account.
*/
readonly accountReplicationType: string;
/**
* The Tier of this storage account.
*/
readonly accountTier: string;
/**
* Can nested items in the storage account opt into allowing public access?
*/
readonly allowNestedItemsToBePublic: boolean;
/**
* A `azure_files_authentication` block as documented below.
*/
readonly azureFilesAuthentications: outputs.storage.getAccountAzureFilesAuthentication.GetAccountAzureFilesAuthentication[];
/**
* A `custom_domain` block as documented below.
*/
readonly customDomains: outputs.storage.getAccountCustomDomain.GetAccountCustomDomain[];
/**
* Is traffic only allowed via HTTPS? See [here](https://docs.microsoft.com/azure/storage/storage-require-secure-transfer/)
* for more information.
*/
readonly enableHttpsTrafficOnly: boolean;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* An `identity` block as documented below.
*/
readonly identities: outputs.storage.getAccountIdentity.GetAccountIdentity[];
/**
* Is infrastructure encryption enabled? See [here](https://docs.microsoft.com/azure/storage/common/infrastructure-encryption-enable/)
* for more information.
*/
readonly infrastructureEncryptionEnabled: boolean;
/**
* Is Hierarchical Namespace enabled?
*/
readonly isHnsEnabled: boolean;
/**
* The Azure location where the Storage Account exists
*/
readonly location: string;
/**
* The minimum supported TLS version for this storage account.
*/
readonly minTlsVersion?: string;
/**
* The Custom Domain Name used for the Storage Account.
*/
readonly name: string;
/**
* Is NFSv3 protocol enabled?
*/
readonly nfsv3Enabled: boolean;
/**
* The primary access key for the Storage Account.
*/
readonly primaryAccessKey: string;
/**
* The connection string associated with the primary blob location
*/
readonly primaryBlobConnectionString: string;
/**
* The endpoint URL for blob storage in the primary location.
*/
readonly primaryBlobEndpoint: string;
/**
* The hostname with port if applicable for blob storage in the primary location.
*/
readonly primaryBlobHost: string;
/**
* The connection string associated with the primary location
*/
readonly primaryConnectionString: string;
/**
* The endpoint URL for DFS storage in the primary location.
*/
readonly primaryDfsEndpoint: string;
/**
* The hostname with port if applicable for DFS storage in the primary location.
*/
readonly primaryDfsHost: string;
/**
* The endpoint URL for file storage in the primary location.
*/
readonly primaryFileEndpoint: string;
/**
* The hostname with port if applicable for file storage in the primary location.
*/
readonly primaryFileHost: string;
/**
* The primary location of the Storage Account.
*/
readonly primaryLocation: string;
/**
* The endpoint URL for queue storage in the primary location.
*/
readonly primaryQueueEndpoint: string;
/**
* The hostname with port if applicable for queue storage in the primary location.
*/
readonly primaryQueueHost: string;
/**
* The endpoint URL for table storage in the primary location.
*/
readonly primaryTableEndpoint: string;
/**
* The hostname with port if applicable for table storage in the primary location.
*/
readonly primaryTableHost: string;
/**
* The endpoint URL for web storage in the primary location.
*/
readonly primaryWebEndpoint: string;
/**
* The hostname with port if applicable for web storage in the primary location.
*/
readonly primaryWebHost: string;
/**
* The encryption key type of the queue.
*/
readonly queueEncryptionKeyType: string;
readonly resourceGroupName?: string;
/**
* The secondary access key for the Storage Account.
*/
readonly secondaryAccessKey: string;
/**
* The connection string associated with the secondary blob location
*/
readonly secondaryBlobConnectionString: string;
/**
* The endpoint URL for blob storage in the secondary location.
*/
readonly secondaryBlobEndpoint: string;
/**
* The hostname with port if applicable for blob storage in the secondary location.
*/
readonly secondaryBlobHost: string;
/**
* The connection string associated with the secondary location
*/
readonly secondaryConnectionString: string;
/**
* The endpoint URL for DFS storage in the secondary location.
*/
readonly secondaryDfsEndpoint: string;
/**
* The hostname with port if applicable for DFS storage in the secondary location.
*/
readonly secondaryDfsHost: string;
/**
* The endpoint URL for file storage in the secondary location.
*/
readonly secondaryFileEndpoint: string;
/**
* The hostname with port if applicable for file storage in the secondary location.
*/
readonly secondaryFileHost: string;
/**
* The secondary location of the Storage Account.
*/
readonly secondaryLocation: string;
/**
* The endpoint URL for queue storage in the secondary location.
*/
readonly secondaryQueueEndpoint: string;
/**
* The hostname with port if applicable for queue storage in the secondary location.
*/
readonly secondaryQueueHost: string;
/**
* The endpoint URL for table storage in the secondary location.
*/
readonly secondaryTableEndpoint: string;
/**
* The hostname with port if applicable for table storage in the secondary location.
*/
readonly secondaryTableHost: string;
/**
* The endpoint URL for web storage in the secondary location.
*/
readonly secondaryWebEndpoint: string;
/**
* The hostname with port if applicable for web storage in the secondary location.
*/
readonly secondaryWebHost: string;
/**
* The encryption key type of the table.
*/
readonly tableEncryptionKeyType: string;
/**
* A mapping of tags to assigned to the resource.
*/
readonly tags: {[key: string]: string};
}
export function getAccountOutput(args: GetAccountOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccountResult> {
return pulumi.output(args).apply((a: any) => getAccount(a, opts))
}
/**
* A collection of arguments for invoking getAccount.
*/
export interface GetAccountOutputArgs {
/**
* The minimum supported TLS version for this storage account.
*/
minTlsVersion?: pulumi.Input<string>;
/**
* Specifies the name of the Storage Account
*/
name: pulumi.Input<string>;
/**
* Specifies the name of the resource group the Storage Account is located in.
*/
resourceGroupName?: pulumi.Input<string>;
}