Files
doc-exports/docs/obs_3rd_party/dotnet_sdk/CLASS.TXT.json
weihongmin1 b2353339c3 OBS .NET SDK 0120 Version
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2026-01-21 15:47:52 +00:00

1001 lines
38 KiB
JSON

[
{
"desc":"This section describes version compatibility and important notes about Object Storage Service (OBS) SDK for .NET.Recommended .NET versions: .NET Framework 3.5, 4.0, or 4.",
"product_code":"obs",
"title":"Before You Start",
"uri":"obs_25_0000.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"1"
},
{
"desc":"Latest version of OBS .NET SDK source code: Download",
"product_code":"obs",
"title":"SDK Download Links",
"uri":"obs_25_0001.html",
"doc_type":"sdk-dotnet-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":"Quick Start",
"uri":"obs_25_0100.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"3"
},
{
"desc":"Access keys consist of two parts: an access key ID (AK) and a secret access key (SK). OBS uses access keys to sign requests to make sure that only authorized accounts can",
"product_code":"obs",
"title":"Creating an AK and SK",
"uri":"obs_25_0103.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"3",
"code":"4"
},
{
"desc":"Installing the OBS .NET SDK. The example here uses the latest version.",
"product_code":"obs",
"title":"Installing the SDK",
"uri":"obs_25_0105.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"3",
"code":"5"
},
{
"desc":"You can click here to view the endpoints and regions enabled for OBS.The SDK allows you to pass endpoints with or without the protocol name. Suppose the endpoint you obta",
"product_code":"obs",
"title":"Obtaining Endpoints",
"uri":"obs_25_0106.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"3",
"code":"6"
},
{
"desc":"Each time you want to send an HTTP/HTTPS request to OBS, you must create an instance of ObsClient. Sample code is as follows:For more information, see chapter \"Initializa",
"product_code":"obs",
"title":"Initializing an Instance of ObsClient",
"uri":"obs_25_0107.html",
"doc_type":"sdk-dotnet-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. The following code shows how to cr",
"product_code":"obs",
"title":"Creating a Bucket",
"uri":"obs_25_0108.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"3",
"code":"8"
},
{
"desc":"This example uploads string Hello OBS to bucket bucketname as object objectname.The example code is as follows:For more information, see Object Upload Overview.",
"product_code":"obs",
"title":"Uploading an Object",
"uri":"obs_25_0109.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"3",
"code":"9"
},
{
"desc":"This example downloads object objectname from bucket bucketname.The example code is as follows:For more information, see Object Download Overview.",
"product_code":"obs",
"title":"Downloading an Object",
"uri":"obs_25_0110.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"3",
"code":"10"
},
{
"desc":"After objects are uploaded, you may want to view the objects contained in a bucket. Sample code is as follows:You can call ListObjectsResponse.ObsObjects to obtain the de",
"product_code":"obs",
"title":"Listing Objects",
"uri":"obs_25_0111.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"3",
"code":"11"
},
{
"desc":"This example deletes object objectname from bucket bucketname.The example code is as follows:This example only deletes a single object. To delete objects in a batch, trav",
"product_code":"obs",
"title":"Deleting an Object",
"uri":"obs_25_0112.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"3",
"code":"12"
},
{
"desc":"When you call an API using an instance of ObsClient, if no exception is thrown, the return value is valid, and a sub-class instance of ObsWebServiceResponse (SDK common r",
"product_code":"obs",
"title":"General Examples of ObsClient",
"uri":"obs_25_0113.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"3",
"code":"13"
},
{
"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_25_0200.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"14"
},
{
"desc":"To use OBS, you need a valid pair of AK and SK for signature authentication.For details, see Creating an AK and SK.After obtaining the AK/SK pair, you can start initializ",
"product_code":"obs",
"title":"Configuring the AK/SK",
"uri":"obs_25_0201.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"14",
"code":"15"
},
{
"desc":"ObsClient functions as the .NET client for accessing OBS. It offers callers a series of APIs for interaction with OBS and is used for managing and operating resources, su",
"product_code":"obs",
"title":"Creating an Instance of ObsClient",
"uri":"obs_25_0202.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"14",
"code":"16"
},
{
"desc":"When you call the ObsConfig configuration class to create an instance of ObsClient, you can configure the agent, timeout duration, maximum allowed number of connections, ",
"product_code":"obs",
"title":"Configuring an Instance of ObsClient",
"uri":"obs_25_0203.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"14",
"code":"17"
},
{
"desc":"OBS .NET SDK provides the logging function, based on the Apache Log4net open library. You can add log configuration files to enable the logging function. The procedure is",
"product_code":"obs",
"title":"Configuring SDK Logging",
"uri":"obs_25_0204.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"14",
"code":"18"
},
{
"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_25_0300.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"19"
},
{
"desc":"You can call ObsClient.CreateBucket to create a bucket.When creating a bucket, you can specify the ACL, storage class, and location for the bucket. OBS provides three sto",
"product_code":"obs",
"title":"Creating a Bucket",
"uri":"obs_25_0301.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"20"
},
{
"desc":"You can call ObsClient.ListBuckets to list buckets. Sample code is as follows:Obtained bucket names are listed in the lexicographical order.Set ListBucketsRequest.IsQuery",
"product_code":"obs",
"title":"Listing Buckets",
"uri":"obs_25_0302.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"21"
},
{
"desc":"You can call ObsClient.DeleteBucket to delete a bucket. Sample code is as follows:Only empty buckets (without objects and part fragments) can be deleted.Bucket deletion i",
"product_code":"obs",
"title":"Deleting a Bucket",
"uri":"obs_25_0303.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"22"
},
{
"desc":"You can call ObsClient.HeadBucket to identify whether a bucket exists.This example checks whether bucket bucketname exists.The example code is as follows:If an exception ",
"product_code":"obs",
"title":"Identifying Whether a Bucket Exists",
"uri":"obs_25_0304.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"23"
},
{
"desc":"You can call ObsClient.GetBucketMetadata to obtain the metadata of a bucket.This example returns the metadata of bucket bucketname.The example code is as follows:To handl",
"product_code":"obs",
"title":"Obtaining Bucket Metadata",
"uri":"obs_25_0305.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"24"
},
{
"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":"Managing Bucket ACLs",
"uri":"obs_25_0306.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"25"
},
{
"desc":"Besides bucket ACLs, bucket owners can use bucket policies to centrally control access to buckets and objects in buckets.For more information, see Bucket Policies.You can",
"product_code":"obs",
"title":"Management Bucket Policies",
"uri":"obs_25_0307.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"26"
},
{
"desc":"You can call ObsClient.GetBucketLocation to obtain the location of a bucket.This example returns the region of bucket bucketname.The example code is as follows:When creat",
"product_code":"obs",
"title":"Obtaining a Bucket Location",
"uri":"obs_25_0308.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"27"
},
{
"desc":"The storage information about a bucket includes the used capacity of and the number of objects in the bucket.You can call ObsClient.GetBucketStorageInfo to obtain the buc",
"product_code":"obs",
"title":"Obtaining Storage Information About a Bucket",
"uri":"obs_25_0309.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"28"
},
{
"desc":"You can call ObsClient.SetBucketQuota to set the bucket quota. Sample code is as follows:A bucket quota must be a non-negative integer expressed in bytes. The maximum val",
"product_code":"obs",
"title":"Setting or Obtaining a Bucket Quota",
"uri":"obs_25_0310.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"29"
},
{
"desc":"OBS allows you to set storage classes for buckets. The storage class of an object defaults to be that of its residing bucket. Different storage classes meet different nee",
"product_code":"obs",
"title":"Setting or Obtaining the Storage Class of a Bucket",
"uri":"obs_25_0311.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"19",
"code":"30"
},
{
"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_25_0400.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"31"
},
{
"desc":"In OBS, objects are basic data units that users can perform operations on. OBS .NET SDK provides abundant APIs for object upload in the following methods:Performing a Str",
"product_code":"obs",
"title":"Object Upload Overview",
"uri":"obs_25_0401.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"32"
},
{
"desc":"Streaming upload uses System.IO.Stream as the data source of an object. You can call ObsClient.PutObject to upload the data streams to OBS. Sample code is as follows:To u",
"product_code":"obs",
"title":"Performing a Streaming Upload",
"uri":"obs_25_0402.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"33"
},
{
"desc":"File-based upload uses local files as the data source of objects.This example uploads local file localfile to bucket bucketname as object objectname.The example code is a",
"product_code":"obs",
"title":"Performing a File-Based Upload",
"uri":"obs_25_0403.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"34"
},
{
"desc":"You can call ObsClient.BeginPutObject and ObsClient.EndPutObject to upload an object asynchronously.This example asynchronously uploads local file localfile to bucket buc",
"product_code":"obs",
"title":"Performing an Asynchronous Upload",
"uri":"obs_25_0404.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"35"
},
{
"desc":"You can call PutObjectRequest.UploadProgress to register a System.EventHandler callback function to obtain upload progress.This example uploads local file localfile to bu",
"product_code":"obs",
"title":"Obtaining Upload Progress",
"uri":"obs_25_0405.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"36"
},
{
"desc":"There is no folder concept in OBS. All elements in buckets are objects. To create a folder in OBS is essentially to create an object whose size is 0 and whose name ends w",
"product_code":"obs",
"title":"Creating a Folder",
"uri":"obs_25_0406.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"37"
},
{
"desc":"You can set properties for an object when uploading it. Object properties include the MIME type, MD5 value (for verification), storage class, and customized metadata. You",
"product_code":"obs",
"title":"Setting Object Properties",
"uri":"obs_25_0407.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"38"
},
{
"desc":"To upload a large file, multipart upload is recommended. Multipart upload is applicable to many scenarios, including:Files to be uploaded are larger than 100 MB.The netwo",
"product_code":"obs",
"title":"Performing a Multipart Upload",
"uri":"obs_25_0408.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"39"
},
{
"desc":"When uploading an object or initializing a multipart upload, you can directly set the expiration time for the object. Sample code is as follows:The previous mode specifie",
"product_code":"obs",
"title":"Configuring Lifecycle Management",
"uri":"obs_25_0409.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"40"
},
{
"desc":"Appendable upload allows you to upload an object in appendable mode and then append data to the object. You can call ObsClient.AppendObject to perform an appendable uploa",
"product_code":"obs",
"title":"Performing an Appendable Upload",
"uri":"obs_25_0410.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"41"
},
{
"desc":"As a special case of multipart upload, multipart copy implements multipart upload by copying the whole or part of an object in a bucket. You can call ObsClient.CopyPart t",
"product_code":"obs",
"title":"Performing a Multipart Copy",
"uri":"obs_25_0411.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"42"
},
{
"desc":"Uploading large files often fails due to poor network conditions or program breakdowns. It is a waste of resources to restart the upload process upon an upload failure, a",
"product_code":"obs",
"title":"Performing a Resumable Upload",
"uri":"obs_25_0412.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"31",
"code":"43"
},
{
"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_25_0500.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"44"
},
{
"desc":"OBS .NET SDK provides abundant APIs for downloading objects in the following modes:Performing a Streaming DownloadPerforming a Partial DownloadPerforming an Asynchronous ",
"product_code":"obs",
"title":"Object Download Overview",
"uri":"obs_25_0501.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"45"
},
{
"desc":"Sample code:GetObjectResponse.OutputStream (System.IO.Stream type) is the response stream in GetObjectResponse. You can obtain the object content to a local file or memor",
"product_code":"obs",
"title":"Performing a Streaming Download",
"uri":"obs_25_0502.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"46"
},
{
"desc":"When only partial data of an object is required, you can download data falling within a specific range.If the specified range is from 0 to 1,000, data from byte 0 to byte",
"product_code":"obs",
"title":"Performing a Partial Download",
"uri":"obs_25_0503.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"47"
},
{
"desc":"You can call ObsClient.BeginGetObject and ObsClient.EndGetObject to download an object asynchronously.This example downloads object objectname from bucket bucketname asyn",
"product_code":"obs",
"title":"Performing an Asynchronous Download",
"uri":"obs_25_0504.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"48"
},
{
"desc":"You can call GetObjectRequest.DownloadProgress to register the System.EventHandler callback function to obtain download progress.This example downloads objectname from bu",
"product_code":"obs",
"title":"Obtaining Download Progress",
"uri":"obs_25_0505.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"49"
},
{
"desc":"When downloading an object, you can specify one or more conditions. Only when the conditions are met, the object will be downloaded. Otherwise, an exception indicating a ",
"product_code":"obs",
"title":"Performing a Conditioned Download",
"uri":"obs_25_0506.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"50"
},
{
"desc":"When downloading an object, you can rewrite some HTTP/HTTPS response headers. The following table lists rewritable response headers.Sample code:// Initialize configuratio",
"product_code":"obs",
"title":"Rewriting Response Headers",
"uri":"obs_25_0507.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"51"
},
{
"desc":"After an object is successfully downloaded, its custom data is returned.This example obtains the custom metadata of objectname in bucketname.The example code is as follow",
"product_code":"obs",
"title":"Obtaining Custom Metadata",
"uri":"obs_25_0508.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"52"
},
{
"desc":"Before you can download a Cold object, you must restore it. Cold objects can be restored in either of the following ways.To prolong the validity period of the Cold data r",
"product_code":"obs",
"title":"Downloading a Cold Object",
"uri":"obs_25_0509.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"53"
},
{
"desc":"Downloading large files often fails due to poor network conditions or program breakdowns. It is a waste of resources to restart the download process upon a download failu",
"product_code":"obs",
"title":"Performing a Resumable Download",
"uri":"obs_25_0510.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"44",
"code":"54"
},
{
"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_25_0600.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"55"
},
{
"desc":"You can call ObsClient.GetObjectMetadata to obtain object properties, including the last modification time, version ID, and customized metadata. Sample code is as follows",
"product_code":"obs",
"title":"Obtaining Object Properties",
"uri":"obs_25_0601.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"55",
"code":"56"
},
{
"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":"Managing Object ACLs",
"uri":"obs_25_0602.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"55",
"code":"57"
},
{
"desc":"You can call ObsClient.ListObjects to list objects in a bucket.The following table describes the parameters involved in this API.The following sample code shows how to li",
"product_code":"obs",
"title":"Listing Objects",
"uri":"obs_25_0603.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"55",
"code":"58"
},
{
"desc":"Exercise caution when performing this operation. If the versioning function is disabled for the bucket where the object is located, the object cannot be restored after be",
"product_code":"obs",
"title":"Deleting Objects",
"uri":"obs_25_0604.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"55",
"code":"59"
},
{
"desc":"The object copy operation can create a copy for an existing object in OBS.You can call ObsClient.CopyObject to copy an object. When copying an object, you can specify pro",
"product_code":"obs",
"title":"Copying an Object",
"uri":"obs_25_0605.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"55",
"code":"60"
},
{
"desc":"You can call ObsClient.HeadObject to check whether a specified object exists.The example code is as follows:If an exception is thrown and the returned HTTP status code is",
"product_code":"obs",
"title":"HEAD Object",
"uri":"obs_25_0606.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"55",
"code":"61"
},
{
"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":"Temporarily Authorized Access",
"uri":"obs_25_0700.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"62"
},
{
"desc":"ObsClient allows you to create a URL whose Query parameters are carried with authentication information by specifying the AK and SK, HTTP method, and request parameters. ",
"product_code":"obs",
"title":"Using a Temporary URL for Authorized Access",
"uri":"obs_25_0701.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"62",
"code":"63"
},
{
"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 Management",
"uri":"obs_25_0800.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"64"
},
{
"desc":"You can use versioning to store multiple versions of an object in a bucket.When versioning is enabled for a bucket, OBS keeps multiple versions of an object in the bucket",
"product_code":"obs",
"title":"Versioning Overview",
"uri":"obs_25_0801.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"64",
"code":"65"
},
{
"desc":"You can call ObsClient.SetBucketVersioning to set the versioning status for a bucket. OBS supports two versioning statuses.Sample code:",
"product_code":"obs",
"title":"Setting Versioning Status for a Bucket",
"uri":"obs_25_0802.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"64",
"code":"66"
},
{
"desc":"You can call ObsClient.GetBucketVersioning to view the versioning status of a bucket.This example obtains the versioning status of bucket bucketname.The example code is a",
"product_code":"obs",
"title":"Viewing Versioning Status of a Bucket",
"uri":"obs_25_0803.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"64",
"code":"67"
},
{
"desc":"You can call ObsClient.GetObject to obtain an object version by specifying the version ID (VersionId).This example downloads object objectname from bucket bucketname by s",
"product_code":"obs",
"title":"Obtaining a Versioning Object",
"uri":"obs_25_0804.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"64",
"code":"68"
},
{
"desc":"You can call ObsClient.CopyObject to copy an object version by specifying the version ID (SourceVersionId).This example specifies SourceVersionId to copy sourceobjectname",
"product_code":"obs",
"title":"Copying a Versioning Object",
"uri":"obs_25_0805.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"64",
"code":"69"
},
{
"desc":"You can call ObsClient.RestoreObject to restore a Cold object version by specifying VersionId.This example specifies versionId to restore Cold object destobjectname in de",
"product_code":"obs",
"title":"Restoring a Specific Cold Object Version",
"uri":"obs_25_0806.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"64",
"code":"70"
},
{
"desc":"You can call ObsClient.ListVersions to list versioning objects.The following table describes the parameters involved in this API.If the value of VersionIdMarker is not a ",
"product_code":"obs",
"title":"Listing Versioning Objects",
"uri":"obs_25_0807.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"64",
"code":"71"
},
{
"desc":"You can call ObsClient.SetObjectAcl to pass the version ID (VersionId) to set an ACL for an object version. Sample code is as follows:The owner or grantee ID needed in th",
"product_code":"obs",
"title":"Setting or Obtaining a Versioning Object ACL",
"uri":"obs_25_0808.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"64",
"code":"72"
},
{
"desc":"You can call ObsClient.DeleteObject to pass a version ID (VersionId) to delete an object version.This example deletes object objectname from bucket bucketname by specifyi",
"product_code":"obs",
"title":"Deleting Versioning Objects",
"uri":"obs_25_0809.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"64",
"code":"73"
},
{
"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_25_0900.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"74"
},
{
"desc":"OBS allows you to set lifecycle rules for buckets to automatically transition the storage class of an object and delete expired objects, to effectively use storage featur",
"product_code":"obs",
"title":"Lifecycle Management Overview",
"uri":"obs_25_0901.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"74",
"code":"75"
},
{
"desc":"You can call ObsClient.SetBucketLifecycle to set lifecycle rules.Sample code:// Initialize configuration parameters.\nObsConfig config = new ObsConfig();\nconfig.Endpoint =",
"product_code":"obs",
"title":"Setting Lifecycle Rules",
"uri":"obs_25_0902.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"74",
"code":"76"
},
{
"desc":"You can call ObsClient.GetBucketLifecycle to view lifecycle rules.This example views the lifecycle configuration of bucket bucketname.The example code is as follows:To ha",
"product_code":"obs",
"title":"Viewing Lifecycle Rules",
"uri":"obs_25_0903.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"74",
"code":"77"
},
{
"desc":"You can call ObsClient.DeleteBucketLifecycle to delete lifecycle rules.This example deletes the lifecycle configuration of bucket bucketname.The example code is as follow",
"product_code":"obs",
"title":"Deleting Lifecycle Rules",
"uri":"obs_25_0904.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"74",
"code":"78"
},
{
"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":"CORS",
"uri":"obs_25_1000.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"79"
},
{
"desc":"Cross-origin access refers to access between different domains. Restricting cross-origin access is a browser policy for security purposes, that is, the same-origin policy",
"product_code":"obs",
"title":"CORS Overview",
"uri":"obs_25_1001.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"79",
"code":"80"
},
{
"desc":"You can call ObsClient.SetBucketCors to set CORS rules for a bucket. If the bucket is configured with CORS rules, the newly set ones will overwrite the existing ones.This",
"product_code":"obs",
"title":"Setting CORS Rules",
"uri":"obs_25_1002.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"79",
"code":"81"
},
{
"desc":"You can call ObsClient.GetBucketCors to view CORS rules of a bucket.This example views the CORS rule of bucket bucketname.The example code is as follows:To handle the err",
"product_code":"obs",
"title":"Viewing CORS Rules",
"uri":"obs_25_1003.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"79",
"code":"82"
},
{
"desc":"You can call ObsClient.DeleteBucketCors to delete CORS rules of a bucket.This example deletes the CORS rule of bucket bucketname.The example code is as follows:To handle ",
"product_code":"obs",
"title":"Deleting CORS Rules",
"uri":"obs_25_1004.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"79",
"code":"83"
},
{
"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":"Access Logging",
"uri":"obs_25_1100.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"84"
},
{
"desc":"OBS allows you to configure access logging for buckets. After the configuration, access to buckets will be recorded in the format of logs. These logs will be saved in spe",
"product_code":"obs",
"title":"Logging Overview",
"uri":"obs_25_1101.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"84",
"code":"85"
},
{
"desc":"You can call ObsClient.SetBucketLogging to enable bucket loggingThe source bucket and target bucket of logging must be in the same region.If the bucket is in the OBS Warm",
"product_code":"obs",
"title":"Enabling Bucket Logging",
"uri":"obs_25_1102.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"84",
"code":"86"
},
{
"desc":"You can call ObsClient.GetBucketLogging to view the logging configuration of a bucket.This example views the logging configuration of bucket bucketname.The example code i",
"product_code":"obs",
"title":"Viewing Bucket Logging",
"uri":"obs_25_1103.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"84",
"code":"87"
},
{
"desc":"To disable logging for a bucket is to call ObsClient.SetBucketLogging to delete the logging configuration.This example disables logging for bucket bucketname.The example ",
"product_code":"obs",
"title":"Disabling Bucket Logging",
"uri":"obs_25_1104.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"84",
"code":"88"
},
{
"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_25_1200.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"89"
},
{
"desc":"Static websites typically only contain static web pages and some scripts that can run on clients (such as JavaScript and Flash). In contrast, dynamic websites depend on s",
"product_code":"obs",
"title":"Static Website Hosting Overview",
"uri":"obs_25_1201.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"89",
"code":"90"
},
{
"desc":"You can perform the following to implement website file hosting:Sample code:You can use https://bucketname.your-endpoint/test.html in a browser to access files hosted usi",
"product_code":"obs",
"title":"Website File Hosting",
"uri":"obs_25_1202.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"89",
"code":"91"
},
{
"desc":"You can call ObsClient.SetBucketWebsite to set website hosting on a bucket.Sample code:Sample code:Sample code:",
"product_code":"obs",
"title":"Setting Website Hosting",
"uri":"obs_25_1203.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"89",
"code":"92"
},
{
"desc":"You can call ObsClient.GetBucketWebsite to view the hosting settings of a bucket.This example views the hosting configuration of bucket bucketname.The example code is as ",
"product_code":"obs",
"title":"Viewing Website Hosting Settings",
"uri":"obs_25_1204.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"89",
"code":"93"
},
{
"desc":"You can call ObsClient.DeleteBucketWebsite to delete the hosting settings of a bucket.This example deletes the hosting configuration of bucket bucketname.The example code",
"product_code":"obs",
"title":"Deleting Website Hosting Settings",
"uri":"obs_25_1205.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"89",
"code":"94"
},
{
"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":"Tag Management",
"uri":"obs_25_1300.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"95"
},
{
"desc":"Tags are used to identify and classify OBS buckets.",
"product_code":"obs",
"title":"Tagging Overview",
"uri":"obs_25_1301.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"95",
"code":"96"
},
{
"desc":"You can call ObsClient.SetBucketTagging to set bucket tags. Sample code is as follows:A bucket can have up to 10 tags.The key and value pair of a tag can be composed of U",
"product_code":"obs",
"title":"Setting Bucket Tags",
"uri":"obs_25_1302.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"95",
"code":"97"
},
{
"desc":"You can call ObsClient.GetBucketTagging to view bucket tags. The following code shows how to view bucket tags.",
"product_code":"obs",
"title":"Viewing Bucket Tags",
"uri":"obs_25_1303.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"95",
"code":"98"
},
{
"desc":"You can call ObsClient.DeleteBucketTagging to delete bucket tags. Sample code is as follows:",
"product_code":"obs",
"title":"Deleting Bucket Tags",
"uri":"obs_25_1304.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"95",
"code":"99"
},
{
"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":"Server-Side Encryption",
"uri":"obs_25_1500.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"100"
},
{
"desc":"OBS supports server-side encryption.",
"product_code":"obs",
"title":"Server-Side Encryption Overview",
"uri":"obs_25_1501.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"100",
"code":"101"
},
{
"desc":"The following table lists APIs related to server-side encryption:",
"product_code":"obs",
"title":"Encryption Description",
"uri":"obs_25_1502.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"100",
"code":"102"
},
{
"desc":"Sample code:Sample code:",
"product_code":"obs",
"title":"Example of Encryption",
"uri":"obs_25_1503.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"100",
"code":"103"
},
{
"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_25_1600.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"104"
},
{
"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_25_1601.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"104",
"code":"105"
},
{
"desc":"Log files of OBS .NET SDK are saved in the path, usually the save directory of executable files of the project, specified in configuration file Log4Net.config.When curren",
"product_code":"obs",
"title":"Log Analysis",
"uri":"obs_25_1602.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"104",
"code":"106"
},
{
"desc":"SDK custom exceptions (ObsException) are thrown by ObsClient. Exceptions are usually OBS server-side errors, including OBS error codes and error information and aim to he",
"product_code":"obs",
"title":"SDK Custom Exceptions",
"uri":"obs_25_1606.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"104",
"code":"107"
},
{
"desc":"After you call an API in an instance of ObsClient, a sub-class of ObsWebServiceResponse will be returned.It includes HTTP/HTTPS response headers.This example obtains requ",
"product_code":"obs",
"title":"SDK Common Response Headers",
"uri":"obs_25_1605.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"104",
"code":"108"
},
{
"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":"FAQ",
"uri":"obs_25_1700.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"109"
},
{
"desc":"Symptom: The process occasionally hangs when you invoke .NET SDK methods.Solution: Add \"using\" before the method.See the example below.",
"product_code":"obs",
"title":"What Do I Do If the Process Hangs Occasionally?",
"uri":"en-us_topic_0000001831623237.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"109",
"code":"110"
},
{
"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_25_1802.html",
"doc_type":"sdk-dotnet-devg",
"p_code":"",
"code":"111"
}
]