CodeTransparencyCertificateClient.GetServiceIdentityAsync Method

Definition

Overloads

GetServiceIdentityAsync(String, RequestContext)

Gets identity information (TLS cert) for a service instance.

GetServiceIdentityAsync(String, CancellationToken)

Gets identity information (TLS cert) for a service instance. Raw response could be null if the value is from cache.

GetServiceIdentityAsync(String, RequestContext)

Source:
CodeTransparencyCertificateClient.cs

Gets identity information (TLS cert) for a service instance.

public virtual System.Threading.Tasks.Task<Azure.Response> GetServiceIdentityAsync (string ledgerId, Azure.RequestContext context);
abstract member GetServiceIdentityAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetServiceIdentityAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetServiceIdentityAsync (ledgerId As String, context As RequestContext) As Task(Of Response)

Parameters

ledgerId
String

Id of the service instance to get information for.

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

ledgerId is null.

ledgerId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetServiceIdentityAsync(String, CancellationToken)

Source:
CodeTransparencyCertificateClient.cs

Gets identity information (TLS cert) for a service instance. Raw response could be null if the value is from cache.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.CodeTransparency.ServiceIdentityResult>> GetServiceIdentityAsync (string ledgerId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceIdentityAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.CodeTransparency.ServiceIdentityResult>>
override this.GetServiceIdentityAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.CodeTransparency.ServiceIdentityResult>>
Public Overridable Function GetServiceIdentityAsync (ledgerId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceIdentityResult))

Parameters

ledgerId
String

Id of the service instance to get information for.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

ledgerId is null.

ledgerId is an empty string, and was expected to be non-empty.

Applies to