Viewing Bucket Tags
You can call getBucketTagging to view bucket tags. Sample code is as follows:
static OBSClient *client;
NSString *endPoint = @"your-endpoint";
NSString *SK = @"*** Provide your Secret Key ***";
NSString *AK = @"*** Provide your Access Key ***";
// Initialize identity authentication.
OBSStaticCredentialProvider *credentialProvider = [[OBSStaticCredentialProvider alloc] initWithAccessKey:AK secretKey:SK];
//Initialize service configuration.
OBSServiceConfiguration *conf = [[OBSServiceConfiguration alloc] initWithURLString:endPoint credentialProvider:credentialProvider];
// Initialize an instance of OBSClient.
client = [[OBSClient alloc] initWithConfiguration:conf];
// Obtain bucket tags.
OBSGetBucketTaggingRequest *request = [[OBSGetBucketTaggingRequest alloc] initWithBucketName:@"bucketname"];
[client getBucketTagging:request completionHandler:^(OBSGetBucketTaggingResponse *response, NSError *error){
NSLog(@"%@",response);
}]; Last Article: Setting Bucket Tags
Next Article: Deleting Bucket Tags
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.