OBS Authorization
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);
}
|
Last Article: Initializing the DLI Client
Next Article: Queue-Related SDKs
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.