Allow read-only access to all resources except billing
Use this policy to grant a RAM user read-only access to all Alibaba Cloud resources in your account while blocking access to billing information.
This policy is suited for operators, auditors, and troubleshooters who need to inspect resource configurations and states but must not view financial data.
How it works
The policy contains two statements:
AllowReadAccess — allows read-only actions across all services using the action prefixes
Describe,List,Get,BatchGet,Query, andBatchQuery, plus specific lookup and statistics actions for ActionTrail and Direct Mail.-
DenyBillingAccess — explicitly denies all actions in BSS OpenAPI (
bssopenapi:) and EFC (efc:).ImportantDeny statements always take precedence over Allow statements. Even if another policy grants
bssopenapi:orefc:permissions to the same RAM user, this Deny statement overrides them.
Policy document
{
"Version": "1",
"Statement": [
{
"Action": [
"*:Describe*",
"*:List*",
"*:Get*",
"*:BatchGet*",
"*:Query*",
"*:BatchQuery*",
"actiontrail:LookupEvents",
"dm:Desc*",
"dm:SenderStatistics*"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"bssopenapi:*",
"efc:*"
],
"Resource": "*",
"Effect": "Deny"
}
]
}