token get
Contents
Usage
$ ozone sh token get [-hV] [-r=<renewer>]
                           [<uri>]
                           -t=<tokenFile>| Parameter | Description | 
|---|---|
| renewer | A user who will be able to renew the created token | 
| uri | Resource for which a token will be issued | 
| tokenFile | Path to a file that will contain an encoded token | 
| -h, --help | Prints out a help manual for this command | 
| -V, --version | Prints out version information and exits | 
Examples
Creating a token for a bucket and setting a user as a renewer:
$ ozone sh token get -t=bucketKey vol1/bucket1 -r=sergeiThe output should be similar to:
Successfully get token for service 10.92.40.213:9874,10.92.40.239:9874,10.92.42.15:9874 Kind: OzoneToken, Service: 10.92.40.213:9874,10.92.40.239:9874,10.92.42.15:9874, Ident: (OzoneToken owner=s_tikhomirov_krb1@AD.RANGER-TEST, renewer=sergei, realUser=, issueDate=2025-02-24T10:11:35.453Z, maxDate=2025-03-03T10:11:35.453Z, sequenceNumber=4, masterKeyId=1, strToSign=null, signature=null, awsAccessKeyId=null, omServiceId=ozone1-mgr, omCertSerialId=7)