security iam resource info

Displays a detailed information, and helps you understand about the specified Resource URN.

Syntax

CLI
maprcli security iam resource info -urn <Resource URN>

Parameters

Parameter Description
urn
urn Resource urn.
  • clustergroup Cluster group to which resource belongs to.
  • Cluster The name of cluster to which resource belongs to.
  • type Resource type.
  • name Resource name.
  • path Resource path.

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"
 }
 ]
 }