Attestation REST API (stable:2025-06-01)

2025/10/15 • 5 updated methods

Attestation_AttestOpenEnclave (updated)
Description Processes an OpenEnclave report , producing an artifact. The type of artifact produced is dependent upon attestation policy.
Reference Link ¶

⚶ Changes

{
  "#id": "Attestation_AttestOpenEnclave",
  "$parameters": {
    "body": {
      "$properties": [
        {
          "#name": "report",
          "Format": {
            "new": "base64url",
            "old": "byte"
          }
        },
        {
          "runtimeData": [
            {
              "#name": "data",
              "Format": {
                "new": "base64url",
                "old": "byte"
              }
            }
          ]
        },
        {
          "initTimeData": [
            {
              "#name": "data",
              "Format": {
                "new": "base64url",
                "old": "byte"
              }
            }
          ]
        }
      ]
    }
  }
}

⚼ Request

POST:  /attest/OpenEnclave
{
api-version: string ,
body:
{
report: string ,
runtimeData:
{
data: string ,
dataType: enum ,
}
,
initTimeData:
{
data: string ,
dataType: enum ,
}
,
draftPolicyForAttestation: string ,
nonce: string ,
}
,
}

⚐ Response (200)

{
token: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Attestation_AttestSevSnpVm (updated)
Description Processes a SEV SNP Boot chain. The type of artifact produced is dependent upon attestation policy.
Reference Link ¶

⚶ Changes

{
  "#id": "Attestation_AttestSevSnpVm",
  "$parameters": {
    "body": {
      "$properties": {
        "runtimeData": [
          {
            "#name": "data",
            "Format": {
              "new": "base64url",
              "old": "byte"
            }
          }
        ],
        "initTimeData": [
          {
            "#name": "data",
            "Format": {
              "new": "base64url",
              "old": "byte"
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /attest/SevSnpVm
{
api-version: string ,
body:
{
report: string ,
runtimeData:
{
data: string ,
dataType: enum ,
}
,
initTimeData:
{
data: string ,
dataType: enum ,
}
,
draftPolicyForAttestation: string ,
nonce: string ,
}
,
}

⚐ Response (200)

{
token: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Attestation_AttestSgxEnclave (updated)
Description Processes an SGX enclave quote, producing an artifact. The type of artifact produced is dependent upon attestation policy.
Reference Link ¶

⚶ Changes

{
  "#id": "Attestation_AttestSgxEnclave",
  "$parameters": {
    "body": {
      "$properties": [
        {
          "#name": "quote",
          "Format": {
            "new": "base64url",
            "old": "byte"
          }
        },
        {
          "runtimeData": [
            {
              "#name": "data",
              "Format": {
                "new": "base64url",
                "old": "byte"
              }
            }
          ]
        },
        {
          "initTimeData": [
            {
              "#name": "data",
              "Format": {
                "new": "base64url",
                "old": "byte"
              }
            }
          ]
        }
      ]
    }
  }
}

⚼ Request

POST:  /attest/SgxEnclave
{
api-version: string ,
body:
{
quote: string ,
runtimeData:
{
data: string ,
dataType: enum ,
}
,
initTimeData:
{
data: string ,
dataType: enum ,
}
,
draftPolicyForAttestation: string ,
nonce: string ,
}
,
}

⚐ Response (200)

{
token: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Attestation_AttestTdxVm (updated)
Description Processes an TDX quote, producing an artifact. The type of artifact produced is dependent upon attestation policy.
Reference Link ¶

⚶ Changes

{
  "#id": "Attestation_AttestTdxVm",
  "$parameters": {
    "body": {
      "$properties": [
        {
          "#name": "quote",
          "Format": {
            "new": "base64url",
            "old": "byte"
          }
        },
        {
          "runtimeData": [
            {
              "#name": "data",
              "Format": {
                "new": "base64url",
                "old": "byte"
              }
            }
          ]
        },
        {
          "initTimeData": [
            {
              "#name": "data",
              "Format": {
                "new": "base64url",
                "old": "byte"
              }
            }
          ]
        }
      ]
    }
  }
}

⚼ Request

POST:  /attest/TdxVm
{
api-version: string ,
body:
{
quote: string ,
runtimeData:
{
data: string ,
dataType: enum ,
}
,
initTimeData:
{
data: string ,
dataType: enum ,
}
,
nonce: string ,
}
,
}

⚐ Response (200)

{
token: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
Attestation_AttestTpm (updated)
Description Processes attestation evidence from a VBS enclave, producing an attestation result. The attestation result produced is dependent upon the attestation policy.
Reference Link ¶

⚶ Changes

{
  "#id": "Attestation_AttestTpm",
  "$parameters": {
    "body": {
      "$properties": [
        {
          "#name": "data",
          "Format": {
            "new": "base64url",
            "old": "byte"
          }
        }
      ]
    }
  },
  "$responses": {
    "200": {
      "$properties": [
        {
          "#name": "data",
          "Format": {
            "new": "base64url",
            "old": "byte"
          }
        }
      ]
    }
  }
}

⚼ Request

POST:  /attest/Tpm
{
api-version: string ,
body:
{
data: string ,
}
,
}

⚐ Response (200)

{
data: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}