security iam policy create
Creates Identity Access Management (IAM) policy.
Syntax
- CLI
-
IMPORTANT
- This operation is supported only on primary cluster group.
- To create a policy using data content (instead
of file), ensure a valid JSON string with
-is_file false
option is provided.
maprcli security iam policy create -name <Policy Name> -content (<File Path> | <String Content>) [ -is_file ( true | false ) ]
Parameters
Parameter | Description |
---|---|
name |
Name of the Policy. |
content |
|
Example
maprcli security iam policy create -name Policy1 -content /tmp/content.json -is_file true -json
{
"timestamp":1726152752276,
"timeofday":"2024-09-12 07:52:32.276 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[
],
"messages":[
"Identity Policy 'Policy1' created successfully"
]
}