security iam resource actions
Lists supported resources in an IAM policy.
The iam resource actions command lists the actions that
can be performed for the specified resource type. If no resource
type is specified, the command lists the actions for all resource
types.
NOTE
The resource actions along with the resource URNs for various
resources are the building blocks of the json file that
represents an IAM policy.Syntax
- CLI
-
maprcli security iam resource actions [ -type <Resource Type> ]
- REST
-
Request Type PUT Request URL http[s]://<host>:<port>/rest/iam/resource/actions?<parameters>
Parameters
| Parameter | Description |
|---|---|
type |
(Optional) The resource type, such as volume, cluster, and S3 bucket. |
Examples
List volume actions
CLI
maprcli security iam resource actions -type Volume -json
{
"timestamp":1738058251706,
"timeofday":"2025-01-28 01:57:31.706 GMT-0800 AM",
"status":"OK",
"total":1,
"data":[
{
"ResourceType":"volume",
"ResourceActions":[
"ReadVolume",
"WriteVolume",
"DeleteVolume",
"MountVolume",
"MirrorVolume",
"ManageVolumeConfig",
"ManageVolumeACE",
"VolumeFullControl"
]
}
]
}
REST
curl -u <username> -X GET https://server.sj.us:8443/rest/security/iam/resource/actions?type=Volume
List cluster actions
CLI
maprcli security iam resource actions -type Cluster -json
{
"timestamp":1738058425818,
"timeofday":"2025-01-28 02:00:25.818 GMT-0800 AM",
"status":"OK",
"total":1,
"data":[
{
"ResourceType":"cluster",
"ResourceActions":[
"ViewClusterConfig",
"ManageClusterServices",
"ManageClusterOperations",
"ManageClusterSettings",
"ManageIamRoleOperations",
"ManageClusterACE",
"ManageStartStopService",
"ManageClusterVolume"
]
}
]
}REST
curl -u <username> -X GET https://server.sj.us:8443/rest/security/iam/resource/actions?type=Cluster
List S3 bucket actions
CLI
maprcli security iam resource actions -type s3bucket -json
{
"timestamp":1738058692979,
"timeofday":"2025-01-28 02:04:52.979 GMT-0800 AM",
"status":"OK",
"total":1,
"data":[
{
"ResourceType":"s3bucket",
"ResourceActions":[
"AbortMultipartUpload",
"DeleteBucket",
"ForceDeleteBucket",
"DeleteBucketPolicy",
"DeleteObject",
"GetBucketLocation",
"GetBucketNotification",
"GetBucketPolicy",
"GetObject",
"HeadBucket",
"ListAllMyBuckets",
"ListBucket",
"ListBucketVersions",
"ListBucketMultipartUploads",
"ListMultipartUploadParts",
"PutBucketLifecycle",
"GetBucketLifecycle",
"PutBucketNotification",
"PutBucketEncryption",
"DeleteObjectTagging",
"PutBucketPolicy",
"PutObject",
"PutObjectRetention",
"GetObjectRetention",
"GetObjectLegalHold",
"PutObjectLegalHold",
"GetBucketObjectLockConfiguration",
"PutBucketObjectLockConfiguration",
"GetBucketTagging",
"PutBucketTagging",
"GetObjectVersion",
"GetObjectVersionTagging",
"DeleteObjectVersion",
"DeleteObjectVersionTagging",
"PutObjectVersionTagging",
"GetObjectTagging",
"PutObjectTagging",
"GetBucketEncryption",
"PutBucketVersioning",
"GetBucketVersioning",
"GetReplicationConfiguration",
"PutReplicationConfiguration"
]
}
]
}REST
curl -u <username> -X GET https://server.sj.us:8443/rest/security/iam/resource/actions?type=s3bucket