BlobContainerClient (Azure SDK for Java Reference Documentation)
Emma Terry
Published Feb 16, 2026
voidcreate()Creates a new container within a storage account.
Response<Void>createWithResponse(Map<String,String> metadata, PublicAccessType accessType, Duration timeout, Context context)Creates a new container within a storage account.
voiddelete()Marks the specified container for deletion.
Response<Void>deleteWithResponse(BlobRequestConditions accessConditions, Duration timeout, Context context)Marks the specified container for deletion.
booleanexists()Gets if the container this client represents exists in the cloud.
Response<Boolean>existsWithResponse(Duration timeout, Context context)Gets if the container this client represents exists in the cloud.
BlobContainerAccessPoliciesgetAccessPolicy()Returns the container's permissions.
Response<BlobContainerAccessPolicies>getAccessPolicyWithResponse(String leaseId, Duration timeout, Context context)Returns the container's permissions.
StorageAccountInfogetAccountInfo(Duration timeout)Returns the sku name and account kind for the account.
Response<StorageAccountInfo>getAccountInfoWithResponse(Duration timeout, Context context)Returns the sku name and account kind for the account.
StringgetAccountName()Get associated account name.
BlobClientgetBlobClient(String blobName)Initializes a new BlobClient object by concatenating blobName to the end of ContainerAsyncClient's URL.
BlobClientgetBlobClient(String blobName, String snapshot)Initializes a new BlobClient object by concatenating blobName to the end of ContainerAsyncClient's URL.
StringgetBlobContainerName()Get the container name.
StringgetBlobContainerUrl()Gets the URL of the container represented by this client.
CpkInfogetCustomerProvidedKey()HttpPipelinegetHttpPipeline()BlobContainerPropertiesgetProperties()Returns the container's metadata and system properties.
Response<BlobContainerProperties>getPropertiesWithResponse(String leaseId, Duration timeout, Context context)Returns the container's metadata and system properties.
BlobServiceVersiongetServiceVersion()Gets the service version the client is using.
PagedIterable<BlobItem>listBlobs()Returns a lazy loaded list of blobs in this container, with folder structures flattened.
PagedIterable<BlobItem>listBlobs(ListBlobsOptions options, Duration timeout)Returns a lazy loaded list of blobs in this container, with folder structures flattened.
PagedIterable<BlobItem>listBlobsByHierarchy(String directory)Returns a reactive Publisher emitting all the blobs and directories (prefixes) under the given directory (prefix).
PagedIterable<BlobItem>listBlobsByHierarchy(String delimiter, ListBlobsOptions options, Duration timeout)Returns a reactive Publisher emitting all the blobs and prefixes (directories) under the given prefix (directory).
voidsetAccessPolicy(PublicAccessType accessType, List<BlobSignedIdentifier> identifiers)Sets the container's permissions.
Response<Void>setAccessPolicyWithResponse(PublicAccessType accessType, List<BlobSignedIdentifier> identifiers, BlobRequestConditions accessConditions, Duration timeout, Context context)Sets the container's permissions.
voidsetMetadata(Map<String,String> metadata)Sets the container's metadata.
Response<Void>setMetadataWithResponse(Map<String,String> metadata, BlobRequestConditions accessConditions, Duration timeout, Context context)Sets the container's metadata.