Share via


CodeTransparencyClient.GetTransparencyConfigCborAsync Method

Definition

Overloads

GetTransparencyConfigCborAsync(RequestContext)

[Protocol Method] Get the transparency service configuration, mandatory in IETF SCITT draft

GetTransparencyConfigCborAsync(CancellationToken)

Get the transparency service configuration, mandatory in IETF SCITT draft.

GetTransparencyConfigCborAsync(RequestContext)

Source:
CodeTransparencyClient.cs

[Protocol Method] Get the transparency service configuration, mandatory in IETF SCITT draft

public virtual System.Threading.Tasks.Task<Azure.Response> GetTransparencyConfigCborAsync(Azure.RequestContext context);
abstract member GetTransparencyConfigCborAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetTransparencyConfigCborAsync : Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetTransparencyConfigCborAsync (context As RequestContext) As Task(Of Response)

Parameters

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

Service returned a non-success status code.

Examples

This sample shows how to call GetTransparencyConfigCborAsync and parse the result.

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

Response response = await client.GetTransparencyConfigCborAsync(null);

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());

Applies to

GetTransparencyConfigCborAsync(CancellationToken)

Source:
CodeTransparencyClient.cs

Get the transparency service configuration, mandatory in IETF SCITT draft.

public virtual System.Threading.Tasks.Task<Azure.Response<BinaryData>> GetTransparencyConfigCborAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetTransparencyConfigCborAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
override this.GetTransparencyConfigCborAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
Public Overridable Function GetTransparencyConfigCborAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BinaryData))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Examples

This sample shows how to call GetTransparencyConfigCborAsync.

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
CodeTransparencyClient client = new CodeTransparencyClient(endpoint, credential);

Response<BinaryData> response = await client.GetTransparencyConfigCborAsync();

Applies to