forked from MicrosoftDocs/azure-docs-sdk-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBlobServiceClient.yml
794 lines (645 loc) · 26 KB
/
BlobServiceClient.yml
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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
### YamlMime:TSType
name: BlobServiceClient
uid: '@azure/storage-blob.BlobServiceClient'
package: '@azure/storage-blob'
summary: >-
A BlobServiceClient represents a Client to the Azure Storage Blob service
allowing you
to manipulate blob containers.
fullName: BlobServiceClient
remarks: ''
isDeprecated: false
type: class
constructors:
- name: BlobServiceClient(string, PipelineLike)
uid: '@azure/storage-blob.BlobServiceClient.constructor_1'
package: '@azure/storage-blob'
summary: Creates an instance of BlobServiceClient.
remarks: ''
isDeprecated: false
syntax:
content: 'new BlobServiceClient(url: string, pipeline: PipelineLike)'
parameters:
- id: url
type: string
description: |-
A Client string pointing to Azure Storage blob service, such as
"https://myaccount.blob.core.windows.net". You can append a SAS
if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
- id: pipeline
type: <xref uid="@azure/storage-blob.PipelineLike" />
description: |-
Call newPipeline() to create a default
pipeline, or provide a customized pipeline.
- name: >-
BlobServiceClient(string, StorageSharedKeyCredential | AnonymousCredential
| TokenCredential, StoragePipelineOptions)
uid: '@azure/storage-blob.BlobServiceClient.constructor'
package: '@azure/storage-blob'
summary: Creates an instance of BlobServiceClient.
remarks: ''
isDeprecated: false
syntax:
content: >-
new BlobServiceClient(url: string, credential?:
StorageSharedKeyCredential | AnonymousCredential | TokenCredential,
options?: StoragePipelineOptions)
parameters:
- id: url
type: string
description: |-
A Client string pointing to Azure Storage blob service, such as
"https://myaccount.blob.core.windows.net". You can append a SAS
if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
- id: credential
type: >-
<xref uid="@azure/storage-blob.StorageSharedKeyCredential" /> |
<xref uid="@azure/storage-blob.AnonymousCredential" /> |
TokenCredential
description: >-
Such as AnonymousCredential, StorageSharedKeyCredential or any
credential from the `@azure/identity` package to authenticate
requests to the service. You can also provide an object that
implements the TokenCredential interface. If not specified,
AnonymousCredential is used.
- id: options
type: <xref uid="@azure/storage-blob.StoragePipelineOptions" />
description: >-
Optional. Options to configure the HTTP pipeline.
Example using DefaultAzureCredential from `@azure/identity`:
```js
const account = "<storage account name>";
const defaultAzureCredential = new DefaultAzureCredential();
const blobServiceClient = new BlobServiceClient(
`https://${account}.blob.core.windows.net`,
defaultAzureCredential
);
```
Example using an account name/key:
```js
const account = "<storage account name>"
const sharedKeyCredential = new StorageSharedKeyCredential(account,
"<account key>");
const blobServiceClient = new BlobServiceClient(
`https://${account}.blob.core.windows.net`,
sharedKeyCredential
);
```
inheritedProperties:
- name: accountName
uid: '@azure/storage-blob.BlobServiceClient.accountName'
package: '@azure/storage-blob'
summary: ''
fullName: accountName
remarks: ''
isDeprecated: false
syntax:
content: 'accountName: string'
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> StorageClient.accountName
- name: credential
uid: '@azure/storage-blob.BlobServiceClient.credential'
package: '@azure/storage-blob'
summary: >-
Such as AnonymousCredential, StorageSharedKeyCredential or any credential
from the `@azure/identity` package to authenticate requests to the
service. You can also provide an object that implements the
TokenCredential interface. If not specified, AnonymousCredential is used.
fullName: credential
remarks: ''
isDeprecated: false
syntax:
content: >-
credential: StorageSharedKeyCredential | AnonymousCredential |
TokenCredential
return:
description: ''
type: >-
<xref uid="@azure/storage-blob.StorageSharedKeyCredential" /> | <xref
uid="@azure/storage-blob.AnonymousCredential" /> | TokenCredential
inheritanceDescription: <b>Inherited From</b> StorageClient.credential
- name: url
uid: '@azure/storage-blob.BlobServiceClient.url'
package: '@azure/storage-blob'
summary: Encoded URL string value.
fullName: url
remarks: ''
isDeprecated: false
syntax:
content: 'url: string'
return:
description: ''
type: string
inheritanceDescription: <b>Inherited From</b> StorageClient.url
methods:
- name: createContainer(string, ContainerCreateOptions)
uid: '@azure/storage-blob.BlobServiceClient.createContainer'
package: '@azure/storage-blob'
summary: >-
Create a Blob container.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/create-container
remarks: ''
isDeprecated: false
syntax:
content: >-
function createContainer(containerName: string, options?:
ContainerCreateOptions): Promise<{ containerClient: ContainerClient,
containerCreateResponse: ContainerCreateResponse }>
parameters:
- id: containerName
type: string
description: Name of the container to create.
- id: options
type: <xref uid="@azure/storage-blob.ContainerCreateOptions" />
description: Options to configure Container Create operation.
return:
description: Container creation response and the corresponding container client.
type: >-
Promise<{ containerClient: ContainerClient,
containerCreateResponse: ContainerCreateResponse }>
- name: deleteContainer(string, ContainerDeleteMethodOptions)
uid: '@azure/storage-blob.BlobServiceClient.deleteContainer'
package: '@azure/storage-blob'
summary: Deletes a Blob container.
remarks: ''
isDeprecated: false
syntax:
content: >-
function deleteContainer(containerName: string, options?:
ContainerDeleteMethodOptions): Promise<ContainerDeleteResponse>
parameters:
- id: containerName
type: string
description: Name of the container to delete.
- id: options
type: <xref uid="@azure/storage-blob.ContainerDeleteMethodOptions" />
description: Options to configure Container Delete operation.
return:
description: Container deletion response.
type: >-
Promise<<xref uid="@azure/storage-blob.ContainerDeleteResponse"
/>>
- name: findBlobsByTags(string, ServiceFindBlobByTagsOptions)
uid: '@azure/storage-blob.BlobServiceClient.findBlobsByTags'
package: '@azure/storage-blob'
summary: >-
Returns an async iterable iterator to find all blobs with specified tag
under the specified account.
.byPage() returns an async iterable iterator to list the blobs in pages.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties
Example using `for await` syntax:
```js
let i = 1;
for await (const blob of
blobServiceClient.findBlobsByTags("tagkey='tagvalue'")) {
console.log(`Blob ${i++}: ${blob.name}`);
}
```
Example using `iter.next()`:
```js
let i = 1;
const iter = blobServiceClient.findBlobsByTags("tagkey='tagvalue'");
let blobItem = await iter.next();
while (!blobItem.done) {
console.log(`Blob ${i++}: ${blobItem.value.name}`);
blobItem = await iter.next();
}
```
Example using `byPage()`:
```js
// passing optional maxPageSize in the page settings
let i = 1;
for await (const response of
blobServiceClient.findBlobsByTags("tagkey='tagvalue'").byPage({
maxPageSize: 20 })) {
if (response.blobs) {
for (const blob of response.blobs) {
console.log(`Blob ${i++}: ${blob.name}`);
}
}
}
```
Example using paging with a marker:
```js
let i = 1;
let iterator =
blobServiceClient.findBlobsByTags("tagkey='tagvalue'").byPage({
maxPageSize: 2 });
let response = (await iterator.next()).value;
// Prints 2 blob names
if (response.blobs) {
for (const blob of response.blobs) {
console.log(`Blob ${i++}: ${blob.name}`);
}
}
// Gets next marker
let marker = response.continuationToken;
// Passing next marker as continuationToken
iterator = blobServiceClient
.findBlobsByTags("tagkey='tagvalue'")
.byPage({ continuationToken: marker, maxPageSize: 10 });
response = (await iterator.next()).value;
// Prints blob names
if (response.blobs) {
for (const blob of response.blobs) {
console.log(`Blob ${i++}: ${blob.name}`);
}
}
```
remarks: ''
isDeprecated: false
syntax:
content: >-
function findBlobsByTags(tagFilterSqlExpression: string, options?:
ServiceFindBlobByTagsOptions):
PagedAsyncIterableIterator<FilterBlobItem,
ServiceFindBlobsByTagsSegmentResponse, PageSettings>
parameters:
- id: tagFilterSqlExpression
type: string
description: >-
The where parameter enables the caller to query blobs whose tags
match a given expression.
The given expression must evaluate to true for a blob to be returned in the results.
The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;
however, only a subset of the OData filter syntax is supported in the Blob service.
- id: options
type: <xref uid="@azure/storage-blob.ServiceFindBlobByTagsOptions" />
description: Options to find blobs by tags.
return:
description: ''
type: >-
PagedAsyncIterableIterator<<xref
uid="@azure/storage-blob.FilterBlobItem" />, <xref
uid="@azure/storage-blob.ServiceFindBlobsByTagsSegmentResponse" />,
PageSettings>
- name: fromConnectionString(string, StoragePipelineOptions)
uid: '@azure/storage-blob.BlobServiceClient.fromConnectionString'
package: '@azure/storage-blob'
summary: Creates an instance of BlobServiceClient from connection string.
remarks: ''
isDeprecated: false
syntax:
content: >-
static function fromConnectionString(connectionString: string, options?:
StoragePipelineOptions): BlobServiceClient
parameters:
- id: connectionString
type: string
description: >-
Account connection string or a SAS connection string of an Azure
storage account.
[ Note - Account connection string can only be used in NODE.JS runtime. ]
Account connection string example -
`DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
SAS connection string example -
`BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
- id: options
type: <xref uid="@azure/storage-blob.StoragePipelineOptions" />
description: Optional. Options to configure the HTTP pipeline.
return:
description: ''
type: <xref uid="@azure/storage-blob.BlobServiceClient" />
- name: >-
generateAccountSasUrl(Date, AccountSASPermissions, string,
ServiceGenerateAccountSasUrlOptions)
uid: '@azure/storage-blob.BlobServiceClient.generateAccountSasUrl'
package: '@azure/storage-blob'
summary: >-
Only available for BlobServiceClient constructed with a shared key
credential.
Generates a Blob account Shared Access Signature (SAS) URI based on the
client properties
and parameters passed in. The SAS is signed by the shared key credential
of the client.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/create-account-sas
remarks: ''
isDeprecated: false
syntax:
content: >-
function generateAccountSasUrl(expiresOn?: Date, permissions?:
AccountSASPermissions, resourceTypes?: string, options?:
ServiceGenerateAccountSasUrlOptions): string
parameters:
- id: expiresOn
type: Date
description: >-
Optional. The time at which the shared access signature becomes
invalid. Default to an hour later if not provided.
- id: permissions
type: <xref uid="@azure/storage-blob.AccountSASPermissions" />
description: Specifies the list of permissions to be associated with the SAS.
- id: resourceTypes
type: string
description: >-
Specifies the resource types associated with the shared access
signature.
- id: options
type: >-
<xref uid="@azure/storage-blob.ServiceGenerateAccountSasUrlOptions"
/>
description: Optional parameters.
return:
description: >-
An account SAS URI consisting of the URI to the resource represented
by this client, followed by the generated SAS token.
type: string
- name: getAccountInfo(ServiceGetAccountInfoOptions)
uid: '@azure/storage-blob.BlobServiceClient.getAccountInfo'
package: '@azure/storage-blob'
summary: >-
The Get Account Information operation returns the sku name and account
kind
for the specified account.
The Get Account Information operation is available on service versions
beginning
with version 2018-03-28.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/get-account-information
remarks: ''
isDeprecated: false
syntax:
content: >-
function getAccountInfo(options?: ServiceGetAccountInfoOptions):
Promise<ServiceGetAccountInfoResponse>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.ServiceGetAccountInfoOptions" />
description: Options to the Service Get Account Info operation.
return:
description: Response data for the Service Get Account Info operation.
type: >-
Promise<<xref
uid="@azure/storage-blob.ServiceGetAccountInfoResponse" />>
- name: getBlobBatchClient()
uid: '@azure/storage-blob.BlobServiceClient.getBlobBatchClient'
package: '@azure/storage-blob'
summary: |-
Creates a BlobBatchClient object to conduct batch operations.
See https://docs.microsoft.com/en-us/rest/api/storageservices/blob-batch
remarks: ''
isDeprecated: false
syntax:
content: 'function getBlobBatchClient(): BlobBatchClient'
return:
description: A new BlobBatchClient object for this service.
type: <xref uid="@azure/storage-blob.BlobBatchClient" />
- name: getContainerClient(string)
uid: '@azure/storage-blob.BlobServiceClient.getContainerClient'
package: '@azure/storage-blob'
summary: >-
Creates a [ContainerClient](xref:@azure/storage-blob.ContainerClient)
object
remarks: ''
isDeprecated: false
syntax:
content: 'function getContainerClient(containerName: string): ContainerClient'
parameters:
- id: containerName
type: string
description: A container name
return:
description: >-
A new ContainerClient object for the given container name.
Example usage:
```js
const containerClient =
blobServiceClient.getContainerClient("<container name>");
```
type: <xref uid="@azure/storage-blob.ContainerClient" />
- name: getProperties(ServiceGetPropertiesOptions)
uid: '@azure/storage-blob.BlobServiceClient.getProperties'
package: '@azure/storage-blob'
summary: >-
Gets the properties of a storage account’s Blob service, including
properties
for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties
remarks: ''
isDeprecated: false
syntax:
content: >-
function getProperties(options?: ServiceGetPropertiesOptions):
Promise<ServiceGetPropertiesResponse>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.ServiceGetPropertiesOptions" />
description: Options to the Service Get Properties operation.
return:
description: Response data for the Service Get Properties operation.
type: >-
Promise<<xref
uid="@azure/storage-blob.ServiceGetPropertiesResponse" />>
- name: getStatistics(ServiceGetStatisticsOptions)
uid: '@azure/storage-blob.BlobServiceClient.getStatistics'
package: '@azure/storage-blob'
summary: >-
Retrieves statistics related to replication for the Blob service. It is
only
available on the secondary location endpoint when read-access
geo-redundant
replication is enabled for the storage account.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-service-stats
remarks: ''
isDeprecated: false
syntax:
content: >-
function getStatistics(options?: ServiceGetStatisticsOptions):
Promise<ServiceGetStatisticsResponse>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.ServiceGetStatisticsOptions" />
description: Options to the Service Get Statistics operation.
return:
description: Response data for the Service Get Statistics operation.
type: >-
Promise<<xref
uid="@azure/storage-blob.ServiceGetStatisticsResponse" />>
- name: getUserDelegationKey(Date, Date, ServiceGetUserDelegationKeyOptions)
uid: '@azure/storage-blob.BlobServiceClient.getUserDelegationKey'
package: '@azure/storage-blob'
summary: >-
ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).
Retrieves a user delegation key for the Blob service. This is only a valid
operation when using
bearer token authentication.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key
remarks: ''
isDeprecated: false
syntax:
content: >-
function getUserDelegationKey(startsOn: Date, expiresOn: Date, options?:
ServiceGetUserDelegationKeyOptions):
Promise<ServiceGetUserDelegationKeyResponse>
parameters:
- id: startsOn
type: Date
description: >-
The start time for the user delegation SAS. Must be within 7 days of
the current time
- id: expiresOn
type: Date
description: >-
The end time for the user delegation SAS. Must be within 7 days of
the current time
- id: options
type: >-
<xref uid="@azure/storage-blob.ServiceGetUserDelegationKeyOptions"
/>
description: ''
return:
description: ''
type: >-
Promise<<xref
uid="@azure/storage-blob.ServiceGetUserDelegationKeyResponse" />>
- name: listContainers(ServiceListContainersOptions)
uid: '@azure/storage-blob.BlobServiceClient.listContainers'
package: '@azure/storage-blob'
summary: >-
Returns an async iterable iterator to list all the containers
under the specified account.
.byPage() returns an async iterable iterator to list the containers in
pages.
Example using `for await` syntax:
```js
let i = 1;
for await (const container of blobServiceClient.listContainers()) {
console.log(`Container ${i++}: ${container.name}`);
}
```
Example using `iter.next()`:
```js
let i = 1;
const iter = blobServiceClient.listContainers();
let containerItem = await iter.next();
while (!containerItem.done) {
console.log(`Container ${i++}: ${containerItem.value.name}`);
containerItem = await iter.next();
}
```
Example using `byPage()`:
```js
// passing optional maxPageSize in the page settings
let i = 1;
for await (const response of blobServiceClient.listContainers().byPage({
maxPageSize: 20 })) {
if (response.containerItems) {
for (const container of response.containerItems) {
console.log(`Container ${i++}: ${container.name}`);
}
}
}
```
Example using paging with a marker:
```js
let i = 1;
let iterator = blobServiceClient.listContainers().byPage({ maxPageSize: 2
});
let response = (await iterator.next()).value;
// Prints 2 container names
if (response.containerItems) {
for (const container of response.containerItems) {
console.log(`Container ${i++}: ${container.name}`);
}
}
// Gets next marker
let marker = response.continuationToken;
// Passing next marker as continuationToken
iterator = blobServiceClient
.listContainers()
.byPage({ continuationToken: marker, maxPageSize: 10 });
response = (await iterator.next()).value;
// Prints 10 container names
if (response.containerItems) {
for (const container of response.containerItems) {
console.log(`Container ${i++}: ${container.name}`);
}
}
```
remarks: ''
isDeprecated: false
syntax:
content: >-
function listContainers(options?: ServiceListContainersOptions):
PagedAsyncIterableIterator<ContainerItem,
ServiceListContainersSegmentResponse, PageSettings>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.ServiceListContainersOptions" />
description: Options to list containers.
return:
description: An asyncIterableIterator that supports paging.
type: >-
PagedAsyncIterableIterator<<xref
uid="@azure/storage-blob.ContainerItem" />, <xref
uid="@azure/storage-blob.ServiceListContainersSegmentResponse" />,
PageSettings>
- name: setProperties(BlobServiceProperties, ServiceSetPropertiesOptions)
uid: '@azure/storage-blob.BlobServiceClient.setProperties'
package: '@azure/storage-blob'
summary: >-
Sets properties for a storage account’s Blob service endpoint, including
properties
for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft
delete settings.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-service-properties
remarks: ''
isDeprecated: false
syntax:
content: >-
function setProperties(properties: BlobServiceProperties, options?:
ServiceSetPropertiesOptions): Promise<ServiceSetPropertiesResponse>
parameters:
- id: properties
type: <xref uid="@azure/storage-blob.BlobServiceProperties" />
description: ''
- id: options
type: <xref uid="@azure/storage-blob.ServiceSetPropertiesOptions" />
description: Options to the Service Set Properties operation.
return:
description: Response data for the Service Set Properties operation.
type: >-
Promise<<xref
uid="@azure/storage-blob.ServiceSetPropertiesResponse" />>
- name: undeleteContainer(string, string, ServiceUndeleteContainerOptions)
uid: '@azure/storage-blob.BlobServiceClient.undeleteContainer'
package: '@azure/storage-blob'
summary: >-
Restore a previously deleted Blob container.
This API is only functional if Container Soft Delete is enabled for the
storage account associated with the container.
remarks: ''
isDeprecated: false
syntax:
content: >-
function undeleteContainer(deletedContainerName: string,
deletedContainerVersion: string, options?:
ServiceUndeleteContainerOptions): Promise<{ containerClient:
ContainerClient, containerUndeleteResponse: ContainerUndeleteResponse }>
parameters:
- id: deletedContainerName
type: string
description: Name of the previously deleted container.
- id: deletedContainerVersion
type: string
description: >-
Version of the previously deleted container, used to uniquely
identify the deleted container.
- id: options
type: <xref uid="@azure/storage-blob.ServiceUndeleteContainerOptions" />
description: Options to configure Container Restore operation.
return:
description: Container deletion response.
type: >-
Promise<{ containerClient: ContainerClient,
containerUndeleteResponse: ContainerUndeleteResponse }>
extends: StorageClient