ConfidentialLedgerClient.GetConsortiumMembers(RequestContext) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
[Protocol Method] Lists the consortium members.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Pageable<BinaryData> GetConsortiumMembers(Azure.RequestContext context = default);
abstract member GetConsortiumMembers : Azure.RequestContext -> Azure.Pageable<BinaryData>
override this.GetConsortiumMembers : Azure.RequestContext -> Azure.Pageable<BinaryData>
Public Overridable Function GetConsortiumMembers (Optional context As RequestContext = Nothing) As Pageable(Of BinaryData)
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
The Pageable<T> from the service containing a list of BinaryData objects. Details of the body schema for each item in the collection are in the Remarks section below.
Service returned a non-success status code.
This sample shows how to call GetConsortiumMembers and parse the result.
Uri endpoint = new Uri("<endpoint>");
TokenCredential credential = new DefaultAzureCredential();
ConfidentialLedgerClient client = new ConfidentialLedgerClient(endpoint, credential);
foreach (BinaryData item in client.GetConsortiumMembers())
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("certificate").ToString());
Console.WriteLine(result.GetProperty("id").ToString());
}
This sample shows how to call GetConsortiumMembers with all request content and parse the result.
Uri endpoint = new Uri("<endpoint>");
TokenCredential credential = new DefaultAzureCredential();
ConfidentialLedgerClient client = new ConfidentialLedgerClient(endpoint, credential);
foreach (BinaryData item in client.GetConsortiumMembers())
{
JsonElement result = JsonDocument.Parse(item.ToStream()).RootElement;
Console.WriteLine(result.GetProperty("certificate").ToString());
Console.WriteLine(result.GetProperty("id").ToString());
}
Consortium members can manage the Confidential Ledger.
Below is the JSON schema for one item in the pageable response.
Response Body:
Schema for ConsortiumMembers
:
{
certificate: string, # Required. PEM-encoded certificate associated with the member.
id: string, # Required. Identifier assigned to the member.
}
Product | Versions |
---|---|
Azure SDK for .NET | Latest, Preview |
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: