ConfidentialLedgerClient.GetEnclaveQuotesAsync(RequestContext) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
[プロトコルメソッド]Confidential Ledger のすべてのノードの引用符を取得します。
- この プロトコルメソッド を使用すると、高度なシナリオで応答の要求と処理を明示的に作成できます。
public virtual System.Threading.Tasks.Task<Azure.Response> GetEnclaveQuotesAsync (Azure.RequestContext context = default);
abstract member GetEnclaveQuotesAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetEnclaveQuotesAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetEnclaveQuotesAsync (Optional context As RequestContext = Nothing) As Task(Of Response)
パラメーター
- context
- RequestContext
要求コンテキスト。これは、呼び出しごとにクライアント パイプラインの既定の動作をオーバーライドできます。
戻り値
サービスから返された応答。
例外
サービスから成功以外の状態コードが返されました。
例
このサンプルでは、GetEnclaveQuotesAsync を呼び出して結果を解析する方法を示します。
var credential = new DefaultAzureCredential();
var endpoint = new Uri("<https://my-service.azure.com>");
var client = new ConfidentialLedgerClient(endpoint, credential);
Response response = await client.GetEnclaveQuotesAsync();
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("currentNodeId").ToString());
Console.WriteLine(result.GetProperty("enclaveQuotes").GetProperty("<test>").GetProperty("nodeId").ToString());
Console.WriteLine(result.GetProperty("enclaveQuotes").GetProperty("<test>").GetProperty("mrenclave").ToString());
Console.WriteLine(result.GetProperty("enclaveQuotes").GetProperty("<test>").GetProperty("quoteVersion").ToString());
Console.WriteLine(result.GetProperty("enclaveQuotes").GetProperty("<test>").GetProperty("raw").ToString());
注釈
クォートは、ノードとそのエンクレーブの有効性を検証するために使用できる SGX エンクレーブ測定です。
応答ペイロードの JSON スキーマを次に示します。
応答本文:
の ConfidentialLedgerEnclaves
スキーマ:
{
currentNodeId: string, # Required. Id of the Confidential Ledger node responding to the request.
enclaveQuotes: Dictionary<string, EnclaveQuote>, # Required. Dictionary of enclave quotes, indexed by node id.
}
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET