POST api/Export/ContentKeys

Exports requested content keys.

Request Information

URI Parameters

None.

Body Parameters

Data to use for the export.

ContentKeysToExport
NameDescriptionTypeAdditional information
Ids

The collection of IDs of content keys that must be exported.

Collection of globally unique identifier

Required

Certificate

The X.509 certificate (in the DER or the PFX format) of the receiver of content keys that must be exported.

Collection of byte

Required

CpixVersion

The version of the CPIX document to use for exporting content keys. Default is "1". Supported values are "1" and "2".

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Ids": [
    "fc5b71bd-d011-4d94-888c-5016cce7b21a",
    "acbf4fa5-4c44-405b-aa9e-82fd4b27134e"
  ],
  "Certificate": "QEA=",
  "CpixVersion": "sample string 1"
}

Response Information

Resource Description

None.

Status Codes

All HTTP status codes must be expected, but the following status codes are the most probable:

  • OK (200) - Content keys are successfully exported.
  • BadRequest (400) - Provided data is invalid.

Response Formats

application/cpix+xml

Sample:
<?xml version="1.0" encoding="utf-8"?>
<cpix:CPIX xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:cpix="urn:dashif:org:cpix">
  <cpix:DeliveryData>
    <cpix:DeliveryKey>
      <ds:X509Data>
        <ds:X509Certificate>MIIEizCCAnMCCQC62C7xyTt/SjANBgkqhkiG9w0BAQsFADCBijELMAkGA1UEBhMCRUUxETAPBgNVBAgMCFRhcnR1bWFhMQ4wDAYDVQQHDAVUYXJ0dTEPMA0GA1UECgwGQXhpbm9tMQwwCgYDVQQLDANEUk0xEzARBgNVBAMMCktleSBTZXJ2ZXIxJDAiBgkqhkiG9w0BCQEWFWtleXNlcnZlckBleGFtcGxlLmNvbTAgFw0xNjA0MTgwNzQ3NTRaGA8zMDE1MDgyMDA3NDc1NFowgYExCzAJBgNVBAYTAkVFMREwDwYDVQQIDAhUYXJ0dW1hYTEOMAwGA1UEBwwFVGFydHUxDzANBgNVBAoMBkF4aW5vbTEMMAoGA1UECwwDRFJNMQ4wDAYDVQQDDAVUZXN0czEgMB4GCSqG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uPWgspsK/Js6y0neRksJ+PYufL2YW46j4y0DutPZwjBb/0VC0S</ds:X509Certificate>
      </ds:X509Data>
    </cpix:DeliveryKey>
    <cpix:DocumentKey Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc">
      <cpix:Data>
        <cpix:Secret>
          <cpix:EncryptedValue>
            <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
            <xenc:CipherData>
              <xenc:CipherValue>OvFKGMu71T/3VncmDqC32P3yXLQnmLruclrZjbdrIQWbe3VUPGF0AfdCxldC285OJTBEDxWulSvPgFFBouc47VRNvwpZpoqEzG6wrpPL/Jp3Hl0y9On2J1VSBy1PSAl9XmtzbOarM9g6m6e510NY3lrgdRbqeZveok40j9C9IhHD2T4BZCtbrxaP1xBb5ZH3P9Psne1Yv6Iy41bFEeyPMMa+r1knIk4OVzX8r+IlW9NIiNkFtwgT761DTOa37e2O89usRdG5qe96vVAYYMuRAHpNEk6QkRaj6XOSoWNoHgZ6nFpQ7MtbjuropnrpyZvgphfHjy4qi6SgCkKEZ5yjLw==</xenc:CipherValue>
            </xenc:CipherData>
          </cpix:EncryptedValue>
        </cpix:Secret>
      </cpix:Data>
    </cpix:DocumentKey>
    <cpix:MACKey Algorithm="http://www.w3.org/2001/04/xmldsig-more#hmac-sha512">
      <cpix:Key>
        <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" />
        <xenc:CipherData>
          <xenc:CipherValue>IpmVSWKxQ3u01ljuflptBetC8/kvc5tNRnquXm933iGSuj63zDyLR7y6YNxjqU1+GkAIoH4E+qTkORw2pQZAXndOTaF/7zLSBmbORyUd3GESBDeCXQm9tEcdAP9tZ+6a5ACJ/b6MQ4gPVekZGBkPaUCWhUIQE1xASBqMJpgF/CwaRzZyCGd/aAg3IN5OaHTa+xuFT3RbRanGg6FbkKj4CQ4kX3KXl+0Rli5IFuky8LiLsnOvBLGGkdksV+az8qytcZcMZnGuCmLWVoTYm3JIJZ98wDaEgOeIKnyqPVsW7t+UaFEsjOCSZihya7QrrlJXqjHK3AbHcgsVngIvFrCGew==</xenc:CipherValue>
        </xenc:CipherData>
      </cpix:Key>
    </cpix:MACKey>
  </cpix:DeliveryData>
  <cpix:ContentKey keyId="17c0da5d-cf55-4905-aaa6-9b51fe809f39" Algorithm="urn:axinom:contentkey">
    <cpix:Data>
      <cpix:Secret>
        <cpix:EncryptedValue>
          <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
          <xenc:CipherData>
            <xenc:CipherValue>LrO80vXnVVILbg7nlClACPTdM+4/ZgYymdMAe4KVAL0=</xenc:CipherValue>
          </xenc:CipherData>
        </cpix:EncryptedValue>
        <cpix:ValueMAC>QIrWIKShf/n1cKUn1ij2TgN2z0Ly075A8fzeiTe6wpVH2hWBTN8Mv/OFSsH8E6jjMmn0cf+Y8mElrU5G4bCp4Q==</cpix:ValueMAC>
      </cpix:Secret>
    </cpix:Data>
  </cpix:ContentKey>
  <cpix:ContentKey keyId="8416d12e-c962-4c42-8ed6-887f2a027083" Algorithm="urn:axinom:contentkey">
    <cpix:Data>
      <cpix:Secret>
        <cpix:EncryptedValue>
          <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc" />
          <xenc:CipherData>
            <xenc:CipherValue>D33Z29fEIRJVmjmPiBsP/rXoxGOylWtNDsrH2jFZb+A=</xenc:CipherValue>
          </xenc:CipherData>
        </cpix:EncryptedValue>
        <cpix:ValueMAC>4Jfzq4oozeW6pxF7lnKGViNXfg6FQdomtef8k7yC31TlYoRxrzvN2+6MgQxuAYfh++Zem6ZFsNoEiIzgtSwt8w==</cpix:ValueMAC>
      </cpix:Secret>
    </cpix:Data>
  </cpix:ContentKey>
  <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
      <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
      <SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha512" />
      <Reference URI="">
        <Transforms>
          <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
        </Transforms>
        <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512" />
        <DigestValue>EvO9sIGmTjDkfCL1/Jd/4w0zzFUqDT2vY9tVzOMTQYSTsvPnFEn5y95dYKowU6gZudD1rDJHTUIEMcOjskXhuw==</DigestValue>
      </Reference>
    </SignedInfo>
    <SignatureValue>Q16DrGCqvIWY0SW0R5rzlC4mL/Vc+h2myJwGDtg7/zrD/JH2S3M8XYg/ufs4i/31K0Gbafwu/px21jCDRsSGGeIwJL1eVdjjKOaSJPRbLstwcx3PHkqJpBMmUvqries6Ge3S7RxGwrVdV/RCfSBqtFPo1rDwuTxpp7xbgxmKK1D+HZhjQwg6u3HP313MxnF93DoD2gtAI7BnFPKseyUGM+1ZnvAcK6c5zfEoMekKfrhHRaHoxvA5RJukgGKdPig8pybrjFlekWh4wmzUqsDhxH8mfDgMKA/ZYSWgVTttANCx6T6+7h32Ip72El6b7+lqtIMItDgpc3q9/+Y3fLTXSA==</SignatureValue>
    <KeyInfo>
      <X509Data>
        <X509Certificate>MIIEEzCCAvugAwIBAgIJALWhyqvE5bMyMA0GCSqGSIb3DQEBCwUAMIGeMQswCQYDVQQGEwJFRTERMA8GA1UECAwIVGFydHVtYWExDjAMBgNVBAcMBVRhcnR1MQ8wDQYDVQQKDAZBeGlub20xDDAKBgNVBAsMA0RSTTEnMCUGA1UEAwweS2V5IFNlcnZlciBTaWduaW5nIENlcnRpZmljYXRlMSQwIgYJKoZIhvcNAQkBFhVrZXlzZXJ2ZXJAZXhhbXBsZS5jb20wIBcNMTYwNTE4MDc1NjQ1WhgPMzAxNTA5MTkwNzU2NDVaMIGeMQswCQYDVQQGEwJFRTERMA8GA1UECAwIVGFydHVtYWExDjAMBgNVBAcMBVRhcnR1MQ8wDQYDVQQKDAZBeGlub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