Overview
This document describes all APIs of Object Storage Service (OBS) Python SDK, including the API description, method definition, and parameter description.
SDK API Overview
| Interface | Method Definition | Function Description |
|---|---|---|
| ObsClient.createBucket | You can use this API to create a bucket. | |
| ObsClient.listBuckets | You can use this API to obtain the bucket list. In the list, bucket names are displayed in lexicographical order. | |
| ObsClient.headBucket | You can use this API to check whether a bucket exists. | |
| ObsClient.deleteBucket | You can use this API to delete a bucket. The bucket to be deleted must be empty. | |
| ObsClient.listObjects | You can use this API to list objects in a bucket. By default, a maximum of 1000 objects are listed. | |
| ObsClient.listVersions | You can use this API to list versioned objects in a bucket. By default, a maximum of 1000 versioned objects are listed. | |
| ObsClient.listMultipartUploads | You can use this API to list the multipart uploads that are initialized but not combined or aborted in a specified bucket. | |
| ObsClient.getBucketMetadata | You can use this API to send a HEAD request to a bucket to obtain the bucket metadata such as CORS rules (if set), the storage class, and other information. | |
| ObsClient.getBucketLocation | You can use this API to obtain the bucket location. | |
| ObsClient.getBucketStorageInfo | You can use this API to obtain storage information about a bucket, including the bucket size and number of objects in the bucket. | |
| ObsClient.setBucketQuota | You can use this API to set the bucket quota. A bucket quota must be expressed in bytes and the maximum value is 263-1. Value 0 indicates that no upper limit is set for the bucket quota. | |
| ObsClient.getBucketQuota | You can use this API to obtain the bucket quota. Value 0 indicates that no upper limit is set for the bucket quota. | |
| ObsClient.setBucketStoragePolicy | You can use this API to set a storage class for a bucket. The storage class of an object defaults to be that of its residing bucket. | |
| ObsClient.getBucketStoragePolicy | You can use this API to obtain a storage class of a bucket. | |
| ObsClient.setBucketAcl | You can use this API to set a bucket ACL. | |
| ObsClient.getBucketAcl | You can use this API to obtain a bucket ACL. | |
| ObsClient.setBucketLogging | You can use this API to set access logging configuration for a bucket. | |
| ObsClient.getBucketLogging | You can use this API to obtain access logging configuration of a bucket. | |
| ObsClient.setBucketPolicy | You can use this API to set a bucket policy. If the bucket already has a policy, the policy will be overwritten by the one specified in this request. | |
| ObsClient.getBucketPolicy | You can use this API to obtain a bucket policy. | |
| ObsClient.deleteBucketPolicy | You can use this API to delete the policy of a bucket. | |
| ObsClient.setBucketLifecycle | You can use this API to set lifecycle rules for a bucket, to periodically transit storage classes of objects and delete objects in the bucket. | |
| Obtaining the Lifecycle Configuration Information of a Bucket | ObsClient.getBucketLifecycle | You can use this API to obtain the lifecycle rules of a bucket. |
| ObsClient.deleteBucketLifecycle | You can use this API to delete all lifecycle rules of a bucket. | |
| ObsClient.setBucketWebsite | You can use this API to set website hosting for a bucket. | |
| ObsClient.getBucketWebsite | You can use this API to obtain the website hosting settings of a bucket. | |
| ObsClient.deleteBucketWebsite | You can use this API to delete the website hosting settings of a bucket. | |
| ObsClient.setBucketVersioning | You can use this API to set the versioning status for a bucket. | |
| ObsClient.getBucketVersioning | You can use this API to obtain the versioning status of a bucket. | |
| ObsClient.setBucketCors | You can use this API to set CORS rules for a bucket to allow client browsers to send cross-domain requests. | |
| ObsClient.getBucketCors | You can use this API to obtain the CORS rules of a specified bucket. | |
| ObsClient.deleteBucketCors | You can use this API to delete the CORS rules of a specified bucket. | |
| ObsClient.setBucketNotification | You can use this API to configure event notification for a bucket. You will be notified of all specified operations performed on the bucket. | |
| ObsClient.getBucketNotification | You can use this API to obtain the event notification configuration of a bucket. | |
| ObsClient.setBucketTagging | You can use this API to set the tags for a bucket. | |
| ObsClient.getBucketTagging | You can use this API to obtain the tags of a specified bucket. | |
| ObsClient.deleteBucketTagging | You can use this API to delete the tags of a specified bucket. | |
| ObsClient.putContent | You can use this API to upload an object to a specified bucket. | |
| ObsClient.putFile | You can use this API to upload a file or folder to a specified bucket. | |
| ObsClient.appendObject | You can use this API to upload an object in appendable mode and append data to the object. | |
| ObsClient.getObject | You can use this API to download an object in a specified bucket. | |
| ObsClient.copyObject | You can use this API to create a copy for an object in a specified bucket. | |
| ObsClient.deleteObject | You can use this API to delete an object from a specified bucket. | |
| ObsClient.deleteObjects | You can use this API to delete objects from a specified bucket in a batch. | |
| ObsClient.getObjectMetadata | You can use this API to send a HEAD request to the object of a specified bucket to obtain its metadata. | |
| ObsClient.setObjectMetadata | You can use this API to modify metadata of objects in a specified bucket. | |
| ObsClient.setObjectAcl | You can use this API to set the ACL for an object in a specified bucket. | |
| ObsClient.getObjectAcl | You can use this API to obtain the ACL of an object in a specified bucket. | |
| ObsClient.initiateMultipartUpload | You can use this API to initialize a multipart upload in a specified bucket. | |
| ObsClient.uploadPart | After a multipart upload is initialized, you can use this API to upload a part to a specified bucket by using the multipart upload ID. | |
| ObsClient.copyPart | After a multipart upload is initialized, you can use this API to copy a part to a specified bucket by using the multipart upload ID. | |
| ObsClient.listParts | You can use this API to list the uploaded parts in a specified bucket by using the multipart upload ID. | |
| ObsClient.completeMultipartUpload | You can use this API to combine the uploaded parts in a specified bucket by using the multipart upload ID. | |
| ObsClient.abortMultipartUpload | You can use this API to abort a multipart upload in a specified bucket by using the multipart upload ID. | |
| ObsClient.restoreObject | You can use this API to restore an object in the OBS Archive storage class in a specified bucket. | |
| ObsClient.createSignedUrl | You can use this API to generate a URL whose Query parameter is carried with authentication information, by specifying the AK and SK, HTTP method, and request parameter. You can use a signed URL to perform specific operations on OBS. | |
| Generating Browser-Based Upload Parameters with Authentication Information | ObsClient.createPostSignature | You can use this API to generate parameters for authentication. The parameters can be used to upload data through POST operations based on a browser. |
| ObsClient.uploadFile | You can use this API to encapsulate and enhance multipart upload in response to an upload failure of large files due to unstable network or program breakdown. | |
| ObsClient.downloadFile | You can use this API to encapsulate and enhance partial download in response to a download failure of large files due to unstable network or program breakdown. | |
| WorkflowClient.createWorkflow | You can use this API to create a workflow based on a template. | |
| WorkflowClient.getWorkflow | You can use this API to query workflows by name. | |
| WorkflowClient.deleteWorkflow | You can use this API to delete a workflow. | |
| WorkflowClient.updateWorkflow | You can use this API to update a workflow. | |
| WorkflowClient.listWorkflow | You can use this API to query the workflow list. | |
| WorkflowClient.asyncAPIStartWorkflow | You can call this API to configure the triggering of a workflow by an API. | |
| WorkflowClient.listWorkflowExecution | You can use this API to query the workflow instance list. | |
| WorkflowClient.getWorkflowExecution | You can use this API to query the details of a workflow instance. | |
| WorkflowClient.restoreFailedWorkflowExecution | You can use this API to restore a failed workflow instance. A workflow instance can be restored only when it fails to be executed. Once restored, the execution continues from where the workflow instance failed. Executed parts are not executed again. | |
| WorkflowClient.putTriggerPolicy | You can use this API to bind a workflow trigger to a bucket. | |
| WorkflowClient.getTriggerPolicy | You can use this API to query a workflow trigger bound to a bucket. | |
| WorkflowClient.deleteTriggerPolicy | You can use this API to delete a workflow trigger bound to a bucket. |
Next Article: SDK Download Links
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.