security iam policy info

Displays information about an IAM policy.

The security iam policy info displays the detailed information about an Identity Access Management (IAM) policy.

Syntax

CLI
maprcli security iam policy info -name <Policy Name>
REST
Request Type GET
Request URL
http[s]://<host>:<port>/rest/iam/policy/info?<parameters>

Parameters

Parameter Description
name (Required) Name of the policy.

Example

Display policy information for the IAM policy AllowVol

maprcli security iam policy info -name AllowVol -json
{
        "timestamp":1726218684110,
        "timeofday":"2024-09-13 02:11:24.110 GMT-0700 AM",
        "status":"OK",
        "total":1,
        "data":[
                {
                        "Name":"AllowVol",
                        "Id":1,
                        "Description":"Allow Volume",
                        "Version":"1.0",
                        "Owner":"mapr",
                        "Created":"2024-09-12 03:39:05",
                        "Updated":"2024-09-13 01:43:08",
                        "Active":false,
                        "Statement":[
                                {
                                        "Sid":"Statement-1",
                                        "Effect":"Allow",
                                        "Action":[
                                                "VolumeFullControl"
                                        ],
                                        "Resource":[
                                                "urn:default:primary:volume:vol-1"
                                        ]
                                },
                                {
                                        "Sid":"Statement-2",
                                        "Effect":"Allow",
                                        "Action":[
                                                "WriteVolume",
                                                "ReadVolume"
                                        ],
                                        "Resource":[
                                                "urn:default:secondary:volume:vol-2"
                                        ]
                                },
                                {
                                        "Sid":"Statement-3",
                                        "Effect":"Allow",
                                        "Action":[
                                                "ReadVolume",
                                                "ManageVolumeConfig"
                                        ],
                                        "Resource":[
                                                "urn:default:secondary:volume:vol-3"
                                        ]
                                }
                        ],
                        "Identities":{
                                "Users": "user2,user3",
                                "Groups": "fabric-manager",
                                "Roles": ""
                        },
                        "Status":"Disarmed"
                }
        ]
}
REST
curl -u <username> -X GET https://server.sj.us:8443/rest/security/iam/policy/info?name=AllowVol