azure.defender.easm.aio package

class azure.defender.easm.aio.EasmClient(endpoint: str, resource_group_name: str, subscription_id: str, workspace_name: str, credential: AsyncTokenCredential, **kwargs: Any)[source]

Defender EASM discovers and maps your digital attack surface to provide an “outside-in” perspective using probes to discover assets. The assets are provided with detailed metadata associated, including vulnerabilities, configurations and web components, allowing customers to view and prioritize external risk. The EASM REST API enables you to develop clients that integrate with your application.

Variables
Parameters
  • endpoint (str) – The endpoint hosting the requested resource. For example, {region}.easm.defender.microsoft.com. Required.

  • resource_group_name (str) – The name of the Resource Group. Required.

  • subscription_id (str) – The ID of the target subscription. Required.

  • workspace_name (str) – The name of the Workspace. Required.

  • credential (AsyncTokenCredential) – Credential needed for the client to connect to Azure. Required.

Keyword Arguments

api_version (str) – Api Version. Default value is “2022-11-01-preview”. Note that overriding this default value may result in unsupported behavior.

async close()None[source]
send_request(request: azure.core.rest._rest_py3.HttpRequest, **kwargs: Any)Awaitable[azure.core.rest._rest_py3.AsyncHttpResponse][source]

Runs the network request through the client’s chained policies.

>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = await client.send_request(request)
<AsyncHttpResponse: 200 OK>

For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request

Parameters

request (HttpRequest) – The network request you want to make. Required.

Keyword Arguments

stream (bool) – Whether the response payload will be streamed. Defaults to False.

Returns

The response of your network call. Does not do error handling on your response.

Return type

AsyncHttpResponse