Click or drag to resize
IOss Interface
The Object Storage Service (OSS) entry point interface.

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.8.0.0 (2.8.0)
Syntax
public interface IOss

The IOss type exposes the following members.

Methods
  NameDescription
Public methodAbortMultipartUpload
Aborts a multipart upload
Public methodAppendObject
Appends object to OSS according to the AppendObjectRequest
Public methodBeginAppendObject
Begins the async call to append object to OSS.
Public methodBeginCopyObject
Begins the async call to copy an object
Public methodBeginGetObject(GetObjectRequest, AsyncCallback, Object)
Begins the async call to get object according to the GetObjectRequest instance.
Public methodBeginGetObject(String, String, AsyncCallback, Object)
Begins the async call to get object by the bucket and key information.
Public methodBeginListObjects(String, AsyncCallback, Object)
Begins the async call to list objects.The returned object is type of OssObjectSummary.
Public methodBeginListObjects(ListObjectsRequest, AsyncCallback, Object)
Begins the async call to list objects under the specified Bucket with specified filters in ListObjectsRequest
Public methodBeginListObjects(String, String, AsyncCallback, Object)
Begins the async call to list objects under the specified bucket and prefix The returned object is type of OssObjectSummary.
Public methodBeginPutObject(PutObjectRequest, AsyncCallback, Object)
Begins the async call to upload object
Public methodBeginPutObject(String, String, Stream, AsyncCallback, Object)
Begins the async call of uploading object to specified bucket.
Public methodBeginPutObject(String, String, String, AsyncCallback, Object)
Begins the async call to upload local file to OSS under the specified bucket.
Public methodBeginPutObject(String, String, Stream, ObjectMetadata, AsyncCallback, Object)
Begins the async call to upload object
Public methodBeginPutObject(String, String, String, ObjectMetadata, AsyncCallback, Object)
Begins the async call to upload object with specified metadata.
Public methodBeginUploadPart
Begins the async call to upload a part
Public methodBeginUploadPartCopy
Begins the async call to copy an existing object as one part of a multipart upload.
Public methodCompleteMultipartUpload
Completes a multipart upload.
Public methodCopyBigObject Obsolete.
Deprecated. Use ResumableCopyObject instead. Copy the specified file with optional checkpoint support.
Public methodCopyObject
copy an object to another one in OSS.
Public methodCreateBucket(String)
Creates a new bucket
Public methodCreateBucket(String, NullableStorageClass)
Creates the bucket with specified storage class.
Public methodCreateSymlink(CreateSymlinkRequest)
Creates the symlink of the target object
Public methodCreateSymlink(String, String, String)
Creates the symlink of the target object
Public methodDeleteBucket
Deletes a empty bucket.If the bucket is not empty, this will fail.
Public methodDeleteBucketCors
Deletes the CORS rules on the Bucket
Public methodDeleteBucketLifecycle
Deletes the bucket's all lifecycle rules.
Public methodDeleteBucketLogging
Deletes the Bucket logging config
Public methodDeleteBucketWebsite
Deletes the Bucket static website config
Public methodDeleteObject
Deletes OssObject
Public methodDeleteObjects
Deletes multiple objects
Public methodDoesBucketExist
Checks if the bucket exists
Public methodDoesObjectExist
Checks if the object exists
Public methodEndAppendObject
Ends the async call to append object to OSS. WHen it's called, the actual upload has been done.
Public methodEndCopyResult
Ends the async call to copy an object.
Public methodEndGetObject
Ends the async call to get the object.
Public methodEndListObjects
Ends the async call of listing objects.
Public methodEndPutObject
Ends the async call to upload the object. When it's called, the actual upload has already been done.
Public methodEndUploadPart
Ends the async call to upload a part.
Public methodEndUploadPartCopy
Ends the async call to copy an existing object as one part of a multipart upload.
Public methodGeneratePostPolicy
Generates the post policy
Public methodGeneratePresignedUri(GeneratePresignedUriRequest)
Generates a signed url
Public methodGeneratePresignedUri(String, String)
Generates the signed url with default expiration time (15 min) that supports HTTP GET method.
Public methodGeneratePresignedUri(String, String, SignHttpMethod)
Generates the pre-signed url with specified expiration time that supports the specified HTTP method
Public methodGeneratePresignedUri(String, String, DateTime)
Generates the pre-signed GET url with specified expiration time
Public methodGeneratePresignedUri(String, String, DateTime, SignHttpMethod)
Generates the presigned url with specified method and specified expiration time.
Public methodGetBucketAcl
Gets the bucket ACL
Public methodGetBucketCors
Gets the Bucket CORS rules.
Public methodGetBucketInfo
Gets the bucket information.
Public methodGetBucketLifecycle
Gets Bucket lifecycle instance.
Public methodGetBucketLocation
Gets the bucket location
Public methodGetBucketLogging
Gets the bucket logging config
Public methodGetBucketMetadata
Gets the bucket metadata
Public methodGetBucketReferer
Gets the Bucket referer config
Public methodGetBucketStat
Gets the bucket stat.
Public methodGetBucketStorageCapacity
Gets Bucket storage capacity
Public methodGetBucketWebsite
Gets Bucket static website config
Public methodGetObject(Uri)
Gets object via signed url
Public methodGetObject(GetObjectRequest)
Gets object via the bucket name and key name in the GetObjectRequest instance.
Public methodGetObject(String, String)
Gets object
Public methodGetObject(GetObjectRequest, Stream)
Gets the object and assign the data to the stream.
Public methodGetObjectAcl
Gets the object ACL
Public methodGetObjectMetadata
Gets OssObject metadata.
Public methodGetSymlink
Gets the target file of the symlink.
Public methodInitiateMultipartUpload
Initiate a multipart upload
Public methodListBuckets
List all buckets under the current account.
Public methodListBuckets(ListBucketsRequest)
Lists all buckets according to the ListBucketsRequest, which could have filters by prefix, marker, etc.
Public methodListMultipartUploads
Lists ongoing multipart uploads
Public methodListObjects(String)
Lists all objects under the Bucket
Public methodListObjects(ListObjectsRequest)
Lists objects according to the ListObjectsRequest. The returned object is type of OssObjectSummary.
Public methodListObjects(String, String)
Lists object with specified prefix
Public methodListParts
Lists successfully uploaded parts of a specific upload id
Public methodModifyObjectMeta
Modify the object metadata.
Public methodPutBigObject(String, String, Stream, ObjectMetadata, NullableInt64) Obsolete.
Deprecated method. Use ResumableUploadObject instead. Upload the specified file to OSS. If the file size is same or less than the part size, use normal file upload instead. Otherwise it will use multipart file upload.
Public methodPutBigObject(String, String, String, ObjectMetadata, NullableInt64) Obsolete.
Deprecated method.Please use ResumableUploadObject. Uploads the specified file with optional part size. If the file size is not bigger than the part size, then use normal file upload. Otherwise use multipart upload.
Public methodPutObject(PutObjectRequest)
Upload a OssObject according to PutObjectRequest.
Public methodPutObject(Uri, Stream)
Uploads the instream via the signed url.
Public methodPutObject(Uri, String)
Uploads the file via the signed url.
Public methodPutObject(String, String, Stream)
Puts object to the specified bucket with specified object key.
Public methodPutObject(String, String, String)
Uploads a local file to OSS under the specified bucket
Public methodPutObject(Uri, Stream, ObjectMetadata)
Uploads the stream via the signed url with the metadata.
Public methodPutObject(Uri, String, ObjectMetadata)
Uploads the file via the signed url with the metadata.
Public methodPutObject(String, String, Stream, ObjectMetadata)
Uploads the content to object under the specified bucket and object key.
Public methodPutObject(String, String, String, ObjectMetadata)
Uploads a local file with specified metadata to OSS.
Public methodRestoreObject
Restores the object.
Public methodResumableCopyObject
Resumable object copy. If the file size is less than part size, normal file upload is used; otherwise multipart upload is used.
Public methodResumableDownloadObject
Download a file. Internally it may use multipart download in case the file is big
Public methodResumableUploadObject(UploadObjectRequest)
Resumables the upload object. The request.UploadStream will be disposed once the call finishes.
Public methodResumableUploadObject(String, String, Stream, ObjectMetadata, String, NullableInt64, EventHandlerStreamTransferProgressArgs)
Resumable file upload. It automaticlly uses multipart upload upon big file and also support resume upload after a failed upload.
Public methodResumableUploadObject(String, String, String, ObjectMetadata, String, NullableInt64, EventHandlerStreamTransferProgressArgs)
Resumable file upload. It automaticlly uses multipart upload upon big file and also support resume upload after a failed upload.
Public methodSetBucketAcl(SetBucketAclRequest)
Sets the bucket ACL
Public methodSetBucketAcl(String, CannedAccessControlList)
Sets the bucket ACL
Public methodSetBucketCors
Sets the CORS rules for the Bucket
Public methodSetBucketLifecycle
Sets Bucket lifecycle rule
Public methodSetBucketLogging
Sets Bucket logging config OSS will log the access information on this bucket, according to the logging config The hourly log file will be stored in the target bucket.
Public methodSetBucketReferer
Sets the Bucket referer config
Public methodSetBucketStorageCapacity
Sets Bucket storage capacity
Public methodSetBucketWebsite
Sets Bucket static website config
Public methodSetEndpoint
Sets the endpoint
Public methodSetObjectAcl(SetObjectAclRequest)
Sets the object ACL
Public methodSetObjectAcl(String, String, CannedAccessControlList)
Sets the object ACL
Public methodSwitchCredentials
Switches the user credentials
Public methodUploadPart
Uploads a part
Public methodUploadPartCopy
Copy an existing object as one part of a multipart upload.
Top
Remarks

OSS is the highly scalable, secure, inexpensive and reliable cloud storage service. This interface is to access all the functionality OSS provides. The same functionality could be done in web console. Multimedia sharing web app, network disk, or enterprise data backup app could be easily built based on OSS.

OSS website:http://www.aliyun.com/product/oss

See Also