Generates a random KMS data key (DK) for standard encryption transcoding of videos.
Operation description
Before you begin
You must submit a ticket to create a customer master key (CMK) in KMS before you call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GenerateKMSDataKey |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| DataKey |
object |
The data key (DK) information. |
|
| KeyId |
string |
The globally unique identifier of the master key. |
7906979c-8e06-46a2-be2d-68e3ccbc**** |
| Plaintext |
string |
The Base64-encoded plaintext of the data key (DK). |
QmFzZTY0IGVuY29kZWQgcGxhaW50**** |
| CiphertextBlob |
string |
The ciphertext of the encrypted data key (DK). This value is used for the CipherText parameter when you submit a transcoding job. |
ODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901qOjop4bTS**** |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"DataKey": {
"KeyId": "7906979c-8e06-46a2-be2d-68e3ccbc****\n",
"Plaintext": "QmFzZTY0IGVuY29kZWQgcGxhaW50****\n",
"CiphertextBlob": "\t\nODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901qOjop4bTS****"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.