Generates a random Key Management Service (KMS) data key used for HTTP Live Streaming (HLS) encryption and transcoding of videos.
Operation description
Prerequisites
You must submit a ticket to create a custom KMS key before you can 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 information about the data key. |
|
| KeyId |
string |
The ID of the customer master key (CMK). The ID must be globally unique. |
7906979c-8e06-46a2-be2d-68e3ccbc**** |
| Plaintext |
string |
The Base64-encoded plaintext of the data key. |
QmFzZTY0IGVuY29kZWQgcGxhaW50**** |
| CiphertextBlob |
string |
The ciphertext of the encrypted data key. This parameter is used as CipherText when you create 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.