Updated on 2024-03-06 GMT+08:00
OBS Authorization
Prerequisites
- You have configured the Java SDK environment by following the instructions provided Overview.
- You have initialized the DLI Client by following the instructions provided in Initializing the DLI Client.
Example Code
You can use the API to grant operation rights on OBS buckets to DLI to save data and run logs of users' jobs.
The example code is as follows:
1 2 3 4 5 6 7 |
private static void authorizeBucket(DLIClient client) throws DLIException { String bucketName ="obs_name"; ObsBuckets obsBuckets = new ObsBuckets(); obsBuckets.addObsBucketsItem(bucketName); GlobalResponse res = client.authorizeBucket(obsBuckets); System.out.println(res); } |
Parent topic: Java SDK
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot