AccessPolicy Property
The access policy assigned to a container.
Object Oriented Interface
public function getAccessPolicy(); public function setAccessPolicy($value);
Procedural Interface
inazure_blob_get($res, 2 ); inazure_blob_set($res, 2, $value );
Default Value
2
Remarks
This property allows you to specify whether blobs in a container can be accessed publicly. The access policy is set for a container when calling CreateContainer or SetContainerACL. AccessPolicy will also be populated after a GetContainerACL call.
The available access policies are:
0 (apFullPublic) | Full public read access. Both ContainerName and blob data can be read via anonymous requests. |
1 (apBlobsOnly) | Public read access for blobs only. Only blob data within ContainerName can be read via anonymous requests. |
2 (apPrivate) | No public read access. ContainerName and blob data can be read by the account owner only. |
Data Type
Integer