security iam resource
Helps to understand input Resource URN.
Syntax
You can use info -urn
to gather the information and
understand the input resource urn.
maprcli security iam resource info -urn <Resource URN>
Examples for different Resource types
Example 1:
Volume
maprcli security iam resource info -urn urn:cg1:cluster-1:volume:/opt/vol-1 -json
{
"timestamp":1726567964141,
"timeofday":"2024-09-17 03:12:44.141 GMT-0700 AM",
"status":"OK",
"total":1,
"data":[
{
"ClusterGroup":"cg1",
"ClusterName":"cluster-1",
"ResourceType":"volume",
"ResourcePath":"/opt/vol-1"
}
]
}
Example 2:
s3bucket
maprcli security iam resource info -urn urn:cg1:cluster-1:s3bucket:bucket1 -json
{
"timestamp":1726568020508,
"timeofday":"2024-09-17 03:13:40.508 GMT-0700 AM",
"status":"OK",
"total":1,
"data":[
{
"ClusterGroup":"cg1",
"ClusterName":"cluster-1",
"ResourceType":"s3bucket",
"ResourceName":"bucket1"
}
]
}
Example 3:
Cluster
maprcli security iam resource info -urn urn:cg2:cluster-2 -json
{
"timestamp":1726567932141,
"timeofday":"2024-09-17 03:12:12.141 GMT-0700 AM",
"status":"OK",
"total":1,
"data":[
{
"ClusterGroup":"cg2",
"ClusterName":"cluster-2",
"ResourceType":"cluster",
"ResourceName":"cluster-2"
}
]
}