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
assets (azure.defender.easm.aio.operations.AssetsOperations) – AssetsOperations operations
discovery_groups (azure.defender.easm.aio.operations.DiscoveryGroupsOperations) – DiscoveryGroupsOperations operations
discovery_templates (azure.defender.easm.aio.operations.DiscoveryTemplatesOperations) – DiscoveryTemplatesOperations operations
reports (azure.defender.easm.aio.operations.ReportsOperations) – ReportsOperations operations
saved_filters (azure.defender.easm.aio.operations.SavedFiltersOperations) – SavedFiltersOperations operations
tasks (azure.defender.easm.aio.operations.TasksOperations) – TasksOperations operations
- 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.
-
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