was_bucket()

Read(564) Label: storage bucket, create, check,

Description:

Manage Windows Azure Storage buckets.

Syntax:

was_bucket(fd,bucket)

Note:

External library function (See External Library Guide).

 

The function manages WAS storage buckets, including create, delete and check whether a storage bucket exists or not. Perform only the check when no option works with it.

Parameter:

fd

WAS connection object

bucket

Storage bucket name

Option:

@c

Create a storage bucket; if the storage bucket having the current name already exists, do not create it

@d

Delete a storage bucket

Return value:

Boolean

Example:

 

A

 

1

=was_open("mywas","MSU4nLvFd+uYaFw8EtB2GzJ8e==","core.windows.net","https")

Create a WAS connection.

2

=was_bucket(A1,"test")

Check whether storage bucket named test exists or not.

3

=was_bucket@d(A1,"test1")

Check whether storage bucket named test1 exists or not, and delete it if it exists.

4

=was_bucket@c(A1,"test2")

Check whether storage bucket named test2 exists or not, and create one using such a name if it doesn’t exist.

5

>was_close(A1)

Close the WAS connection.