security iam resource urn

Helps to generate Resource URN for input Resource Info.

Syntax

maprcli security iam resource urn -clustergroup <Cluster Group> -cluster <Cluster Name> -type <Resource Type> [ -name <Resource
Name> | -path <Resource Path> ]

Examples for different Resource types

Example 1: Volume
maprcli security iam resource urn -clustergroup cgrpA -cluster clusterB -type volume -path /opt/mapr/vol-1 -
json
{
"timestamp":1726152308319,
"timeofday":"2024-09-12 07:45:08.319 GMT-0700 AM",
"status":"OK",
"total":1,
"data":[
{
"ResourceURN":"urn:cgrpA:clusterB:volume:/opt/mapr/vol-1"
}
]
}
Example 2: s3bucket
maprcli security iam resource urn -clustergroup cg1 -cluster clusterX -type s3bucket -name testbucket-1 -
json
{
"timestamp":1726152308319,
"timeofday":"2024-09-12 07:45:08.319 GMT-0700 AM",
"status":"OK",
"total":1,
"data":[
{
"ResourceURN":"urn:cg1:clusterX:s3bucket:testbucket-1"
}
]
}
Example 3: Cluster

maprcli security iam resource urn -clustergroup cgrpX -cluster primary -type cluster -json
{
"timestamp":1726152308319,
"timeofday":"2024-09-12 07:45:08.319 GMT-0700 AM",
"status":"OK",
"total":1,
"data":[
{
"ResourceURN":"urn:cgrpX:primary"
}
]
}