otdfctl policy attributes key assign
assign - Assign a KAS key to an attribute definition
Synopsis
otdfctl policy attributes key assign [flags]
Description
Assigns a KAS key to a policy attribute. This enables the attribute to be used with the specified KAS key for encryption and decryption operations.
Example
otdfctl policy attributes key assign --attribute 3d25d33e-2469-4990-a9ed-fdd13ce74436 --key-id 8f7e6d5c-4b3a-2d1e-9f8d-7c6b5a432f1d
otdfctl policy attributes key assign --attribute "https://example.com/attr/example" --key-id 8f7e6d5c-4b3a-2d1e-9f8d-7c6b5a432f1d
Options
-a
,--attribute <attribute>
- URI or ID of the attribute definition (required:
true
)
-k
,--key-id <key-id>
- ID of the KAS key to assign (required:
true
)