检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Console.WriteLine("Status: {0}", response.Configuration.Status); } catch (ObsException ex) { Console.WriteLine("ErrorCode: {0}", ex.ErrorCode); Console.WriteLine("ErrorMessage: {0}", ex.ErrorMessage); } To handle the error codes possibly returned during the operation, see OBS
Console.WriteLine("copy object response: {0}", response.StatusCode); } catch (ObsException ex) { Console.WriteLine("ErrorCode: {0}", ex.ErrorCode); Console.WriteLine("ErrorMessage: {0}", ex.ErrorMessage); } To handle the error codes possibly returned during the operation, see OBS
Console.WriteLine("Get bucket logging response: {0}", response.StatusCode); } catch (ObsException ex) { Console.WriteLine("ErrorCode: {0}", ex.ErrorCode); Console.WriteLine("ErrorMessage: {0}", ex.ErrorMessage); } To handle the error codes possibly returned during the operation, see OBS
Console.WriteLine("Get bucket website response: {0}", response.StatusCode); } catch (ObsException ex) { Console.WriteLine("ErrorCode: {0}", ex.ErrorCode); Console.WriteLine("ErrorMessage: {0}", ex.ErrorMessage); } To handle the error codes possibly returned during the operation, see OBS
You can perform the following to implement website file hosting: Upload a website file to your bucket in OBS as an object and set the MIME type for the object. Set the object ACL to public read. Access the object using a browser.
Console.WriteLine("StorageClass: {0}", response.StorageClass); Console.WriteLine("Location: {0}", response.Location); } catch (ObsException ex) { Console.WriteLine("StatusCode: {0}", ex.StatusCode); } To handle the error codes possibly returned during the operation, see OBS
response.ObjectNumber); Console.WriteLine("Size: {0}", response.Size); } catch (ObsException ex) { Console.WriteLine("ErrorCode: {0}", ex.ErrorCode); Console.WriteLine("ErrorMessage: {0}", ex.ErrorMessage); } To handle the error codes possibly returned during the operation, see OBS
ObsClient client = new ObsClient(accessKey, secretKey, config); // Upload a stream. try { String str = "Hello OBS"; Stream stream = new MemoryStream(System.Text.Encoding.Default.GetBytes(str)); PutObjectRequest request = new PutObjectRequest() { BucketName
// require 'obs-autoloader.php'; // Declare the namespace. use Obs\ObsClient; // Create an instance of ObsClient. $obsClient = new ObsClient([ //Obtain an AK/SK pair using environment variables or import the AK/SK pair in other ways.
// require 'obs-autoloader.php'; // Declare the namespace. use Obs\ObsClient; // Create an instance of ObsClient. $obsClient = new ObsClient ( [ //Obtain an AK/SK pair using environment variables or import the AK/SK pair in other ways.
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.
The default value is false. resources No Array of longs Resource ID array export_mode No String Export mode. null indicates that data is to be exported to a local file system, and obs indicates that data is to be exported to OBS.
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.
Public services, such as Elastic Cloud Server (ECS), Elastic Volume Service (EVS), Object Storage Service (OBS), Virtual Private Cloud (VPC), Elastic IP (EIP), and Image Management Service (IMS), are shared within the same region.
Logs can also be stored on OBS for quick access by DLI, supporting offline service computing and analysis. Parent topic: Examples
Table 1 SDK function matrix Language Function Content Java Submitting a SQL Job Using an SDK This section provides instructions on how to authorize DLI's Java SDKs to access and operate on OBS buckets.
Java SDKs Table 1 Java SDKs SDK Description Submitting a SQL Job Using an SDK This section provides instructions on how to authorize DLI's Java SDKs to access and operate on OBS buckets.
For services like dedicated ELB, CCE clusters, DMS, and OBS buckets that support cross-AZ HA instances but cannot be reconstructed to cross-AZ HA instances, apply for new cross-AZ HA instances to replace the single-AZ instances.
Do not set the OBS bucket where important service data is stored as a public or publicly readable bucket. Periodically check cloud service security configurations.
Maximum file size: 1 TB Fast Import of an Image File Standard export You can export private images to OBS buckets and download them to your local PC for further use on other cloud platforms. Maximum file size: 128 GB (If an image file is larger than 128 GB, use fast export.)