odb:ListTagsForResource

Read

odb:ListTagsForResource is a Read access-level action in the odb service. Grants permission to list information about the tags applied to this resource

Resource types

ARNs that odb:ListTagsForResource can be scoped to in an IAM policy.

arn:${Partition}:odb:${Region}:${Account}:autonomous-database/${AutonomousDatabaseId}
autonomous-database
arn:${Partition}:odb:${Region}:${Account}:autonomous-database-backup/${AutonomousDatabaseBackupId}
autonomous-database-backup
arn:${Partition}:odb:${Region}:${Account}:cloud-autonomous-vm-cluster/${CloudAutonomousVmClusterId}
cloud-autonomous-vm-cluster
arn:${Partition}:odb:${Region}:${Account}:cloud-exadata-infrastructure/${CloudExadataInfrastructureId}
cloud-exadata-infrastructure
arn:${Partition}:odb:${Region}:${Account}:cloud-vm-cluster/${CloudVmClusterId}
cloud-vm-cluster
arn:${Partition}:odb:${Region}:${Account}:db-node/${DbNodeId}
db-node
arn:${Partition}:odb:${Region}:${Account}:odb-network/${OdbNetworkId}
odb-network
arn:${Partition}:odb:${Region}:${Account}:odb-peering-connection/${OdbPeeringConnectionId}
odb-peering-connection

Condition keys

Keys you can use in the Condition block of a policy that grants odb:ListTagsForResource.

aws:ResourceTag/${TagKey} String

Filters access by a tag key and value pair of a resource

Example IAM policy

A minimal policy that allows odb:ListTagsForResource. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowOdbListTagsForResource",
      "Effect": "Allow",
      "Action": "odb:ListTagsForResource",
      "Resource": "*"
    }
  ]
}

Related actions in odb

View all odb actions →