CodeTransparencyCertificateClient.GetServiceIdentity Method
Definition
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.
Overloads
GetServiceIdentity(String, RequestContext) |
Gets identity information (TLS cert) for a service instance. |
GetServiceIdentity(String, CancellationToken) |
Gets identity information (TLS cert) for a service instance. Raw response could be null if the value is from cache. |
GetServiceIdentity(String, RequestContext)
Gets identity information (TLS cert) for a service instance.
public virtual Azure.Response GetServiceIdentity (string ledgerId, Azure.RequestContext context);
abstract member GetServiceIdentity : string * Azure.RequestContext -> Azure.Response
override this.GetServiceIdentity : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetServiceIdentity (ledgerId As String, context As RequestContext) As 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
GetServiceIdentity(String, CancellationToken)
Gets identity information (TLS cert) for a service instance. Raw response could be null if the value is from cache.
public virtual Azure.Response<Azure.Security.CodeTransparency.ServiceIdentityResult> GetServiceIdentity (string ledgerId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceIdentity : string * System.Threading.CancellationToken -> Azure.Response<Azure.Security.CodeTransparency.ServiceIdentityResult>
override this.GetServiceIdentity : string * System.Threading.CancellationToken -> Azure.Response<Azure.Security.CodeTransparency.ServiceIdentityResult>
Public Overridable Function GetServiceIdentity (ledgerId As String, Optional cancellationToken As CancellationToken = Nothing) As 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.