forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: weihongmin1 <weihongmin1@huawei.com> Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
947 lines
36 KiB
JSON
947 lines
36 KiB
JSON
[
|
|
{
|
|
"desc":"This section describes the version compatibility and important notes about the C SDK of Object Storage Service (OBS).3.*.* is compatible with 3.0.0.3.*.* is incompatible ",
|
|
"product_code":"obs",
|
|
"title":"Before You Start",
|
|
"uri":"obs_20_0101.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"1"
|
|
},
|
|
{
|
|
"desc":"This section provides the download and compilation methods for the OBS SDK for C.Latest version of OBS C SDK source code: Click here to download.You can compile the SDK b",
|
|
"product_code":"obs",
|
|
"title":"Downloading and Installing the SDK",
|
|
"uri":"obs_20_0004.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"2"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Getting Started",
|
|
"uri":"obs_20_0100.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"3"
|
|
},
|
|
{
|
|
"desc":"OBS uses the AK and SK in a user account for signature verification to make sure that only authorized accounts can access specified OBS resources. Detailed explanations a",
|
|
"product_code":"obs",
|
|
"title":"Creating Access Keys",
|
|
"uri":"obs_20_0103.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"3",
|
|
"code":"4"
|
|
},
|
|
{
|
|
"desc":"You can click here to view the endpoints and regions enabled for OBS.",
|
|
"product_code":"obs",
|
|
"title":"Obtaining Endpoints",
|
|
"uri":"obs_20_0104.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"3",
|
|
"code":"5"
|
|
},
|
|
{
|
|
"desc":"ObsClient functions as the C client for accessing OBS. It offers callers a series of APIs for interaction with OBS. These APIs are used for managing and operating resourc",
|
|
"product_code":"obs",
|
|
"title":"Initializing the SDK",
|
|
"uri":"obs_20_1805.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"3",
|
|
"code":"6"
|
|
},
|
|
{
|
|
"desc":"When the function of SDK for C is called, the option parameter must be passed. You can use function init_obs_options to initialize the option configuration, including the",
|
|
"product_code":"obs",
|
|
"title":"Initializing option",
|
|
"uri":"obs_20_0105.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"3",
|
|
"code":"7"
|
|
},
|
|
{
|
|
"desc":"A bucket is a global namespace of OBS and is a data container. It functions as a root directory of a file system and can store objects.Sample code:static void test_create",
|
|
"product_code":"obs",
|
|
"title":"Creating a Bucket",
|
|
"uri":"obs_20_0106.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"3",
|
|
"code":"8"
|
|
},
|
|
{
|
|
"desc":"The data flow is saved to callback_data (see the callback_data definition in Uploading an Object - Streaming). Use the callback function put_object_data_callback defined ",
|
|
"product_code":"obs",
|
|
"title":"Uploading an Object",
|
|
"uri":"obs_20_0107.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"3",
|
|
"code":"9"
|
|
},
|
|
{
|
|
"desc":"This example shows how to download an object from a bucket to a directory and save the object as test.Sample code:For more information, see Downloading an Object.",
|
|
"product_code":"obs",
|
|
"title":"Downloading an Object",
|
|
"uri":"obs_20_0108.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"3",
|
|
"code":"10"
|
|
},
|
|
{
|
|
"desc":"This example shows how to list all objects in a bucket.Sample code:For more information, see Listing Objects in a Bucket.",
|
|
"product_code":"obs",
|
|
"title":"Listing Objects",
|
|
"uri":"obs_20_0109.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"3",
|
|
"code":"11"
|
|
},
|
|
{
|
|
"desc":"This example shows how to delete an object from a bucket.Sample code:For more information, see Deleting an Object.",
|
|
"product_code":"obs",
|
|
"title":"Deleting an Object",
|
|
"uri":"obs_20_0110.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"3",
|
|
"code":"12"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Initialization",
|
|
"uri":"obs_20_0200.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"13"
|
|
},
|
|
{
|
|
"desc":"To use OBS, you need a valid pair of AK and SK for signature authentication. For details, see Creating Access Keys.After obtaining the AK and SK, you can start initializa",
|
|
"product_code":"obs",
|
|
"title":"Configuring Access Keys",
|
|
"uri":"obs_20_0201.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"13",
|
|
"code":"14"
|
|
},
|
|
{
|
|
"desc":"ObsClient functions as the C client for accessing OBS. It offers callers a series of APIs for interaction with OBS. These APIs are used for managing and operating resourc",
|
|
"product_code":"obs",
|
|
"title":"Initializing the SDK",
|
|
"uri":"obs_20_0202.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"13",
|
|
"code":"15"
|
|
},
|
|
{
|
|
"desc":"When the function of SDK for C is called, the obs_options parameter must be passed. You can use function init_obs_options to initialize the obs_options configuration, inc",
|
|
"product_code":"obs",
|
|
"title":"Configuring option",
|
|
"uri":"obs_20_0203.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"13",
|
|
"code":"16"
|
|
},
|
|
{
|
|
"desc":"The OBS C SDK log path is specified by the LogPath field in OBS.ini. By default, logs are stored in the logs directory at the same level as the lib directory of the C SDK",
|
|
"product_code":"obs",
|
|
"title":"Configuring SDK Logging",
|
|
"uri":"obs_20_0204.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"13",
|
|
"code":"17"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Bucket Management",
|
|
"uri":"obs_20_0300.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"18"
|
|
},
|
|
{
|
|
"desc":"OBS buckets are containers for storing objects you upload to OBS. This API creates a bucket.When creating a bucket, you can also configure parameters such as the storage ",
|
|
"product_code":"obs",
|
|
"title":"Creating a Bucket",
|
|
"uri":"obs_20_0301.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"19"
|
|
},
|
|
{
|
|
"desc":"OBS buckets are containers for storing objects you upload to OBS. This API returns a list of all buckets that meet the specified conditions in all regions of the current ",
|
|
"product_code":"obs",
|
|
"title":"Listing Buckets",
|
|
"uri":"obs_20_0302.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"20"
|
|
},
|
|
{
|
|
"desc":"This API deletes an empty bucket. You can delete buckets you no longer use to free up space. The name of a deleted bucket can be reused for another bucket at least 30 min",
|
|
"product_code":"obs",
|
|
"title":"Deleting a Bucket",
|
|
"uri":"obs_20_0303.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"21"
|
|
},
|
|
{
|
|
"desc":"This API checks whether a bucket exists. If an HTTP status code 200 is returned, the bucket exists. If 404 is returned, the bucket does not exist.To determine whether a b",
|
|
"product_code":"obs",
|
|
"title":"Checking Whether a Bucket Exists",
|
|
"uri":"obs_20_0304.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"22"
|
|
},
|
|
{
|
|
"desc":"Access control lists (ACLs) allow resource owners to grant other accounts the permissions to access resources. By default, only the resource owner has full control over r",
|
|
"product_code":"obs",
|
|
"title":"Configuring a Bucket ACL",
|
|
"uri":"obs_20_0305.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"23"
|
|
},
|
|
{
|
|
"desc":"Access control lists (ACLs) allow resource owners to grant other accounts the permissions to access resources. By default, only the resource owner has full control over r",
|
|
"product_code":"obs",
|
|
"title":"Obtaining a Bucket ACL",
|
|
"uri":"obs_20_0311.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"24"
|
|
},
|
|
{
|
|
"desc":"This API returns the storage information on a bucket, including the number of objects and the space occupied by the objects in the bucket.OBS measures bucket storage stat",
|
|
"product_code":"obs",
|
|
"title":"Obtaining Bucket Storage Information",
|
|
"uri":"obs_20_0306.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"25"
|
|
},
|
|
{
|
|
"desc":"A quota limits the maximum capacity allowed in a bucket. By default, there is no limit on the storage capacity of the entire OBS system or a single bucket, and any number",
|
|
"product_code":"obs",
|
|
"title":"Setting a Bucket Quota",
|
|
"uri":"obs_20_0307.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"26"
|
|
},
|
|
{
|
|
"desc":"This API returns the storage quota (upper limit of the storage capacity) of a bucket. If the quota is 0, there is no upper limit on the bucket capacity.A bucket storage q",
|
|
"product_code":"obs",
|
|
"title":"Obtaining the Storage Quota of a Bucket",
|
|
"uri":"obs_20_0310.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"27"
|
|
},
|
|
{
|
|
"desc":"This API configures a storage class for a bucket. If you do not specify a storage class when uploading or copying an object, or initiating a multipart upload, the object ",
|
|
"product_code":"obs",
|
|
"title":"Configuring a Storage Class for a Bucket",
|
|
"uri":"obs_20_0308.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"28"
|
|
},
|
|
{
|
|
"desc":"This API returns the storage class of a bucket.To obtain a bucket's storage class, you must be the bucket owner or have the required permission (obs:bucket:GetBucketStora",
|
|
"product_code":"obs",
|
|
"title":"Obtaining the Storage Class of a Bucket",
|
|
"uri":"obs_20_0309.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"18",
|
|
"code":"29"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Object Upload",
|
|
"uri":"obs_20_0400.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"30"
|
|
},
|
|
{
|
|
"desc":"This API uploads a local fileto OBS over the Internet. You can upload text, pictures, videos, or any other types of files.You can upload texts, images, videos, or any oth",
|
|
"product_code":"obs",
|
|
"title":"Uploading an Object - Streaming",
|
|
"uri":"obs_20_0401.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"30",
|
|
"code":"31"
|
|
},
|
|
{
|
|
"desc":"This API uploads local filesto OBS over the Internet. You can upload text, pictures, videos, or any other types of files.This API uploads an object in text to a bucket.To",
|
|
"product_code":"obs",
|
|
"title":"Uploading an Object - File-Based",
|
|
"uri":"obs_20_0402.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"30",
|
|
"code":"32"
|
|
},
|
|
{
|
|
"desc":"This API creates a folder in an existing bucket to manage data in OBS.OBS does not involve folders like in a file system. All elements in buckets are objects. To create a",
|
|
"product_code":"obs",
|
|
"title":"Creating a Folder",
|
|
"uri":"obs_20_0403.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"30",
|
|
"code":"33"
|
|
},
|
|
{
|
|
"desc":"The resumable upload is an encapsulated and enhanced version of the multipart upload used for dealing with possible upload failures of large files when the network connec",
|
|
"product_code":"obs",
|
|
"title":"Uploading an Object - Resumable",
|
|
"uri":"obs_20_0407.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"30",
|
|
"code":"34"
|
|
},
|
|
{
|
|
"desc":"This API uploads a file or folder to an existing OBS bucket. You can upload text, pictures, videos, or any other types of files.This API adds data to the end of a specifi",
|
|
"product_code":"obs",
|
|
"title":"Uploading an Object - Append",
|
|
"uri":"obs_20_0408.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"30",
|
|
"code":"35"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Object Download",
|
|
"uri":"obs_20_0500.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"36"
|
|
},
|
|
{
|
|
"desc":"This API downloads an object as text from OBS to your local computer.To download an object, you must be the bucket owner or have the required permission (obs:object:GetOb",
|
|
"product_code":"obs",
|
|
"title":"Downloading an Object",
|
|
"uri":"obs_20_0501.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"36",
|
|
"code":"37"
|
|
},
|
|
{
|
|
"desc":"This API returns the objects that meet one or more conditions. If there are no objects that meet the specified conditions, an error is returned.To download an object, you",
|
|
"product_code":"obs",
|
|
"title":"Downloading an Object - Conditional",
|
|
"uri":"obs_20_0502.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"36",
|
|
"code":"38"
|
|
},
|
|
{
|
|
"desc":"To obtain the content of an object in the Cold storage class, you need to restore the object first and then you can download it. After an object is restored, a copy of th",
|
|
"product_code":"obs",
|
|
"title":"Restoring a Cold Object",
|
|
"uri":"obs_20_0503.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"36",
|
|
"code":"39"
|
|
},
|
|
{
|
|
"desc":"Downloading large files often fails due to an unstable network or program breakdown. It is a waste of resources to download files again. Moreover, the restarted download ",
|
|
"product_code":"obs",
|
|
"title":"Downloading an Object - Resumable",
|
|
"uri":"obs_20_0504.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"36",
|
|
"code":"40"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Object Management",
|
|
"uri":"obs_20_0600.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"41"
|
|
},
|
|
{
|
|
"desc":"This API sets properties for an object when uploading it. Object properties include the object length, MIME type, MD5 value (for verification), storage class, and custom ",
|
|
"product_code":"obs",
|
|
"title":"Setting Object Properties",
|
|
"uri":"obs_20_0404.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"42"
|
|
},
|
|
{
|
|
"desc":"Object metadata contains a set of name-value pairs that are used for describing and managing objects.Currently, only the system-defined metadata is supported. System-defi",
|
|
"product_code":"obs",
|
|
"title":"Obtaining Object Properties",
|
|
"uri":"obs_20_0601.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"43"
|
|
},
|
|
{
|
|
"desc":"Access control lists (ACLs) allow resource owners to grant other accounts the permissions to access resources. By default, only the resource owner has full control over r",
|
|
"product_code":"obs",
|
|
"title":"Setting a Pre-defined ACL During Object Upload",
|
|
"uri":"obs_20_0602.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"44"
|
|
},
|
|
{
|
|
"desc":"Access control lists (ACLs) allow resource owners to grant other accounts the permissions to access resources. By default, only the resource owner has full control over r",
|
|
"product_code":"obs",
|
|
"title":"Setting a Pre-defined ACL for an Object",
|
|
"uri":"obs_20_0314.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"45"
|
|
},
|
|
{
|
|
"desc":"Access control lists (ACLs) allow resource owners to grant other accounts the permissions to access resources. By default, only the resource owner has full control over r",
|
|
"product_code":"obs",
|
|
"title":"Setting a User-defined Object ACL",
|
|
"uri":"obs_20_0315.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"46"
|
|
},
|
|
{
|
|
"desc":"Access control lists (ACLs) allow resource owners to grant other accounts the permissions to access resources. By default, only the resource owner has full control over r",
|
|
"product_code":"obs",
|
|
"title":"Obtaining the ACL of an Object",
|
|
"uri":"obs_20_0316.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"47"
|
|
},
|
|
{
|
|
"desc":"This API lists some or all of the objects in a bucket. You can use parameters such as the prefix, number of returned objects, and start position to list objects that meet",
|
|
"product_code":"obs",
|
|
"title":"Listing Objects in a Bucket",
|
|
"uri":"obs_20_0603.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"48"
|
|
},
|
|
{
|
|
"desc":"This API deletes an object in the specified bucket to save space and costs.To delete an object, you must be the bucket owner or have the required permission (obs:object:D",
|
|
"product_code":"obs",
|
|
"title":"Deleting an Object",
|
|
"uri":"obs_20_0604.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"49"
|
|
},
|
|
{
|
|
"desc":"This API deletes objects in a batch from a specific bucket. Deleted objects cannot be restored.In a batch deletion, OBS concurrently deletes the specified objects and ret",
|
|
"product_code":"obs",
|
|
"title":"Batch Deleting Objects",
|
|
"uri":"obs_20_1813.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"50"
|
|
},
|
|
{
|
|
"desc":"This API copies an object stored in a specified bucket to another path by creating a copy of the object. You can copy an object of up to 5 GB in a single operation.To cop",
|
|
"product_code":"obs",
|
|
"title":"Copying an Object",
|
|
"uri":"obs_20_0605.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"41",
|
|
"code":"51"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Multipart Upload APIs",
|
|
"uri":"obs_20_1812.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"52"
|
|
},
|
|
{
|
|
"desc":"You can upload a large file using multipart upload. Multipart upload is applicable to many scenarios. Below are some examples.A file to be uploaded is larger than 100 MB.",
|
|
"product_code":"obs",
|
|
"title":"Multipart Upload APIs",
|
|
"uri":"obs_20_1811.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"52",
|
|
"code":"53"
|
|
},
|
|
{
|
|
"desc":"This API initiates a multipart upload and returns a globally unique upload ID. You can use this upload ID in your subsequent requests for uploading, assembling, and listi",
|
|
"product_code":"obs",
|
|
"title":"Initiating a Multipart Upload",
|
|
"uri":"obs_20_0405.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"52",
|
|
"code":"54"
|
|
},
|
|
{
|
|
"desc":"After a multipart upload is initiated, this API uploads a part to a specified bucket. In the upload request, the multipart upload ID must be included. The last part uploa",
|
|
"product_code":"obs",
|
|
"title":"Uploading a Part",
|
|
"uri":"obs_20_1810.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"52",
|
|
"code":"55"
|
|
},
|
|
{
|
|
"desc":"This API assembles the uploaded parts to complete the multipart upload. Before performing this operation, you cannot download the uploaded data. When assembling parts, yo",
|
|
"product_code":"obs",
|
|
"title":"Assembling Parts",
|
|
"uri":"obs_20_1809.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"52",
|
|
"code":"56"
|
|
},
|
|
{
|
|
"desc":"This API lists multipart uploads that have been initiated but not completed or cancelled.For each listing request, OBS can list a maximum of 1,000 multipart upload tasks.",
|
|
"product_code":"obs",
|
|
"title":"Listing Multipart Uploads",
|
|
"uri":"obs_20_1808.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"52",
|
|
"code":"57"
|
|
},
|
|
{
|
|
"desc":"This API lists the uploaded parts in a specified bucket. This request must contain the multipart upload ID.You can list the uploaded parts of a specified multipart upload",
|
|
"product_code":"obs",
|
|
"title":"Listing Uploaded Parts",
|
|
"uri":"obs_20_1807.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"52",
|
|
"code":"58"
|
|
},
|
|
{
|
|
"desc":"This API uploads a part for a specified multipart upload by copying data to a specified bucket.After initiating a multipart upload task, you can add parts for this task b",
|
|
"product_code":"obs",
|
|
"title":"Copying a Part",
|
|
"uri":"obs_20_0406.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"52",
|
|
"code":"59"
|
|
},
|
|
{
|
|
"desc":"This API aborts a multipart upload, which is specified by its ID.After a multipart upload is aborted, its upload ID cannot be used to upload any part. And the space occup",
|
|
"product_code":"obs",
|
|
"title":"Aborting a Multipart Upload",
|
|
"uri":"obs_20_1806.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"52",
|
|
"code":"60"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Versioning",
|
|
"uri":"obs_20_0800.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"61"
|
|
},
|
|
{
|
|
"desc":"You can enable versioning to automatically maintain previous versions of an object. When versioning is enabled, you can access earlier versions of an object to recover yo",
|
|
"product_code":"obs",
|
|
"title":"Configuring Versioning for a Bucket",
|
|
"uri":"obs_20_0802.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"62"
|
|
},
|
|
{
|
|
"desc":"You can enable versioning to automatically maintain previous versions of an object. When versioning is enabled, you can access earlier versions of an object to recover yo",
|
|
"product_code":"obs",
|
|
"title":"Obtaining the Versioning Status of a Bucket",
|
|
"uri":"obs_20_0803.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"63"
|
|
},
|
|
{
|
|
"desc":"You can call get_object to obtain an object version by specifying the version ID (obs_object_info.version_id).If the version ID is not specified, the object of the latest",
|
|
"product_code":"obs",
|
|
"title":"Obtaining an Object Version",
|
|
"uri":"obs_20_0804.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"64"
|
|
},
|
|
{
|
|
"desc":"This API copies an object version in a specified bucket. You can create a copy up to 5 GB for a versioned object in a single operation.To copy a versioned object, you mus",
|
|
"product_code":"obs",
|
|
"title":"Copying an Object Version",
|
|
"uri":"obs_20_0805.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"65"
|
|
},
|
|
{
|
|
"desc":"To obtain the content of an object version in the Cold storage class, you need to restore the object version first and then you can download it. After an object version i",
|
|
"product_code":"obs",
|
|
"title":"Restoring a Specific Cold Object Version",
|
|
"uri":"obs_20_0806.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"66"
|
|
},
|
|
{
|
|
"desc":"This API lists some or all of the object versions in a bucket. You can use parameters such as the prefix, number of returned object versions, and start position to list t",
|
|
"product_code":"obs",
|
|
"title":"Listing Object Versions in a Bucket",
|
|
"uri":"obs_20_0807.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"67"
|
|
},
|
|
{
|
|
"desc":"OBS allows you to control access to versioned objects. By default, only the versioned object creator has the read and write permissions on the object. You can set access ",
|
|
"product_code":"obs",
|
|
"title":"Setting a Pre-defined ACL for an Object Version",
|
|
"uri":"obs_20_0317.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"68"
|
|
},
|
|
{
|
|
"desc":"OBS allows you to control access to versioned objects. By default, only the versioned object creator has the read and write permissions on the object. You can set access ",
|
|
"product_code":"obs",
|
|
"title":"Setting an Object Version ACL Directly",
|
|
"uri":"obs_20_0318.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"69"
|
|
},
|
|
{
|
|
"desc":"OBS provides access control over buckets. You can use an access policy to define whether a user can perform certain operations on a specific bucket. OBS access control ca",
|
|
"product_code":"obs",
|
|
"title":"Obtaining the ACL of an Object Version",
|
|
"uri":"obs_20_0319.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"70"
|
|
},
|
|
{
|
|
"desc":"This API deletes an object version in the specified bucket to save space and costs.To delete an object version, you must be the bucket owner or have the required permissi",
|
|
"product_code":"obs",
|
|
"title":"Deleting an Object Version",
|
|
"uri":"obs_20_0809.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"71"
|
|
},
|
|
{
|
|
"desc":"This API deletes object versions in a batch in the specified bucket to save space and costs.To delete object versions, you must be the bucket owner or have the required p",
|
|
"product_code":"obs",
|
|
"title":"Batch Deleting Object Versions",
|
|
"uri":"obs_23_1713.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"61",
|
|
"code":"72"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Lifecycle Management",
|
|
"uri":"obs_20_0900.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"73"
|
|
},
|
|
{
|
|
"desc":"OBS allows you to set lifecycle rules for buckets to automatically transition the storage class of an object or delete expired objects, to effectively use storage feature",
|
|
"product_code":"obs",
|
|
"title":"Overview",
|
|
"uri":"obs_20_0901.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"73",
|
|
"code":"74"
|
|
},
|
|
{
|
|
"desc":"You can configure lifecycle rules to periodically delete objects or transition objects between storage classes.This API configures lifecycle rules for a bucket.There is n",
|
|
"product_code":"obs",
|
|
"title":"Configuring Lifecycle Rules for a Bucket",
|
|
"uri":"obs_20_0902.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"73",
|
|
"code":"75"
|
|
},
|
|
{
|
|
"desc":"You can configure lifecycle rules to periodically delete objects or transition objects between storage classes.This API returns the lifecycle rules of a bucket.To obtain ",
|
|
"product_code":"obs",
|
|
"title":"Obtaining the Lifecycle Rules of a Bucket",
|
|
"uri":"obs_20_0903.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"73",
|
|
"code":"76"
|
|
},
|
|
{
|
|
"desc":"You can configure lifecycle rules to periodically delete objects or transition objects between storage classes.This API deletes the lifecycle rules of a bucket.To delete ",
|
|
"product_code":"obs",
|
|
"title":"Deleting the Lifecycle Rules of a Bucket",
|
|
"uri":"obs_20_0904.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"73",
|
|
"code":"77"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Cross-Origin Resource Sharing",
|
|
"uri":"obs_20_1000.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"78"
|
|
},
|
|
{
|
|
"desc":"Cross-origin resource sharing (CORS) is a mechanism defined by the World Wide Web Consortium (W3C) that allows a web application program in one domain to access resources",
|
|
"product_code":"obs",
|
|
"title":"Configuring CORS for a Bucket",
|
|
"uri":"obs_20_1002.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"78",
|
|
"code":"79"
|
|
},
|
|
{
|
|
"desc":"Cross-origin resource sharing (CORS) is a mechanism defined by the World Wide Web Consortium (W3C) that allows a web application program in one domain to access resources",
|
|
"product_code":"obs",
|
|
"title":"Obtaining the CORS Configuration of a Bucket",
|
|
"uri":"obs_20_1003.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"78",
|
|
"code":"80"
|
|
},
|
|
{
|
|
"desc":"Cross-origin resource sharing (CORS) is a mechanism defined by the World Wide Web Consortium (W3C) that allows a web application program in one domain to access resources",
|
|
"product_code":"obs",
|
|
"title":"Deleting the CORS Configuration of a Bucket",
|
|
"uri":"obs_20_1004.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"78",
|
|
"code":"81"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Logging",
|
|
"uri":"obs_20_1100.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"82"
|
|
},
|
|
{
|
|
"desc":"This API enables logging for a bucket (source) and configures another bucket (target) to store the log files. When a bucket is created, logging is not enabled by default.",
|
|
"product_code":"obs",
|
|
"title":"Configuring Logging for a Bucket",
|
|
"uri":"obs_20_1102.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"82",
|
|
"code":"83"
|
|
},
|
|
{
|
|
"desc":"This API returns the logging configuration of a bucket.To obtain the logging configuration of a bucket, you must be the bucket owner or have the required permission (obs:",
|
|
"product_code":"obs",
|
|
"title":"Obtaining the Logging Configuration of a Bucket",
|
|
"uri":"obs_20_1103.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"82",
|
|
"code":"84"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Static Website Hosting",
|
|
"uri":"obs_20_1200.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"85"
|
|
},
|
|
{
|
|
"desc":"You can perform the following to implement website file hosting:This example implements website file hosting.#include \"eSDKOBS.h\"\n#include <stdio.h>\n#include <sys/stat.h>",
|
|
"product_code":"obs",
|
|
"title":"Hosting Website Files in a Bucket",
|
|
"uri":"obs_20_1202.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"85",
|
|
"code":"86"
|
|
},
|
|
{
|
|
"desc":"You can host static website resources such as HTML web pages, flash files, or audio and video files in an OBS bucket, so that you can provide these hosted resources using",
|
|
"product_code":"obs",
|
|
"title":"Configuring Static Website Hosting for a Bucket",
|
|
"uri":"obs_20_1203.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"85",
|
|
"code":"87"
|
|
},
|
|
{
|
|
"desc":"You can host static website resources such as HTML web pages, flash files, or audio and video files in an OBS bucket, so that you can provide these hosted resources using",
|
|
"product_code":"obs",
|
|
"title":"Obtaining the Static Website Hosting Configuration of a Bucket",
|
|
"uri":"obs_20_1204.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"85",
|
|
"code":"88"
|
|
},
|
|
{
|
|
"desc":"You can host static website resources such as HTML web pages, flash files, or audio and video files in an OBS bucket, so that you can provide these hosted resources using",
|
|
"product_code":"obs",
|
|
"title":"Deleting the Static Website Hosting Configuration of a Bucket",
|
|
"uri":"obs_20_1205.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"85",
|
|
"code":"89"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Tagging",
|
|
"uri":"obs_20_1300.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"90"
|
|
},
|
|
{
|
|
"desc":"If you add tags to a bucket, SDRs generated for the requests sent to this bucket will include these tags, so you can use the tags to classify SDRs for detailed cost analy",
|
|
"product_code":"obs",
|
|
"title":"Adding Bucket Tags",
|
|
"uri":"obs_20_1302.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"90",
|
|
"code":"91"
|
|
},
|
|
{
|
|
"desc":"If you add tags to a bucket, SDRs generated for the requests sent to this bucket will include these tags, so you can use the tags to classify SDRs for detailed cost analy",
|
|
"product_code":"obs",
|
|
"title":"Obtaining Bucket Tags",
|
|
"uri":"obs_20_1303.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"90",
|
|
"code":"92"
|
|
},
|
|
{
|
|
"desc":"If you add tags to a bucket, SDRs generated for the requests sent to this bucket will include these tags, so you can use the tags to classify SDRs for detailed cost analy",
|
|
"product_code":"obs",
|
|
"title":"Deleting Bucket Tags",
|
|
"uri":"obs_20_1304.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"90",
|
|
"code":"93"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Other APIs",
|
|
"uri":"obs_20_1500.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"94"
|
|
},
|
|
{
|
|
"desc":"This API configures server-side encryption for objects, so that they will be encrypted or decrypted when you upload them to or download them from a bucket.The encryption ",
|
|
"product_code":"obs",
|
|
"title":"Server-Side Encryption",
|
|
"uri":"obs_20_1501.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"94",
|
|
"code":"95"
|
|
},
|
|
{
|
|
"desc":"This API creates a temporary URL to grant temporary permissions for operating OBS. This URL contains the information about the AK and SK, request method, and related para",
|
|
"product_code":"obs",
|
|
"title":"Using a Temporary URL for Authorized Access",
|
|
"uri":"obs_20_0700.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"94",
|
|
"code":"96"
|
|
},
|
|
{
|
|
"desc":"To access OBS through a user-defined domain name, you need to first configure a domain name on the Console.When using a user-defined domain name to access OBS, you can ca",
|
|
"product_code":"obs",
|
|
"title":"Using a User-Defined Domain Name to Access OBS",
|
|
"uri":"en-us_topic_0000001833016268.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"94",
|
|
"code":"97"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Troubleshooting",
|
|
"uri":"obs_20_1600.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"98"
|
|
},
|
|
{
|
|
"desc":"If the OBS server encounters an error when processing a request, a response containing the error code and error description is returned. The following table lists details",
|
|
"product_code":"obs",
|
|
"title":"OBS Server-Side Error Codes",
|
|
"uri":"obs_20_1601.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"98",
|
|
"code":"99"
|
|
},
|
|
{
|
|
"desc":"SDK errors include the errors returned during the check of function parameters and those returned by the OBS server.SDK error handling information:obs_status: Error codeo",
|
|
"product_code":"obs",
|
|
"title":"SDK Error Handling",
|
|
"uri":"obs_20_1602.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"98",
|
|
"code":"100"
|
|
},
|
|
{
|
|
"desc":"The OBS C SDK log path is specified by the LogPath field in OBS.ini. By default, logs are stored in the logs directory at the same level as the lib directory of the C SDK",
|
|
"product_code":"obs",
|
|
"title":"Log Analysis",
|
|
"uri":"obs_20_1603.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"98",
|
|
"code":"101"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"FAQs",
|
|
"uri":"obs_20_1800.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"102"
|
|
},
|
|
{
|
|
"desc":"When the proxy is configured in a Windows SDK demo, the program reports the following error and the proxy configuration fails.Root cause: Due to asynchronous updates, the",
|
|
"product_code":"obs",
|
|
"title":"Invalid Proxy Settings",
|
|
"uri":"obs_20_1804.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"102",
|
|
"code":"103"
|
|
},
|
|
{
|
|
"desc":"When calling APIs, you may need to specify the account ID (DomainID) and user ID (UserID) in some requests. You need to obtain them from the console in advance. To obtain",
|
|
"product_code":"obs",
|
|
"title":"How Do I Get My Account ID and User ID?",
|
|
"uri":"obs_23_1712.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"102",
|
|
"code":"104"
|
|
},
|
|
{
|
|
"desc":"HUAWEI CLOUD Help Center presents technical documents to help you quickly get started with HUAWEI CLOUD services. The technical documents include Service Overview, Price Details, Purchase Guide, User Guide, API Reference, Best Practices, FAQs, and Videos.",
|
|
"product_code":"obs",
|
|
"title":"Change History",
|
|
"uri":"obs_20_1702.html",
|
|
"doc_type":"sdk-c-devg",
|
|
"p_code":"",
|
|
"code":"105"
|
|
}
|
|
] |