Share via


EasmClient Constructors

Definition

Overloads

EasmClient()

Initializes a new instance of EasmClient for mocking.

EasmClient(Uri, TokenCredential)

Initializes a new instance of EasmClient.

EasmClient(Uri, TokenCredential, EasmClientOptions)

Initializes a new instance of EasmClient.

EasmClient()

Source:
EasmClient.cs

Initializes a new instance of EasmClient for mocking.

protected EasmClient ();
Protected Sub New ()

Applies to

EasmClient(Uri, TokenCredential)

Source:
EasmClient.cs

Initializes a new instance of EasmClient.

public EasmClient (Uri endpoint, Azure.Core.TokenCredential credential);
new Azure.Analytics.Defender.Easm.EasmClient : Uri * Azure.Core.TokenCredential -> Azure.Analytics.Defender.Easm.EasmClient
Public Sub New (endpoint As Uri, credential As TokenCredential)

Parameters

endpoint
Uri

The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

Exceptions

endpoint or credential is null.

Applies to

EasmClient(Uri, TokenCredential, EasmClientOptions)

Source:
EasmClient.cs

Initializes a new instance of EasmClient.

public EasmClient (Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Defender.Easm.EasmClientOptions options);
new Azure.Analytics.Defender.Easm.EasmClient : Uri * Azure.Core.TokenCredential * Azure.Analytics.Defender.Easm.EasmClientOptions -> Azure.Analytics.Defender.Easm.EasmClient
Public Sub New (endpoint As Uri, credential As TokenCredential, options As EasmClientOptions)

Parameters

endpoint
Uri

The endpoint hosting the requested resource. For example, https://{region}.easm.defender.microsoft.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/workspaces/{workspaceName}.

credential
TokenCredential

A credential used to authenticate to an Azure Service.

options
EasmClientOptions

The options for configuring the client.

Exceptions

endpoint or credential is null.

Applies to