Using Console
Using CLI
<keyring-name>
with the name of the keyring containing the keys you want to check.
public
key policy set.
public
key policy from the identified key(s):
<key-name>
with the name of the identified key and <path-to-iam-policy-file>
with the path to a file containing the new IAM policy for the key.
Here’s an example of a new IAM policy that removes the public
key policy:
<service-account-email>
with the email address of a service account that needs access to the key.
public
key policy has been removed from the identified key(s) by running the following command:
<key-name>
with the name of the identified key.
This should return the new IAM policy that you set in step 4 without the public
key policy.
public
key policy set.
Using Python