The symbolic link feature lets you conveniently access frequently used objects in a bucket. After you create a symbolic link, you can use it to access an object in a way that is similar to a shortcut in Windows. This topic describes how to use the OSS C# SDK to create and obtain symbolic links.
Notes
-
The sample code in this topic uses the China (Hangzhou) region as an example. The region ID is
cn-hangzhou. By default, a public endpoint is used. If you access OSS from other Alibaba Cloud products in the same region, use an internal endpoint. For more information about the mappings between OSS regions and endpoints, see OSS regions and endpoints. -
To create a symbolic link, you must have the
oss:PutObjectpermission. To obtain a symbolic link, you must have theoss:GetObjectpermission. For more information, see Grant custom access policies to RAM users.
Sample code
References
-
For the complete sample code on how to create a symbolic link, see PutSymlink.cs.
-
For the complete sample code on how to obtain a symbolic link, see GetSymlink.cs.