BlobContainerPermissions Class

Definition

Represents the permissions for a container.

The container's permissions encompass two types of access settings for the container:

  • The container's public access setting, represented by the publicAccess property. The public access setting indicates whether the container and its blobs can be read via an anonymous request.

  • The container's access policies, represented by the getSharedAccessPolicies method. This setting references a collection of shared access policies for the container. A shared access policy may be used to control the start time, expiry time, and permissions for one or more shared access signatures. A shared access signature provides delegated access to the container's resources.

For more information on managing container permissions, see Managing Access to Containers and Blobs.

public class BlobContainerPermissions extends Permissions<SharedAccessBlobPolicy>
Inheritance
java.lang.Object
BlobContainerPermissions

Inherited Members

Constructors

BlobContainerPermissions()

Creates an instance of the class.

Methods

getPublicAccess()

Gets the public access setting for the container.

The public access setting indicates whether the container and its blobs can be read via an anonymous request.

The BlobContainerPublicAccessType enumeration provides three levels of anonymous read access:

For more information on managing anonymous access to Blob service resources, see Setting Access Control for Containers.

setPublicAccess(final BlobContainerPublicAccessType publicAccess)

Sets the public access setting for the container.

The public access setting indicates whether the container and its blobs can be read via an anonymous request.

The BlobContainerPublicAccessType enumeration provides three levels of anonymous read access:

For more information on managing anonymous access to Blob service resources, see Setting Access Control for Containers.

Applies to