Invokes the operation to generate a random KMS data key (DK) for ApsaraVideo VOD HLS encryption.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GenerateKMSDataKey |
create |
*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. |
25818875-5F78-4A*****F6-D7393642CA58 |
| KeyId |
string |
The globally unique identifier of the master key. |
7906979c-8e06-46a2-be2d-68e3ccbc**** |
| 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**** |
| Plaintext |
string |
The Base64-encoding plaintext of the data key (DK). |
QmFzZTY0IGVuY29kZWQgcGxhaW50**** |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4A*****F6-D7393642CA58",
"KeyId": "7906979c-8e06-46a2-be2d-68e3ccbc****",
"CiphertextBlob": "ODZhOWVmZDktM2QxNi00ODk0LWJkNGYtMWZjNDNmM2YyYWJmS7FmDBBQ0BkKsQrtRnidtPwirmDcS0ZuJCU41xxAAWk4Z8qsADfbV0b+i6kQmlvj79dJdGOvtX69Uycs901qOjop4bTS****",
"Plaintext": "QmFzZTY0IGVuY29kZWQgcGxhaW50****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | EntityNotExist.Role | AliyunVODDefaultRole is not authorized by your account. | The AliyunVODDefaultRole does not have permissions to access the resources. Authorize the role based on the documentation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.