Share via


CodeTransparencyClient.GetTransparencyConfigCbor Method

Definition

Overloads

GetTransparencyConfigCbor(RequestContext)

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

GetTransparencyConfigCbor(CancellationToken)

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

GetTransparencyConfigCbor(RequestContext)

Source:
CodeTransparencyClient.cs

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

public virtual Azure.Response GetTransparencyConfigCbor(Azure.RequestContext context);
abstract member GetTransparencyConfigCbor : Azure.RequestContext -> Azure.Response
override this.GetTransparencyConfigCbor : Azure.RequestContext -> Azure.Response
Public Overridable Function GetTransparencyConfigCbor (context As RequestContext) As 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 GetTransparencyConfigCbor and parse the result.

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

Response response = client.GetTransparencyConfigCbor(null);

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

Applies to

GetTransparencyConfigCbor(CancellationToken)

Source:
CodeTransparencyClient.cs

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

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Examples

This sample shows how to call GetTransparencyConfigCbor.

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

Response<BinaryData> response = client.GetTransparencyConfigCbor();

Applies to